From 6f433a6f1ac06c494364bcc4f5fec5981a87925f Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 23 Oct 2020 17:49:24 +0200 Subject: [PATCH] add vuex store for player state --- package-lock.json | 5 +++++ package.json | 3 ++- src/components/Main.vue | 38 +++++++++++++++++++++++++++++--------- src/components/Player.vue | 10 ++++++---- src/main.js | 2 ++ src/store.js | 18 ++++++++++++++++++ 6 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 src/store.js diff --git a/package-lock.json b/package-lock.json index dd33af1..5128c2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11410,6 +11410,11 @@ "date-format-parse": "^0.2.5" } }, + "vuex": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.5.1.tgz", + "integrity": "sha512-w7oJzmHQs0FM9LXodfskhw9wgKBiaB+totOdb8sNzbTB2KDCEEwEs29NzBZFh/lmEK1t5tDmM1vtsO7ubG1DFw==" + }, "watchpack": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.4.tgz", diff --git a/package.json b/package.json index 7ee2cda..ace6eaf 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "jquery": "^3.5.1", "music-metadata": "^7.4.1", "vue": "^2.6.12", - "vue-router": "^3.4.7" + "vue-router": "^3.4.7", + "vuex": "^3.5.1" }, "browserslist": [ "extends @nextcloud/browserslist-config" diff --git a/src/components/Main.vue b/src/components/Main.vue index 4134bcd..7b78193 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -1,7 +1,6 @@