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

@ -5,21 +5,8 @@ import ErrorWrapper from "@/views/errorWrapper.vue";
<template>
<Header />
<error-wrapper></error-wrapper>
<div id="main">
<ProjectComp
v-for="(project, index) in projects"
: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>
<ErrorWrapper />
<!--<RouterLink to="/">Home</RouterLink> | -->
<!--<RouterLink to="/canvas">Canvas</RouterLink> -->
<RouterView />
</template>

View File

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

View File

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