From f924c65ab8d18e5a7e9d026cde4bd8ae18e8ae78 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Wed, 24 Sep 2025 09:39:15 +0200 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20harmoniser=20navigation=20et?= =?UTF-8?q?=20libell=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.vue | 290 ++++++++++++++++++--------- app/components/model-types/Table.vue | 10 +- app/pages/machines/index.vue | 2 +- app/pages/model-types.vue | 14 +- app/pages/models/components.vue | 2 +- app/pages/models/index.vue | 6 +- app/pages/models/pieces.vue | 2 +- app/pages/types.vue | 2 +- 8 files changed, 210 insertions(+), 118 deletions(-) diff --git a/app/app.vue b/app/app.vue index 09295f1..9fe1fca 100644 --- a/app/app.vue +++ b/app/app.vue @@ -32,7 +32,7 @@ class="rounded-md px-2 py-1 transition-colors" :class="isActive('/machines') ? 'bg-primary text-primary-content font-semibold shadow-sm' : 'text-base-content hover:bg-primary/10 hover:text-primary'" > - Machines + Parc Machines
  • @@ -41,62 +41,107 @@ class="rounded-md px-2 py-1 transition-colors" :class="isActive('/types') ? 'bg-primary text-primary-content font-semibold shadow-sm' : 'text-base-content hover:bg-primary/10 hover:text-primary'" > - Types de Machines + Schémas de machine
  • - - Modèles - +
    + + Pièces + + +
  • - - Types de modèles - +
    + + Composant + + +
  • - - Sites - -
  • -
  • - - Générateur - -
  • -
  • - - Documents - -
  • -
  • - - Constructeurs - +
    + + Ressources liées + + +
  • @@ -126,7 +171,7 @@ class="transition-colors px-3 py-2 rounded-md" :class="isActive('/machines') ? 'bg-primary text-primary-content font-semibold shadow-sm' : 'text-base-content hover:bg-primary/10 hover:text-primary'" > - Machines + Parc Machines
  • @@ -135,62 +180,107 @@ class="transition-colors px-3 py-2 rounded-md" :class="isActive('/types') ? 'bg-primary text-primary-content font-semibold shadow-sm' : 'text-base-content hover:bg-primary/10 hover:text-primary'" > - Types de Machines + Schémas de machine
  • -
  • - +
    - Modèles - + Pièces +
    +
  • -
  • - +
    - Types de modèles - + Composant +
    +
  • -
  • - +
    - Sites - -
  • -
  • - - Générateur - -
  • -
  • - - Documents - -
  • -
  • - - Constructeurs - + Ressources liées + +
  • diff --git a/app/components/model-types/Table.vue b/app/components/model-types/Table.vue index 85517eb..119f7db 100644 --- a/app/components/model-types/Table.vue +++ b/app/components/model-types/Table.vue @@ -2,7 +2,7 @@
    -

    Types de modèles

    +

    Catégories enregistrées

    {{ totalLabel }}

    @@ -23,8 +23,8 @@
    @@ -155,7 +155,7 @@ const canGoNext = computed(() => props.offset + props.limit < props.total); const totalLabel = computed(() => { if (props.total === 0) return 'Aucun résultat'; - if (props.total === 1) return '1 type trouvé'; - return `${props.total} types trouvés`; + if (props.total === 1) return '1 catégorie trouvée'; + return `${props.total} catégories trouvées`; }); diff --git a/app/pages/machines/index.vue b/app/pages/machines/index.vue index 6b69a55..7c9b6a6 100644 --- a/app/pages/machines/index.vue +++ b/app/pages/machines/index.vue @@ -2,7 +2,7 @@
    -

    Machines

    +

    Parc Machines