Skip to content

Commit

Permalink
Merge pull request #129 from datalab-mi/feat/wip-fix-on-deploy-preprod
Browse files Browse the repository at this point in the history
fix: 🐛 little fixes after review
  • Loading branch information
NadeigeC authored Feb 20, 2023
2 parents f4cdc43 + c1888a0 commit 577a417
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
needs: build-push
with:
image_version: "develop"
branch: "develop"
branch: ${{ github.ref_name }}
volume_size: 10
flavor: "s1-2"
workspace: "preprod"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/src/utils/firearms-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ export const guideFacticeSelectOption = {
bouton_tirer: {
label: 'bouton à tirer',
value: 'bouton_tirer',
text: 'Tenir de la main droite la crosse du revolver. Avec votre pouce droit, <span class="bold-highlight"> tirer vers l’arrière le bouton situé entre le chien et le barillet</span>. Placer la main gauche sur le côté droit de l’arme, et avec vos doigts pousser le barillet pour le faire basculer hors de l’arme. Puis pousser la tige à l’extrémité du barillet pour faciliter l’extraction des munitions.',
text: 'Tenir de la main droite la crosse du revolver. Avec votre pouce droit, <span class="bold-highlight"> tirer vers l’arrière le bouton situé entre le chien et le barillet</span>. Placer la main gauche sur le côté droit de l’arme, et avec vos doigts <span class="bold-highlight">pousser le barillet pour le faire basculer</span> hors de l’arme. <span class="bold-highlight">Puis pousser la tige à l’extrémité du barillet</span> pour faciliter l’extraction des munitions.',
img: revolver1Img,
video: revolver1Video,
},
bouton_pousser: {
label: 'bouton à pousser',
value: 'bouton_pousser',
text: 'Tenir de la main droite la crosse du revolver. Avec votre pouce droit, <span class="bold-highlight"> pousser vers l’arrière le bouton situé entre le chien et le barillet</span>. Placer la main gauche sur le côté droit de l’arme, et avec vos doigts pousser le barillet pour le faire basculer hors de l’arme. Puis pousser la tige à l’extrémité du barillet pour faciliter l’extraction des munitions.',
text: 'Tenir de la main droite la crosse du revolver. Avec votre pouce droit, <span class="bold-highlight"> pousser vers l’arrière le bouton situé entre le chien et le barillet</span>. Placer la main gauche sur le côté droit de l’arme, et avec vos doigts <span class="bold-highlight">pousser le barillet pour le faire basculer</span> hors de l’arme. <span class="bold-highlight">Puis pousser la tige à l’extrémité du barillet</span> pour faciliter l’extraction des munitions.',
img: revolver2Img,
video: revolver2Video,
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/GuideFactice/ExtractMag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const typology = computed(() => resultStore.typology)
}
video {
width: 100% !important;
height: auto !important;
width: 100% !important;
height: auto !important;
}
a {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/GuideFactice/GuideFactice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const goToNextStep = () => (
class="footer-background"
>
<div
class="col-11 col-lg-6 footer-actions"
class="col-11 col-lg-6 footer-actions mx-auto"
>
<DsfrButton
class="m-1 flex justify-content-center"
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 @@ -56,7 +56,7 @@ function readInstruction () {
class="btn-read-instruction text-center"
>
<div
class="col-11 col-lg-6 footer-actions"
class="col-11 col-lg-6 mx-auto"
>
<UploadButton
ref="fileInput"
Expand Down
43 changes: 17 additions & 26 deletions frontend/src/views/Result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,38 +238,36 @@ function sendFeedback (isCorrect) {
<div class="footer-background">
<div
v-show="img"
class="col-11 col-lg-6 text-center"
:class="{ 'footer-actions': selectedAmmo === undefined }"
class="col-11 col-lg-6 mx-auto"
>
<router-link
v-slot="{navigate}"
class="navigate"
:to="{name: 'Instructions'}"
>
<DsfrButton
class="mx-4 my-1 flex justify-content-center"
class="mx-3 my-1 flex justify-content-center"
label="Reprendre une photo"
icon="ri-camera-fill"
:icon-right="true"
@click="navigate()"
/>
</router-link>
<div v-if="selectedAmmo !== undefined && isFactice !== ''">
<router-link
v-slot="{navigate}"
class="navigate"
:to="{name:'SelectAmmo'}"
>
<DsfrButton
class="mx-4 my-1 flex justify-content-center"
label="Retourner à l'étape précédente"
icon="ri-arrow-go-back-fill"
:icon-right="true"
secondary
@click="keepingLastStep(); navigate()"
/>
</router-link>
</div>
<router-link
v-if="selectedAmmo !== undefined && isFactice !== ''"
v-slot="{navigate}"
class="navigate"
:to="{name:'SelectAmmo'}"
>
<DsfrButton
class="mx-3 my-1 flex justify-content-center"
label="Retourner à l'étape précédente"
icon="ri-arrow-go-back-fill"
:icon-right="true"
secondary
@click="keepingLastStep(); navigate()"
/>
</router-link>
</div>
</div>
</div>
Expand Down Expand Up @@ -364,13 +362,6 @@ a {
text-shadow: 0 0 0 grey;
}
.footer-actions {
display: flex;
justify-content: space-around;
color: #000091;
z-index: 1
}
:deep(.fr-btn) {
white-space: nowrap;
width: 90%;
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/test-alive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo "# Test website is up"

sudo apt install -y ca-certificates
set +e
timeout=1200;
timeout=1800;
elapse=0;
range=10;
test_result=1
Expand Down

0 comments on commit 577a417

Please sign in to comment.