From 03bbc77e8aaea13a4449ed43104fdf6d877480cd Mon Sep 17 00:00:00 2001
From: Mohamed Maoulainine Maoulainine
 <Mohamed_Maoulainine.Maoulainine@enseirb-matmeca.fr>
Date: Mon, 14 Apr 2025 01:32:29 +0200
Subject: [PATCH 1/2] fix: linting all the files possible error may still occur
 but i just ignored them cuz it's commented code, probably will fix them later
 if it persists

---
 front/MyINPulse-front/package-lock.json              | 10 ++++++++++
 front/MyINPulse-front/src/App.vue                    |  2 +-
 front/MyINPulse-front/src/components/Agenda.vue      |  6 +++---
 .../src/components/LoginComponent.vue                |  2 +-
 .../src/components/ProjectComponent.vue              |  4 ++--
 .../src/components/canvas/CanvasItem.vue             | 12 ++++++------
 .../src/components/canvas/LeanCanvas.vue             |  2 +-
 front/MyINPulse-front/src/views/AdminMain.vue        | 12 ++++++------
 front/MyINPulse-front/src/views/CanvasView.vue       |  4 ++--
 9 files changed, 32 insertions(+), 22 deletions(-)

diff --git a/front/MyINPulse-front/package-lock.json b/front/MyINPulse-front/package-lock.json
index 8809acc..641b0b6 100644
--- a/front/MyINPulse-front/package-lock.json
+++ b/front/MyINPulse-front/package-lock.json
@@ -10,6 +10,7 @@
       "dependencies": {
         "axios": "^1.7.9",
         "cors": "^2.8.5",
+        "jwt-decode": "^4.0.0",
         "keycloak-js": "^26.1.0",
         "pinia": "^2.3.1",
         "pinia-plugin-persistedstate": "^4.2.0",
@@ -3588,6 +3589,15 @@
         "graceful-fs": "^4.1.6"
       }
     },
