From 4a2a3e257b0f145c2430de4574865e036e265616 Mon Sep 17 00:00:00 2001 From: Sebastien Arod Date: Tue, 18 Jun 2024 10:11:39 +0200 Subject: [PATCH] =?UTF-8?q?refacotr:=20d=C3=A9place=20Acad=C3=A9mie=20et?= =?UTF-8?q?=20Departements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Academie.ts | 22 ++++++++++++++ src/Departement.ts | 49 ++++++++++++++++++++++++++++++ src/Resistant.ts | 75 ++-------------------------------------------- 3 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 src/Academie.ts create mode 100644 src/Departement.ts diff --git a/src/Academie.ts b/src/Academie.ts new file mode 100644 index 0000000..125751c --- /dev/null +++ b/src/Academie.ts @@ -0,0 +1,22 @@ +export type Academie = + | "Aix-Marseille" + | "Amiens" + | "Besançon" + | "Bordeaux" + | "Clermont-Ferrand" + | "Corse" + | "Créteil" + | "Dijon" + | "Grenoble" + | "Limoges" + | "Lyon" + | "Montpellier" + | "Nancy-Metz" + | "Nantes" + | "Orléans-Tours" + | "Poitiers" + | "Rennes" + | "Normandie" + | "Strasbourg" + | "Toulouse" + | "Versailles"; diff --git a/src/Departement.ts b/src/Departement.ts new file mode 100644 index 0000000..983e856 --- /dev/null +++ b/src/Departement.ts @@ -0,0 +1,49 @@ +export type Departement = + | "Ardèche" + | "Ariège" + | "Aude" + | "Aveyron" + | "Bouches-du-Rhône" + | "Charente-Maritime" + | "Cher" + | "Corse" + | "Creuse" + | "Côtes-d'Armor" + | "Côte-d'Or" + | "Deux-Sèvres" + | "Dordogne" + | "Drôme" + | "Doubs" + | "Eure" + | "Finistère" + | "Haut-Rhin" + | "Haute-Garonne" + | "Haute-Savoie" + | "Haute-Vienne" + | "Hautes-Alpes" + | "Ille-et-Vilaine" + | "Isère" + | "Jura" + | "Landes" + | "Loire" + | "Loire-Atlantique" + | "Lot" + | "Maine-et-Loire" + | "Mayenne" + | "Meurthe-et-Moselle" + | "Meuse" + | "Morbihan" + | "Moselle" + | "Oise" + | "Puy-de-Dôme" + | "Rhône" + | "Seine-et-Marne" + | "Seine-Maritime" + | "Seine-Saint-Denis" + | "Tarn" + | "Tarn-et-Garonne" + | "Val-de-Marne" + | "Vaucluse" + | "Vendée" + | "Vosges" + | "Yvelines"; diff --git a/src/Resistant.ts b/src/Resistant.ts index e8ed83f..b855761 100644 --- a/src/Resistant.ts +++ b/src/Resistant.ts @@ -1,78 +1,7 @@ import { formatWithOptions, isAfter, parse } from "date-fns/fp"; import { fr } from "date-fns/locale"; - -export type Departement = - | "Ardèche" - | "Ariège" - | "Aude" - | "Aveyron" - | "Bouches-du-Rhône" - | "Charente-Maritime" - | "Cher" - | "Corse" - | "Creuse" - | "Côtes-d'Armor" - | "Côte-d'Or" - | "Deux-Sèvres" - | "Dordogne" - | "Drôme" - | "Doubs" - | "Eure" - | "Finistère" - | "Haut-Rhin" - | "Haute-Garonne" - | "Haute-Savoie" - | "Haute-Vienne" - | "Hautes-Alpes" - | "Ille-et-Vilaine" - | "Isère" - | "Jura" - | "Landes" - | "Loire" - | "Loire-Atlantique" - | "Lot" - | "Maine-et-Loire" - | "Mayenne" - | "Meurthe-et-Moselle" - | "Meuse" - | "Morbihan" - | "Moselle" - | "Oise" - | "Puy-de-Dôme" - | "Rhône" - | "Seine-et-Marne" - | "Seine-Maritime" - | "Seine-Saint-Denis" - | "Tarn" - | "Tarn-et-Garonne" - | "Val-de-Marne" - | "Vaucluse" - | "Vendée" - | "Vosges" - | "Yvelines"; - -export type Academie = - | "Aix-Marseille" - | "Amiens" - | "Besançon" - | "Bordeaux" - | "Clermont-Ferrand" - | "Corse" - | "Créteil" - | "Dijon" - | "Grenoble" - | "Limoges" - | "Lyon" - | "Montpellier" - | "Nancy-Metz" - | "Nantes" - | "Orléans-Tours" - | "Poitiers" - | "Rennes" - | "Normandie" - | "Strasbourg" - | "Toulouse" - | "Versailles"; +import { Academie } from "./Academie"; +import { Departement } from "./Departement"; export interface Resistant { id: string;