diff --git a/client/src/pages/cockpit/CockpitIndexPage.vue b/client/src/pages/cockpit/CockpitIndexPage.vue index 98bb82e8..8da32489 100644 --- a/client/src/pages/cockpit/CockpitIndexPage.vue +++ b/client/src/pages/cockpit/CockpitIndexPage.vue @@ -6,7 +6,11 @@ import { useCompetenceStore } from "@/stores/competence"; import * as log from "loglevel"; import { ref } from "vue"; -log.debug("CockpitIndexPage created"); +const props = defineProps<{ + courseSlug: string; +}>(); + +log.debug("CockpitIndexPage created", props.courseSlug); const cockpitStore = useCockpitStore(); const competenceStore = useCompetenceStore(); @@ -139,7 +143,11 @@ function setActiveCircle(index: number) { diff --git a/client/src/pages/cockpit/CockpitUserProfilePage.vue b/client/src/pages/cockpit/CockpitUserProfilePage.vue new file mode 100644 index 00000000..93b45b84 --- /dev/null +++ b/client/src/pages/cockpit/CockpitUserProfilePage.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 14e3f583..8e7bf86d 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -104,6 +104,12 @@ const router = createRouter({ { path: "", component: () => import("@/pages/cockpit/CockpitIndexPage.vue"), + props: true, + }, + { + path: "profile/:userId", + component: () => import("@/pages/cockpit/CockpitUserProfilePage.vue"), + props: true, }, ], },