From dcb09ecb1364ec652d582a8bcb6d8f3cae25c536 Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Wed, 22 Apr 2020 22:06:59 +0200 Subject: [PATCH] continued js refactor: added downloads.js, quality-modal.js, stacke-tabs.js, minor improvements --- public/index.html | 101 +- public/js/app.js | 411 +-- public/js/modules/artist-tab.js | 11 +- public/js/modules/downloads.js | 247 ++ public/js/modules/main-search.js | 53 +- public/js/modules/quality-modal.js | 47 + public/js/modules/settings-tab.js | 6 +- public/js/modules/stacked-tabs.js | 26 + public/js/modules/toasts.js | 8 +- public/js/modules/tracklist-tab.js | 12 +- public/js/vendor/vue.min.js | 4570 +++++++++++++++++++++++++++- 11 files changed, 5101 insertions(+), 391 deletions(-) create mode 100644 public/js/modules/downloads.js create mode 100644 public/js/modules/quality-modal.js create mode 100644 public/js/modules/stacked-tabs.js diff --git a/public/index.html b/public/index.html index 53a57c1..711c91d 100644 --- a/public/index.html +++ b/public/index.html @@ -50,16 +50,15 @@
-

{{ names[section] }}

+

{{ names[section] }}

-
+
-
get_app
@@ -78,15 +77,14 @@

{{ names[section] }}

v-bind:src="'https://e-cdns-images.dzcdn.net/images/cover/'+track.ALB_PICTURE+'/32x32-000000-80-0-0.jpg'"> {{track.SNG_TITLE + (track.VERSION ? ' '+track.VERSION : '')}} - {{artist.ART_NAME}} - + {{track.ALB_TITLE}} {{convertDuration(track.DURATION)}} - get_app @@ -94,14 +92,13 @@

{{ names[section] }}

+ @click="artistView" v-bind:data-id="release.ART_ID">
-
get_app
+
get_app

{{release.ART_NAME}}

{{numberWithDots(release.NB_FAN) + ' fans'}}

@@ -109,12 +106,12 @@

{{ names[section] }}

+ @click="albumView" v-bind:data-id="release.ALB_ID">
-
get_app

{{release.ALB_TITLE}}

@@ -123,13 +120,12 @@

{{ names[section] }}

+ @click="playlistView" v-bind:data-id="release.PLAYLIST_ID">
-
get_app

{{ release.TITLE }}

@@ -164,14 +160,14 @@

No Tracks found

{{track.title + (track.title_version ? ' '+track.title_version : '')}} - + {{track.artist.name}} - + {{track.album.title}} {{convertDuration(track.duration)}} - get_app + get_app @@ -185,12 +181,12 @@

Loading

No Albums found

-
-
get_app

{{ release.title }}

@@ -207,12 +203,12 @@

Loading

No Artists found

-
+
-
get_app

{{ release.name }}

@@ -229,12 +225,12 @@

Loading

No Playlists found

-
+
-
get_app

{{ release.title }}

@@ -472,9 +468,8 @@

About

{{ title }}

-
get_app
+
get_app
@@ -487,7 +482,7 @@

{{ title }}

- - - +
{{data.title}} @@ -496,7 +491,7 @@

{{ title }}

+ explicit @@ -505,8 +500,8 @@

{{ title }}

style="color:#FF7300;">fiber_new
{{release.release_date}}file_downloadfile_download
@@ -529,7 +524,7 @@

{{ metadata }} - + @@ -540,10 +535,10 @@

{{ metadata }}explicit{{ track.title }} {{track.title_version}} - + {{ track.artist.name }} - {{ track.album.title }} + + {{ track.album.title }} {{ convertDuration(track.duration) }} @@ -557,9 +552,9 @@

{{ metadata }}{{ label }}