From 39a9ce60ded0c2327f6dca12db53636bf5accbbe Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Tue, 14 Jan 2025 16:40:02 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(global):=20Add=20SMS=20configu?= =?UTF-8?q?ration=20options=20to=20global=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/config/use-global.tsx | 6 ++++++ apps/user/config/use-global.tsx | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/admin/config/use-global.tsx b/apps/admin/config/use-global.tsx index 93057b4..38d9ab6 100644 --- a/apps/admin/config/use-global.tsx +++ b/apps/admin/config/use-global.tsx @@ -30,6 +30,12 @@ export const useGlobalStore = create((set) => ({ enable_ip_register_limit: false, ip_register_limit: 0, ip_register_limit_duration: 0, + sms: { + sms_enabled: false, + sms_limit: 0, + sms_interval: 0, + sms_expire_time: 0, + }, }, invite: { forced_invite: false, diff --git a/apps/user/config/use-global.tsx b/apps/user/config/use-global.tsx index 09fadf7..0c8a9d6 100644 --- a/apps/user/config/use-global.tsx +++ b/apps/user/config/use-global.tsx @@ -15,7 +15,6 @@ export interface GlobalStore { export const useGlobalStore = create((set, get) => ({ common: { - background: '', site: { host: '', site_name: '', @@ -37,6 +36,12 @@ export const useGlobalStore = create((set, get) => ({ enable_ip_register_limit: false, ip_register_limit: 0, ip_register_limit_duration: 0, + sms: { + sms_enabled: false, + sms_limit: 0, + sms_interval: 0, + sms_expire_time: 0, + }, }, invite: { forced_invite: false,