From e4d0441239ffd3ca3bd9e768968304f62d8eaad9 Mon Sep 17 00:00:00 2001 From: Norbaev Date: Fri, 28 Jun 2024 10:59:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20fa?= =?UTF-8?q?vicon=20=D0=B2=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B5=20i?= =?UTF-8?q?co=20+=20svg=2016x16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/.eslintrc.cjs | 2 +- client/src/components/player.vue | 4 +-- client/src/index.template.html | 44 +++++++++++++++++++------------- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/client/.eslintrc.cjs b/client/.eslintrc.cjs index 32b5b72..beb304a 100644 --- a/client/.eslintrc.cjs +++ b/client/.eslintrc.cjs @@ -85,6 +85,6 @@ module.exports = { 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', // Custom - 'no-console': 'warn', + // 'no-console': 'warn', }, }; diff --git a/client/src/components/player.vue b/client/src/components/player.vue index cfb7a93..e1a1587 100644 --- a/client/src/components/player.vue +++ b/client/src/components/player.vue @@ -213,7 +213,7 @@ export default { this.connection = new Player(); this.connection.init(); - this.connection.onHandler(this.getPlaying); + this.connection.onHandler(this.handlePlayer); }, checkSongIsFavorite() { app @@ -236,7 +236,7 @@ export default { console.error(err); }); }, - getPlaying(e) { + handlePlayer(e) { // console.log('getPlaying', e); const jsonData = JSON.parse(e.data); // console.log('jsonData', jsonData); diff --git a/client/src/index.template.html b/client/src/index.template.html index 16eea2c..96a5cf6 100644 --- a/client/src/index.template.html +++ b/client/src/index.template.html @@ -1,20 +1,28 @@ - + - - - - - - - - - - - - - - - -
- + + + + + + + + + + + + + + + +
+