Use gunicorn instead of Werkzeug and 32 more very minor changes (#35)

This commit is contained in:
Mungai Geoffrey
2022-04-21 03:29:42 +03:00
committed by GitHub
parent 68b474bbba
commit ef68cae625
33 changed files with 751 additions and 227 deletions
+15 -1
View File
@@ -1,6 +1,12 @@
import { defineStore } from "pinia";
import state from "../composables/state";
import { Track, fromFolder, fromAlbum, fromPlaylist } from "../interfaces";
import {
Track,
fromFolder,
fromAlbum,
fromPlaylist,
fromSearch,
} from "../interfaces";
import notif from "../composables/mediaNotification";
import { FromOptions } from "../composables/enums";
@@ -181,6 +187,14 @@ export default defineStore("Queue", {
playlistid: pid,
};
this.setNewQueue(tracks);
},
playFromSearch(query: string, tracks: Track[]) {
this.from = <fromSearch>{
type: FromOptions.search,
query: query,
};
this.setNewQueue(tracks);
},
},