From b0c3b2b646091faa0858299715bedebe26f90873 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 19 Sep 2025 08:19:45 +0200 Subject: [PATCH] chore(frontend): clean remaining templates and configs --- .vscode/settings.json | 4 - app/components/TypeComponentForm.vue | 631 ++------------------------- app/components/TypeEditToolbar.vue | 21 +- app/pages/constructeurs.vue | 5 +- app/pages/profiles/index.vue | 5 +- app/pages/type/edit/[id].vue | 18 +- package-lock.json | 217 ++++++++- 7 files changed, 274 insertions(+), 627 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 1b6457c..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" -} diff --git a/app/components/TypeComponentForm.vue b/app/components/TypeComponentForm.vue index ffa6701..65d8b2b 100644 --- a/app/components/TypeComponentForm.vue +++ b/app/components/TypeComponentForm.vue @@ -6,48 +6,10 @@ class="btn btn-outline btn-sm" @click="toggleAllComponents" > - - - - - {{ allExpanded ? 'Tout plier' : 'Tout déplier' }} - - - -
-
-
-
Nouveau composant {{ index + 1 }}
@@ -59,97 +21,10 @@ @click="removeComponent(index)" class="btn btn-square btn-error btn-sm" > - - - - -
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- Champs personnalisés du composant : - -
-
-
-
-
- Champ personnalisé {{ fieldIndex + 1 }} @@ -161,164 +36,15 @@ @click="removeComponentCustomField(index, fieldIndex)" class="btn btn-square btn-error btn-xs" > - - - - -
- -
-
- -
-
- -
-
- -
-
- +
-
- -
-
- -
- -
-
-
-
- -
-
- Pièces du composant : - -
-
-
-
-
- - - - - Pièce {{ pieceIndex + 1 }} - - - {{ piece.name || 'Sans nom' }} - -
-
- - -
-
- -
-
-
-
-
- Champ {{ fieldIndex + 1 }} @@ -330,165 +56,15 @@ @click="removeComponentPieceCustomField(index, pieceIndex, fieldIndex)" class="btn btn-square btn-error btn-xs" > - - - - -
- -
- - -
- -
-
- - Obligatoire -
- -
- -
- -
-
-
-
-
-
-
- -
-
- Sous-composants : - -
- -
-
-
- - - - - Sous-composant {{ subIndex + 1 }} - - - {{ subComponent.name || 'Sans nom' }} - -
- -
- -
-
-
- Champs personnalisés : - -
-
-
-
-
- Champ {{ fieldIndex + 1 }} @@ -500,149 +76,15 @@ @click="removeSubComponentCustomField(index, subIndex, fieldIndex)" class="btn btn-square btn-error btn-xs" > - - - - -
- -
- - -
- -
-
- - Obligatoire -
- -
-
-
-
- -
-
- Pièces : - -
-
-
-
-
- - - - - Pièce {{ pieceIndex + 1 }} - - - {{ piece.name || 'Sans nom' }} - -
-
- - -
-
- -
-
-
-
-
- Champ {{ fieldIndex + 1 }} @@ -654,9 +96,10 @@ @click="removeSubComponentPieceCustomField(index, subIndex, pieceIndex, fieldIndex)" class="btn btn-square btn-error btn-xs" > - - - +
@@ -718,9 +161,10 @@ @click="addComponent" class="btn btn-outline btn-sm" > - - - +
@@ -728,6 +172,9 @@