Skip to content

Commit 1f21ba4

Browse files
committed
Merge branch 'dev'
2 parents 1464fba + cfb1055 commit 1f21ba4

File tree

107 files changed

+107518
-35830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+107518
-35830
lines changed

public/sitemaps/sitemap-01.xml

+1,206-402
Large diffs are not rendered by default.

public/sitemaps/sitemap-02.xml

+2,406-802
Large diffs are not rendered by default.

public/sitemaps/sitemap-03.xml

+963-321
Large diffs are not rendered by default.

public/sitemaps/sitemap-04.xml

+603-201
Large diffs are not rendered by default.

public/sitemaps/sitemap-05.xml

+489-163
Large diffs are not rendered by default.

public/sitemaps/sitemap-06.xml

+510-170
Large diffs are not rendered by default.

public/sitemaps/sitemap-07.xml

+1,089-363
Large diffs are not rendered by default.

public/sitemaps/sitemap-08.xml

+1,371-457
Large diffs are not rendered by default.

public/sitemaps/sitemap-09.xml

+1,017-339
Large diffs are not rendered by default.

public/sitemaps/sitemap-10.xml

+1,299-433
Large diffs are not rendered by default.

public/sitemaps/sitemap-11.xml

+1,305-435
Large diffs are not rendered by default.

public/sitemaps/sitemap-12.xml

+1,044-348
Large diffs are not rendered by default.

public/sitemaps/sitemap-13.xml

+453-151
Large diffs are not rendered by default.

public/sitemaps/sitemap-14.xml

+1,650-550
Large diffs are not rendered by default.

public/sitemaps/sitemap-15.xml

+780-260
Large diffs are not rendered by default.

public/sitemaps/sitemap-16.xml

+1,107-369
Large diffs are not rendered by default.

public/sitemaps/sitemap-17.xml

+1,416-472
Large diffs are not rendered by default.

public/sitemaps/sitemap-18.xml

+876-292
Large diffs are not rendered by default.

public/sitemaps/sitemap-19.xml

+846-282
Large diffs are not rendered by default.

public/sitemaps/sitemap-21.xml

+2,106-702
Large diffs are not rendered by default.

public/sitemaps/sitemap-22.xml

+1,050-350
Large diffs are not rendered by default.

public/sitemaps/sitemap-23.xml

+771-257
Large diffs are not rendered by default.

public/sitemaps/sitemap-24.xml

+1,551-517
Large diffs are not rendered by default.

public/sitemaps/sitemap-25.xml

+1,737-579
Large diffs are not rendered by default.

public/sitemaps/sitemap-26.xml

+1,095-365
Large diffs are not rendered by default.

public/sitemaps/sitemap-27.xml

+1,821-607
Large diffs are not rendered by default.

public/sitemaps/sitemap-28.xml

+1,113-371
Large diffs are not rendered by default.

public/sitemaps/sitemap-29.xml

+846-282
Large diffs are not rendered by default.

public/sitemaps/sitemap-2A.xml

+450-150
Large diffs are not rendered by default.

public/sitemaps/sitemap-2B.xml

+729-243
Large diffs are not rendered by default.

public/sitemaps/sitemap-30.xml

+1,080-360
Large diffs are not rendered by default.

public/sitemaps/sitemap-31.xml

+1,782-594
Large diffs are not rendered by default.

public/sitemaps/sitemap-32.xml

+1,386-462
Large diffs are not rendered by default.

public/sitemaps/sitemap-33.xml

+1,641-547
Large diffs are not rendered by default.

public/sitemaps/sitemap-34.xml

+1,062-354
Large diffs are not rendered by default.

public/sitemaps/sitemap-35.xml

+1,017-339
Large diffs are not rendered by default.

public/sitemaps/sitemap-36.xml

+729-243
Large diffs are not rendered by default.

public/sitemaps/sitemap-37.xml

+837-279
Large diffs are not rendered by default.

public/sitemaps/sitemap-38.xml

+1,575-525
Large diffs are not rendered by default.

public/sitemaps/sitemap-39.xml

+1,536-512
Large diffs are not rendered by default.

public/sitemaps/sitemap-40.xml

+984-328
Large diffs are not rendered by default.

