feat:#11 merge conflicts

This commit is contained in:
survellow
2023-10-25 21:45:11 +02:00
17 changed files with 224 additions and 187 deletions

View File

@@ -27,6 +27,7 @@ export async function fetchModulesByCourseAndSemester(
modulesResponse.forEach((module: Module) =>
modules.push(
new Module(
module.uuid,
module.name,
course,
module.name,
@@ -50,6 +51,7 @@ export async function fetchAllModules(): Promise<Module[]> {
responseModules.forEach((module: Module) => {
modules.push(
new Module(
module.uuid,
module.name,
module.course,
module.name,

View File

@@ -16,6 +16,7 @@ export async function fetchModule(name: string): Promise<Module> {
.then(
(module: Module) =>
new Module(
module.uuid,
module.name,
module.course,
module.name,

View File

@@ -39,7 +39,7 @@ const ModuleInformation = defineAsyncComponent(
);
async function showInfo(moduleName: string) {
const module: Ref<Module> = ref(new Module("", "", "", "", "", []));
const module: Ref<Module> = ref(new Module("", "", "", "", "", "", []));
await fetchModule(moduleName).then((data) => {
module.value = data;
});

View File

@@ -37,7 +37,7 @@ const ModuleInformation = defineAsyncComponent(
);
async function showInfo(moduleName: string) {
const module: Ref<Module> = ref(new Module("", "", "", "", "", []));
const module: Ref<Module> = ref(new Module("", "", "", "", "", "", []));
await fetchModule(moduleName).then((data) => {
module.value = data;
});

View File

@@ -2,6 +2,7 @@ import { Event } from "./event";
export class Module {
constructor(
public uuid: string,
public name: string,
public course: string,
public userDefinedName: string,