From a78938a4d1a3f57c7f5826657ef9e4f77c259068 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 26 Sep 2025 11:29:47 +0200 Subject: [PATCH] chore: update frontend configuration --- app/app.vue | 135 +- app/components/ComponentHierarchy.vue | 10 +- app/components/ComponentItem.vue | 124 +- .../ComponentModelStructureEditor.vue | 204 +- app/components/ConstructeurSelect.vue | 38 +- app/components/CustomFieldsDisplay.vue | 52 +- app/components/DisplaySettings.vue | 76 +- app/components/DocumentPreviewModal.vue | 30 +- app/components/DocumentUpload.vue | 26 +- app/components/MachinePrintSelectionModal.vue | 28 +- app/components/MachinePrintSelectionNode.vue | 10 +- app/components/ModelStructureViewer.vue | 14 +- app/components/PageHero.vue | 24 +- app/components/PieceItem.vue | 163 +- app/components/PieceModelStructureEditor.vue | 54 +- .../StructureSubComponentEditor.vue | 268 +- app/components/ToastContainer.vue | 8 +- app/components/TypeComponentForm.vue | 330 +- app/components/TypeEditActionsBar.vue | 6 +- app/components/TypeEditBaseInfoSection.vue | 30 +- .../TypeEditCustomFieldsSection.vue | 62 +- app/components/TypeEditForm.vue | 14 +- app/components/TypeEditToolbar.vue | 4 +- app/components/TypeInfoDisplay.vue | 10 +- app/components/sites/SiteCard.vue | 10 +- app/components/sites/SiteEditModal.vue | 22 +- app/composables/useApi.js | 14 +- app/composables/useComponentModels.js | 16 +- app/composables/useComponentTypes.js | 28 +- app/composables/useComposants.js | 4 +- app/composables/useConstructeurs.js | 12 +- app/composables/useCustomFields.js | 4 +- app/composables/useDocuments.js | 24 +- app/composables/useMachineTypesApi.js | 6 +- app/composables/useMachines.js | 4 +- app/composables/usePieceModels.js | 16 +- app/composables/usePieceTypes.js | 28 +- app/composables/usePieces.js | 4 +- app/composables/useProfileSession.js | 12 +- app/composables/useProfiles.js | 12 +- app/composables/useSites.js | 4 +- app/composables/useToast.js | 10 +- app/pages/component-catalog.vue | 86 +- app/pages/constructeurs.vue | 62 +- app/pages/documents.vue | 57 +- app/pages/generator.vue | 30 +- app/pages/index.vue | 324 +- app/pages/machine-skeleton.vue | 52 +- app/pages/machines/index.vue | 47 +- app/pages/machines/new.vue | 268 +- app/pages/models/index.vue | 4 +- app/pages/pieces-catalog.vue | 78 +- app/pages/profiles/index.vue | 23 +- app/pages/profiles/manage.vue | 62 +- app/pages/sites.vue | 18 +- app/pages/type/[id].vue | 21 +- app/pages/type/edit/[id].vue | 38 +- app/shared/modelUtils.ts | 66 +- app/utils/documentPreview.js | 16 +- app/utils/printTemplates/machineReport.js | 82 +- eslint.config.mjs | 70 + nuxt.config.ts | 20 +- package-lock.json | 7531 ++++++++--------- package.json | 14 +- 64 files changed, 5790 insertions(+), 5129 deletions(-) create mode 100644 eslint.config.mjs diff --git a/app/app.vue b/app/app.vue index 80697f1..75368ea 100644 --- a/app/app.vue +++ b/app/app.vue @@ -13,8 +13,8 @@ >
  • @@ -507,7 +510,7 @@ -
  • - Connecté en tant que
    + Connecté en tant que
    {{ activeProfileLabel }}
  • -

  • +

  • Gestion des profils @@ -583,99 +586,99 @@ diff --git a/app/components/ComponentHierarchy.vue b/app/components/ComponentHierarchy.vue index 59394dd..46efbf3 100644 --- a/app/components/ComponentHierarchy.vue +++ b/app/components/ComponentHierarchy.vue @@ -2,7 +2,7 @@
    - [], + default: () => [] }, pieceModelOptionsProvider: { type: Function, - default: () => [], - }, + default: () => [] + } }) defineEmits(['update', 'edit-piece', 'assign-model', 'assign-piece-model', 'custom-field-update', 'create-model-from-component']) - + diff --git a/app/components/ComponentItem.vue b/app/components/ComponentItem.vue index 0df6901..aea701c 100644 --- a/app/components/ComponentItem.vue +++ b/app/components/ComponentItem.vue @@ -13,15 +13,17 @@ type="button" class="btn btn-ghost btn-sm btn-circle shrink-0 transition-transform" :class="{ 'rotate-90': !isCollapsed }" - @click="toggleCollapse" :aria-expanded="!isCollapsed" :title="isCollapsed ? 'Déplier les détails du composant' : 'Replier les détails du composant'" + @click="toggleCollapse" >