From 790a6a7f2594d9c7bc504ab2b4e313171646055b Mon Sep 17 00:00:00 2001 From: Marieke Date: Thu, 23 May 2024 00:45:18 +0200 Subject: [PATCH 1/2] finishing touches --- frontend/src/composables/useNavigations.ts | 1 - frontend/src/router/index.ts | 7 +---- frontend/src/views/ProjectsView.vue | 23 +++++++--------- frontend/src/views/SettingsView.vue | 3 --- .../home/listcontent/DeadlineItem.spec.ts | 6 +++-- .../home/listcontent/SubjectItem.spec.ts | 19 +++++-------- .../components/navigation/NavBar.spec.ts | 3 --- .../tests/components/user/SearchTable.spec.ts | 27 ++++++++++++++++++- frontend/tests/views/GroupsView.spec.ts | 11 ++++++++ 9 files changed, 58 insertions(+), 42 deletions(-) delete mode 100644 frontend/src/views/SettingsView.vue diff --git a/frontend/src/composables/useNavigations.ts b/frontend/src/composables/useNavigations.ts index e699b611..c98a0a54 100644 --- a/frontend/src/composables/useNavigations.ts +++ b/frontend/src/composables/useNavigations.ts @@ -18,7 +18,6 @@ const main_navigations: NavigationData[] = [ { icon: "mdi-school-outline", title: "navigation.subjects", goto: "subjects" }, { icon: "mdi-book-check-outline", title: "navigation.projects", goto: "projects" }, { icon: "mdi-information-outline", title: "navigation.about", goto: "about" }, - { icon: "mdi-cog-outline", title: "navigation.settings", goto: "settings" }, ]; const admin_navigations: NavigationData[] = [ diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index aaa0e90c..41a65abd 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -166,11 +166,6 @@ const router = createRouter({ component: () => import("../views/SubjectRegisterView.vue"), props: (route) => ({ uuid: String(route.params.uuid) }), }, - { - path: "/settings", - name: "settings", - component: () => import("../views/SettingsView.vue"), - }, { path: "/admin", name: "admin", @@ -205,7 +200,7 @@ router.beforeEach(async (to, from, next) => { } let new_next = next; - for (let middleware of middlewares) { + for (const middleware of middlewares) { const context: MiddlewareContext = { to, from, next: new_next, router }; const { next: returned_next, final } = await middleware(context); if (final) { diff --git a/frontend/src/views/ProjectsView.vue b/frontend/src/views/ProjectsView.vue index 862ea6b8..84e443de 100644 --- a/frontend/src/views/ProjectsView.vue +++ b/frontend/src/views/ProjectsView.vue @@ -1,16 +1,15 @@