front_foundation #5

Open
mohamed_maoulainine wants to merge 73 commits from front_foundation into main
9 changed files with 32 additions and 22 deletions
Showing only changes of commit 03bbc77e8a - Show all commits

View File

@ -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",

View File

@ -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>

View File

@ -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<{

View File

@ -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>

View File

@ -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
}
};

View File

@ -1,8 +1,8 @@
<template>
Review

Il serait mieux d'afficher le contenu du lean canvas sans devoir clicker dessus, un peu comme sur ce lien.
De plus, ce n'est pas important d'afficher en gros le titre de la section, il devrait être plus discret.
https://cms.boardmix.com/images/articles/lean-canvas.png
En plus il y a des jolies couleur c'est sympa.

Il serait mieux d'afficher le contenu du lean canvas sans devoir clicker dessus, un peu comme sur ce lien. De plus, ce n'est pas important d'afficher en gros le titre de la section, il devrait être plus discret. https://cms.boardmix.com/images/articles/lean-canvas.png En plus il y a des jolies couleur c'est sympa.
<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;
}>();

View File

@ -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>

View File

@ -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>

View File

@ -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";