Skip to content

Commit

Permalink
feat: ✨ add dummy shotgun identification
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt committed Oct 15, 2024
1 parent 4413732 commit 14cce76
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions frontend/src/utils/firearms-utils/epaule-a-pompe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import epaulePompeSimpleVideo from "@/assets/guide-mise-en-securite/videos/epaule_a_pompe/epaule_pompe_simple.mp4";
import pistoletSemiAutoModerneCartridges from "@/assets/guide-identification/photos/pistolet_semi_auto_moderne/pistolet_sa_moderne_chargeur_cartouche.jpg";
import pistoletSemiAutoModerneBalls from "@/assets/guide-identification/photos/pistolet_semi_auto_moderne/pistolet_sa_moderne_chargeur_bille.jpg";

export const epaule_a_pompe = {
displayLabel: "Arme d'épaule à pompe",
Expand Down Expand Up @@ -28,6 +30,18 @@ export const epaule_a_pompe = {
],
},
],
dummyOptions: [
{
label: "Cartouches",
value: "cartouches",
img_ammo: pistoletSemiAutoModerneCartridges, // Mettre la bonne image
},
{
label: "Billes",
value: "billes",
img_ammo: pistoletSemiAutoModerneBalls, // Mettre la bonne image
},
],
getDisclaimer: (category: string) => {
if (category === "B ou C") {
return "<strong>Catégorie B</strong> si la <strong>capacité maximale</strong> (chambre comprise) est <strong>supérieure à 5</strong>, ou si la <strong>crosse n’est pas fixe</strong>.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { epaule_a_verrou } from "@/utils/firearms-utils/epaule-a-verrou"; // esl
import type { pistolet_semi_auto_moderne } from "@/utils/firearms-utils/pistolet-semi-auto-moderne"; // eslint-disable-line camelcase
import type { semi_auto_style_militaire_autre } from "@/utils/firearms-utils/semi-auto-style-militaire-autre"; // eslint-disable-line camelcase
import type { revolver } from "@/utils/firearms-utils/revolver";
import type { epaule_a_pompe } from "@/utils/firearms-utils/epaule-a-pompe";
const store = useStore();
Expand Down Expand Up @@ -58,7 +59,8 @@ type HasDummyOptions =
| typeof epaule_a_verrou
| typeof pistolet_semi_auto_moderne
| typeof semi_auto_style_militaire_autre
| typeof revolver;
| typeof revolver
| typeof epaule_a_pompe;
</script>

<template>
Expand Down

0 comments on commit 14cce76

Please sign in to comment.