diff --git a/src/components/Discover/TopItem.vue b/src/components/Discover/TopItem.vue
index 38a5082..0a6bb5f 100644
--- a/src/components/Discover/TopItem.vue
+++ b/src/components/Discover/TopItem.vue
@@ -1,16 +1,12 @@
-
+
-
+
+
+
diff --git a/src/modules/index.js b/src/modules/index.js
index 5ac6289..60b742d 100644
--- a/src/modules/index.js
+++ b/src/modules/index.js
@@ -1,5 +1,7 @@
+import { player } from './player.js'
import { subscriptions } from './subscriptions.js'
export default {
+ player,
subscriptions,
}
diff --git a/src/modules/player.js b/src/modules/player.js
new file mode 100644
index 0000000..ba0a621
--- /dev/null
+++ b/src/modules/player.js
@@ -0,0 +1,11 @@
+export const player = {
+ namespaced: true,
+ state: {
+ currentPlayingUrl: null,
+ },
+ mutations: {
+ set: (state, currentPlayingUrl) => {
+ state.currentPlayingUrl = currentPlayingUrl
+ },
+ },
+}
diff --git a/src/views/Index.vue b/src/views/Index.vue
index c52e6d8..f7b6b33 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -18,6 +18,7 @@
+
@@ -28,6 +29,7 @@ import {
NcAppNavigationNew,
NcLoadingIcon,
} from '@nextcloud/vue'
+import Bar from '../components/Player/Bar.vue'
import Item from '../components/Sidebar/Item.vue'
import Plus from 'vue-material-design-icons/Plus.vue'
import { showError } from '@nextcloud/dialogs'
@@ -35,6 +37,7 @@ import { showError } from '@nextcloud/dialogs'
export default {
name: 'Index',
components: {
+ Bar,
Item,
NcAppContentList,
NcAppNavigation,