-
- Article Id : {{article.id}}
- Title : {{article.title}}
- Author : {{article.researcher.user.lastName + " " + article.researcher.user.firstName}}
- Summary : {{article.summary}}
- ReleaseDate: {{format(article.releaseDate)}}
- Language : {{article.language}}
- PaperType : {{article.paperType}}
- Domain : {{article.domain}}
- Views : {{article.views}}
- Access : {{article.access}}
-
-
-
Download BibTex
-
Download Research
+
+
+ Article Id : {{article.id}}
+ Title : {{article.title}}
+ Author : {{article.researcher.user.lastName + " " + article.researcher.user.firstName}}
+ Summary : {{article.summary}}
+ ReleaseDate: {{format(article.releaseDate)}}
+ Language : {{article.language}}
+ PaperType : {{article.paperType}}
+ Domain : {{article.domain}}
+ Views : {{article.views}}
+ Access : {{article.access}}
+
+
+ Download BibTex
+ Download Research
+
+
+
+
+
+
Confirm Changes
+
Cancel Changes
+
Delete Research
@@ -95,4 +136,44 @@ onClickOutside(target, ()=>emit('modal-close'))
background: rgba(191, 64, 191);
}
+#deleteButton{
+ margin-left: 80%;
+ align-self: center;
+ text-align: center;
+ border: 2px solid black;
+ color: white;
+ font-size: large;
+ border-radius: 20px;
+ background-color: red;
+}
+
+#deleteButton:hover{
+ background: #ff2d55;
+}
+
+#cancelButton{
+ align-self: center;
+ text-align: center;
+ border: 2px solid black;
+ color: white;
+ font-size: x-large;
+ background-color:rgba(191, 64, 191,0.5);
+ border-radius: 20px;
+}
+#cancelButton:hover{
+ background:rgba(191,64,191)
+}
+
+#confirmButton{
+ align-self: center;
+ text-align: center;
+ border: 2px solid black;
+ color: white;
+ font-size: x-large;
+ background-color: #07bc0c;
+ border-radius: 20px;
+}
+#confirmButton:hover{
+ background: #4cd964;
+}
diff --git a/frontend/src/Apps/ScientificPublications/ResearchPostComponent.vue b/frontend/src/Apps/ScientificPublications/ResearchPostComponent.vue
new file mode 100644
index 0000000..f79cdd8
--- /dev/null
+++ b/frontend/src/Apps/ScientificPublications/ResearchPostComponent.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/rest/ScientificPublications/ManageResearch.js b/frontend/src/rest/ScientificPublications/ManageResearch.js
new file mode 100644
index 0000000..ac3db81
--- /dev/null
+++ b/frontend/src/rest/ScientificPublications/ManageResearch.js
@@ -0,0 +1,8 @@
+import { restGet, restPost, restDelete, restPatch } from '../restConsumer.js'
+
+export async function deleteArticle(id){
+ await restDelete("/research/" + id)
+}
+export async function patchArticle(id, data){
+ await restPatch("/research/" + id, data)
+}
\ No newline at end of file
diff --git a/frontend/src/rest/ScientificPublications/ManageResearcherProfile.js b/frontend/src/rest/ScientificPublications/ManageResearcherProfile.js
new file mode 100644
index 0000000..61d588c
--- /dev/null
+++ b/frontend/src/rest/ScientificPublications/ManageResearcherProfile.js
@@ -0,0 +1,9 @@
+import { restGet, restPost, restDelete, restPatch } from '../restConsumer.js'
+
+export async function getSelf(){
+ return restGet("/researcher")
+}
+
+export async function patchProfile(id, data){
+ return restPatch("/researcher/" + id, data)
+}
\ No newline at end of file
diff --git a/frontend/src/rest/ScientificPublications/ResearcherProfile.js b/frontend/src/rest/ScientificPublications/ResearcherProfile.js
index c50c9ff..29fbe27 100644
--- a/frontend/src/rest/ScientificPublications/ResearcherProfile.js
+++ b/frontend/src/rest/ScientificPublications/ResearcherProfile.js
@@ -18,8 +18,4 @@ 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 d1b6d3a..83ac451 100644
--- a/frontend/src/rest/apps.js
+++ b/frontend/src/rest/apps.js
@@ -9,7 +9,6 @@ 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 ResearcherProfile from "@/Apps/ScientificPublications/ResearcherProfile.vue";
import AboutStudent from "@/Apps/Inscription/AboutStudent.vue";
import Msg from "@/Apps/Msg.vue"
import ManageRequests from "@/Apps/Inscription/ManageRequests.vue";
@@ -35,7 +34,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")},
- 'ManageResearcherProfile':{path:'#/researcher-profile',icon:'fa-book-bookmark',text:i18n("app.manage.researcherProfile")},
+ 'ManageResearcherProfile':{path:'#/manage-researcher-profile',icon:'fa-book-bookmark',text:i18n("app.manage.researcherProfile")},
}
const currentPath = ref(window.location.hash)
diff --git a/frontend/src/rest/courses.js b/frontend/src/rest/courses.js
index 2359a7b..adb9687 100644
--- a/frontend/src/rest/courses.js
+++ b/frontend/src/rest/courses.js
@@ -8,8 +8,7 @@ import { restGet, restPost, restDelete, restPatch } from './restConsumer.js'
* Create a new course
*/
export async function createCourse(name, credits, owner){
- console.log(owner);
-
+
return restPost("/course", {title: name, credits: credits, owner} )
}