feat: UI: add user page: useIframeShowMail && mailboxSplitSize (#184)

This commit is contained in:
Dream Hunter
2024-05-01 18:09:21 +08:00
committed by GitHub
parent 32ce446a27
commit e81142f5ef
8 changed files with 375 additions and 276 deletions
+6
View File
@@ -31,6 +31,7 @@ export const useGlobalState = createGlobalState(
}
})
const showAuth = ref(false);
const showPassword = ref(false);
const showAdminAuth = ref(false);
const auth = useStorage('auth', '');
const adminAuth = useStorage('adminAuth', '');
@@ -40,6 +41,8 @@ export const useGlobalState = createGlobalState(
const adminTab = ref("account");
const adminMailTabAddress = ref("");
const adminSendBoxTabAddress = ref("");
const mailboxSplitSize = useStorage('mailboxSplitSize', 0.25);
const useIframeShowMail = useStorage('useIframeShowMail', false);
return {
isDark,
toggleDark,
@@ -47,6 +50,7 @@ export const useGlobalState = createGlobalState(
settings,
openSettings,
showAuth,
showPassword,
auth,
jwt,
localeCache,
@@ -56,6 +60,8 @@ export const useGlobalState = createGlobalState(
adminTab,
adminMailTabAddress,
adminSendBoxTabAddress,
mailboxSplitSize,
useIframeShowMail,
}
},
)