Skip to content

Commit

Permalink
fix error after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Carolinedanslesnuages committed Nov 25, 2022
1 parent 82b39fc commit 9aa7752
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
<!-- built files will be auto injected -->
</body>
</html>
<script type="module" src="/src/main.js"></script>
<script type="module" src="./src/main.js"></script>
2 changes: 1 addition & 1 deletion frontend/src/components/OnboardingSwiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
// import Swiper required modules
import { Navigation } from "swiper";
import store from '@/store';
import {store} from '@/store';
export default {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ResultsComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
</template>

<script>
import store from '../store.js'
import { store } from '@/store.js'
import axios from 'axios';
import SnackbarAlert from '@/components/SnackbarAlert.vue';
import { results } from '@/utils/result-utils';
Expand All @@ -159,7 +159,7 @@
isDown:undefined,
isFeedbackDone:undefined,
results: results,
}
}
},
computed: {
cleanLabel() {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { reactive } from 'vue'


//Attention ceci n'est pas un store simplement un fonction reactive de vue
export const store = reactive({
confidence: null,
confidenceLevel: null,
Expand Down
22 changes: 10 additions & 12 deletions frontend/src/utils/result-utils.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const results=[{
export const results={
revolver: {
displayLabel: "revolver",
category: "B ou D",
mention: "B - Soumise à autorisation<br\>D - Libre d'acquisition et de détention",
mention: "B - Soumise à autorisation<br>D - Libre d'acquisition et de détention",
},
pistolet_semi_auto_moderne: {
displayLabel: "pistolet semi-automatique moderne",
Expand All @@ -17,49 +17,47 @@ export const results=[{
autre_pistolet: {
displayLabel: "pistolet divers",
category: "A, B ou D",
mention: "A - Interdite<br\>B - Soumise à autorisation<br \>D - Libre d'acquisition et de détention",
mention: "A - Interdite<br>B - Soumise à autorisation<br>D - Libre d'acquisition et de détention",
},
epaule_a_percussion_silex: {
displayLabel: "arme d'épaule à mécanisme ancien",
category: "D",
mention: "Libre d'acquisition et de détention",
isGuideFactice: false,
},
epaule_a_un_coup: {
displayLabel: "arme d'épaule à un coup par canon",
category: "C",
mention: "Soumise à déclaration",
isFactice: false,
},
epaule_a_levier_sous_garde: {
displayLabel: "arme d'épaule à levier de sous-garde",
category: "B ou C",
mention: "B - Soumise à autorisation<br \>C - Soumise à déclaration",
mention: "B - Soumise à autorisation<br>C - Soumise à déclaration",
},
epaule_a_verrou: {
displayLabel: "arme d'épaule à verrou",
category: "B ou C",
mention: "B - Soumise à autorisation<br \>C - Soumise à déclaration",
mention: "B - Soumise à autorisation<br>C - Soumise à déclaration",
},
epaule_a_pompe: {
displayLabel: "arme d'épaule à pompe",
category: "B ou C",
mention: "B - Soumise à autorisation<br \>C - Soumise à déclaration",
mention: "B - Soumise à autorisation<br>C - Soumise à déclaration",
},
autre_epaule: {
displayLabel: "arme d'épaule non manuelle",
category: "A, B ou C",
mention: "A - Interdite<br \>B - Soumise à autorisation<br \>C - Soumise à déclaration",
mention: "A - Interdite<br>B - Soumise à autorisation<br>C - Soumise à déclaration",
},
}]
}

export const GuideFactice= [{
pistolet_semi_auto_moderne: {
step: {

}
},
},
},


}]

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Instructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
</template>
<script>
import { store } from '@/store/store.js';
import { store } from '@/store.js';
import InstructionsComponent from '@/components/InstructionsComponent.vue'
export default {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
beforeRouteLeave(){
console.log('test')
store.uploadMessage = null
store.instructionsRead = null
store.isInstruction = null
Expand Down

0 comments on commit 9aa7752

Please sign in to comment.