From 1a9ae3c5c792bdbef3e2c0a96260d9b65184622d Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 7 Jul 2023 18:38:53 +0200 Subject: [PATCH] First component to use vuex --- package-lock.json | 11 +++++++- package.json | 3 +- src/components/AddRss.vue | 5 ++-- src/main.js | 7 +++++ src/modules/index.js | 5 ++++ src/modules/subscriptions.js | 53 ++++++++++++++++++++++++++++++++++++ src/views/Discover.vue | 2 +- src/views/Index.vue | 45 ++++-------------------------- 8 files changed, 85 insertions(+), 46 deletions(-) create mode 100644 src/modules/index.js create mode 100644 src/modules/subscriptions.js diff --git a/package-lock.json b/package-lock.json index d561175..5b9d984 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,8 @@ "vue": "^2", "vue-fragment": "^1.6.0", "vue-material-design-icons": "^5.2.0", - "vue-router": "^3" + "vue-router": "^3", + "vuex": "^3" }, "devDependencies": { "@nextcloud/babel-config": "^1.0.0", @@ -13066,6 +13067,14 @@ "vue": "^2.5.0" } }, + "node_modules/vuex": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz", + "integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==", + "peerDependencies": { + "vue": "^2.0.0" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", diff --git a/package.json b/package.json index 393b3a5..73918ef 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "vue": "^2", "vue-fragment": "^1.6.0", "vue-material-design-icons": "^5.2.0", - "vue-router": "^3" + "vue-router": "^3", + "vuex": "^3" }, "browserslist": [ "extends @nextcloud/browserslist-config" diff --git a/src/components/AddRss.vue b/src/components/AddRss.vue index 3782b7e..5b6b70b 100644 --- a/src/components/AddRss.vue +++ b/src/components/AddRss.vue @@ -1,8 +1,8 @@