public/sitemaps/sitemap-41.xml

+813-271
Large diffs are not rendered by default.

public/sitemaps/sitemap-42.xml

+987-329
Large diffs are not rendered by default.

public/sitemaps/sitemap-43.xml

+792-264
Large diffs are not rendered by default.

public/sitemaps/sitemap-44.xml

+636-212
Large diffs are not rendered by default.

public/sitemaps/sitemap-45.xml

+987-329
Large diffs are not rendered by default.

public/sitemaps/sitemap-46.xml

+948-316
Large diffs are not rendered by default.

public/sitemaps/sitemap-47.xml

+960-320
Large diffs are not rendered by default.

public/sitemaps/sitemap-48.xml

+495-165
Large diffs are not rendered by default.

public/sitemaps/sitemap-49.xml

+651-217
Large diffs are not rendered by default.

public/sitemaps/sitemap-50.xml

+1,407-469
Large diffs are not rendered by default.

public/sitemaps/sitemap-51.xml

+1,851-617
Large diffs are not rendered by default.

public/sitemaps/sitemap-52.xml

+1,296-432
Large diffs are not rendered by default.

public/sitemaps/sitemap-53.xml

+735-245
Large diffs are not rendered by default.

public/sitemaps/sitemap-54.xml

+1,791-597
Large diffs are not rendered by default.

public/sitemaps/sitemap-55.xml

+1,503-501
Large diffs are not rendered by default.

public/sitemaps/sitemap-56.xml

+759-253
Large diffs are not rendered by default.

public/sitemaps/sitemap-57.xml

+2,199-733
Large diffs are not rendered by default.

public/sitemaps/sitemap-58.xml

+930-310
Large diffs are not rendered by default.

public/sitemaps/sitemap-59.xml

+2,001-667
Large diffs are not rendered by default.

public/sitemaps/sitemap-60.xml

+2,067-689
Large diffs are not rendered by default.

public/sitemaps/sitemap-61.xml

+1,209-403
Large diffs are not rendered by default.

public/sitemaps/sitemap-62.xml

+2,676-892
Large diffs are not rendered by default.

public/sitemaps/sitemap-63.xml

+1,401-467
Large diffs are not rendered by default.

public/sitemaps/sitemap-64.xml

+1,644-548
Large diffs are not rendered by default.

public/sitemaps/sitemap-65.xml

+1,413-471
Large diffs are not rendered by default.

public/sitemaps/sitemap-66.xml

+684-228
Large diffs are not rendered by default.

public/sitemaps/sitemap-67.xml

+1,596-532
Large diffs are not rendered by default.

public/sitemaps/sitemap-68.xml

+1,128-376
Large diffs are not rendered by default.

public/sitemaps/sitemap-69.xml

+840-280
Large diffs are not rendered by default.

public/sitemaps/sitemap-70.xml

+1,629-543
Large diffs are not rendered by default.

public/sitemaps/sitemap-71.xml

+1,716-572
Large diffs are not rendered by default.

public/sitemaps/sitemap-72.xml

+1,074-358
Large diffs are not rendered by default.

public/sitemaps/sitemap-73.xml

+837-279
Large diffs are not rendered by default.

public/sitemaps/sitemap-74.xml

+876-292
Large diffs are not rendered by default.

public/sitemaps/sitemap-75.xml

+63-21
Large diffs are not rendered by default.

public/sitemaps/sitemap-76.xml

+2,175-725
Large diffs are not rendered by default.

public/sitemaps/sitemap-77.xml

+1,524-508
Large diffs are not rendered by default.

public/sitemaps/sitemap-78.xml

+828-276
Large diffs are not rendered by default.

public/sitemaps/sitemap-79.xml

+801-267
Large diffs are not rendered by default.

public/sitemaps/sitemap-80.xml

+2,328-776
Large diffs are not rendered by default.

public/sitemaps/sitemap-81.xml

+981-327
Large diffs are not rendered by default.

public/sitemaps/sitemap-82.xml

+588-196
Large diffs are not rendered by default.

public/sitemaps/sitemap-83.xml

+489-163
Large diffs are not rendered by default.

public/sitemaps/sitemap-84.xml

+459-153
Large diffs are not rendered by default.

