From b6fa395d70a93b75e703888f2d06e863f914d3f8 Mon Sep 17 00:00:00 2001 From: David Mendy Date: Fri, 31 May 2024 15:14:25 +0200 Subject: [PATCH] refactor: :recycle: remove isDummyTypology and refactor guideFactice --- frontend/src/components/ResultPage.vue | 12 ++++---- .../utils/firearms-utils/autre-pistolet.ts | 1 - .../epaule-a-levier-sous-garde.ts | 1 - .../utils/firearms-utils/epaule-a-pompe.ts | 1 - .../epaule-a-un-coup-par-canon.ts | 1 - .../utils/firearms-utils/epaule-a-verrou.ts | 27 ++++++++++-------- .../epaule-semi-auto-militaire-milieu-20e.ts | 1 - .../epaule-semi-auto-style-chasse.ts | 1 - .../firearms-utils/epaule_mecanisme_ancien.ts | 1 - .../pistolet-mecanisme-ancien.ts | 1 - .../pistolet-semi-auto-moderne.ts | 27 ++++++++++-------- frontend/src/utils/firearms-utils/revolver.ts | 28 ++++++++++--------- .../semi-auto-style-militaire-autre.ts | 27 ++++++++++-------- .../GuideIdentificationFirearm.vue | 8 ++---- .../IdentificationSelectAmmo.vue | 2 +- 15 files changed, 70 insertions(+), 69 deletions(-) diff --git a/frontend/src/components/ResultPage.vue b/frontend/src/components/ResultPage.vue index 1f6a218fd..e6e331dbd 100644 --- a/frontend/src/components/ResultPage.vue +++ b/frontend/src/components/ResultPage.vue @@ -20,7 +20,7 @@ const img = computed(() => resultStore.img) const typology = TYPOLOGIES[resultStore.typology] const isDummy = computed(() => stepsStore.isDummy) -const isDummyTypology = computed(() => typology?.isDummyTypology === true) +const hasGuideFactice = typology?.guideFactice !== undefined const isCardDetected = computed(() => resultStore.gunLength !== null && resultStore.gunBarrelLength !== null) const isUp = ref(false) @@ -75,7 +75,7 @@ function sendFeedback (isCorrect: boolean) {

Typologie de l'arme @@ -144,7 +144,7 @@ function sendFeedback (isCorrect: boolean) { > {{ label }}

-