mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 16:39:35 +03:00
feat: new frontend
This commit is contained in:
17
frontend/stores/app.ts
Normal file
17
frontend/stores/app.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export const useAppStore = defineStore('app', {
|
||||
state: () => ({
|
||||
drawer: false,
|
||||
color: 'success',
|
||||
}),
|
||||
actions: {
|
||||
setDrawer(value: boolean) {
|
||||
this.drawer = value;
|
||||
},
|
||||
setColor(value: string) {
|
||||
this.color = value;
|
||||
},
|
||||
toggleDrawer() {
|
||||
this.drawer = !this.drawer;
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user