public/sitemaps/sitemap-85.xml

+789-263
Large diffs are not rendered by default.

public/sitemaps/sitemap-86.xml

+831-277
Large diffs are not rendered by default.

public/sitemaps/sitemap-87.xml

+600-200
Large diffs are not rendered by default.

public/sitemaps/sitemap-88.xml

+1,527-509
Large diffs are not rendered by default.

public/sitemaps/sitemap-89.xml

+1,281-427
Large diffs are not rendered by default.

public/sitemaps/sitemap-90.xml

+306-102
Large diffs are not rendered by default.

public/sitemaps/sitemap-91.xml

+588-196
Large diffs are not rendered by default.

public/sitemaps/sitemap-92.xml

+123-41
Large diffs are not rendered by default.

public/sitemaps/sitemap-93.xml

+126-42
Large diffs are not rendered by default.

public/sitemaps/sitemap-94.xml

+150-50
Large diffs are not rendered by default.

public/sitemaps/sitemap-95.xml

+576-192
Large diffs are not rendered by default.

public/sitemaps/sitemap-971.xml

+99-33
Large diffs are not rendered by default.

public/sitemaps/sitemap-972.xml

+111-37
Large diffs are not rendered by default.

public/sitemaps/sitemap-973.xml

+69-23
Large diffs are not rendered by default.

public/sitemaps/sitemap-974.xml

+129-43
Large diffs are not rendered by default.

public/sitemaps/sitemap-976.xml

+54-18
Large diffs are not rendered by default.

