From 1f8db5735431f52b9c7f74add2be09dc27a1dd5c Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 19 Mar 2023 00:52:48 +0000 Subject: [PATCH] eventbus + player --- package.json | 1 + src/components/Player.vue | 37 +++++++++++++++++++++++++------------ src/js/eventBus.js | 9 +++++++++ src/pages/Radio.vue | 1 - src/pages/Show.vue | 10 +++++++++- 5 files changed, 44 insertions(+), 14 deletions(-) create mode 100644 src/js/eventBus.js diff --git a/package.json b/package.json index 010f9f6..1d6b6cb 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "skeleton-elements": "^4.0.1", "swiper": "^8.4.6", "tailwindcss": "^3.2.4", + "tiny-emitter": "^2.1.0", "vue": "^3.2.45" }, "devDependencies": { diff --git a/src/components/Player.vue b/src/components/Player.vue index c4d9e47..20860ca 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -19,6 +19,8 @@