zwischenstand

This commit is contained in:
2024-02-13 16:36:09 +00:00
parent 0b4a474180
commit 49e55a90f7
173 changed files with 15832 additions and 1359 deletions

View File

@@ -0,0 +1,11 @@
import { api } from "../../../api"
import { modules } from "../../store"
export async function loadModulesAndSetStore(): Promise<{ [id: string]: Module }> {
const module = await api<Module[]>("module", {})
const moduleStore: { [id: string]: Module } = {}
module.data.forEach((e: Module) => {
moduleStore[e.id] = e
})
modules.set(moduleStore)
return moduleStore
}