mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-08-14 17:04:08 +08:00
- 在注册任务和批量任务中集成WebSocket连接 - 添加TaskManager管理任务状态和日志推送 - 前端app.js重构支持WebSocket与轮询降级机制 - 配置模块重构为完全基于数据库存储
54 lines
1.1 KiB
Python
54 lines
1.1 KiB
Python
"""
|
|
配置模块
|
|
"""
|
|
|
|
from .settings import (
|
|
Settings,
|
|
get_settings,
|
|
update_settings,
|
|
get_database_url,
|
|
init_default_settings,
|
|
get_setting_definition,
|
|
get_all_setting_definitions,
|
|
SETTING_DEFINITIONS,
|
|
SettingCategory,
|
|
SettingDefinition,
|
|
)
|
|
from .constants import (
|
|
AccountStatus,
|
|
TaskStatus,
|
|
EmailServiceType,
|
|
APP_NAME,
|
|
APP_VERSION,
|
|
OTP_CODE_PATTERN,
|
|
DEFAULT_PASSWORD_LENGTH,
|
|
PASSWORD_CHARSET,
|
|
DEFAULT_USER_INFO,
|
|
generate_random_user_info,
|
|
OPENAI_API_ENDPOINTS,
|
|
)
|
|
|
|
__all__ = [
|
|
'Settings',
|
|
'get_settings',
|
|
'update_settings',
|
|
'get_database_url',
|
|
'init_default_settings',
|
|
'get_setting_definition',
|
|
'get_all_setting_definitions',
|
|
'SETTING_DEFINITIONS',
|
|
'SettingCategory',
|
|
'SettingDefinition',
|
|
'AccountStatus',
|
|
'TaskStatus',
|
|
'EmailServiceType',
|
|
'APP_NAME',
|
|
'APP_VERSION',
|
|
'OTP_CODE_PATTERN',
|
|
'DEFAULT_PASSWORD_LENGTH',
|
|
'PASSWORD_CHARSET',
|
|
'DEFAULT_USER_INFO',
|
|
'generate_random_user_info',
|
|
'OPENAI_API_ENDPOINTS',
|
|
]
|