feat: introduce feed management for individual and professor modules across frontend and backend services.

This commit is contained in:
Elmar Kresse
2025-11-22 21:20:41 +01:00
parent 34ad90d50d
commit ac6e1fe0dd
21 changed files with 1655 additions and 240 deletions

View File

@@ -20,6 +20,7 @@ import { defineStore } from "pinia";
const moduleStore = defineStore("moduleStore", {
state: () => ({
modules: new Map<string, Module>(),
isProfessorFeed: false,
}),
actions: {
addModule(module: Module) {
@@ -55,6 +56,9 @@ const moduleStore = defineStore("moduleStore", {
containsModule(module: Module): boolean {
return this.modules.has(module.uuid);
},
setProfessorFeed(isProf: boolean) {
this.isProfessorFeed = isProf;
},
},
});