feat: support admin create address && add ENABLE_USER_CREATE_EMAIL config (#175)

This commit is contained in:
Dream Hunter
2024-04-29 00:09:53 +08:00
committed by GitHub
parent 6ce7e2e7f6
commit 23d1709ca1
16 changed files with 306 additions and 153 deletions
+2 -6
View File
@@ -11,12 +11,10 @@ export const useGlobalState = createGlobalState(
prefix: '',
needAuth: false,
adminContact: '',
enableUserCreateEmail: false,
enableUserDeleteEmail: false,
enableAutoReply: false,
domains: [{
label: 'test.com',
value: 'test.com'
}]
domains: []
})
const settings = ref({
fetched: false,
@@ -38,7 +36,6 @@ export const useGlobalState = createGlobalState(
const jwt = useStorage('jwt', '');
const localeCache = useStorage('locale', 'zh');
const themeSwitch = useStorage('themeSwitch', false);
const showLogin = ref(false);
const adminTab = ref("account");
const adminMailTabAddress = ref("");
const adminSendBoxTabAddress = ref("");
@@ -55,7 +52,6 @@ export const useGlobalState = createGlobalState(
themeSwitch,
adminAuth,
showAdminAuth,
showLogin,
adminTab,
adminMailTabAddress,
adminSendBoxTabAddress,