From 2b9493422d352f2693711714509c47cba4d158c6 Mon Sep 17 00:00:00 2001 From: Wawilski Date: Mon, 1 Apr 2024 16:51:18 +0200 Subject: [PATCH] setup grid to display courses --- backend/build.gradle.kts | 1 - .../EndPoints/ApplicationsController.java | 1 + .../herisson/Clyde/Tables/Applications.java | 1 + frontend/src/App.vue | 1 - frontend/src/Apps/Schedule.vue | 211 ++++++++++++++++++ frontend/src/rest/apps.js | 2 + 6 files changed, 215 insertions(+), 2 deletions(-) create mode 100644 frontend/src/Apps/Schedule.vue diff --git a/backend/build.gradle.kts b/backend/build.gradle.kts index e0abc58..2551f2a 100644 --- a/backend/build.gradle.kts +++ b/backend/build.gradle.kts @@ -25,7 +25,6 @@ dependencies { implementation("com.kohlschutter.junixsocket:junixsocket-core:2.9.0") // implementation("org.springframework.session:spring-session-jdbc") developmentOnly("org.springframework.boot:spring-boot-devtools") - // developmentOnly("org.springframework.boot:spring-boot-docker-compose") runtimeOnly("org.postgresql:postgresql") testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.springframework.boot:spring-boot-testcontainers") diff --git a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/ApplicationsController.java b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/ApplicationsController.java index 8d1f1ca..83c5050 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/ApplicationsController.java +++ b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/ApplicationsController.java @@ -47,6 +47,7 @@ public class ApplicationsController { //if unAuthed authorizedApps.add(Applications.Login); + authorizedApps.add(Applications.Schedule); User user = authServ.getUserFromToken(token); if(user == null) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Tables/Applications.java b/backend/src/main/java/ovh/herisson/Clyde/Tables/Applications.java index 3dadcec..684441a 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Tables/Applications.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Tables/Applications.java @@ -3,6 +3,7 @@ package ovh.herisson.Clyde.Tables; public enum Applications { // without any token Login, + Schedule, // with any token Profile, diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 6dcad67..83f753b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -25,7 +25,6 @@ window.addEventListener('hashchange', () => { const login=ref(i18n("app.login")) const active=ref(false) - const apps = ref([]) appList().then(e => apps.value = e) diff --git a/frontend/src/Apps/Schedule.vue b/frontend/src/Apps/Schedule.vue new file mode 100644 index 0000000..490cf9b --- /dev/null +++ b/frontend/src/Apps/Schedule.vue @@ -0,0 +1,211 @@ + + + diff --git a/frontend/src/rest/apps.js b/frontend/src/rest/apps.js index 99cbc10..2672686 100644 --- a/frontend/src/rest/apps.js +++ b/frontend/src/rest/apps.js @@ -9,8 +9,10 @@ import Profil from "@/Apps/Profil.vue" import Courses from "@/Apps/ManageCourses.vue" import Users from "@/Apps/UsersList.vue" import Students from "@/Apps/StudentsList.vue" +import Schedule from "@/Apps/Schedule.vue" const apps = { + '/schedule': Schedule, '/login': LoginPage, '/inscription': Inscription, '/profil': Profil,