fix: il ya encors un problem de config! des erreurs de type (Connection to localhost:5433 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections)
Some checks failed
Format / formatting (push) Successful in 7s
Build / build (push) Successful in 56s
CI / build (push) Failing after 25s

This commit is contained in:
ALAMI Adnane 2025-05-06 23:31:01 +02:00
parent ae36549de9
commit 02bff19de0
3 changed files with 9 additions and 22 deletions

View File

@ -4,22 +4,9 @@ import ErrorWrapper from "@/views/errorWrapper.vue";
</script> </script>
<template> <template>
<Header /> <Header />
<error-wrapper></error-wrapper> <ErrorWrapper />
<div id="main"> <!--<RouterLink to="/">Home</RouterLink> | -->
<ProjectComp <!--<RouterLink to="/canvas">Canvas</RouterLink> -->
v-for="(project, index) in projects" <RouterView />
:key="index"
:projectName="project.name"
:listName="project.members"
/>
</div>
<!-- this must used to open the canvas, in fact it's the "more info" button-->
<router-link to="/canvas">
<button>Voir Canvas</button>
</router-link>
<RouterView />
</template> </template>

View File

@ -35,7 +35,6 @@
</button> </button>
</div> </div>
</div> </div>
<RouterLink to="/" class="return-button">Retour</RouterLink>
</div> </div>
</div> </div>
</header> </header>

View File

@ -57,6 +57,8 @@ const projects = ref<
}[] }[]
>([]); >([]);
const fallbackProjects = [ const fallbackProjects = [
{ {
name: "Projet Alpha", name: "Projet Alpha",
@ -80,7 +82,7 @@ const createFirstAdmin = () => {
} }
); );
}; };
onMounted(createFirstAdmin);
const fetchProjects = () => { const fetchProjects = () => {
getAdminProjects( getAdminProjects(
@ -134,8 +136,6 @@ const fetchProjects = () => {
); );
}; };
onMounted(fetchProjects);
onMounted(createFirstAdmin);
const pendingProjects = ref<Project[]>([]); const pendingProjects = ref<Project[]>([]);
@ -144,6 +144,7 @@ const mockPendingProjects = [
new Project({ projectName: "l'air", creationDate: "09-03-2023" }), new Project({ projectName: "l'air", creationDate: "09-03-2023" }),
]; ];
onMounted(fetchProjects);
onMounted(() => { onMounted(() => {
getPendingProjects( getPendingProjects(
(response) => { (response) => {