From 8b62fe78fa1929c268dab9f1c40031f813ee2804 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Fri, 13 May 2022 20:50:58 +0300 Subject: [PATCH] add comments to some store functions - some refactors to modals --- server/app/functions.py | 2 +- src/assets/css/_variables.scss | 9 ++-- src/components/contextMenu.vue | 2 +- src/components/modals/NewPlaylist.vue | 52 ++++++++++++------ src/components/modals/updatePlaylist.vue | 55 ++------------------ src/components/playlists/NewPlaylistCard.vue | 16 ++++-- src/components/playlists/PlaylistCard.vue | 2 +- src/composables/playlists.ts | 8 ++- src/stores/album.ts | 11 ++++ src/stores/modal.ts | 8 ++- src/stores/p.ptracks.ts | 10 ++++ src/stores/playlists.ts | 12 +++++ 12 files changed, 106 insertions(+), 81 deletions(-) diff --git a/server/app/functions.py b/server/app/functions.py index 237998f8..68e0f8ab 100644 --- a/server/app/functions.py +++ b/server/app/functions.py @@ -74,7 +74,7 @@ def fetch_artist_images(): artists = [] - for song in tqdm(api.DB_TRACKS, desc="Gathering artists"): + for song in tqdm(api.DB_TRACKS, desc="Finding artists"): this_artists = song["artists"].split(", ") for artist in this_artists: diff --git a/src/assets/css/_variables.scss b/src/assets/css/_variables.scss index 8e9cd218..18f37bdb 100644 --- a/src/assets/css/_variables.scss +++ b/src/assets/css/_variables.scss @@ -24,15 +24,16 @@ $gray3: rgb(72, 72, 74); $gray4: rgb(58, 58, 60); $gray5: rgb(44, 44, 46); -$red: #fa4f55; -$blue: #0960ef; + +$red: #FF453A; +$blue: #0A84FF; $green: rgb(20, 160, 55); $yellow: rgb(255, 214, 10); $orange: rgb(255, 159, 10); $pink: rgb(255, 55, 95); -$purple: rgb(191, 90, 242); +$purple: #bf5af2; $brown: rgb(172, 142, 104); -$indigo: rgb(94, 92, 230); +$indigo: #5E5CE6; $teal: rgb(64, 200, 224); // 60 30 10 diff --git a/src/components/contextMenu.vue b/src/components/contextMenu.vue index d7ab2572..690889b0 100644 --- a/src/components/contextMenu.vue +++ b/src/components/contextMenu.vue @@ -90,7 +90,7 @@ const context = useContextStore(); right: -13rem; width: 13rem; top: -0.5rem; - height: 23.5rem; + max-height: 23.5rem; padding: $small !important; background-color: $context; diff --git a/src/components/modals/NewPlaylist.vue b/src/components/modals/NewPlaylist.vue index e2e90e2a..9cd9da91 100644 --- a/src/components/modals/NewPlaylist.vue +++ b/src/components/modals/NewPlaylist.vue @@ -9,19 +9,25 @@ id="modal-playlist-name-input" />
- +
+ +
@@ -74,16 +88,24 @@ function create(e: Event) { outline: none; } + .submit { + display: flex; + justify-content: flex-end; + } + input[type="submit"] { margin: $small 0; - background-color: $accent; - color: #fff; - width: 7rem; - padding: 0.75rem; + background-color: rgba(40, 132, 252, 0.884) !important; + color: $white; + padding: $small 1rem; font-size: 1rem; - border: none; + border: solid 2px transparent !important; outline: none; cursor: pointer; + + &:focus { + border: 2px solid $gray1 !important; + } } } diff --git a/src/components/modals/updatePlaylist.vue b/src/components/modals/updatePlaylist.vue index fd0b1249..c6c472d0 100644 --- a/src/components/modals/updatePlaylist.vue +++ b/src/components/modals/updatePlaylist.vue @@ -40,7 +40,9 @@ }" /> - +
+ +
@@ -113,40 +115,6 @@ function update_playlist(e: Event) { diff --git a/src/components/playlists/NewPlaylistCard.vue b/src/components/playlists/NewPlaylistCard.vue index b24616d8..29bb8aeb 100644 --- a/src/components/playlists/NewPlaylistCard.vue +++ b/src/components/playlists/NewPlaylistCard.vue @@ -1,5 +1,9 @@ + +