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)
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,6 @@
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <RouterLink to="/" class="return-button">Retour</RouterLink>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </header>
 | 
			
		||||
 
 | 
			
		||||
@@ -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) => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user