Merge branch 'front_foundation' of https://gitea.piair.dev/piair/MyINPulse into front_foundation
This commit is contained in:
commit
ba99b3c2b0
10
front/MyINPulse-front/package-lock.json
generated
10
front/MyINPulse-front/package-lock.json
generated
@ -10,6 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.7.9",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
"jwt-decode": "^4.0.0",
|
||||||
"keycloak-js": "^26.1.0",
|
"keycloak-js": "^26.1.0",
|
||||||
"pinia": "^2.3.1",
|
"pinia": "^2.3.1",
|
||||||
"pinia-plugin-persistedstate": "^4.2.0",
|
"pinia-plugin-persistedstate": "^4.2.0",
|
||||||
@ -3588,6 +3589,15 @@
|
|||||||
"graceful-fs": "^4.1.6"
|
"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": {
|
"node_modules/keycloak-js": {
|
||||||
"version": "26.1.0",
|
"version": "26.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-26.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-26.1.0.tgz",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { RouterLink, RouterView } from 'vue-router'
|
import { /*RouterLink,*/ RouterView } from 'vue-router'
|
||||||
import ErrorWrapper from "@/views/errorWrapper.vue";
|
import ErrorWrapper from "@/views/errorWrapper.vue";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
import { defineProps } from "vue";
|
import { defineProps } from "vue";
|
||||||
|
|
||||||
interface rendezVous{
|
interface rendezVous{
|
||||||
projectName: String,
|
projectName: string,
|
||||||
date: String,
|
date: string,
|
||||||
lieu: String,
|
lieu: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
@ -54,7 +54,7 @@ onMounted(() => {
|
|||||||
<button @click="store.refreshUserToken">Refresh Token</button>
|
<button @click="store.refreshUserToken">Refresh Token</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="token-section" v-if="store.authenticated">
|
<div v-if="store.authenticated" class="token-section" >
|
||||||
<p><strong>Access Token:</strong></p>
|
<p><strong>Access Token:</strong></p>
|
||||||
<pre>{{ store.user.token }}</pre>
|
<pre>{{ store.user.token }}</pre>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div @click="goToLink" class="project">
|
<div class="project" @click="goToLink" >
|
||||||
<div class="project-header">
|
<div class="project-header">
|
||||||
<h2 >{{ projectName }}</h2>
|
<h2 >{{ projectName }}</h2>
|
||||||
<div class="project-buttons">
|
<div class="project-buttons">
|
||||||
@ -31,7 +31,7 @@ const router = useRouter();
|
|||||||
|
|
||||||
const goToLink = () => {
|
const goToLink = () => {
|
||||||
if (props.projectLink) {
|
if (props.projectLink) {
|
||||||
router.push(props.projectLink);
|
router.push(props.projectLink);0
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="['cell', { expanded }]" @click="handleClick">
|
<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 -------------------------------------------------------------------------------------------->
|
<!-- ADMIN -------------------------------------------------------------------------------------------->
|
||||||
|
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<p class="m-0">{{ desc }}</p>
|
<p class="m-0">{{ desc }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -29,8 +29,8 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<textarea v-model="editedDescriptions[index]" class="edit-input"></textarea>
|
<textarea v-model="editedDescriptions[index]" class="edit-input"></textarea>
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button @click.stop="saveEdit(index)" class="save-button">Enregistrer</button>
|
<button class="save-button" @click.stop="saveEdit(index)">Enregistrer</button>
|
||||||
<button @click.stop="cancelEdit(index)" class="cancel-button">Annuler</button>
|
<button class="cancel-button" @click.stop="cancelEdit(index)">Annuler</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@ -54,7 +54,7 @@ const IS_MOCK_MODE = true;
|
|||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
projectId: number;
|
projectId: number;
|
||||||
title: number;
|
title: number;
|
||||||
title_text: string;
|
titleText: string;
|
||||||
description: string;
|
description: string;
|
||||||
is_admin: number;
|
is_admin: number;
|
||||||
}>();
|
}>();
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
v-for="(item, index) in items"
|
v-for="(item, index) in items"
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
:title_text="item.title_text"
|
:titleText="item.title_text"
|
||||||
:description="item.description"
|
:description="item.description"
|
||||||
:projectId="item.projectId"
|
:project-id="item.projectId"
|
||||||
:class="['canvas-item', item.class, 'card', 'shadow', 'p-3']"
|
:class="['canvas-item', item.class, 'card', 'shadow', 'p-3']"
|
||||||
:is_admin=is_admin
|
:is_admin=is_admin
|
||||||
/>
|
/>
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
<ProjectComp
|
<ProjectComp
|
||||||
v-for="(project, index) in projects"
|
v-for="(project, index) in projects"
|
||||||
:key="index"
|
:key="index"
|
||||||
:projectName="project.name"
|
:project-name="project.name"
|
||||||
:listName="project.members"
|
:list-name="project.members"
|
||||||
:projectLink="project.link"
|
:project-link="project.link"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div id ="main">
|
<div id ="main">
|
||||||
@ -18,15 +18,15 @@
|
|||||||
<PendingProjectComponent
|
<PendingProjectComponent
|
||||||
v-for="( project, index) in pendingProjects"
|
v-for="( project, index) in pendingProjects"
|
||||||
:key="index"
|
:key="index"
|
||||||
:projectName="project.name"
|
:project-name="project.name"
|
||||||
:creationDate="project.creationDate"
|
:creation-date="project.creationDate"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Agenda :projectRDV="rendezVous" />
|
<Agenda :project-r-d-v="rendezVous" />
|
||||||
</div>
|
</div>
|
||||||
<AddProjectForm/>
|
<AddProjectForm/>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<header>
|
<header>
|
||||||
<HeaderCanvas :projectId="1" />
|
<HeaderCanvas :project-id="1" />
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// @ts-ignore
|
|
||||||
import HeaderCanvas from "../components/canvas/HeaderCanvas.vue";
|
import HeaderCanvas from "../components/canvas/HeaderCanvas.vue";
|
||||||
import LeanCanvas from '../components/canvas/LeanCanvas.vue';
|
import LeanCanvas from '../components/canvas/LeanCanvas.vue';
|
||||||
import { ref, onMounted, defineProps} from "vue";
|
import { ref, onMounted, defineProps} from "vue";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user