feat(global): Add SMS configuration options to global store

This commit is contained in:
web@ppanel 2025-01-14 16:40:02 +07:00
parent 207bc247f4
commit 39a9ce60de
2 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,12 @@ export const useGlobalStore = create<GlobalStore>((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,

View File

@ -15,7 +15,6 @@ export interface GlobalStore {
export const useGlobalStore = create<GlobalStore>((set, get) => ({
common: {
background: '',
site: {
host: '',
site_name: '',
@ -37,6 +36,12 @@ export const useGlobalStore = create<GlobalStore>((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,