diff --git a/frontend/src/components/SideBar.vue b/frontend/src/components/SideBar.vue
index 5c3731f..a0ea7db 100644
--- a/frontend/src/components/SideBar.vue
+++ b/frontend/src/components/SideBar.vue
@@ -1,22 +1,26 @@
@@ -29,10 +33,11 @@ function setClass(input: Number) {}
header="Sidebar"
v-if="isLoggedIn"
>
+ {{ store.classInfo.name }}
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 2ea6f7b..e54f22e 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1,6 +1,5 @@
import './assets/main.css'
-
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config'
@@ -11,14 +10,15 @@ import App from './App.vue'
import router from './router'
const app = createApp(App)
+const pinia = createPinia()
app.use(PrimeVue, {
theme: {
preset: Aura,
},
})
-app.use(createPinia())
+app.use(pinia)
app.use(router)
-app.directive('ripple', Ripple)
+app.directive('ripple', Ripple)
app.mount('#app')
diff --git a/frontend/src/stores/classStore.ts b/frontend/src/stores/classStore.ts
new file mode 100644
index 0000000..fc65e62
--- /dev/null
+++ b/frontend/src/stores/classStore.ts
@@ -0,0 +1,39 @@
+import { ref, computed } from 'vue'
+import { defineStore } from 'pinia'
+interface State {
+ classInfoList: ClassInfo[]
+ classInfo: ClassInfo | null
+}
+
+export const useClassStore = defineStore('class', {
+ state: (): State => {
+ return {
+ classInfoList: [],
+ classInfo: null,
+ }
+ },
+ actions: {
+ loadClasses() {
+ /* Beispieldaten */
+ if (this.classInfoList.length < 1) {
+ this.classInfoList.push({ name: 'Steve', id: 1 })
+ this.classInfoList.push({ name: 'Garett', id: 2 })
+ this.classInfoList.push({ name: 'Natalie', id: 3 })
+ this.classInfoList.push({ name: 'Henry', id: 4 })
+ this.classInfoList.push({ name: 'Dawn', id: 5 })
+ }
+ },
+ setActiveClass(id: number) {
+ this.classInfoList.map((item) => {
+ if (item.id == id) {
+ this.classInfo = item
+ }
+ })
+ },
+ },
+})
+
+interface ClassInfo {
+ name: string
+ id: number
+}
diff --git a/frontend/src/views/AboutView.vue b/frontend/src/views/AboutView.vue
index 756ad2a..dacaa98 100644
--- a/frontend/src/views/AboutView.vue
+++ b/frontend/src/views/AboutView.vue
@@ -1,15 +1,12 @@
+
This is an about page
-
+