From 3ea48c20aa44e617b4074af147de21655a8e2452 Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Wed, 17 Apr 2024 13:34:39 +0200 Subject: [PATCH] front add manageProfileApp --- .../src/rest/ScientificPublications/ResearcherProfile.js | 4 ++++ frontend/src/rest/apps.js | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/rest/ScientificPublications/ResearcherProfile.js b/frontend/src/rest/ScientificPublications/ResearcherProfile.js index 29fbe27..c50c9ff 100644 --- a/frontend/src/rest/ScientificPublications/ResearcherProfile.js +++ b/frontend/src/rest/ScientificPublications/ResearcherProfile.js @@ -18,4 +18,8 @@ export async function addView(url){ export async function getFile(url){ const restURL = import.meta.env.VITE_CLYDE_MODE === 'container' ? "http://localhost:8000": import.meta.env.DEV ? "http://localhost:5173" : "https://clyde.herisson.ovh/api" await fetch(restURL + "/"+url, {method: "GET"}) +} + +export async function getSelf(){ + return restGet("/researcher") } \ No newline at end of file diff --git a/frontend/src/rest/apps.js b/frontend/src/rest/apps.js index 8ccba3a..d1b6d3a 100644 --- a/frontend/src/rest/apps.js +++ b/frontend/src/rest/apps.js @@ -13,6 +13,7 @@ import ResearcherProfile from "@/Apps/ScientificPublications/ResearcherProfile.v import AboutStudent from "@/Apps/Inscription/AboutStudent.vue"; import Msg from "@/Apps/Msg.vue" import ManageRequests from "@/Apps/Inscription/ManageRequests.vue"; +import ManageResearcherProfile from "@/Apps/ScientificPublications/ManageResearcherProfile.vue"; const apps = { '/login': LoginPage, @@ -21,7 +22,7 @@ const apps = { '/manage-courses' : Courses, '/users-list' : Users, '/students-list' : Students, - '/researcher-profile' : ResearcherProfile, + '/manage-researcher-profile' : ManageResearcherProfile, '/msg' : Msg, } @@ -34,7 +35,7 @@ const appsList = { 'ManageCourses': { path: '#/manage-courses', icon: 'fa-book', text: i18n("app.manage.courses") }, 'StudentsList':{ path: '#/students-list',icon: 'fa-users',text: i18n("app.studentList")}, 'UsersList':{ path: '#/users-list',icon: 'fa-users',text: i18n("app.users")}, - 'ResearcherProfile':{path:'#/researcher-profile',icon:'fa-book-bookmark',text:"hihi"}, + 'ManageResearcherProfile':{path:'#/researcher-profile',icon:'fa-book-bookmark',text:i18n("app.manage.researcherProfile")}, } const currentPath = ref(window.location.hash)