Backend Statusbar Update

Backend Statusbar Funktionen hinzugefügt
This commit is contained in:
AliGitGut
2023-06-10 00:56:54 +02:00
parent 43165d7756
commit e9de6c41af
6 changed files with 41 additions and 4 deletions
@@ -128,7 +128,6 @@ export default function CalenderView(p) {
if (en[i][k].timeend >= en[i][l].timestart && en[i][k].timeend <= en[i][l].timeend) {
en[i][k].timeend = en[i][l].timestart
}
}
}
}
+2 -2
View File
@@ -1,2 +1,2 @@
export const baseURL = "http://185.245.96.48:8080"
//export const baseURL = "http://localhost:8080"
//export const baseURL = "http://185.245.96.48:8080"
export const baseURL = "http://localhost:8080"
@@ -31,6 +31,8 @@ export default function SemesteroverviewLecturer(p) {
let semesterURL = baseURL + "/semester/id/all?ids=" + args + "&sessionid=" + localStorage.getItem("sessionid");
fetch(semesterURL).then(r => r.json()).then(sem => {
sem.map(e => {
let progessURL = baseURL + "/entries/planned?sessionid=" + localStorage.getItem("sessionid") + "&semesterid=" + e.id;
fetch(progessURL).then(r => r.json()).then(en => console.log(en))
temp.push(e.name)
})
}).then(() => setSemesterNames(temp))