From 2753d26cc37e2e6ed06b16486e7862756fd5a4e7 Mon Sep 17 00:00:00 2001 From: alguilhot Date: Fri, 21 Oct 2022 18:24:15 +0200 Subject: [PATCH] ADD: Ajout de fichiers de constantes pour tester l'app --- bob_party/src/constCov.ts | 2 +- bob_party/src/constNat.ts | 11 +++++++++++ bob_party/src/constSex.ts | 9 +++++++++ bob_party/src/constUser.ts | 3 ++- 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 bob_party/src/constNat.ts create mode 100644 bob_party/src/constSex.ts diff --git a/bob_party/src/constCov.ts b/bob_party/src/constCov.ts index 5918814..886d568 100644 --- a/bob_party/src/constCov.ts +++ b/bob_party/src/constCov.ts @@ -5,7 +5,7 @@ import { User } from "./core/user"; let UserActu:User=new User("14", "leBg", "MdpDeOuf", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[0], tabSkinApp, undefined); -let UserTest:User=new User("48", "Wesh Wesh", "MdpDeOuf", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[1], tabSkinApp, undefined); +let UserTest:User=new User("48", "Wesh Wesh", "MdpDeOuf", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[5], tabSkinApp, undefined); let tabMessageTest:Message[]=[ new Message("Salut", UserActu, new Date(2022,12,12,11,30,40)), diff --git a/bob_party/src/constNat.ts b/bob_party/src/constNat.ts new file mode 100644 index 0000000..4ea8813 --- /dev/null +++ b/bob_party/src/constNat.ts @@ -0,0 +1,11 @@ + +const tabNat = [ + { label: "France", value: "Français" }, + { label: "Allemagne", value: "Allemand" }, + { label: "Espagne", value: "Espagnol" }, + { label: "Royaume-Uni", value: "Anglais" }, + { label: "États-Unis", value: "Américain" }, + { label: "Italie", value: "Italien" }, +] + +export default tabNat; \ No newline at end of file diff --git a/bob_party/src/constSex.ts b/bob_party/src/constSex.ts new file mode 100644 index 0000000..373c68d --- /dev/null +++ b/bob_party/src/constSex.ts @@ -0,0 +1,9 @@ + +const tabSex = [ + { label: "Homme", value: "Homme" }, + { label: "Femmme", value: "Femmme" }, + { label: "Non-binaire", value: "Non-binaire" }, + { label: "Autre", value: "Autre" }, +] + +export default tabSex; \ No newline at end of file diff --git a/bob_party/src/constUser.ts b/bob_party/src/constUser.ts index c4914ee..a78e513 100644 --- a/bob_party/src/constUser.ts +++ b/bob_party/src/constUser.ts @@ -2,11 +2,12 @@ import { Message } from "./core/message" import { Conversation } from "./core/conversation" import tabSkinApp from './constSkin' import { User } from "./core/user"; +import tabConv from "./constCov"; let UserActu:User=new User("14", "leBg", "MdpDeOuf", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[0], tabSkinApp, undefined); let UserTest:User=new User("48", "WeshWesh", "MdpDeOuf", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[2], tabSkinApp, undefined); -let Alban:User=new User("17", "Alban", "oui", "ouioui", "homme", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[1], tabSkinApp, undefined); +let Alban:User=new User("17", "Alban", "oui", "ouioui", "homme", new Date(2022,12,12), 555, 667, 12, tabSkinApp[1], tabSkinApp, tabConv); let Fefe63:User=new User("17", "Fefe63", "jesuishm", "ouioui", "homme", new Date(2022,12,12), 12222, 123324, 12, tabSkinApp[6], tabSkinApp, undefined); let tabUS:User[]=[UserActu, UserTest, Alban, Fefe63];