+    "node_modules/jwt-decode": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz",
+      "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==",
+      "license": "MIT",
+      "engines": {
+        "node": ">=18"
+      }
+    },
     "node_modules/keycloak-js": {
       "version": "26.1.0",
       "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-26.1.0.tgz",
diff --git a/front/MyINPulse-front/src/App.vue b/front/MyINPulse-front/src/App.vue
index c675988..795a6d2 100644
--- a/front/MyINPulse-front/src/App.vue
+++ b/front/MyINPulse-front/src/App.vue
@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import { RouterLink, RouterView } from 'vue-router'
+import { /*RouterLink,*/ RouterView } from 'vue-router'
 import ErrorWrapper from "@/views/errorWrapper.vue";
 </script>
 
diff --git a/front/MyINPulse-front/src/components/Agenda.vue b/front/MyINPulse-front/src/components/Agenda.vue
index f771e2a..e1af6d0 100644
--- a/front/MyINPulse-front/src/components/Agenda.vue
+++ b/front/MyINPulse-front/src/components/Agenda.vue
@@ -15,9 +15,9 @@
     import { defineProps } from "vue";
 
     interface rendezVous{
-        projectName: String,
-        date: String,
-        lieu: String,
+        projectName: string,
+        date: string,
+        lieu: string,
     }
 
     const props = defineProps<{
diff --git a/front/MyINPulse-front/src/components/LoginComponent.vue b/front/MyINPulse-front/src/components/LoginComponent.vue
index b752fe3..64a0ea4 100644
--- a/front/MyINPulse-front/src/components/LoginComponent.vue
+++ b/front/MyINPulse-front/src/components/LoginComponent.vue
@@ -54,7 +54,7 @@ onMounted(() => {
           <button @click="store.refreshUserToken">Refresh Token</button>
         </div>
 
-        <div class="token-section" v-if="store.authenticated">
+        <div v-if="store.authenticated" class="token-section" >
           <p><strong>Access Token:</strong></p>
           <pre>{{ store.user.token }}</pre>
 
diff --git a/front/MyINPulse-front/src/components/ProjectComponent.vue b/front/MyINPulse-front/src/components/ProjectComponent.vue
index c3d9f29..0cff5f3 100644
--- a/front/MyINPulse-front/src/components/ProjectComponent.vue
+++ b/front/MyINPulse-front/src/components/ProjectComponent.vue
@@ -1,5 +1,5 @@
 <template>
-    <div @click="goToLink" class="project">
+    <div class="project" @click="goToLink" >
         <div class="project-header">
             <h2 >{{ projectName }}</h2>
             <div class="project-buttons">
@@ -31,7 +31,7 @@ const router = useRouter();
 
 const goToLink = () => {
   if (props.projectLink) {
-    router.push(props.projectLink);
+    router.push(props.projectLink);0
   }
  
 };
diff --git a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
index 51cd5be..69d7858 100755
--- a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
+++ b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue
@@ -1,8 +1,8 @@
 <template>
   <div :class="['cell', { expanded }]" @click="handleClick">
-    <h3 class="fs-5 fw-medium">{{ title_text }}</h3>
+    <h3 class="fs-5 fw-medium">{{ titleText }}</h3>
 
-    <div class="section-bloc" v-for="(desc, index) in currentDescriptions" :key="index">
+    <div v-for="(desc, index) in currentDescriptions" :key="index" class="section-bloc">
 
 <!-- ADMIN -------------------------------------------------------------------------------------------->
 
@@ -21,7 +21,7 @@
             <p class="m-0">{{ desc }}</p>
           </div>
           <div class="button-container">
-            <button v-if="expanded" @click.stop="startEditing(index)" class="edit-button">Éditer</button>
+            <button v-if="expanded" class="edit-button" @click.stop="startEditing(index)">Éditer</button>
           </div>
         </template>
 
@@ -29,8 +29,8 @@
         <template v-else>
           <textarea v-model="editedDescriptions[index]" class="edit-input"></textarea>
           <div class="button-container">
-            <button @click.stop="saveEdit(index)" class="save-button">Enregistrer</button>
-            <button @click.stop="cancelEdit(index)" class="cancel-button">Annuler</button>
+            <button class="save-button" @click.stop="saveEdit(index)">Enregistrer</button>
+            <button class="cancel-button" @click.stop="cancelEdit(index)">Annuler</button>
           </div>
         </template>
       </template>
@@ -55,7 +55,7 @@ const IS_ADMIN = false;
 const props = defineProps<{
   projectId: number;
   title: number;
-  title_text: string;
+  titleText: string;
   description: string;
 }>();
 
diff --git a/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue b/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
index 8f84140..1f3219b 100644
--- a/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
+++ b/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
@@ -6,7 +6,7 @@
       :title="item.title"
       :title_text="item.title_text"
       :description="item.description"
-      :projectId="item.projectId"
+      :project-id="item.projectId"
       :class="['canvas-item', item.class, 'card', 'shadow', 'p-3']"
     />
   </div>
diff --git a/front/MyINPulse-front/src/views/AdminMain.vue b/front/MyINPulse-front/src/views/AdminMain.vue
index eacccd2..5675037 100644
--- a/front/MyINPulse-front/src/views/AdminMain.vue
+++ b/front/MyINPulse-front/src/views/AdminMain.vue
@@ -7,9 +7,9 @@
           <ProjectComp 
             v-for="(project, index) in projects" 
             :key="index"
-            :projectName="project.name"
-            :listName="project.members"
-            :projectLink="project.link"
+            :project-name="project.name"
+            :list-name="project.members"
+            :project-link="project.link"
           />
 
         <div id ="main">
@@ -18,15 +18,15 @@
           <PendingProjectComponent
             v-for="( project, index) in pendingProjects"
             :key="index"
-            :projectName="project.name"
-            :creationDate="project.creationDate"
+            :project-name="project.name"
+            :creation-date="project.creationDate"
           />
         </div> 
 
         
       </div>  
       
-      <Agenda :projectRDV="rendezVous" />
+      <Agenda :project-r-d-v="rendezVous" />
     </div>
     <AddProjectForm/>
 </template>
diff --git a/front/MyINPulse-front/src/views/CanvasView.vue b/front/MyINPulse-front/src/views/CanvasView.vue
index 822d6dc..3f535f9 100644
--- a/front/MyINPulse-front/src/views/CanvasView.vue
+++ b/front/MyINPulse-front/src/views/CanvasView.vue
@@ -1,7 +1,7 @@
 <template>
     <div>
       <header>
-        <HeaderCanvas :projectId="1" />
+        <HeaderCanvas :project-id="1" />
       </header>
     </div>
     <div>
@@ -23,7 +23,7 @@
 </template>
   
 <script setup lang="ts">
-// @ts-ignore
+
 import HeaderCanvas from "../components/canvas/HeaderCanvas.vue";
 import LeanCanvas from '../components/canvas/LeanCanvas.vue';
 import { ref, onMounted } from "vue";

From c4ba7646d567c8613a6cd71c17b044cf1a5c5448 Mon Sep 17 00:00:00 2001
From: Mohamed Maoulainine Maoulainine
 <Mohamed_Maoulainine.Maoulainine@enseirb-matmeca.fr>
Date: Tue, 15 Apr 2025 23:13:02 +0200
Subject: [PATCH 2/2] fix: typo

---
 front/MyINPulse-front/src/components/canvas/LeanCanvas.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue b/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
index 1f3219b..f6f8900 100644
--- a/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
+++ b/front/MyINPulse-front/src/components/canvas/LeanCanvas.vue
@@ -4,7 +4,7 @@
       v-for="(item, index) in items"
       :key="index"
       :title="item.title"
-      :title_text="item.title_text"
+      :titleText="item.title_text"
       :description="item.description"
       :project-id="item.projectId"
       :class="['canvas-item', item.class, 'card', 'shadow', 'p-3']"