From 5e0f26f24a6b65922154b0b1bd574a1676eec42e Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Mon, 1 Jul 2024 19:54:09 +0200 Subject: [PATCH 1/2] feat:#20 added settings page --- frontend/src/components/MenuBar.vue | 21 +++------- frontend/src/i18n/translations/de.json | 4 ++ frontend/src/i18n/translations/en.json | 4 ++ frontend/src/i18n/translations/ja.json | 4 ++ frontend/src/router/index.ts | 6 +++ frontend/src/view/SettingsView.vue | 57 ++++++++++++++++++++++++++ 6 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 frontend/src/view/SettingsView.vue diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 5e78d46..ab8fb6b 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -17,13 +17,11 @@ along with this program. If not, see . --> diff --git a/frontend/src/i18n/translations/de.json b/frontend/src/i18n/translations/de.json index 6e62d2a..916a6f9 100644 --- a/frontend/src/i18n/translations/de.json +++ b/frontend/src/i18n/translations/de.json @@ -249,5 +249,9 @@ "subTitle": "Hier findest du die Kalenderansicht von deinem persönlichen Feed.", "searchPlaceholder": "Token", "searchButton": "Kalender laden" + }, + "settings": { + "headline": "Einstellungen", + "subTitle": "Hier kannst du deine Einstellungen bearbeiten." } } diff --git a/frontend/src/i18n/translations/en.json b/frontend/src/i18n/translations/en.json index e64e9ff..c0786bb 100644 --- a/frontend/src/i18n/translations/en.json +++ b/frontend/src/i18n/translations/en.json @@ -249,5 +249,9 @@ "subTitle": "Here you can find the calendar view of your personal feed.", "searchPlaceholder": "calendar token", "searchButton": "load calendar" + }, + "settings": { + "headline": "Settings", + "subTitle": "Here you can change your settings." } } diff --git a/frontend/src/i18n/translations/ja.json b/frontend/src/i18n/translations/ja.json index 455bb34..42fb3cd 100644 --- a/frontend/src/i18n/translations/ja.json +++ b/frontend/src/i18n/translations/ja.json @@ -249,5 +249,9 @@ "subTitle": "ここでは、個人のフィードのカレンダー表示を見つけることができます。", "searchPlaceholder": "カレンダートークン", "searchButton": "ロードカレンダー" + }, + "settings": { + "headline": "設定", + "subTitle": "ここで設定を編集できます。" } } diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 7aff183..3c6c214 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -29,6 +29,7 @@ const EditModules = () => import("../view/editCalendar/EditModules.vue"); const CourseSelection = () => import("../view/CourseSelection.vue"); const FreeRooms = () => import("../view/FreeRooms.vue"); const CalenderViewer = () => import("../view/UserCalendar.vue"); +const SettingsView = () => import("../view/SettingsView.vue"); import i18n from "../i18n"; @@ -118,6 +119,11 @@ const router = createRouter({ name: "rename-modules", component: RenameModules, }, + { + path: "/settings", + name: "settings", + component: SettingsView, + } ], }); diff --git a/frontend/src/view/SettingsView.vue b/frontend/src/view/SettingsView.vue new file mode 100644 index 0000000..1c056eb --- /dev/null +++ b/frontend/src/view/SettingsView.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file From 112a692790fc177cf38f0b331263c0f232f5ae51 Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Mon, 1 Jul 2024 22:28:54 +0200 Subject: [PATCH 2/2] fix:#20 rearranged page layout --- frontend/src/components/DarkModeSwitcher.vue | 2 +- frontend/src/i18n/translations/de.json | 4 +- frontend/src/i18n/translations/en.json | 4 +- frontend/src/i18n/translations/ja.json | 4 +- frontend/src/view/SettingsView.vue | 54 ++++++++++++-------- 5 files changed, 43 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/DarkModeSwitcher.vue b/frontend/src/components/DarkModeSwitcher.vue index 3a0a6ab..1d163c3 100644 --- a/frontend/src/components/DarkModeSwitcher.vue +++ b/frontend/src/components/DarkModeSwitcher.vue @@ -60,7 +60,7 @@ onMounted(() => {