From 29503982f41422aedd434439c8a032471313c2b1 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 17 May 2024 09:42:14 +0200 Subject: [PATCH] Feat : add Pinia store --- nuxt.config.ts | 3 +++ package-lock.json | 64 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 ++ 3 files changed, 69 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 80120ed..880df38 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -8,4 +8,7 @@ export default defineNuxtConfig({ discordLoginEndpoint: '' } }, + modules: [ + '@pinia/nuxt', + ], }) diff --git a/package-lock.json b/package-lock.json index 139bac4..5939e60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,9 @@ "name": "nuxt-app", "hasInstallScript": true, "dependencies": { + "@pinia/nuxt": "^0.5.1", "nuxt": "^3.11.2", + "pinia": "^2.1.7", "vue": "^3.4.21", "vue-router": "^4.3.0" } @@ -2091,6 +2093,18 @@ "node": ">=0.10" } }, + "node_modules/@pinia/nuxt": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@pinia/nuxt/-/nuxt-0.5.1.tgz", + "integrity": "sha512-6wT6TqY81n+7/x3Yhf0yfaJVKkZU42AGqOR0T3+UvChcaOJhSma7OWPN64v+ptYlznat+fS1VTwNAcbi2lzHnw==", + "dependencies": { + "@nuxt/kit": "^3.5.0", + "pinia": ">=2.1.7" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -7764,6 +7778,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.7", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.7.tgz", + "integrity": "sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==", + "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/pkg-types": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", diff --git a/package.json b/package.json index 02504f4..f081547 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "postinstall": "nuxt prepare" }, "dependencies": { + "@pinia/nuxt": "^0.5.1", "nuxt": "^3.11.2", + "pinia": "^2.1.7", "vue": "^3.4.21", "vue-router": "^4.3.0" }