major redesign: move to rounded and extra spaceous UI

+ fix `play next` bug
+ add new folder banner image
+ add new now playing component
+ move to gray4 for accent color
+ increase image sizes, for clean UI
This commit is contained in:
geoffrey45
2022-08-18 02:55:46 +03:00
parent a7dc2fa6bd
commit 5476575d10
40 changed files with 339 additions and 328 deletions
+8 -13
View File
@@ -2,41 +2,36 @@ import { defineStore } from "pinia";
import { Playlist, Track } from "../interfaces";
enum ModalOptions {
newPlaylist = "newPlaylist",
updatePlaylist = "editPlaylist",
welcome = "welcome",
newPlaylist,
updatePlaylist,
welcome,
}
export default defineStore("newModal", {
state: () => ({
title: "",
options: ModalOptions,
component: "",
component: <any>null,
props: <any>{},
visible: false,
}),
actions: {
showModal(modalOption: string) {
showModal(modalOption: ModalOptions) {
this.component = modalOption;
this.visible = true;
},
showNewPlaylistModal(track?: Track) {
this.component = ModalOptions.newPlaylist;
if (track) {
this.props.track = track;
}
this.visible = true;
this.showModal(ModalOptions.newPlaylist);
},
showEditPlaylistModal(playlist: Playlist) {
this.component = ModalOptions.updatePlaylist;
this.props = playlist;
this.visible = true;
this.showModal(ModalOptions.updatePlaylist);
},
showWelcomeModal() {
this.component = ModalOptions.welcome;
this.visible = true;
this.showModal(ModalOptions.welcome);
},
hideModal() {
this.visible = false;