src/components/vmd-search.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {css, customElement, html, LitElement, internalProperty, property } from 'lit-element';
2-
import {SearchRequest, SearchType} from '../state/State'
2+
import {SearchRequest, SearchType, TYPE_RECHERCHE_PAR_DEFAUT} from '../state/State'
33
import {
44
Commune,
55
Departement,
@@ -57,14 +57,14 @@ export class VmdSearchComponent extends LitElement {
5757
private onCommuneSelected (commune: Commune) {
5858
this.currentSelection = commune
5959
this.dispatchEvent(new CustomEvent<SearchRequest.ByCommune>('on-search', {
60-
detail: SearchRequest.ByCommune(commune, this.currentSearchType || 'standard', this.currentValue?.date)
60+
detail: SearchRequest.ByCommune(commune, this.currentSearchType || TYPE_RECHERCHE_PAR_DEFAUT, this.currentValue?.date)
6161
}))
6262
}
6363

6464
private onDepartementSelected (departement: Departement) {
6565
this.currentSelection = departement
6666
this.dispatchEvent(new CustomEvent<SearchRequest.ByDepartement>('on-search', {
67-
detail: SearchRequest.ByDepartement(departement, this.currentSearchType || 'standard', this.currentValue?.date)
67+
detail: SearchRequest.ByDepartement(departement, this.currentSearchType || TYPE_RECHERCHE_PAR_DEFAUT, this.currentValue?.date)
6868
}))
6969
}
7070
}

src/routing/DynamicURLs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Strings} from "../utils/Strings";
44
export const rechercheDepartementDescriptor = {
55
routerUrl: '/centres-vaccination-covid-dpt:codeDpt-:nomDpt/recherche-:typeRecherche',
66
urlGenerator: ({codeDepartement, nomDepartement}: {codeDepartement: string, nomDepartement: string}) => {
7-
return ['standard', '18_55'].map(typeRecherche => {
7+
return ['standard', /* '18_55' */, 'dose_rappel', 'dose_1_ou_2'].map(typeRecherche => {
88
return `/centres-vaccination-covid-dpt${codeDepartement}-${Strings.toReadableURLPathValue(nomDepartement)}/recherche-${typeRecherche}`;
99
});
1010
}
@@ -13,7 +13,7 @@ export const rechercheDepartementDescriptor = {
1313
export const rechercheCommuneDescriptor = {
1414
routerUrl: '/centres-vaccination-covid-dpt:codeDpt-:nomDpt/commune:codeCommune-:codePostal-:nomCommune/recherche-:typeRecherche/en-triant-par-:codeTriCentre',
1515
urlGenerator: ({codeDepartement, nomDepartement, codeCommune, codePostal, nomCommune, tri}: {codeDepartement: string, nomDepartement: string, codeCommune: string, codePostal: string, nomCommune: string, tri: CodeTriCentre}) => {
16-
return ['standard', '18_55'].map(typeRecherche => {
16+
return ['standard', /* '18_55' */, 'dose_rappel', 'dose_1_ou_2'].map(typeRecherche => {
1717
return `/centres-vaccination-covid-dpt${codeDepartement}-${Strings.toReadableURLPathValue(nomDepartement)}/commune${codeCommune}-${codePostal}-${Strings.toReadableURLPathValue(nomCommune)}/recherche-${typeRecherche}/en-triant-par-${tri}`;
1818
})
1919
}

src/state/State.ts

+42-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function transformLieu(rawLieu: any): Lieu {
151151

152152
export type Coordinates = { latitude: number, longitude: number }
153153
export type Location = Coordinates & {city: string, cp: string}
154-
export type TagCreneau = "preco18_55"|"all";
154+
export type TagCreneau = /*"preco18_55"|*/"all"|"first_or_second_dose"|"third_dose";
155155
export type StatsCreneauxQuotidienParTag = {
156156
tag: TagCreneau;
157157
creneaux: number;
@@ -284,14 +284,18 @@ export const libelleUrlPathDeCommune = (commune: Commune) => {
284284
return Strings.toReadableURLPathValue(commune.nom);
285285
}
286286

287+
/*
287288
type VaccineCategory = {code: SearchType, libelle: string};
288289
export const VACCINE_CATEGORIES: VaccineCategory[] = [
289290
{ code: "18_55", libelle: "Préconisé pour les 18-55 ans" },
290291
// { code: "16_18", libelle: "Préconisé pour les 16-18 ans" },
291292
{ code: "standard", libelle: "Tous" },
292293
];
294+
*/
295+
296+
export type SearchType = "standard" /*| "18_55"|*/ |"dose_rappel"|"dose_1_ou_2";
297+
export const TYPE_RECHERCHE_PAR_DEFAUT: SearchType = "dose_rappel";
293298

294-
export type SearchType = "standard"|"18_55";
295299
export type SearchTypeConfig = {
296300
tagCreneau: TagCreneau;
297301
cardAppointmentsExtractor: (lieu: Lieu, daySelectorDisponible: boolean, creneauxParLieux: CreneauxParLieu[]) => number;
@@ -324,6 +328,7 @@ const SEARCH_TYPE_CONFIGS: {[type in SearchType]: SearchTypeConfig & {type: type
324328
searchResultsByCity: 'search_results_by_city'
325329
}
326330
},
331+
/*
327332
'18_55': {
328333
type: '18_55',
329334
tagCreneau: "preco18_55",
@@ -344,6 +349,41 @@ const SEARCH_TYPE_CONFIGS: {[type in SearchType]: SearchTypeConfig & {type: type
344349
searchResultsByCity: 'search_results_by_city_18_55'
345350
}
346351
},
352+
*/
353+
'dose_rappel': {
354+
type: 'dose_rappel',
355+
tagCreneau: 'third_dose',
356+
cardAppointmentsExtractor: (lieu, daySelectorDisponible, creneauxParLieux) => daySelectorDisponible
357+
?creneauxParLieux.find(cpl => cpl.lieu === lieu.internal_id)?.creneaux || 0
358+
:lieu.appointment_count,
359+
lieuConsidereCommeDisponible: (lieu, creneauxParLieu) => lieu.appointment_by_phone_only || (creneauxParLieu?.creneaux || 0) > 0,
360+
pathParam: 'dose_rappel',
361+
standardTabSelected: true,
362+
excludeAppointmentByPhoneOnly: false,
363+
jourSelectionnable: true,
364+
theme: 'standard',
365+
analytics: {
366+
searchResultsByDepartement: 'search_results_by_department_third_shot',
367+
searchResultsByCity: 'search_results_by_city_third_shot'
368+
}
369+
},
370+
'dose_1_ou_2': {
371+
type: 'dose_1_ou_2',
372+
tagCreneau: 'first_or_second_dose',
373+
cardAppointmentsExtractor: (lieu, daySelectorDisponible, creneauxParLieux) => daySelectorDisponible
374+
?creneauxParLieux.find(cpl => cpl.lieu === lieu.internal_id)?.creneaux || 0
375+
:lieu.appointment_count,
376+
lieuConsidereCommeDisponible: (lieu, creneauxParLieu) => lieu.appointment_by_phone_only || (creneauxParLieu?.creneaux || 0) > 0,
377+
pathParam: 'dose_1_ou_2',
378+
standardTabSelected: true,
379+
excludeAppointmentByPhoneOnly: false,
380+
jourSelectionnable: true,
381+
theme: 'standard',
382+
analytics: {
383+
searchResultsByDepartement: 'search_results_by_department_first_or_second_shot',
384+
searchResultsByCity: 'search_results_by_city_first_or_second_shot'
385+
}
386+
}
347387
};
348388
export function searchTypeConfigFromPathParam(pathParams: Record<string,string>): SearchTypeConfig & {type: SearchType} {
349389
const config = Object.values(SEARCH_TYPE_CONFIGS).find(config => pathParams && config.pathParam === pathParams['typeRecherche']);

src/views/vmd-home.view.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PLATEFORMES, SearchType,
77
SearchRequest,
88
State,
9-
StatsLieu, Departement,
9+
StatsLieu, Departement, TYPE_RECHERCHE_PAR_DEFAUT,
1010
} from "../state/State";
1111
import {CSS_Global, CSS_Home} from "../styles/ConstructibleStyleSheets";
1212

@@ -28,7 +28,7 @@ export class VmdHomeView extends LitElement {
2828
@property({type: Array, attribute: false}) statsLieu: StatsLieu|undefined = undefined;
2929

3030
private async onSearch (event: CustomEvent<SearchRequest>) {
31-
const searchType: SearchType = 'standard';
31+
const searchType: SearchType = TYPE_RECHERCHE_PAR_DEFAUT;
3232
if (SearchRequest.isByDepartement(event.detail)) {
3333
const departement = event.detail.departement
3434
Router.navigateToRendezVousAvecDepartement(departement.code_departement, libelleUrlPathDuDepartement(departement), searchType)

src/views/vmd-rdv.view.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
SearchTypeConfig,
3232
RendezVousDuJour,
3333
StatsCreneauxLieuxParJour,
34-
countCreneauxFromCreneauxParTag
34+
countCreneauxFromCreneauxParTag, TYPE_RECHERCHE_PAR_DEFAUT
3535
} from "../state/State";
3636
import {formatDistanceToNow, parseISO} from 'date-fns'
3737
import { fr } from 'date-fns/locale'
@@ -230,7 +230,7 @@ export abstract class AbstractVmdRdvView extends LitElement {
230230
}
231231

232232
get searchTypeConfig() {
233-
return searchTypeConfigFromSearch(this.currentSearch, 'standard')
233+
return searchTypeConfigFromSearch(this.currentSearch, TYPE_RECHERCHE_PAR_DEFAUT)
234234
}
235235

236236
async onSearchSelected (event: CustomEvent<SearchRequest>) {
@@ -282,6 +282,18 @@ export abstract class AbstractVmdRdvView extends LitElement {
282282
<button class="btn btn-primary">+</button>
283283
</div>
284284
</div>`:html``}
285+
<div class="rdvForm-fields row align-items-center mb-3 mb-md-5">
286+
<label class="col-sm-24 col-md-auto mb-md-1 label-for-search p-3 ps-1">
287+
Vous recherchez :
288+
</label>
289+
<div class="col">
290+
<vmd-button-switch class="mb-3" style="display: inline-block"
291+
codeSelectionne="dose_rappel"
292+
.options="${[{code: 'dose_rappel', libelle: 'Une dose de rappel'}, {code: 'dose_1_ou_2', libelle: 'Une 1ère dose de vaccin'}]}"
293+
@changed="${(e: CustomEvent<{value: SearchType}>) => this.updateSearchTypeTo(e.detail.value)}">
294+
</vmd-button-switch>
295+
</div>
296+
</div>
285297
</div>
286298
287299
<div class="spacer mt-5 mb-5"></div>

tools/README.md

+1-1

0 commit comments

Comments
 (0)