Skip to content

Commit 95d3a8c

Browse files
committed
✏️(project) automatic typo correction
Fix typos in the project.
1 parent 4f126ab commit 95d3a8c

22 files changed

+39
-39
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ and this project adheres to
557557
- ⚡️(e2e) unique login between tests (#80)
558558
- ⚡️(CI) improve e2e job (#86)
559559
- ♻️(frontend) improve the error and message info ui (#93)
560-
- ✏️(frontend) change all occurences of pad to doc (#99)
560+
- ✏️(frontend) change all occurrences of pad to doc (#99)
561561

562562
## Fixed
563563

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Security is very important to us.
66

7-
If you have any issue regarding security, please disclose the information responsibly submiting [this form](https://vdp.numerique.gouv.fr/p/Send-a-report?lang=en) and not by creating an issue on the repository. You can also email us at [email protected]
7+
If you have any issue regarding security, please disclose the information responsibly submitting [this form](https://vdp.numerique.gouv.fr/p/Send-a-report?lang=en) and not by creating an issue on the repository. You can also email us at [email protected]
88

99
We appreciate your effort to make Docs more secure.
1010

docs/env.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ These are the environmental variables you can set for the impress-backend contai
3939
| DJANGO_EMAIL_PORT | port used to connect to email host | |
4040
| DJANGO_EMAIL_USE_TLS | use tls for email host connection | false |
4141
| DJANGO_EMAIL_USE_SSL | use sstl for email host connection | false |
42-
| DJANGO_EMAIL_FROM | email adress used as sender | [email protected] |
42+
| DJANGO_EMAIL_FROM | email address used as sender | [email protected] |
4343
| DJANGO_CORS_ALLOW_ALL_ORIGINS | allow all CORS origins | true |
4444
| DJANGO_CORS_ALLOWED_ORIGINS | list of origins allowed for CORS | [] |
4545
| DJANGO_CORS_ALLOWED_ORIGIN_REGEXES | list of origins allowed for CORS using regulair expressions | [] |
@@ -59,11 +59,11 @@ These are the environmental variables you can set for the impress-backend contai
5959
| OIDC_RP_CLIENT_ID | client id used for OIDC | impress |
6060
| OIDC_RP_CLIENT_SECRET | client secret used for OIDC | |
6161
| OIDC_OP_JWKS_ENDPOINT | JWKS endpoint for OIDC | |
62-
| OIDC_OP_AUTHORIZATION_ENDPOINT | Autorization endpoint for OIDC | |
62+
| OIDC_OP_AUTHORIZATION_ENDPOINT | Authorization endpoint for OIDC | |
6363
| OIDC_OP_TOKEN_ENDPOINT | Token endpoint for OIDC | |
6464
| OIDC_OP_USER_ENDPOINT | User endpoint for OIDC | |
6565
| OIDC_OP_LOGOUT_ENDPOINT | Logout endpoint for OIDC | |
66-
| OIDC_AUTH_REQUEST_EXTRA_PARAMS | OIDC extra auth paramaters | {} |
66+
| OIDC_AUTH_REQUEST_EXTRA_PARAMS | OIDC extra auth parameters | {} |
6767
| OIDC_RP_SCOPES | scopes requested for OIDC | openid email |
6868
| LOGIN_REDIRECT_URL | login redirect url | |
6969
| LOGIN_REDIRECT_URL_FAILURE | login redirect url on failure | |
@@ -73,7 +73,7 @@ These are the environmental variables you can set for the impress-backend contai
7373
| OIDC_REDIRECT_ALLOWED_HOSTS | Allowed hosts for OIDC redirect url | [] |
7474
| OIDC_STORE_ID_TOKEN | Store OIDC token | true |
7575
| OIDC_FALLBACK_TO_EMAIL_FOR_IDENTIFICATION | faillback to email for identification | true |
76-
| OIDC_ALLOW_DUPLICATE_EMAILS | Allow dupplicate emails | false |
76+
| OIDC_ALLOW_DUPLICATE_EMAILS | Allow duplicate emails | false |
7777
| USER_OIDC_ESSENTIAL_CLAIMS | essential claims in OIDC token | [] |
7878
| OIDC_USERINFO_FULLNAME_FIELDS | OIDC token claims to create full name | ["first_name", "last_name"] |
7979
| OIDC_USERINFO_SHORTNAME_FIELD | OIDC token claims to create shortname | first_name |

docs/examples/impress.values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ backend:
8282
python manage.py createsuperuser --email [email protected] --password admin
8383
restartPolicy: Never
8484

85-
# Exra volume to manage our local custom CA and avoid to set ssl_verify: false
85+
# Extra volume to manage our local custom CA and avoid to set ssl_verify: false
8686
extraVolumeMounts:
8787
- name: certs
8888
mountPath: /usr/local/lib/python3.12/site-packages/certifi/cacert.pem
8989
subPath: cacert.pem
9090

91-
# Exra volume to manage our local custom CA and avoid to set ssl_verify: false
91+
# Extra volume to manage our local custom CA and avoid to set ssl_verify: false
9292
extraVolumes:
9393
- name: certs
9494
configMap:

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ OIDC_RP_SCOPES: "openid email"
133133
134134
You can find these values in **examples/keycloak.values.yaml**
135135
136-
### Find redis server connexion values
136+
### Find redis server connection values
137137
138138
Docs needs a redis so we start by deploying one:
139139
@@ -146,7 +146,7 @@ keycloak-postgresql-0 1/1 Running 0 26m
146146
redis-master-0 1/1 Running 0 35s
147147
```
148148

149-
### Find postgresql connexion values
149+
### Find postgresql connection values
150150

151151
Docs uses a postgresql database as backend, so if you have a provider, obtain the necessary information to use it. If you don't, you can install a postgresql testing environment as follow:
152152

@@ -173,7 +173,7 @@ POSTGRES_USER: dinum
173173
POSTGRES_PASSWORD: pass
174174
```
175175
176-
### Find s3 bucket connexion values
176+
### Find s3 bucket connection values
177177
178178
Docs uses an s3 bucket to store documents, so if you have a provider obtain the necessary information to use it. If you don't, you can install a local minio testing environment as follow:
179179
@@ -191,7 +191,7 @@ redis-master-0 1/1 Running 0 10m
191191

192192
## Deployment
193193

194-
Now you are ready to deploy Docs without AI. AI requires more dependencies (OpenAI API). To deploy Docs you need to provide all previous informations to the helm chart.
194+
Now you are ready to deploy Docs without AI. AI requires more dependencies (OpenAI API). To deploy Docs you need to provide all previous information to the helm chart.
195195

196196
```
197197
$ helm repo add impress https://suitenumerique.github.io/docs/

src/backend/core/api/viewsets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def list(self, request, *args, **kwargs):
576576
queryset, filter_data["is_favorite"]
577577
)
578578

579-
# Apply ordering only now that everyting is filtered and annotated
579+
# Apply ordering only now that everything is filtered and annotated
580580
queryset = filters.OrderingFilter().filter_queryset(
581581
self.request, queryset, self
582582
)
@@ -889,7 +889,7 @@ def tree(self, request, pk, *args, **kwargs):
889889
)
890890

891891
# Compute cache for ancestors links to avoid many queries while computing
892-
# abilties for his documents in the tree!
892+
# abilities for his documents in the tree!
893893
ancestors_links.append(
894894
{"link_reach": ancestor.link_reach, "link_role": ancestor.link_role}
895895
)

src/backend/core/services/ai_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
AI_TRANSLATE = (
47-
"Keep the same html stucture and formatting. "
47+
"Keep the same html structure and formatting. "
4848
"Translate the content in the html to the specified language {language:s}. "
4949
"Check the translation for accuracy and make any necessary corrections. "
5050
"Do not provide any other information."

src/backend/core/services/collaboration_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self):
1717
def reset_connections(self, room, user_id=None):
1818
"""
1919
Reset connections of a room in the collaboration server.
20-
Reseting a connection means that the user will be disconnected and will
20+
Resetting a connection means that the user will be disconnected and will
2121
have to reconnect to the collaboration server, with updated rights.
2222
"""
2323
endpoint = "reset-connections"

src/backend/core/tests/documents/test_api_document_invitations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def test_api_document_invitations_create_cannot_invite_existing_users():
575575
document = factories.DocumentFactory(users=[(user, "owner")])
576576
existing_user = factories.UserFactory()
577577

578-
# Build an invitation to the email of an exising identity in the db
578+
# Build an invitation to the email of an existing identity in the db
579579
invitation_values = {
580580
"email": existing_user.email,
581581
"role": random.choice(models.RoleChoices.values),

src/backend/core/tests/documents/test_api_documents_ai_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_api_documents_ai_transform_authenticated_forbidden(reach, role):
150150
@patch("openai.resources.chat.completions.Completions.create")
151151
def test_api_documents_ai_transform_authenticated_success(mock_create, reach, role):
152152
"""
153-
Autenticated who are not related to a document should be able to request AI transform
153+
Authenticated who are not related to a document should be able to request AI transform
154154
if the link reach and role permit it.
155155
"""
156156
user = factories.UserFactory()

src/backend/core/tests/documents/test_api_documents_ai_translate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_api_documents_ai_translate_anonymous_success(mock_create):
9999
{
100100
"role": "system",
101101
"content": (
102-
"Keep the same html stucture and formatting. "
102+
"Keep the same html structure and formatting. "
103103
"Translate the content in the html to the specified language Spanish. "
104104
"Check the translation for accuracy and make any necessary corrections. "
105105
"Do not provide any other information."
@@ -172,7 +172,7 @@ def test_api_documents_ai_translate_authenticated_forbidden(reach, role):
172172
@patch("openai.resources.chat.completions.Completions.create")
173173
def test_api_documents_ai_translate_authenticated_success(mock_create, reach, role):
174174
"""
175-
Autenticated who are not related to a document should be able to request AI translate
175+
Authenticated who are not related to a document should be able to request AI translate
176176
if the link reach and role permit it.
177177
"""
178178
user = factories.UserFactory()
@@ -197,7 +197,7 @@ def test_api_documents_ai_translate_authenticated_success(mock_create, reach, ro
197197
{
198198
"role": "system",
199199
"content": (
200-
"Keep the same html stucture and formatting. "
200+
"Keep the same html structure and formatting. "
201201
"Translate the content in the html to the "
202202
"specified language Colombian Spanish. "
203203
"Check the translation for accuracy and make any necessary corrections. "
@@ -274,7 +274,7 @@ def test_api_documents_ai_translate_success(mock_create, via, role, mock_user_te
274274
{
275275
"role": "system",
276276
"content": (
277-
"Keep the same html stucture and formatting. "
277+
"Keep the same html structure and formatting. "
278278
"Translate the content in the html to the "
279279
"specified language Colombian Spanish. "
280280
"Check the translation for accuracy and make any necessary corrections. "

src/backend/core/tests/documents/test_api_documents_attachment_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_api_documents_attachment_upload_authenticated_forbidden(reach, role):
131131
)
132132
def test_api_documents_attachment_upload_authenticated_success(reach, role):
133133
"""
134-
Autenticated users who are not related to a document should be able to upload
134+
Authenticated users who are not related to a document should be able to upload
135135
a file when the link reach and role permit it.
136136
"""
137137
user = factories.UserFactory()
@@ -266,7 +266,7 @@ def test_api_documents_attachment_upload_invalid(client):
266266

267267

268268
def test_api_documents_attachment_upload_size_limit_exceeded(settings):
269-
"""The uploaded file should not exceeed the maximum size in settings."""
269+
"""The uploaded file should not exceed the maximum size in settings."""
270270
settings.DOCUMENT_IMAGE_MAX_SIZE = 1048576 # 1 MB for test
271271

272272
user = factories.UserFactory()

src/backend/core/tests/documents/test_api_documents_create_for_owner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_api_documents_create_for_owner_existing_user_email_no_sub_with_fallback
279279
"""
280280
It should be possible to create a document on behalf of a pre-existing user for
281281
who the sub was not found if the settings allow it. This edge case should not
282-
happen in a healthy OIDC federation but can be usefull if an OIDC provider modifies
282+
happen in a healthy OIDC federation but can be useful if an OIDC provider modifies
283283
users sub on each login for example...
284284
"""
285285
user = factories.UserFactory(language="en-us")

src/backend/core/tests/documents/test_api_documents_move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_api_documents_move_authenticated_deleted_target_as_child(position):
310310
def test_api_documents_move_authenticated_deleted_target_as_sibling(position):
311311
"""
312312
It should not be possible to move a document as a sibling of a deleted target document
313-
if the user has no rigths on its parent.
313+
if the user has no rights on its parent.
314314
"""
315315
user = factories.UserFactory()
316316
client = APIClient()

src/backend/core/tests/documents/test_api_documents_update_extract_attachments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_ydoc_with_mages(image_keys):
3131
def test_api_documents_update_new_attachment_keys_anonymous(django_assert_num_queries):
3232
"""
3333
When an anonymous user updates a document, the attachment keys extracted from the
34-
updated content should be added to the list of "attachments" ot the document if these
34+
updated content should be added to the list of "attachments" to the document if these
3535
attachments are already readable by anonymous users.
3636
"""
3737
image_keys = [f"{uuid4()!s}/attachments/{uuid4()!s}.png" for _ in range(4)]
@@ -78,7 +78,7 @@ def test_api_documents_update_new_attachment_keys_authenticated(
7878
):
7979
"""
8080
When an authenticated user updates a document, the attachment keys extracted from the
81-
updated content should be added to the list of "attachments" ot the document if these
81+
updated content should be added to the list of "attachments" to the document if these
8282
attachments are already readable by the editing user.
8383
"""
8484
user = factories.UserFactory()

src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ test.describe('Doc Export', () => {
141141

142142
/**
143143
* This test tell us that the export to pdf is working with images
144-
* but it does not tell us if the images are beeing displayed correctly
144+
* but it does not tell us if the images are being displayed correctly
145145
* in the pdf.
146146
*
147147
* TODO: Check if the images are displayed correctly in the pdf

src/frontend/apps/impress/src/components/Text.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type TextSizes = keyof typeof sizes;
1010

1111
export interface TextProps extends BoxProps {
1212
as?: 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
13-
$elipsis?: boolean;
13+
$ellipsis?: boolean;
1414
$weight?: CSSProperties['fontWeight'];
1515
$textAlign?: CSSProperties['textAlign'];
1616
$size?: TextSizes | (string & {});
@@ -50,8 +50,8 @@ export const TextStyled = styled(Box)<TextProps>`
5050
${({ $theme, $variation }) =>
5151
`color: var(--c--theme--colors--${$theme}-${$variation});`}
5252
${({ $color }) => $color && `color: ${$color};`}
53-
${({ $elipsis }) =>
54-
$elipsis &&
53+
${({ $ellipsis }) =>
54+
$ellipsis &&
5555
`white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`}
5656
`;
5757

src/frontend/apps/impress/src/features/docs/doc-editor/hook/useSaveDoc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const useSaveDoc = (docId: string, yDoc: Y.Doc, canSave: boolean) => {
6161
const isSaving = saveDoc();
6262

6363
/**
64-
* Firefox does not trigger the request everytime the user leaves the page.
64+
* Firefox does not trigger the request every time the user leaves the page.
6565
* Plus the request is not intercepted by the service worker.
6666
* So we prevent the default behavior to have the popup asking the user
6767
* if he wants to leave the page, by adding the popup, we let the time to the

src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/tablePDF.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See:
55
* https://github.com/TypeCellOS/BlockNote/blob/004c0bf720fe1415c497ad56449015c5f4dd7ba0/packages/xl-pdf-exporter/src/pdf/util/table/Table.tsx
66
*
7-
* We succeded to manage the colspan, but rowspan is not supported yet.
7+
* We succeeded to manage the colspan, but rowspan is not supported yet.
88
*/
99

1010
import { TD, TR, Table } from '@ag-media/react-pdf-table';

src/frontend/apps/impress/src/features/service-worker/service-worker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ registerRoute(
185185
);
186186

187187
/**
188-
* Cache stategy static files images (images / svg)
188+
* Cache strategy static files images (images / svg)
189189
*/
190190
registerRoute(
191191
({ request }) => request.destination === 'image',
@@ -201,7 +201,7 @@ registerRoute(
201201
);
202202

203203
/**
204-
* Cache stategy static files fonts
204+
* Cache strategy static files fonts
205205
*/
206206
googleFontsCache();
207207
registerRoute(
@@ -218,7 +218,7 @@ registerRoute(
218218
);
219219

220220
/**
221-
* Cache stategy static files (css, js, workers)
221+
* Cache strategy static files (css, js, workers)
222222
*/
223223
registerRoute(
224224
({ request }) =>

src/helm/env.d/dev/values.impress.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ backend:
9999
mountPath: /usr/local/lib/python3.12/site-packages/certifi/cacert.pem
100100
subPath: cacert.pem
101101

102-
# Exra volumes to manage our local custom CA and avoid to set ssl_verify: false
102+
# Extra volumes to manage our local custom CA and avoid to set ssl_verify: false
103103
extraVolumes:
104104
- name: certs
105105
configMap:

src/helm/impress/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
54-
transform dictionnary of environment variables
54+
transform dictionary of environment variables
5555
Usage : {{ include "impress.env.transformDict" .Values.envVars }}
5656

5757
Example:

0 commit comments

Comments
 (0)