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
+34
View File
@@ -0,0 +1,34 @@
import { defineStore } from "pinia";
import perks from "../composables/perks";
const tablist = {
home: "home",
search: "search",
queue: "queue",
};
export default defineStore("tabs", {
state: () => ({
tabs: tablist,
current: tablist.home,
}),
actions: {
changeTab(tab: string) {
if (tab === this.tabs.queue) {
setTimeout(() => {
perks.focusCurrent();
}, 500);
}
this.current = tab;
},
switchToQueue() {
this.changeTab(tablist.queue);
},
switchToSearch() {
this.changeTab(tablist.search);
},
switchToHome() {
this.changeTab(tablist.home);
},
},
});