feat: update packages (#161)

This commit is contained in:
Dream Hunter
2024-04-25 14:30:39 +08:00
committed by GitHub
parent 0a8f50f9e0
commit b058a1bd12
7 changed files with 1290 additions and 1200 deletions

View File

@@ -1,8 +1,11 @@
import { ref } from "vue";
import { createGlobalState, useStorage } from '@vueuse/core'
import { useDark, useToggle } from '@vueuse/core'
export const useGlobalState = createGlobalState(
() => {
const isDark = useDark()
const toggleDark = useToggle(isDark)
const loading = ref(false);
const openSettings = ref({
prefix: '',
@@ -37,6 +40,8 @@ export const useGlobalState = createGlobalState(
const adminMailTabAddress = ref("");
const adminSendBoxTabAddress = ref("");
return {
isDark,
toggleDark,
loading,
settings,
openSettings,