From 5b140bb8b940fd9bd8e4e5e6f2a0ff269a8e9212 Mon Sep 17 00:00:00 2001 From: Jerome Villiseck Date: Thu, 4 Jul 2024 14:32:14 +0200 Subject: [PATCH 1/2] =?UTF-8?q?-=20Mise=20en=20place=20du=20store=20pour?= =?UTF-8?q?=20l'utilisateur=20-=20Refactor=20complet=20de=20la=20gestion?= =?UTF-8?q?=20des=20utilisateurs=20-=20Refactor=20de=20l'authentification?= =?UTF-8?q?=20et=20de=20la=20persistance=20des=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 51 ++++++++++++++++++++++++ package.json | 1 + src/App.vue | 47 ++++------------------ src/components/Header.vue | 14 ++++--- src/components/Navbar.vue | 9 +++-- src/components/Simulation.vue | 1 - src/main.js | 5 ++- src/router/index.js | 25 +++++------- src/service/DemandesService.js | 24 ++++++----- src/store/authStore.js | 30 ++++++++++++++ src/views/Exemplarisation/ExempSteps.vue | 2 - src/views/Utilisateur/Login.vue | 24 +++++++---- 12 files changed, 147 insertions(+), 86 deletions(-) create mode 100644 src/store/authStore.js diff --git a/package-lock.json b/package-lock.json index bfa747f..82b8f9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@mdi/font": "7.0.96", + "pinia": "^2.1.7", "roboto-fontface": "*", "vue": "^3.4.26", "vue-i18n": "^9.13.1", @@ -1641,6 +1642,56 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pinia": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.1.7.tgz", + "integrity": "sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==", + "dependencies": { + "@vue/devtools-api": "^6.5.0", + "vue-demi": ">=0.14.5" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@vue/composition-api": "^1.4.0", + "typescript": ">=4.4.4", + "vue": "^2.6.14 || ^3.3.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/pinia/node_modules/vue-demi": { + "version": "0.14.8", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.8.tgz", + "integrity": "sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==", + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/postcss": { "version": "8.4.38", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", diff --git a/package.json b/package.json index 849e25f..4c0f853 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "@mdi/font": "7.0.96", + "pinia": "^2.1.7", "roboto-fontface": "*", "vue": "^3.4.26", "vue-i18n": "^9.13.1", diff --git a/src/App.vue b/src/App.vue index 8bf5492..efd0790 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ From cce5559dbf7e25a958f28064848bb8b8bb2827c4 Mon Sep 17 00:00:00 2001 From: Jerome Villiseck Date: Thu, 4 Jul 2024 15:44:48 +0200 Subject: [PATCH 2/2] =?UTF-8?q?-=20Mise=20en=20place=20du=20store=20pour?= =?UTF-8?q?=20l'utilisateur=20-=20Refactor=20complet=20de=20la=20gestion?= =?UTF-8?q?=20des=20utilisateurs=20-=20Refactor=20de=20l'authentification?= =?UTF-8?q?=20et=20de=20la=20persistance=20des=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 45a00a1..839f1e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.0", "dependencies": { "@mdi/font": "7.0.96", - "pinia": "^2.1.7", "moment": "^2.30.1", + "pinia": "^2.1.7", "roboto-fontface": "*", "vue": "^3.4.26", "vue-i18n": "^9.13.1",