diff --git a/backend/src/routes/auth.ts b/backend/src/routes/auth.ts index f3426359..da6f3305 100644 --- a/backend/src/routes/auth.ts +++ b/backend/src/routes/auth.ts @@ -24,8 +24,12 @@ router.get('/testTeachersOnly', teachersOnly, (_req, res) => { // This endpoint is called by the client when the user has just logged in. // It creates or updates the user entity based on the authentication data the endpoint was called with. -router.post('/hello', authenticatedOnly, /* +router.post( + '/hello', + authenticatedOnly, + /* #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] -*/ postHelloHandler ); +*/ postHelloHandler +); export default router; diff --git a/backend/src/routes/router.ts b/backend/src/routes/router.ts index 1fa3308f..ae141913 100644 --- a/backend/src/routes/router.ts +++ b/backend/src/routes/router.ts @@ -19,11 +19,29 @@ router.get('/', (_, res: Response) => { }); router.use('/auth', authRouter /* #swagger.tags = ['Auth'] */); -router.use('/class', classRouter /* #swagger.tags = ['Class'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); -router.use('/learningObject', learningObjectRoutes /* #swagger.tags = ['Learning Object'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); -router.use('/learningPath', learningPathRoutes /* #swagger.tags = ['Learning Path'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); -router.use('/student', studentRouter /* #swagger.tags = ['Student'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); -router.use('/teacher', teacherRouter /* #swagger.tags = ['Teacher'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); -router.use('/theme', themeRoutes /* #swagger.tags = ['Theme'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */); +router.use( + '/class', + classRouter /* #swagger.tags = ['Class'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); +router.use( + '/learningObject', + learningObjectRoutes /* #swagger.tags = ['Learning Object'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); +router.use( + '/learningPath', + learningPathRoutes /* #swagger.tags = ['Learning Path'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); +router.use( + '/student', + studentRouter /* #swagger.tags = ['Student'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); +router.use( + '/teacher', + teacherRouter /* #swagger.tags = ['Teacher'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); +router.use( + '/theme', + themeRoutes /* #swagger.tags = ['Theme'], #swagger.security = [{ "studentProduction": [ ] }, { "teacherProduction": [ ] }, { "studentStaging": [ ] }, { "teacherStaging": [ ] }, { "studentDev": [ ] }, { "teacherDev": [ ] }] */ +); export default router; diff --git a/frontend/src/views/classes/TeacherClasses.vue b/frontend/src/views/classes/TeacherClasses.vue index 3b02ae07..c818a046 100644 --- a/frontend/src/views/classes/TeacherClasses.vue +++ b/frontend/src/views/classes/TeacherClasses.vue @@ -1,180 +1,180 @@ @@ -192,7 +192,7 @@ function openCodeDialog(codeToView: string): void { > - {{ t('classes') }} + {{ t("classes") }} - - {{ t('classes') }} - - {{ t('code') }} - - {{ t('members') }} - + + {{ t("classes") }} + + {{ t("code") }} + + {{ t("members") }} + - - - - {{ c.displayName }} - mdi-menu-right - - - - - {{ c.id }} - - - + + + + {{ c.displayName }} + mdi-menu-right + + + + + {{ c.id }} + + + - {{ c.students.length }} - + {{ c.students.length }} + - - - + - - {{ t('no-classes-found') }} - - + + + {{ t("no-classes-found") }} + + @@ -279,13 +279,13 @@ function openCodeDialog(codeToView: string): void { class="responsive-col" > - {{ t('createClass') }} + {{ t("createClass") }} - {{ t('createClassInstructions') }} + {{ t("createClassInstructions") }} {{ t('create') }} - + >{{ t("create") }} + @@ -325,7 +324,7 @@ function openCodeDialog(codeToView: string): void { v-if="copied" class="text-center mt-2" > - {{ t('copied') }} + {{ t("copied") }} @@ -338,7 +337,7 @@ function openCodeDialog(codeToView: string): void { copied = false; " > - {{ t('close') }} + {{ t("close") }} @@ -351,7 +350,7 @@ function openCodeDialog(codeToView: string): void { - {{ t('invitations') }} + {{ t("invitations") }} - - {{ t('class') }} - {{ t('sender') }} - {{ t('accept') + '/' + t('reject') }} - + + {{ t("class") }} + {{ t("sender") }} + {{ t("accept") + "/" + t("reject") }} + - - - - - - - - {{ (i.sender as TeacherDTO).firstName + ' ' + (i.sender as TeacherDTO).lastName }} - - + + + + + + + + {{ + (i.sender as TeacherDTO).firstName + " " + (i.sender as TeacherDTO).lastName + }} + + - {{ t('accept') }} + {{ t("accept") }} - {{ t('deny') }} + {{ t("deny") }} - + - - - - - - - - + + + + + + - - {{ t('no-invitations-found') }} - - - - + + + {{ t("no-invitations-found") }} + + + + @@ -454,7 +455,7 @@ function openCodeDialog(codeToView: string): void { max-width="400px" > - {{ t('code') }} + {{ t("code") }} - {{ t('copied') }} + {{ t("copied") }} @@ -480,7 +481,7 @@ function openCodeDialog(codeToView: string): void { copied = false; " > - {{ t('close') }} + {{ t("close") }} @@ -488,49 +489,49 @@ function openCodeDialog(codeToView: string): void {
{{ t('createClassInstructions') }}
{{ t("createClassInstructions") }}