Profil Menu #83

Merged
Wal merged 9 commits from wal/front/profilMenu into master 2024-03-12 09:55:27 +01:00
3 changed files with 12 additions and 11 deletions
Showing only changes of commit 32feaa4a93 - Show all commits

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import {reactive, ref} from 'vue' import {reactive, ref} from 'vue'
import {getUser,register} from '../rest/Users.js' import {getUser} from '../rest/Users.js'

Le register n'est pas utilisé (et ne devrais pas l'être à mon avis)

Le register n'est pas utilisé (et ne devrais pas l'être à mon avis)
/* /*
const user = getUser(); const user = getUser();
*/ */
@ -11,14 +11,15 @@
role:"student", role:"student",
address: "Radiator Springs", address: "Radiator Springs",
email:"ClydeGhost@gmail.com", email:"ClydeGhost@gmail.com",
cursus:{ cursus:[

ha et cursus doit être une liste donc normalement [] et pas {}

ha et cursus doit être une liste donc normalement [] et pas {}
cours1:{ "id": 12, {
"id": 12,
"name": "Math pour l'info", "name": "Math pour l'info",
"credits": 11, "credits": 11,
"faculty": "science", "faculty": "science",
"teacher": 42, "teacher": 42,
"Assistants": []}, "Assistants": []},
cours2:{ {
"id": 42, "id": 42,
"name": "Fonctionnement des ordinateurs", "name": "Fonctionnement des ordinateurs",
"credits": 11, "credits": 11,
@ -26,7 +27,7 @@
"teacher": 42, "teacher": 42,
"Assistants": []}, "Assistants": []},
}, ],
option:"IT", option:"IT",
degree:"BAC1", degree:"BAC1",
password:"CeciEstUnMotDePasse123", password:"CeciEstUnMotDePasse123",
@ -41,14 +42,14 @@
role:"teacher", role:"teacher",
address: "Radiator Springs", address: "Radiator Springs",
email:"ClydeGhost@gmail.com", email:"ClydeGhost@gmail.com",
coursesOwned:{ coursesOwned:[
cours1:{ {
"id": 12, "id": 12,
"name": "Math pour l'info", "name": "Math pour l'info",
"faculty": "science", "faculty": "science",
"teacher": 42, "teacher": 42,
"Assistants": []}, "Assistants": []},
cours2:{ {
"id": 42, "id": 42,
"name": "Fonctionnement des ordinateurs", "name": "Fonctionnement des ordinateurs",
"credits": 11, "credits": 11,
@ -56,7 +57,7 @@
"teacher": 42, "teacher": 42,
"Assistants": []}, "Assistants": []},
}, ],
faculty:"Science", faculty:"Science",
})*/ })*/