From 61e7ff71888b143aafcc79dc7f816ea4a0bc8ee7 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Thu, 30 Dec 2021 21:32:12 +0300 Subject: [PATCH] blacken search component --- server/app/api.py | 10 +-- src/App.vue | 39 +++++++-- src/assets/css/global.scss | 1 - src/assets/icons/no-results.svg | 1 + src/components/FolderView/SongList.vue | 41 +++++++-- src/components/Search.vue | 109 ++++++++++++++--------- src/composables/perks.js | 116 +++++++++++-------------- src/composables/state.js | 42 +++++++++ src/views/FolderView.vue | 2 + 9 files changed, 233 insertions(+), 128 deletions(-) create mode 100644 src/assets/icons/no-results.svg create mode 100644 src/composables/state.js diff --git a/server/app/api.py b/server/app/api.py index 23d3a220..b9978af8 100644 --- a/server/app/api.py +++ b/server/app/api.py @@ -288,12 +288,12 @@ def getFolderTree(folder: str = None): folders.append(dir) - if entry.is_file(): - if isValidFile(entry.name) == True: - file = all_songs_instance.find_song_by_path(entry.path) + # if entry.is_file(): + # if isValidFile(entry.name) == True: + # file = all_songs_instance.find_song_by_path(entry.path) - if not file: - getTags(entry.path) + # if not file: + # getTags(entry.path) songs_array = all_songs_instance.find_songs_by_folder( req_dir) diff --git a/src/App.vue b/src/App.vue index f4b0d6b0..798d9498 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,12 +11,15 @@ -
- +
+ +
@@ -31,7 +34,7 @@