From 497e86b6b330e93b3ac13777f592cc9a1bc090cb Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Tue, 28 Apr 2020 21:18:40 +0200 Subject: [PATCH] added Vue event modifiers, added cursor pointer to search sections titles and tracklist tab checkboxes --- public/css/modules/download-tab.css | 1 - public/css/modules/main-search.css | 15 +++--- public/css/modules/tracklist-tab.css | 3 ++ public/css/style.css | 1 + public/index.html | 50 +++++++++---------- public/js/modules/components/artist-tab.js | 5 +- public/js/modules/components/main-search.js | 2 - public/js/modules/components/tracklist-tab.js | 1 - 8 files changed, 40 insertions(+), 38 deletions(-) create mode 100644 public/css/modules/tracklist-tab.css diff --git a/public/css/modules/download-tab.css b/public/css/modules/download-tab.css index 89da349..dc219b6 100644 --- a/public/css/modules/download-tab.css +++ b/public/css/modules/download-tab.css @@ -5,7 +5,6 @@ color: var(--panels-text); display: block; flex-direction: column; - /* transition: all 250ms ease-in-out; */ } #toggle_download_tab { diff --git a/public/css/modules/main-search.css b/public/css/modules/main-search.css index d097113..7890778 100644 --- a/public/css/modules/main-search.css +++ b/public/css/modules/main-search.css @@ -1,6 +1,7 @@ /* Main Search Tab */ -#main_search>.search_section { +#main_search > .search_section { float: none; + cursor: pointer; } .top_result { @@ -8,18 +9,18 @@ align-items: center; } -.top_result>.cover_container { +.top_result > .cover_container { width: 156px; height: 156px; } -.top_result>.info_box { +.top_result > .info_box { display: inline-block; padding-left: 24px; } -.top_result>.info_box>p, -.release>p { +.top_result > .info_box > p, +.release > p { margin: 0px; margin-bottom: 4px; } @@ -47,12 +48,12 @@ width: 156px; } -.release>.cover_container { +.release > .cover_container { width: 156px; height: 156px; } -.track_row>td>img { +.track_row > td > img { width: 32px; height: 32px; } diff --git a/public/css/modules/tracklist-tab.css b/public/css/modules/tracklist-tab.css new file mode 100644 index 0000000..43a707c --- /dev/null +++ b/public/css/modules/tracklist-tab.css @@ -0,0 +1,3 @@ +.trackCheckbox { + cursor: pointer; +} diff --git a/public/css/style.css b/public/css/style.css index 91f8148..d52d085 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -15,3 +15,4 @@ @import './modules/main-search.css'; @import './modules/download-tab.css'; @import './modules/track-preview.css'; +@import './modules/tracklist-tab.css'; diff --git a/public/index.html b/public/index.html index 0c593d8..cb34c8e 100644 --- a/public/index.html +++ b/public/index.html @@ -59,9 +59,9 @@

{{ names[section] }}

-
get_app
+
get_app

{{ results.allTab.TOP_RESULT[0].title }}

@@ -85,8 +85,8 @@

{{ names[section] }}

{{track.ALB_TITLE}} {{convertDuration(track.DURATION)}} - get_app @@ -98,8 +98,8 @@

{{ names[section] }}

-
get_app

{{release.ART_NAME}}

@@ -112,8 +112,8 @@

{{ names[section] }}

-
get_app

{{release.ALB_TITLE}}

@@ -126,8 +126,8 @@

{{ names[section] }}

-
get_app

{{ release.TITLE }}

@@ -171,9 +171,9 @@

No Tracks found

{{track.album.title}} {{convertDuration(track.duration)}} - get_app + get_app @@ -191,8 +191,8 @@

No Albums found

:data-id="release.id">
-
get_app

{{ release.title }}

@@ -213,8 +213,8 @@

No Artists found

:data-id="release.id">
-
get_app

{{ release.name }}

@@ -235,8 +235,8 @@

No Playlists found

:data-id="release.id">
-
get_app

{{ release.title }}

@@ -521,7 +521,7 @@

About

{{ title }}

-
get_app
@@ -554,7 +554,7 @@

{{ title }}

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

{{ metadata }} - + @@ -608,9 +608,9 @@

{{ metadata }}{{ label }} diff --git a/public/js/modules/components/artist-tab.js b/public/js/modules/components/artist-tab.js index d294be4..9f148cc 100644 --- a/public/js/modules/components/artist-tab.js +++ b/public/js/modules/components/artist-tab.js @@ -35,11 +35,12 @@ const ArtistTab = new Vue({ Downloads.sendAddToQueue(e.currentTarget.dataset.link) }, openQualityModal(e) { - e.preventDefault() QualityModal.open(e.currentTarget.dataset.link) }, moreInfo(url, e) { - if (e) e.preventDefault() + if (e) { + e.preventDefault() + } showTrackListSelective(url, true) }, sortBy(key) { diff --git a/public/js/modules/components/main-search.js b/public/js/modules/components/main-search.js index 3da1b0a..a7856a0 100644 --- a/public/js/modules/components/main-search.js +++ b/public/js/modules/components/main-search.js @@ -81,11 +81,9 @@ const MainSearch = new Vue({ } }, addToQueue: function (e) { - e.stopPropagation() Downloads.sendAddToQueue(e.currentTarget.dataset.link) }, openQualityModal: function (e) { - e.preventDefault() QualityModal.open(e.currentTarget.dataset.link) }, numberWithDots: Utils.numberWithDots, diff --git a/public/js/modules/components/tracklist-tab.js b/public/js/modules/components/tracklist-tab.js index 5413788..c87a47d 100644 --- a/public/js/modules/components/tracklist-tab.js +++ b/public/js/modules/components/tracklist-tab.js @@ -37,7 +37,6 @@ const TracklistTab = new Vue({ Downloads.sendAddToQueue(e.currentTarget.dataset.link) }, openQualityModal: function (e) { - e.preventDefault() QualityModal.open(e.currentTarget.dataset.link) }, toggleAll: function (e) {