diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 3165c6e..809af17 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,6 +8,7 @@ "name": "clyde", "version": "0.0.0", "dependencies": { + "vite-plugin-top-level-await": "^1.4.1", "vue": "^3.4.15", "vue3-toastify": "^0.2.1" }, @@ -35,7 +36,6 @@ "cpu": [ "ppc64" ], - "dev": true, "optional": true, "os": [ "aix" @@ -51,7 +51,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "android" @@ -67,7 +66,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "android" @@ -83,7 +81,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "android" @@ -99,7 +96,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -115,7 +111,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -131,7 +126,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "freebsd" @@ -147,7 +141,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "freebsd" @@ -163,7 +156,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -179,7 +171,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -195,7 +186,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "linux" @@ -211,7 +201,6 @@ "cpu": [ "loong64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -227,7 +216,6 @@ "cpu": [ "mips64el" ], - "dev": true, "optional": true, "os": [ "linux" @@ -243,7 +231,6 @@ "cpu": [ "ppc64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -259,7 +246,6 @@ "cpu": [ "riscv64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -275,7 +261,6 @@ "cpu": [ "s390x" ], - "dev": true, "optional": true, "os": [ "linux" @@ -291,7 +276,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -307,7 +291,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "netbsd" @@ -323,7 +306,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "openbsd" @@ -339,7 +321,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "sunos" @@ -355,7 +336,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -371,7 +351,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "win32" @@ -387,7 +366,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -401,6 +379,22 @@ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, + "node_modules/@rollup/plugin-virtual": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-virtual/-/plugin-virtual-3.0.2.tgz", + "integrity": "sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==", + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.12.0.tgz", @@ -408,7 +402,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "android" @@ -421,7 +414,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "android" @@ -434,7 +426,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -447,7 +438,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -460,7 +450,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -473,7 +462,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -486,7 +474,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -499,7 +486,6 @@ "cpu": [ "riscv64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -512,7 +498,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -525,7 +510,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -538,7 +522,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -551,7 +534,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "win32" @@ -564,17 +546,212 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" ] }, + "node_modules/@swc/core": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.4.5.tgz", + "integrity": "sha512-4/JGkG4b1Z/QwCGgx+Ub46MlzrsZvBk5JSkxm9PcZ4bSX81c+4Y94Xm3iLp5Ka8NxzS5rD4mJSpcYuN3Tw0ceg==", + "hasInstallScript": true, + "dependencies": { + "@swc/counter": "^0.1.2", + "@swc/types": "^0.1.5" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.4.5", + "@swc/core-darwin-x64": "1.4.5", + "@swc/core-linux-arm-gnueabihf": "1.4.5", + "@swc/core-linux-arm64-gnu": "1.4.5", + "@swc/core-linux-arm64-musl": "1.4.5", + "@swc/core-linux-x64-gnu": "1.4.5", + "@swc/core-linux-x64-musl": "1.4.5", + "@swc/core-win32-arm64-msvc": "1.4.5", + "@swc/core-win32-ia32-msvc": "1.4.5", + "@swc/core-win32-x64-msvc": "1.4.5" + }, + "peerDependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.5.tgz", + "integrity": "sha512-toMSkbByHNfGXESyY1aiq5L3KutgijrNWB/THgdHIA1aIbwtrgMdFQfxpSE+INuuvWYi/Fxarv86EnU7ewbI0Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.4.5.tgz", + "integrity": "sha512-LN8cbnmb4Gav8UcbBc+L/DEthmzCWZz22rQr6fIEHMN+f0d71fuKnV0ca0hoKbpZn33dlzUmXQE53HRjlRUQbw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.5.tgz", + "integrity": "sha512-suRFkhBWmOQxlM4frpos1uqjmHfaEI8FuJ0LL5+yRE7IunNDeQJBKujGZt6taeuxo1KqC0N0Ajr8IluN2wrKpA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.5.tgz", + "integrity": "sha512-mLKxasQArDGmR6k9c0tkPVUdoo8VfUecocMG1Mx9NYvpidJNaZ3xq9nYM77v7uq1fQqrs/59DM1fJTNRWvv/UQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.5.tgz", + "integrity": "sha512-pgKuyRP7S29U/HMDTx+x8dFcklWxwB9cHFNCNWSE6bS4vHR93jc4quwPX9OEQX5CVHxm+c8+xof043I4OGkAXw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.5.tgz", + "integrity": "sha512-srR+YN86Oerzoghd0DPCzTbTp08feeJPSr9kkNdmtQWENOa4l/9cJV3+XY6vviw0sEjezPmYnc3SwRxJRaxvEw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.5.tgz", + "integrity": "sha512-aSf41LZtDeG5VXI4RCnzcu0UInPyNm3ip8Kw+sCK+sSqW9o7DgBkyqqbip3RZq84fNUHBQQQQdKXetltsyRRqw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.5.tgz", + "integrity": "sha512-vU3k8JwRUlTkJMfJQY9E4VvLrsIFOpfhnvbuXB84Amo1cJsz+bYQcC6RSvY7qpaDzDKFdUGbJco4uZTRoRf7Mg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.5.tgz", + "integrity": "sha512-856YRh3frRK2XbrSjDOFBgoAqWJLNRkaEtfGzXfeEoyJlOz0BFsSJHxKlHAFkxRfHe2li9DJRUQFTEhXn4OUWw==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.5.tgz", + "integrity": "sha512-j1+kV7jmWY1+NbXAvxAEW165781yLXVZKLcoXIZKmw18EatqMF6w8acg1gDG8C+Iw5aWLkRZVS4pijSh7+DtCQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" + }, + "node_modules/@swc/types": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==" + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, "node_modules/@vitejs/plugin-vue": { "version": "5.0.4", @@ -796,7 +973,6 @@ "version": "0.19.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", - "dev": true, "hasInstallScript": true, "bin": { "esbuild": "bin/esbuild" @@ -848,7 +1024,6 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "optional": true, "os": [ @@ -1090,7 +1265,6 @@ "version": "4.12.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.12.0.tgz", "integrity": "sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==", - "dev": true, "dependencies": { "@types/estree": "1.0.5" }, @@ -1202,11 +1376,22 @@ "requires-port": "^1.0.0" } }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/vite": { "version": "5.1.3", "resolved": "https://registry.npmjs.org/vite/-/vite-5.1.3.tgz", "integrity": "sha512-UfmUD36DKkqhi/F75RrxvPpry+9+tTkrXfMNZD+SboZqBCMsxKtO52XeGzzuh7ioz+Eo/SYDBbdb0Z7vgcDJew==", - "dev": true, "dependencies": { "esbuild": "^0.19.3", "postcss": "^8.4.35", @@ -1257,6 +1442,19 @@ } } }, + "node_modules/vite-plugin-top-level-await": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/vite-plugin-top-level-await/-/vite-plugin-top-level-await-1.4.1.tgz", + "integrity": "sha512-hogbZ6yT7+AqBaV6lK9JRNvJDn4/IJvHLu6ET06arNfo0t2IsyCaon7el9Xa8OumH+ESuq//SDf8xscZFE0rWw==", + "dependencies": { + "@rollup/plugin-virtual": "^3.0.2", + "@swc/core": "^1.3.100", + "uuid": "^9.0.1" + }, + "peerDependencies": { + "vite": ">=2.8" + } + }, "node_modules/vue": { "version": "3.4.19", "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.19.tgz", diff --git a/frontend/package.json b/frontend/package.json index d92904b..c02c826 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "vite-plugin-top-level-await": "^1.4.1", "vue": "^3.4.15", "vue3-toastify": "^0.2.1" }, diff --git a/frontend/public/i18n/EN.txt b/frontend/public/i18n/EN.txt index 8ffb03d..bc4eb40 100644 --- a/frontend/public/i18n/EN.txt +++ b/frontend/public/i18n/EN.txt @@ -1,8 +1,30 @@ # English translations (some examples to remove) -login.guest.login=log in -login.guest.register=register -login.guest.welcome=Please Register here -login.success=You are now registered as $name - +login.guest.signin=Sign in +login.guest.register=Register +login.guest.alregister=Already Registered +login.guest.welcome=WELCOME TO THE UNIVERSITY +login.guest.email=E-MAIL +login.guest.firstname= FIRSTNAME +login.guest.surname=SURNAME +login.guest.country=COUNTRY +login.guest.address=ADDRESS +login.guest.password=PASSWORD +login.guest.nextpage=Next Page +login.guest.lastpage=Last Page +login.guest.submit=Submit +login.guest.birthday=BIRTHDAY +login.guest.confirm=CONFIRM +app.home=Home +app.login=Login +app.notifications=Notifications +app.settings=Settings +app.messages=Messages +app.forum=Forum +app.schedules=Schedules +app.inscription.requests=Inscription Requests +request.moreInfos=More Infos +request.accept=Accept +request.refuse=Refuse #===================================================== + diff --git a/frontend/public/i18n/FR.txt b/frontend/public/i18n/FR.txt index caf4165..42ab8bf 100644 --- a/frontend/public/i18n/FR.txt +++ b/frontend/public/i18n/FR.txt @@ -1,8 +1,29 @@ # Traductions françaises (Quelques examples a enlever) -login.guest.login=s'identifier -login.guest.register=s'enregistrer -login.guest.welcome=Veuillez vous enregistrer ici -login.success=Vous êtes maintenant identifié comme $name - +login.guest.signin=SE CONNECTER +login.guest.register=S'enregistrer +login.guest.alregister=Déjà Enregistré +login.guest.welcome=BIENVENUE A L'UNIVERSITE +login.guest.email=E-MAIL +login.guest.firstname= PRENOM +login.guest.surname= NOM +login.guest.country= PAYS +login.guest.address=ADRESSE +login.guest.password= MOT DE PASSE +login.guest.nextpage=Prochaine Page +login.guest.lastpage=Derniere Page +login.guest.submit=Envoyer +login.guest.birthday=DATE DE NAISSANCE +login.guest.confirm=CONFIRMER +app.home=Home +app.login=Se connecter +app.notifications=Notifications +app.settings=Options +app.messages=Messages +app.forum=Forum +app.schedules=Horaires +app.inscription.requests=Demandes d'Inscription +request.moreInfos=Plus d'Infos +request.accept=Accepter +request.refuse=Refuser #===================================================== diff --git a/frontend/src/App.vue b/frontend/src/App.vue index a9d7a8a..7dcf25e 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -2,14 +2,25 @@ import 'https://kit.fontawesome.com/fb3bbd0a95.js' import { toast } from 'vue3-toastify'; import { ref } from 'vue' + import i18n from './i18n.js' + import Inscription from "./Inscription.vue" - const test = ref(); + + const test = ref(); async function draw(e) { test.value = (await fetch("http://localhost:8080/ping")); test.value = await test.value.json(); toast(test.value['txt']); } + + const home=ref(i18n("app.home")) + const notifications=ref(i18n("app.notifications")) + const settings=ref(i18n("app.settings")) + const login=ref(i18n("app.login")) + + + @@ -17,26 +28,30 @@ - + - + - + - + - + + + + + @@ -45,26 +60,31 @@ - Messages + {{i18n("app.messages")}} - Notifications + {{i18n("app.notifications")}} - Schedules + {{i18n("app.schedules")}} - Forum + {{i18n("app.forum")}} + + + {{i18n("app.inscription.requests")}} - Il FAUDRA INSERER LA PAGE ICI + + + @@ -193,4 +213,51 @@ transition-duration: .3s; padding-left: 5px; } + .theme-checkbox { + --toggle-size: 16px; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + width: 80px; + height: 40px; + background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2a2a2a)) no-repeat; + background: -o-linear-gradient(left, #efefef 50%, rgb(239, 60, 168) 50%) no-repeat; + background: linear-gradient(to right, #efefef 50%, rgb(239, 60, 168) 50%) no-repeat; + background-size: 205%; + background-position: 0; + -webkit-transition: 0.4s; + -o-transition: 0.4s; + transition: 0.4s; + border-radius: 99em; + position: relative; + cursor: pointer; + font-size: var(--toggle-size); + } + + .theme-checkbox::before { + content: ""; + width: 35px; + height: 35px; + position: absolute; + top: 2px; + left: 3px; + background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2rgb(239, 60, 168))) no-repeat; + background: -o-linear-gradient(left, #efefef 50%, rgb(239, 60, 168) 50%) no-repeat; + background: linear-gradient(to right, #efefef 50%, rgb(239, 60, 168) 50%) no-repeat; + background-size: 205%; + background-position: 100%; + border-radius: 50%; + -webkit-transition: 0.4s; + -o-transition: 0.4s; + transition: 0.4s; + } + + .theme-checkbox:checked::before { + left: calc(100% - 35px - 3px); + background-position: 0; + } + + .theme-checkbox:checked { + background-position: 100%; + } diff --git a/frontend/src/Inscription.vue b/frontend/src/Inscription.vue new file mode 100644 index 0000000..0ba7fce --- /dev/null +++ b/frontend/src/Inscription.vue @@ -0,0 +1,32 @@ + + + + + + diff --git a/frontend/src/Login.vue b/frontend/src/Login.vue index e0d949a..8f78264 100644 --- a/frontend/src/Login.vue +++ b/frontend/src/Login.vue @@ -1,39 +1,153 @@ + + + + + + - - SIGN IN - - USERNAME - - - - PASSWORD - - - - Register - - - - - + + + + + {{i18n("login.guest.signin")}} + + + ID / {{i18n("login.guest.email")}} + + + + {{i18n("login.guest.password")}} + + + + {{i18n("login.guest.register")}} + + + + + + + + + + + {{i18n("login.guest.welcome")}} + + + + {{i18n("login.guest.surname")}} + + + + {{i18n("login.guest.firstname")}} + + + + {{i18n("login.guest.birthday")}} + + + + {{i18n("login.guest.password")}} + + + + {{i18n("login.guest.confirm")}} {{i18n("login.guest.password")}} + + + + + {{i18n("login.guest.nextpage")}} + + + + {{i18n("login.guest.alregister")}} + + + + + {{i18n("login.guest.email")}} + + + + {{i18n("login.guest.address")}} + + + + {{i18n("login.guest.country")}} + + + + CURSUS + + Chemistry + Psychology + IT + + + + {{i18n("login.guest.submit")}} + + + {{i18n("login.guest.lastpage")}} + + + {{i18n("login.guest.alregister")}} + + + + + - diff --git a/frontend/src/Request.vue b/frontend/src/Request.vue new file mode 100644 index 0000000..8feec18 --- /dev/null +++ b/frontend/src/Request.vue @@ -0,0 +1,109 @@ + + + + + + + + {{id}} + {{type}} + {{lastName}} + {{firstName}} + {{i18n("request.moreInfos")}} + {{i18n("request.accept")}} + {{i18n("request.refuse")}} + + + + + + diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 7ff998b..c70f843 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -2,11 +2,13 @@ import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import topLevelAwait from 'vite-plugin-top-level-await' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), + topLevelAwait(), ], build: { rollupOptions:{
USERNAME
PASSWORD
ID / {{i18n("login.guest.email")}}
{{i18n("login.guest.password")}}
{{i18n("login.guest.surname")}}
{{i18n("login.guest.firstname")}}
{{i18n("login.guest.birthday")}}
{{i18n("login.guest.confirm")}} {{i18n("login.guest.password")}}
{{i18n("login.guest.email")}}
{{i18n("login.guest.address")}}
{{i18n("login.guest.country")}}
CURSUS