Skip to content

Commit

Permalink
style: 💄 fix firearms syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt committed Nov 9, 2023
1 parent 6685834 commit 8eaca96
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/firearm-identification.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Firearm Identification', () => {
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/munition-type')
cy.getByDataTestid('next-step').should('have.attr', 'disabled')
cy.contains('cartouches').first().click()
cy.contains('Cartouches').first().click()
cy.getByDataTestid('next-step').should('not.have.attr', 'disabled')
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('Firearm Identification', () => {
cy.getByDataTestid('explanation').should('contain', 'questions supplémentaires')
cy.getByDataTestid('next-step').click()
cy.getByDataTestid('next-step').should('have.attr', 'disabled')
cy.contains('billes').first().click()
cy.contains('Billes').first().click()
cy.url().should('contain', '/guide-identification/munition-type')
cy.getByDataTestid('next-step').should('not.have.attr', 'disabled')
cy.getByDataTestid('next-step').click()
Expand Down
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/firearm-securing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Securing Firearm and Identification', () => {
})
cy.url().should('contain', '/mise-en-securite-choix-option-etape/1')
cy.getByDataTestid('button-next').should('have.attr', 'disabled')
cy.contains('bouton pontet').first().click()
cy.contains('Bouton à côté du pontet').first().click()
cy.getByDataTestid('button-next').should('not.have.attr', 'disabled')
cy.getByDataTestid('button-next').click()
cy.url().should('contain', '/mise-en-securite-tutoriel')
Expand All @@ -19,7 +19,7 @@ describe('Securing Firearm and Identification', () => {
cy.contains('li', 'Actionner la culasse')
cy.getByDataTestid('button-next').click()
cy.Identification()
cy.contains('cartouches').first().click()
cy.contains('Cartouches').first().click()
cy.getByDataTestid('next-step').should('not.have.attr', 'disabled')
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/shoulder-bolt-rifle-securing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Shoulder Bolt Rifle Securing', () => {
cy.contains('li', 'Ouvrez la culasse')
cy.getByDataTestid('button-next').click()
cy.Identification()
cy.contains('balles').first().click()
cy.contains('Balles').first().click()
cy.getByDataTestid('next-step').should('not.have.attr', 'disabled')
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Typology Revolver Identification', () => {
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/munition-type')
cy.getByDataTestid('next-step').should('have.attr', 'disabled')
cy.contains('balles').first().click()
cy.contains('Balles').first().click()
cy.getByDataTestid('next-step').should('not.have.attr', 'disabled')
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
Expand Down
6 changes: 3 additions & 3 deletions frontend/cypress/e2e/typology-revolver-securing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Typology Revolver Securing', () => {
cy.getByDataTestid('button-next').click()
cy.url().should('contain', '/mise-en-securite-choix-option-etape/2')
cy.getByDataTestid('button-next').should('have.attr', 'disabled')
cy.contains('Revolver bouton barillet').first().click()
cy.contains('Bouton à côté du barillet').first().click()
cy.getByDataTestid('button-next').should('not.have.attr', 'disabled')
cy.getByDataTestid('button-next').click()
cy.getVideo()
Expand All @@ -46,7 +46,7 @@ describe('Typology Revolver Securing', () => {
cy.getByDataTestid('button-next').click()
cy.url().should('contain', '/fin-mise-en-securite')
cy.Identification()
cy.contains('balles').first().click()
cy.contains('Balles').first().click()
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
cy.getByDataTestid('arm-category').should('contain', 'Catégorie B')
Expand Down Expand Up @@ -81,7 +81,7 @@ describe('Typology Revolver Securing', () => {
cy.getByDataTestid('button-next').should('not.have.attr', 'disabled')
cy.getByDataTestid('button-next').click()
cy.Identification()
cy.contains('balles').first().click()
cy.contains('Balles').first().click()
cy.getByDataTestid('next-step').click()
cy.url().should('contain', '/guide-identification/resultat-final')
cy.getByDataTestid('arm-category').should('contain', 'Catégorie B')
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ResultPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function sendFeedback (isCorrect: boolean) {
src="@/assets/guide-identification/icones/gun.jpg"
alt=""
>
Catégorie Non déterminée
Catégorie non déterminée
</p>
<p class="text-sm font-normal m-4 text-left text-current">
Nous n'avons pas suffisamment d'éléments pour fournir une réponse fiable. Nous vous conseillons de faire appel à un expert.
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/utils/firearms-utils/epaule-a-verrou.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export const epaule_a_verrou = {
video: epauleAVerrouVideo,
guideFactice: {
cartouches: {
label: 'balles',
label: 'Balles',
value: 'cartouches',
img_ammo: epauleAVerrouCartridges,
},
billes: {
label: 'bille ou trou pour billes',
label: 'Billes ou trou pour billes',
value: 'billes',
img_ammo: epauleAVerrouBalls,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const pistolet_semi_auto_moderne = {
textOptions: '',
options: {
bouton_pontet: {
label: 'bouton pontet',
label: 'Bouton à côté du pontet',
value: 'bouton_pontet',
text_steps: {
1: 'Analyser l’arme en <span class="font-bold">direction sécurisée</span> ',
Expand All @@ -33,7 +33,7 @@ export const pistolet_semi_auto_moderne = {
video: pistoletSemiAutoPontetVideo,
},
poussoir_talon: {
label: 'poussoir talon',
label: 'Poussoir sous le talon',
value: 'poussoir_talon',
text_steps: {
1: 'Analyser l’arme en <span class="font-bold">direction sécurisée</span> ',
Expand All @@ -49,12 +49,12 @@ export const pistolet_semi_auto_moderne = {
},
guideFactice: {
cartouche: {
label: 'cartouches',
label: 'Cartouches',
value: 'cartouches',
img_ammo: pistoletSemiAutoModerneCartridges,
},
billes: {
label: 'billes',
label: 'Billes',
value: 'billes',
img_ammo: pistoletSemiAutoModerneBalls,
},
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/utils/firearms-utils/revolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const revolver = {
options_step_2_text: 'En maintenant l’arme dans une <span class="font-bold">direction sécurisée</span>, tournez-la pour observer l’arrière du barillet. Sélectionnez ce que vous voyez.',
options_step_2: {
revolver_bouton_barillet: {
label: 'Revolver bouton barillet',
label: 'Bouton à côté du barillet',
value: 'revolver_bouton_barillet',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand Down Expand Up @@ -207,12 +207,12 @@ export const revolver = {
},
guideFactice: {
cartouches: {
label: 'balles',
label: 'Balles',
value: 'cartouches',
img_ammo: revolverCartridges,
},
billes: {
label: 'bille ou trou pour billes',
label: 'Billes ou trou pour billes',
value: 'billes',
img_ammo: revolverBalls,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const semi_auto_style_militaire_autre = {
options_text: 'Observez la position du chargeur et sélectionnez ce que vous voyez :',
options: {
ar15: {
label: 'bouton au-dessus chargeur',
label: 'Bouton au-dessus du chargeur',
value: 'ar15',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand All @@ -40,7 +40,7 @@ export const semi_auto_style_militaire_autre = {
video: semiAutoMilitaireAr15Video,
},
kalash: {
label: 'levier derrière chargeur',
label: 'Levier derrière le chargeur',
value: 'kalash',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand All @@ -54,7 +54,7 @@ export const semi_auto_style_militaire_autre = {
video: semiAutoMilitaireAkVideo,
},
sten: {
label: 'chargeur à angle droit',
label: 'Chargeur à angle droit',
value: 'sten',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand All @@ -67,7 +67,7 @@ export const semi_auto_style_militaire_autre = {
video: semiAutoMilitaireStenVideo,
},
thompson: {
label: 'levier au-dessus pontet',
label: 'Levier au-dessus du pontet',
value: 'thompson',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand All @@ -82,7 +82,7 @@ export const semi_auto_style_militaire_autre = {
video: semiAutoMilitaireThompsonVideo,
},
uzi: {
label: 'bouton poussoir à base poignée',
label: 'Bouton poussoir à la base de la poignée',
value: 'uzi',
text_steps: {
1: 'Observer l’arme en l’orientant dans une <span class="font-bold">direction sans risque</span>, en manipulant avec précaution',
Expand All @@ -98,12 +98,12 @@ export const semi_auto_style_militaire_autre = {
},
guideFactice: {
cartouches: {
label: 'cartouches',
label: 'Cartouches',
value: 'cartouches',
img_ammo: semiAutoMilitaireCartridges,
},
billes: {
label: 'billes',
label: 'Billes',
value: 'billes',
img_ammo: semiAutoMilitaireBalls,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const foundAllKeyWords = keyWords.every(keyWord => {
<div
v-if="foundAllKeyWords"
>
<p class="leading-7 mt-3">
<p class="leading-7 mt-3 pb-4">
Vous allez recevoir des instructions pour <span class="font-bold">extraire des munitions</span> de l’arme. Si vous avez
le <span class="font-bold">moindre doute</span> quant à votre capacité à effectuer en toute sécurité les manœuvres
qui suivent, <span class="font-bold">n’essayez pas de suivre les étapes suivantes</span>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const backTo = computed(() => {
:title="resultTree[typology]?.[`options_step_${step}_video_title`]"
:src="resultTree[typology]?.[`options_step_${step}_video`]"
/>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 1 min</span>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 30 sec</span>
</div>
<!-- <p
class="manipulations -mt-2 p-6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const openNextAccordion = (currentIndex: number) => {
muted
:src="resultTree[typology]?.options_step_3['revolver_verrou_1892']?.video"
/>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 3 min</span>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 30 sec</span>
</div>
</div>
<p class="manipulations -mx-8 p-8">
Expand Down Expand Up @@ -133,7 +133,7 @@ const openNextAccordion = (currentIndex: number) => {
muted
:src="resultTree[typology]?.options_step_2[selectedOptionStep]?.video"
/>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 3 min</span>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 1 min</span>
</div>
</div>
<div class="manipulations -mx-8 p-8">
Expand Down Expand Up @@ -167,7 +167,7 @@ const openNextAccordion = (currentIndex: number) => {
:src="resultTree[typology]?.options[selectedOptionStep]?.video"
data-testid="video-tutoriel"
/>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 20 sec</span>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 30 sec</span>
</div>
</div>
<div class="manipulations -mx-8 p-8">
Expand Down Expand Up @@ -198,7 +198,7 @@ const openNextAccordion = (currentIndex: number) => {
:src="resultTree[typology]?.video"
data-testid="video-tutoriel"
/>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 3 min</span>
<span class="absolute -bottom-1.5rem right-0 text-sm">Environ 1 min</span>
</div>
</div>
<div class="manipulations -mx-8 p-8">
Expand Down

0 comments on commit 8eaca96

Please sign in to comment.