···2727git clone https://git.inpt.fr/churros/churros.git
2828```
29293030-> **NOTE:** Si vous utilisez VS Code, vous pouvez ouvrir le projet dans VS Code et lancher la tache "Setup environment" (<kbbd>Ctrl+Shift+P</kbd> puis taper "Run Task" et sélectionner "Setup environment"). C'est l'équivalent des commandes ci-dessous.
3030+> **NOTE:** Si vous utilisez VS Code, vous pouvez ouvrir le projet dans VS Code et lancer la tache "Setup environment" (<kbbd>Ctrl+Shift+P</kbd> puis taper "Run Task" et sélectionner "Setup environment"). C'est l'équivalent des commandes ci-dessous.
313132322. Installer les dépendances (Volta s'occupera de Node et Yarn pour vous et installera automatiquement les bonnes versions au lancement de cette commande)
3333···6565 yarn dev
6666 ```
67676868+ On peut aussi lancer `yarn dev:env` pour automatiquement mettre à jour le `.env` de chaque paquet quand on modifie le `.env` à la racine.
6969+6870- Ou (c'est mieux), démarrer dans 2 terminaux indépendants les serveurs de dev de l'API et de l'application:
69717072 1.
···7375 docker compose up -d
7476 ```
75777676- 2. | Terminal 1 | Terminal 2 |
7777- | --------------- | --------------- |
7878- | `yarn @api dev` | `yarn @app dev` |
7878+ 2. | Terminal 1 | Terminal 2 | Terminal 3 |
7979+ | --------------- | --------------- | -------------- |
8080+ | `yarn @api dev` | `yarn @app dev` | `yarn dev:env` |
79818080- (sur VSCode: Run Task puis Develop)
8282+ (sur VSCode: Run Task puis Develop fait cela pour vous)
81838284 Note que le faux serveur LDAP de l'école ne fonctionnera pas (il faut le lancer dans encore un autre terminal), mais ça ne pose pas de problème si l'on ne développe pas la partie inscriptions.
8385···95979698## Développement
97999898-[Voir le wiki](https://git.inpt.fr/churros/churros/-/wikis) pour se familiariser avec l'architecture du projet.
100100+[Voir le wiki](https://git.inpt.fr/churros/wiki) pour se familiariser avec l'architecture du projet.
99101100102### Résolution de problèmes
101103
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.delete-announcement.js';
66-export * from './mutation.upsert-announcement.js';
77-export * from './query.announcement.js';
88-export * from './query.announcements-now.js';
99-export * from './query.announcements.js';
1010-export * from './user.can-manage-announcements.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './announcement.js';
-11
packages/api/src/modules/changelogs/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './changelogs.js';
-9
packages/api/src/modules/comments/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './comment.replies.js';
66-export * from './document.comments.js';
77-export * from './mutation.delete-comment.js';
88-export * from './mutation.upsert-comment.js';
-7
packages/api/src/modules/comments/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './comment.js';
66-export * from './commentable.js';
77-export * from './comments-connection.js';
-11
packages/api/src/modules/curriculum/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './major.subjects.js';
66-export * from './major.teaching-units.js';
77-export * from './minor.teaching-units.js';
88-export * from './mutation.update-subjects-exam-dates.js';
99-export * from './query.major.js';
1010-export * from './query.majors.js';
1111-export * from './query.minor.js';
1212-export * from './query.minors.js';
1313-export * from './query.subject.js';
1414-export * from './query.subjects.js';
1515-export * from './subject.documents.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './ade.js';
-11
packages/api/src/modules/documents/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.delete-document-file.js';
66-export * from './mutation.delete-document.js';
77-export * from './mutation.merge-documents.js';
88-export * from './mutation.set-document-file-is-solution.js';
99-export * from './mutation.upload-document-file.js';
1010-export * from './mutation.upsert-document.js';
1111-export * from './query.document.js';
1212-export * from './query.documents.js';
1313-export * from './query.search-documents.js';
-7
packages/api/src/modules/documents/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './document-search-result.js';
66-export * from './document-type.js';
77-export * from './document.js';
-5
packages/api/src/modules/documents/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './paths.js';
-11
packages/api/src/modules/events/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-9
packages/api/src/modules/events/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './notifications.js';
66-export * from './permissions.js';
77-export * from './places.js';
88-export * from './powerlevels.js';
99-export * from './recurrence.js';
-11
packages/api/src/modules/forms/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-36
packages/api/src/modules/forms/resolvers/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './event.forms.js';
66-export * from './form-section.next-section.js';
77-export * from './form.answer-count.js';
88-export * from './form.answers-by-user.js';
99-export * from './form.answers-export.js';
1010-export * from './form.answers.js';
1111-export * from './form.linked-google-sheet-url.js';
1212-export * from './form.my-answers.js';
1313-export * from './form.search-answers.js';
1414-export * from './group.forms.js';
1515-export * from './mutation.answer-file-question.js';
1616-export * from './mutation.answer-form-section.js';
1717-export * from './mutation.create-linked-google-sheet.js';
1818-export * from './mutation.mail-form-answers.js';
1919-export * from './mutation.set-form-answers-checkbox.js';
2020-export * from './mutation.upsert-form-section.js';
2121-export * from './mutation.upsert-form.js';
2222-export * from './mutation.upsert-question.js';
2323-export * from './query.all-forms.js';
2424-export * from './query.form-section.js';
2525-export * from './query.form.js';
2626-export * from './query.forms.js';
2727-export * from './query.search-forms.js';
2828-export * from './question-scale.answer-counts.js';
2929-export * from './question-select-multiple.answer-counts.js';
3030-export * from './question-select-one.answer-counts.js';
3131-export * from './question.answers.js';
3232-export * from './question.default-answer.js';
3333-export * from './question.my-answer.js';
3434-export * from './question.total-answers.js';
3535-export * from './user.answered-forms.js';
3636-export * from './user.partially-answered-forms.js';
-30
packages/api/src/modules/forms/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './answer-date.js';
66-export * from './answer-file-upload.js';
77-export * from './answer-input.js';
88-export * from './answer-long-text.js';
99-export * from './answer-number.js';
1010-export * from './answer-scale.js';
1111-export * from './answer-search-result.js';
1212-export * from './answer-select-multiple.js';
1313-export * from './answer-select-one.js';
1414-export * from './answer-text.js';
1515-export * from './answer-time.js';
1616-export * from './answer.js';
1717-export * from './answers-export-formats.js';
1818-export * from './answers-of-user.js';
1919-export * from './form-search-result.js';
2020-export * from './form-section.js';
2121-export * from './form.js';
2222-export * from './question-file-upload.js';
2323-export * from './question-kind.js';
2424-export * from './question-option-input.js';
2525-export * from './question-scalar.js';
2626-export * from './question-scale-input.js';
2727-export * from './question-scale.js';
2828-export * from './question-select-multiple.js';
2929-export * from './question-select-one.js';
3030-export * from './question.js';
-8
packages/api/src/modules/forms/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './answers.js';
66-export * from './google-sheets.js';
77-export * from './paths.js';
88-export * from './permissions.js';
-11
packages/api/src/modules/gitlab/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './issue.comments.js';
66-export * from './mutation.create-gitlab-issue.js';
77-export * from './query.code-contributors.js';
88-export * from './query.issue.js';
99-export * from './query.issues-by-user.js';
-7
packages/api/src/modules/gitlab/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './issue-comment.js';
66-export * from './issue-state.js';
77-export * from './issue.js';
-6
packages/api/src/modules/gitlab/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './gitlab-api.js';
66-export * from './labels.js';
-9
packages/api/src/modules/global/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
-26
packages/api/src/modules/global/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './color.js';
66-export * from './date-range-input.js';
77-export * from './date-time.js';
88-export * from './email.js';
99-export * from './errors.js';
1010-export * from './file.js';
1111-export * from './html.js';
1212-export * from './local-id.js';
1313-export * from './loose-url.js';
1414-export * from './markdown.js';
1515-export * from './phone-number.js';
1616-export * from './pictured.js';
1717-export * from './positive-int.js';
1818-export * from './qr-code.js';
1919-export * from './shareable.js';
2020-export * from './short-string.js';
2121-export * from './sort-direction.js';
2222-export * from './string-to-int-mapping.js';
2323-export * from './uid.js';
2424-export * from './url.js';
2525-export * from './visibility.js';
2626-export * from './zod-error.js';
-11
packages/api/src/modules/groups/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './group.ancestors.js';
66-export * from './group.members.js';
77-export * from './group.search-members.js';
88-export * from './mutation.add-group-member-v2.js';
99-export * from './mutation.add-group-member.js';
1010-export * from './mutation.create-group-access-token.js';
1111-export * from './mutation.create-group.js';
1212-export * from './mutation.delete-group-member.js';
1313-export * from './mutation.delete-group-picture.js';
1414-export * from './mutation.delete-group.js';
1515-export * from './mutation.self-join-group.js';
1616-export * from './mutation.set-goup-room-open-state.js';
1717-export * from './mutation.set-group-join-policy.js';
1818-export * from './mutation.set-group-student-association.js';
1919-export * from './mutation.set-group-type.js';
2020-export * from './mutation.set-parent-group.js';
2121-export * from './mutation.update-group-member.js';
2222-export * from './mutation.update-group-picture.js';
2323-export * from './mutation.update-group-profile.js';
2424-export * from './mutation.upsert-group-member.js';
2525-export * from './mutation.upsert-group.js';
2626-export * from './query.group-member.js';
2727-export * from './query.group-members-csv.js';
2828-export * from './query.group.js';
2929-export * from './query.groups.js';
3030-export * from './query.search-groups.js';
3131-export * from './user.can-add-members-to.js';
3232-export * from './user.can-create-events-on.js';
3333-export * from './user.can-create-posts-on.js';
3434-export * from './user.groups.js';
-11
packages/api/src/modules/groups/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './group-member-input.js';
66-export * from './group-member-search-result.js';
77-export * from './group-member.js';
88-export * from './group-profile-input.js';
99-export * from './group-search-result.js';
1010-export * from './group-type.js';
1111-export * from './group.js';
-9
packages/api/src/modules/groups/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './contributions.js';
66-export * from './permissions.js';
77-export * from './sort.js';
88-export * from './tree.js';
99-export * from './uid.js';
-11
packages/api/src/modules/health-checks/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './checks.js';
-11
packages/api/src/modules/links/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-9
packages/api/src/modules/links/resolvers/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './link.computed-value.js';
66-export * from './link.url.js';
77-export * from './mutation.add-links.js';
88-export * from './mutation.delete-link.js';
99-export * from './mutation.update-link.js';
-7
packages/api/src/modules/links/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './has-links.js';
66-export * from './link-input.js';
77-export * from './link.js';
-6
packages/api/src/modules/links/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './computed-links.js';
66-export * from './permissions.js';
-9
packages/api/src/modules/logs/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
-5
packages/api/src/modules/logs/resolvers/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './query.logs.js';
-5
packages/api/src/modules/logs/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './log-entry.js';
-8
packages/api/src/modules/mails/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './utils/index.js';
-5
packages/api/src/modules/mails/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mailing-lists.js';
-11
packages/api/src/modules/notifications/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.send-notification.js';
66-export * from './mutation.subscribe-to-notifications.js';
77-export * from './mutation.test-notification.js';
88-export * from './mutation.unsubscribe-from-notifications.js';
99-export * from './query.notification-subscription.js';
1010-export * from './query.notification-subscriptions.js';
1111-export * from './query.notification.js';
1212-export * from './query.notifications-send-count-for-article.js';
1313-export * from './query.notifications.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './count.js';
66-export * from './push-notification.js';
77-export * from './schedule.js';
88-export * from './send.js';
99-export * from './vapid.js';
-11
packages/api/src/modules/pages/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-15
packages/api/src/modules/pages/resolvers/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './group.page.js';
66-export * from './group.pages-count.js';
77-export * from './group.pages.js';
88-export * from './mutation.add-file-to-page.js';
99-export * from './mutation.delete-page.js';
1010-export * from './mutation.remove-file-from-page.js';
1111-export * from './mutation.upsert-page.js';
1212-export * from './query.page.js';
1313-export * from './query.pages.js';
1414-export * from './student-association.page.js';
1515-export * from './student-association.pages.js';
-6
packages/api/src/modules/pages/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './page.js';
66-export * from './pages-connection.js';
-6
packages/api/src/modules/pages/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './paths.js';
66-export * from './permissions.js';
-11
packages/api/src/modules/payments/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-9
packages/api/src/modules/payments/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './lydia-account.js';
66-export * from './payment-method.js';
77-export * from './profits-breakdown.js';
88-export * from './promotion-type.js';
99-export * from './promotion.js';
-8
packages/api/src/modules/payments/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './lydia/index.js';
66-export * from './paypal/index.js';
77-export * from './permissions.js';
88-export * from './promotions.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './pay.js';
66-export * from './transactions.js';
-8
packages/api/src/modules/pictures/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.set-picture.js';
-11
packages/api/src/modules/posts/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-17
packages/api/src/modules/posts/resolvers/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './group.articles.js';
66-export * from './mutation.change-post-owner.js';
77-export * from './mutation.create-post.js';
88-export * from './mutation.delete-article-picture.js';
99-export * from './mutation.delete-article.js';
1010-export * from './mutation.unlink-event-from-post.js';
1111-export * from './mutation.update-article-picture.js';
1212-export * from './mutation.upsert-article-v2.js';
1313-export * from './mutation.upsert-article.js';
1414-export * from './post.comments.js';
1515-export * from './query.article.js';
1616-export * from './query.homepage.js';
1717-export * from './query.search-articles.js';
-7
packages/api/src/modules/posts/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './article-search-result.js';
66-export * from './article.js';
77-export * from './post-input.js';
-6
packages/api/src/modules/posts/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './notifications.js';
66-export * from './permissions.js';
-9
packages/api/src/modules/profiles/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './query.profile.js';
-5
packages/api/src/modules/profiles/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './profile.js';
-11
packages/api/src/modules/reactions/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './event.my-reactions.js';
66-export * from './event.reaction-counts.js';
77-export * from './mutation.delete-reaction.js';
88-export * from './mutation.react.js';
99-export * from './mutation.toggle-reaction.js';
1010-export * from './mutation.unreact.js';
1111-export * from './mutation.upsert-reaction.js';
1212-export * from './post.my-reactions.js';
1313-export * from './post.reaction-counts.js';
1414-export * from './query.reaction.js';
1515-export * from './query.reactions.js';
-8
packages/api/src/modules/reactions/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './boolean-map.js';
66-export * from './counts.js';
77-export * from './reactable.js';
88-export * from './reaction.js';
-5
packages/api/src/modules/reactions/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './prisma.js';
-9
packages/api/src/modules/schools/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.delete-school-picture.js';
66-export * from './mutation.update-school-picture.js';
77-export * from './mutation.update-school.js';
88-export * from './query.school-groups.js';
99-export * from './query.school.js';
1010-export * from './query.schools.js';
1111-export * from './user.schools.js';
-7
packages/api/src/modules/schools/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './school-group.js';
66-export * from './school-input.js';
77-export * from './school.js';
-9
packages/api/src/modules/search/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './query.search.js';
-6
packages/api/src/modules/search/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './search-result.js';
66-export * from './searchable-resources.js';
-11
packages/api/src/modules/services/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.delete-service.js';
66-export * from './mutation.upsert-service-v2.js';
77-export * from './mutation.upsert-service.js';
88-export * from './query.service.js';
99-export * from './query.services.js';
1010-export * from './query.user-services.js';
1111-export * from './student-association.can-create-services.js';
-8
packages/api/src/modules/services/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './logo-source-type.js';
66-export * from './service-input.js';
77-export * from './service-owner.js';
88-export * from './service.js';
-6
packages/api/src/modules/services/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './permissions.js';
66-export * from './pins.js';
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './mutation.cancel-pending-contribution.js';
66-export * from './mutation.contribute.js';
77-export * from './mutation.delete-contribution.js';
88-export * from './mutation.mark-contribution-as-paid.js';
99-export * from './mutation.update-student-association-picture.js';
1010-export * from './query.contribution-options.js';
1111-export * from './query.student-association.js';
1212-export * from './query.student-associations.js';
1313-export * from './user.can-contribute-to.js';
1414-export * from './user.can-create-groups-on.js';
1515-export * from './user.contributes-to.js';
1616-export * from './user.contributes-with.js';
1717-export * from './user.contribution-options.js';
1818-export * from './user.pending-contributions.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './permissions.js';
-11
packages/api/src/modules/themes/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './group.can-create-themes.js';
66-export * from './mutation.block-theme.js';
77-export * from './mutation.set-theme-value.js';
88-export * from './mutation.set-theme-visibility.js';
99-export * from './mutation.upsert-theme.js';
1010-export * from './query.autodeployed-theme.js';
1111-export * from './query.themes.js';
-8
packages/api/src/modules/themes/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './theme-value.js';
66-export * from './theme-variable.js';
77-export * from './theme-variant.js';
88-export * from './theme.js';
-5
packages/api/src/modules/themes/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './permissions.js';
-11
packages/api/src/modules/ticketing/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-14
packages/api/src/modules/ticketing/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './boolean-constraint.js';
66-export * from './registration-search-result.js';
77-export * from './registration-verification-result.js';
88-export * from './registration-verification-state.js';
99-export * from './registration.js';
1010-export * from './registrations-counts.js';
1111-export * from './ticket-constraints-input.js';
1212-export * from './ticket-counting-policy.js';
1313-export * from './ticket-group.js';
1414-export * from './ticket.js';
-9
packages/api/src/modules/ticketing/utils/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './beneficiaries.js';
66-export * from './permissions.js';
77-export * from './places.js';
88-export * from './tickets.js';
99-export * from './uid.js';
-11
packages/api/src/modules/users/index.ts
···11-/**
22- * @file generated by packages/api/scripts/generate-barrelsby-config.ts
33- * The order of imports matters to Pothos, so we need to hardcode the import order,
44- * barrelsby cannot do this, so we do it ourselves with a little bash scripting.
55- */
66-77-// organize-imports-ignore
88-export * from './types/index.js';
99-export * from './resolvers/index.js';
1010-1111-export * from './utils/index.js';
-18
packages/api/src/modules/users/types/index.ts
···11-/**
22- * @file Automatically generated by barrelsby.
33- */
44-55-export * from './awaiting-validation-error.js';
66-export * from './bookmark.js';
77-export * from './credential-type.js';
88-export * from './credential.js';
99-export * from './email-change.js';
1010-export * from './family-tree.js';
1111-export * from './godparent-request.js';
1212-export * from './password-reset.js';
1313-export * from './quick-signup.js';
1414-export * from './signup-completion-result.js';
1515-export * from './user-candidate.js';
1616-export * from './user-profile-input.js';
1717-export * from './user-search-result.js';
1818-export * from './user.js';
···11import { graphql, UIDIsAvailableStore } from '$houdini';
22+import { ACTIONS, PAGES, SERVERS } from '$lib/ROUTES.js';
23import { json } from '@sveltejs/kit';
3445graphql(`
···1112// Users would still be able to register via the API directly, but their profile page would be inaccessible (using this webapp at least), so it'd be kind of a dumb thing to do
1213// We _may_ want to inject that code into the API too to fix this if we ever get an undesirable situation out of it
13141414-// @generated by src/scripts/generate-reserved-usernames-from-routes.ts
1515-const additionalReservedUsernames = new Set([
1616- '_component',
1717- 'check-uid',
1818- 'gdpr',
1919- 'markdown',
2020- 'signup',
2121- 'announcements',
2222- 'backrooms',
2323- 'bar-weeks',
2424- 'birthdays',
2525- 'bookings',
2626- 'changelog',
2727- 'claim-code',
2828- 'credits',
2929- 'documents',
3030- 'events',
3131- 'frappe',
3232- 'groups',
3333- 'help',
3434- 'login',
3535- 'logout',
3636- 'logs',
3737- 'more',
3838- 'notifications',
3939- 'posts',
4040- 'quick-signups',
4141- 'reports',
4242- 'schools',
4343- 'search',
4444- 'services',
4545- 'set-password',
4646- 'settings',
4747- 'signups',
4848- 'student-associations',
4949- 'users',
5050- 'validate-email',
5151- 'welcome',
5252- 'connect',
5353- 'health',
5454- 'kiosk',
5555- 'icons',
5656- 'logos',
5757- 'reactions',
5858- 'schools',
5959- 'student-associations',
6060- 'vendor',
6161-]);
6262-// end @generated
1515+const additionalReservedUsernames = new Set(
1616+ [
1717+ // PAGES: it's the path directly
1818+ ...Object.keys(PAGES),
1919+ // SERVERS: get only GET endpoints, extract the path
2020+ ...Object.keys(SERVERS)
2121+ .filter((endpoint) => endpoint.startsWith('GET '))
2222+ .map((endpoint) => endpoint.replace(/^GET /, '')),
2323+ // ACTIONS: get the action's path (it's written as `actionName /path/to/action`)
2424+ ...Object.keys(ACTIONS).map((action) => action.split(' ', 2)[1]),
2525+ ]
2626+ // Get the first segment of the path (all paths start with '/' so it's [1])
2727+ .map((path) => path.split('/')[1])
2828+ // Filter out dynamic segments
2929+ .filter((fragment) => !fragment.includes('[')),
3030+);
63316432export const _RESERVED_USERNAMES = additionalReservedUsernames;
6533
···99const sw = self as unknown as ServiceWorkerGlobalScope;
10101111// can't import from $env/dynamic/public in service worker
1212-const PUBLIC_STORAGE_URL = /* @generated */ `https://${sw.location.hostname}/storage`;
1212+const PUBLIC_STORAGE_URL = `https://${sw.location.hostname}/storage`;
13131414// Create a unique cache name for this deployment
1515const CACHE = `cache-${$serviceWorker.version}`;