From ab8ada9aff1d1de86d26995d4556c30b647b42dd Mon Sep 17 00:00:00 2001 From: David Mendy Date: Thu, 23 Nov 2023 14:21:13 +0100 Subject: [PATCH 1/2] feat: :sparkles: add contact path for weapon expert --- frontend/src/components.d.ts | 1 + frontend/src/components/ContactExpert.vue | 88 +++++++++++ frontend/src/router/index.ts | 14 ++ .../GuideContactExpert/ExpertSituationGN.vue | 142 ++++++++++++++++++ .../GuideContactExpert/ExpertSituationPN.vue | 126 ++++++++++++++++ .../SecuringAchievement.vue | 11 ++ 6 files changed, 382 insertions(+) create mode 100644 frontend/src/components/ContactExpert.vue create mode 100644 frontend/src/views/GuideContactExpert/ExpertSituationGN.vue create mode 100644 frontend/src/views/GuideContactExpert/ExpertSituationPN.vue diff --git a/frontend/src/components.d.ts b/frontend/src/components.d.ts index 1404e2ec..d7498099 100644 --- a/frontend/src/components.d.ts +++ b/frontend/src/components.d.ts @@ -8,6 +8,7 @@ export {} declare module 'vue' { export interface GlobalComponents { AskingExpert: typeof import('./components/AskingExpert.vue')['default'] + ContactExpert: typeof import('./components/ContactExpert.vue')['default'] FooterMES: typeof import('./components/FooterMES.vue')['default'] HeaderMain: typeof import('./components/HeaderMain.vue')['default'] OnboardingSwiper: typeof import('./components/OnboardingSwiper.vue')['default'] diff --git a/frontend/src/components/ContactExpert.vue b/frontend/src/components/ContactExpert.vue new file mode 100644 index 00000000..124206c3 --- /dev/null +++ b/frontend/src/components/ContactExpert.vue @@ -0,0 +1,88 @@ + + + diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 72d7430d..b63a8c87 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -23,6 +23,8 @@ const IdentificationTypologyResult = () => import('@/views/GuideIdentificationFi const IdentificationFinalResult = () => import('@/views/GuideIdentificationFirearm/IdentificationFinalResult.vue') const IdentificationFurtherInformations = () => import('@/views/GuideIdentificationFirearm/IdentificationFurtherInformations.vue') const IdentificationSelectAmmo = () => import('@/views/GuideIdentificationFirearm/IdentificationSelectAmmo.vue') +const ExpertSituationPN = () => import('@/views/GuideContactExpert/ExpertSituationPN.vue') +const ExpertSituationGN = () => import('@/views/GuideContactExpert/ExpertSituationGN.vue') const routes: Parameters [0]['routes'] = [ { @@ -171,6 +173,18 @@ const routes: Parameters [0]['routes'] = [ wholeLogo: true, }, }, + + // tutorial to contact expert + { + path: '/guide-contact-pn', + name: 'ExpertSituationPN', + component: ExpertSituationPN, + }, + { + path: '/guide-contact-gn', + name: 'ExpertSituationGN', + component: ExpertSituationGN, + }, ] const router = createRouter({ diff --git a/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue b/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue new file mode 100644 index 00000000..ab0c63bd --- /dev/null +++ b/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/frontend/src/views/GuideContactExpert/ExpertSituationPN.vue b/frontend/src/views/GuideContactExpert/ExpertSituationPN.vue new file mode 100644 index 00000000..709c9796 --- /dev/null +++ b/frontend/src/views/GuideContactExpert/ExpertSituationPN.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue b/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue index 798c29a4..63bf64dc 100644 --- a/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue +++ b/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue @@ -1,11 +1,21 @@ @@ -32,6 +42,7 @@ const typology = computed(() => resultStore.typology) class="img-deco" > +

From 79ececf9cbfb0f9e849afadfeea0fdcc32a250df Mon Sep 17 00:00:00 2001 From: David Mendy Date: Tue, 28 Nov 2023 14:32:23 +0100 Subject: [PATCH 2/2] feat: :sparkles: add expert contact path for police and gendarmerie --- frontend/src/router/index.ts | 12 + .../views/GuideContactExpert/ExpertPTS.vue | 275 +++++++++++++++++ .../views/GuideContactExpert/ExpertPTSNU.vue | 285 ++++++++++++++++++ .../GuideContactExpert/ExpertSituationGN.vue | 39 ++- .../GuideContactExpert/ExpertSituationPN.vue | 71 +---- .../SecuringAchievement.vue | 18 +- 6 files changed, 616 insertions(+), 84 deletions(-) create mode 100644 frontend/src/views/GuideContactExpert/ExpertPTS.vue create mode 100644 frontend/src/views/GuideContactExpert/ExpertPTSNU.vue diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index b63a8c87..1a4249ae 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -25,6 +25,8 @@ const IdentificationFurtherInformations = () => import('@/views/GuideIdentificat const IdentificationSelectAmmo = () => import('@/views/GuideIdentificationFirearm/IdentificationSelectAmmo.vue') const ExpertSituationPN = () => import('@/views/GuideContactExpert/ExpertSituationPN.vue') const ExpertSituationGN = () => import('@/views/GuideContactExpert/ExpertSituationGN.vue') +const ExpertPTS = () => import('@/views/GuideContactExpert/ExpertPTS.vue') +const ExpertPTSNU = () => import('@/views/GuideContactExpert/ExpertPTSNU.vue') const routes: Parameters [0]['routes'] = [ { @@ -185,6 +187,16 @@ const routes: Parameters [0]['routes'] = [ name: 'ExpertSituationGN', component: ExpertSituationGN, }, + { + path: '/guide-contact-pn/urgence', + name: 'ExpertPTS', + component: ExpertPTS, + }, + { + path: '/guide-contact-pn/non-urgence', + name: 'ExpertPTSNU', + component: ExpertPTSNU, + }, ] const router = createRouter({ diff --git a/frontend/src/views/GuideContactExpert/ExpertPTS.vue b/frontend/src/views/GuideContactExpert/ExpertPTS.vue new file mode 100644 index 00000000..9f737e68 --- /dev/null +++ b/frontend/src/views/GuideContactExpert/ExpertPTS.vue @@ -0,0 +1,275 @@ + + + + + diff --git a/frontend/src/views/GuideContactExpert/ExpertPTSNU.vue b/frontend/src/views/GuideContactExpert/ExpertPTSNU.vue new file mode 100644 index 00000000..dea9df52 --- /dev/null +++ b/frontend/src/views/GuideContactExpert/ExpertPTSNU.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue b/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue index ab0c63bd..c761a6f1 100644 --- a/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue +++ b/frontend/src/views/GuideContactExpert/ExpertSituationGN.vue @@ -25,8 +25,10 @@ function onClose () { Contact à un expert arme

- Vous rencontrez une situation et souhaitez contacter un expert arme ?
-
Sélectionnez tout d'abord votre situation actuelle ci-dessous + Vous rencontrez une situation et souhaitez contacter un expert arme ? +


+

+ Sélectionnez tout d'abord votre situation actuelle ci-dessous

Contact à un expert arme -

- Vous trouverez ci-dessous le numéro de téléphone de la permanance, ainsi que l'adresse mail de l'IRGCN
-

-

ircgn@mail.com

+

+ Vous trouverez ci-dessous le numéro de téléphone de la permanance, ainsi que l'adresse mail de l'IRGCN
+

+

+ 01 00 00 00 00
+ ircgn@mail.com +