-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ✨ implementation ocr module for blank guns #556
base: develop
Are you sure you want to change the base?
Conversation
f0e3d98
to
136dab6
Compare
Reste à mettre à jour
|
98a0619
to
ab04d90
Compare
b5546bd
to
b1bf1db
Compare
fc971f5
to
661fc98
Compare
2e81fbd
to
6d05bac
Compare
fedcc32
to
f878059
Compare
97e0ee4
to
ef0940c
Compare
Code Coverage Summary
Results for commit: f5a6f3f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
32b713e
to
7024d2b
Compare
e9f7e1b
to
bd908b3
Compare
@@ -138,9 +137,8 @@ const routes: RouteRecordRaw[] = [ | |||
}, | |||
{ | |||
path: "armes-alarme", | |||
name: "IdentificationBlankGun", | |||
component: IdentificationBlankGun, | |||
meta: { title: "Identification" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est volontaire cette modification ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oui je trouve que c'est plus clair de spécifier AlarmGun
plutôt que BlankGun
, même si techniquement les armes d'alarmes sont des armes à blancs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mais tu supprimes la clé "meta" c'est normal ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah oui my bad, je l'ai reprise
frontend/src/stores/result.ts
Outdated
@@ -14,7 +14,8 @@ export const useStore = defineStore("result", { | |||
|
|||
const selectedOptions = ref([]); | |||
const selectedAmmo = ref(undefined); | |||
const selectedAlarmGun = ref(undefined); | |||
const isAlarmModel = ref(undefined); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On utilise AlarmGun un peu partout, est ce que ce serait pas mieux d'utiliser isAlarmGun
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a une fonction qui se nomme isAlarmGun()
donc j'ai préféré cette syntaxe pour éviter de potentiellement s'embrouiller
export function isAlarmGun() {
if (
store.selectedOptions[0] === "revolver_black_powder" ||
!["pistolet_semi_auto_moderne", "revolver"].includes(store.typology) ||
store.selectedAmmo === "billes"
) {
return false;
}
return store.isAlarmModel ? true : undefined;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi ne pas utiliser la fonction isAlarmGun du coup ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai finalement remplacé par isAlarmGun après coup
frontend/src/views/GuideIdentificationFirearm/GuideIdentificationFirearm.vue
Show resolved
Hide resolved
frontend/src/views/GuideIdentificationFirearm/GuideIdentificationFirearm.vue
Outdated
Show resolved
Hide resolved
9153de3
to
929aa27
Compare
929aa27
to
b67b3b5
Compare
b67b3b5
to
f5a6f3f
Compare
No description provided.