From 2e9d841709a41800a33c67f97c2e1c3c1b1fce34 Mon Sep 17 00:00:00 2001 From: Omar El Alaoui El Ismaili Date: Mon, 5 May 2025 20:32:09 +0200 Subject: [PATCH 1/3] utilisation des fonctions Apis/admin.ts pour mettre un raport a un appointmentid --- .../src/components/AdminAppointments.vue | 248 +++++++++--------- 1 file changed, 122 insertions(+), 126 deletions(-) diff --git a/front/MyINPulse-front/src/components/AdminAppointments.vue b/front/MyINPulse-front/src/components/AdminAppointments.vue index f6ecb3a..ce96ce6 100644 --- a/front/MyINPulse-front/src/components/AdminAppointments.vue +++ b/front/MyINPulse-front/src/components/AdminAppointments.vue @@ -1,178 +1,174 @@ From 829baac85ef91ebab8a90134f2b47323f81eabca Mon Sep 17 00:00:00 2001 From: Omar El Alaoui El Ismaili Date: Mon, 5 May 2025 20:36:09 +0200 Subject: [PATCH 2/3] apply prettier to adminappointment --- .../src/components/AdminAppointments.vue | 254 ++++++++++-------- 1 file changed, 136 insertions(+), 118 deletions(-) diff --git a/front/MyINPulse-front/src/components/AdminAppointments.vue b/front/MyINPulse-front/src/components/AdminAppointments.vue index ce96ce6..59535c4 100644 --- a/front/MyINPulse-front/src/components/AdminAppointments.vue +++ b/front/MyINPulse-front/src/components/AdminAppointments.vue @@ -1,174 +1,192 @@ From b1a4c874ecf2f5388f8f40ce28ed45e2698b891c Mon Sep 17 00:00:00 2001 From: MAILLAL Anas Date: Tue, 6 May 2025 21:17:52 +0200 Subject: [PATCH 3/3] trying out config to see if this is where 403 responses are comming from --- .../src/main/resources/application.properties | 15 +++++---------- .../main/resources/application.properties_dbtest | 13 +++++++++++++ 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 MyINPulse-back/src/main/resources/application.properties_dbtest diff --git a/MyINPulse-back/src/main/resources/application.properties b/MyINPulse-back/src/main/resources/application.properties index 37c209e..043c22b 100644 --- a/MyINPulse-back/src/main/resources/application.properties +++ b/MyINPulse-back/src/main/resources/application.properties @@ -1,13 +1,8 @@ spring.application.name=myinpulse spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:7080/realms/test/protocol/openid-connect/certs spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:7080/realms/test - -logging.pattern.console=%d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n - -spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1 -spring.datasource.driverClassName=org.h2.Driver -spring.datasource.username=sa -spring.datasource.password= -spring.jpa.database-platform=org.hibernate.dialect.H2Dialect - -spring.jpa.hibernate.ddl-auto=create \ No newline at end of file +spring.datasource.url=jdbc:postgresql://${DATABASE_URL}/${BACKEND_DB} +spring.datasource.username=${BACKEND_USER} +spring.datasource.password=${BACKEND_PASSWORD} +spring.jpa.hibernate.ddl-auto=update +logging.pattern.console=%d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n \ No newline at end of file diff --git a/MyINPulse-back/src/main/resources/application.properties_dbtest b/MyINPulse-back/src/main/resources/application.properties_dbtest new file mode 100644 index 0000000..37c209e --- /dev/null +++ b/MyINPulse-back/src/main/resources/application.properties_dbtest @@ -0,0 +1,13 @@ +spring.application.name=myinpulse +spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:7080/realms/test/protocol/openid-connect/certs +spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:7080/realms/test + +logging.pattern.console=%d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n + +spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1 +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password= +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect + +spring.jpa.hibernate.ddl-auto=create \ No newline at end of file