diff --git a/frontend/src/components/CalendarViewer.vue b/frontend/src/components/CalendarViewer.vue new file mode 100644 index 0000000..c54b41d --- /dev/null +++ b/frontend/src/components/CalendarViewer.vue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 9b44a7d..0de1280 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -53,6 +53,11 @@ const items = computed(() => [ }, ], }, + { + label: t("userCalendar"), + icon: "pi pi-fw pi-calendar", + route: "/user/calendar", + }, { label: t("faq"), icon: "pi pi-fw pi-book", diff --git a/frontend/src/helpers/ical.ts b/frontend/src/helpers/ical.ts new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/i18n/translations/de.json b/frontend/src/i18n/translations/de.json index 2f2ac46..567f440 100644 --- a/frontend/src/i18n/translations/de.json +++ b/frontend/src/i18n/translations/de.json @@ -2,6 +2,7 @@ "languageCode": "de", "createCalendar": "Kalender erstellen", "editCalendar": "Kalender bearbeiten", + "userCalendar": "Dein Kalender", "rooms": "Räume", "faq": "FAQ", "imprint": "Impressum", diff --git a/frontend/src/i18n/translations/en.json b/frontend/src/i18n/translations/en.json index 590a673..b1edb9f 100644 --- a/frontend/src/i18n/translations/en.json +++ b/frontend/src/i18n/translations/en.json @@ -2,6 +2,7 @@ "languageCode": "en", "createCalendar": "create calendar", "editCalendar": "edit calendar", + "userCalendar": "user calendar", "rooms": "rooms", "faq": "faq", "imprint": "imprint", diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 1de0165..a50391a 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -27,6 +27,7 @@ const EditAdditionalModules = () => 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"); import i18n from "../i18n"; @@ -48,6 +49,11 @@ const router = createRouter({ name: "free-rooms", component: FreeRooms, }, + { + path: "/user/calendar", + name: "user-calendar", + component: CalenderViewer, + }, { path: "/faq", name: "faq", diff --git a/frontend/src/view/UserCalendar.vue b/frontend/src/view/UserCalendar.vue new file mode 100644 index 0000000..ce1cffa --- /dev/null +++ b/frontend/src/view/UserCalendar.vue @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file