Many fix and improvements

This commit is contained in:
Jonathan Bourdon
2024-08-03 04:15:55 -04:00
parent 0d94d79c77
commit 78ead7e387
37 changed files with 669 additions and 735 deletions

View File

@@ -0,0 +1,23 @@
import {computed, ref} from 'vue';
import {defineStore} from "pinia";
export const useSideBarStore = defineStore(
'sideBar',
() => {
const state = ref(false)
const visible = computed(() => state.value)
function toggle() {
state.value = !state.value
}
function show() {
state.value = true
}
function hide() {
state.value = false
}
return {visible, toggle, show, hide}
})