From a0c38a8d590d15464aa801814254a63cda05b755 Mon Sep 17 00:00:00 2001 From: Wawilski Date: Fri, 15 Mar 2024 15:12:01 +0100 Subject: [PATCH] adding list of user PROTO --- frontend/public/i18n/EN.txt | 2 + frontend/public/i18n/FR.txt | 2 + frontend/src/App.vue | 15 ++- frontend/src/Apps/Login.vue | 2 +- frontend/src/Apps/Profil.vue | 13 ++- frontend/src/Apps/StudentsList.vue | 160 +++++++++++++++++++++++++++++ frontend/src/Apps/UsersList.vue | 157 ++++++++++++++++++++++++++++ 7 files changed, 343 insertions(+), 8 deletions(-) create mode 100644 frontend/src/Apps/StudentsList.vue create mode 100644 frontend/src/Apps/UsersList.vue diff --git a/frontend/public/i18n/EN.txt b/frontend/public/i18n/EN.txt index 90a001d..a8ed237 100644 --- a/frontend/public/i18n/EN.txt +++ b/frontend/public/i18n/EN.txt @@ -26,6 +26,8 @@ app.inscription.requests=Inscription Requests app.manage.courses=Manage Courses app.language=Language app.manage.profile=Manage profile +app.studentList=Students List +app.users=Users request.moreInfos=More Infos request.accept=Accept request.refuse=Refuse diff --git a/frontend/public/i18n/FR.txt b/frontend/public/i18n/FR.txt index c2f7689..d0ee8cf 100644 --- a/frontend/public/i18n/FR.txt +++ b/frontend/public/i18n/FR.txt @@ -26,6 +26,8 @@ app.inscription.requests=Demandes d'Inscription app.manage.courses=Gérer les cours app.language=Langue app.manage.profile=Gérer le profil +app.studentList=Liste des étudiants +app.users=Utilisateurs request.moreInfos=Plus d'Infos request.accept=Accepter request.refuse=Refuser diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 7b944de..7729b5b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -9,12 +9,16 @@ import Inscription from "./Apps/Inscription.vue" import Profil from "./Apps/Profil.vue" import Courses from "./Apps/ManageCourses.vue" + import Students from "./Apps/StudentsList.vue" + import Users from "./Apps/UsersList.vue" const apps = { - '/login': LoginPage, + '/login': LoginPage, '/inscription': Inscription, '/profil': Profil, '/manage-courses' : Courses, + '/students' : Students, + '/users' : Users, } const currentPath = ref(window.location.hash) @@ -105,8 +109,13 @@
  • {{i18n("app.manage.courses")}}
  • - - +
  • +
    +
    {{i18n("app.studentList")}}
  • +
  • +
    +
    {{i18n("app.users")}}
  • +
    diff --git a/frontend/src/Apps/Login.vue b/frontend/src/Apps/Login.vue index b7b3242..fbc0dfe 100644 --- a/frontend/src/Apps/Login.vue +++ b/frontend/src/Apps/Login.vue @@ -104,7 +104,7 @@
    -

    ProfilePicture

    +

    {{i18n("profile.picture").toUpperCase()}}

    diff --git a/frontend/src/Apps/Profil.vue b/frontend/src/Apps/Profil.vue index 8068690..9c1c962 100644 --- a/frontend/src/Apps/Profil.vue +++ b/frontend/src/Apps/Profil.vue @@ -1,12 +1,13 @@ @@ -74,7 +78,8 @@ const toModify = Object.assign({}, user);
    - + +
    @@ -102,7 +107,7 @@ const toModify = Object.assign({}, user);
    {{i18n("profile.picture")}}: - +
    E-mail: diff --git a/frontend/src/Apps/StudentsList.vue b/frontend/src/Apps/StudentsList.vue new file mode 100644 index 0000000..539996f --- /dev/null +++ b/frontend/src/Apps/StudentsList.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/frontend/src/Apps/UsersList.vue b/frontend/src/Apps/UsersList.vue new file mode 100644 index 0000000..f8c5920 --- /dev/null +++ b/frontend/src/Apps/UsersList.vue @@ -0,0 +1,157 @@ + + + + + +