feat(admin): add module settings to toggle trading feature

Introduce module_settings table to store global feature flags
Add admin UI to enable or disable the Trading module
Hide trading-related UI and skip data fetching when disabled
This commit is contained in:
2026-05-10 16:59:07 +08:00
parent 26bef1b749
commit 42319695e9
11 changed files with 271 additions and 85 deletions

View File

@@ -1142,6 +1142,8 @@ export const systemWordingMessages = {
languages: 'Languages',
newConfig: 'New {name}',
editConfig: 'Edit {name}',
moduleSettings: 'Module settings',
tradingModule: 'Trading',
hasItemDrop: 'Has item drop',
hasTrading: 'Has trading',
opposite: 'Opposite',
@@ -2572,6 +2574,8 @@ export const systemWordingMessages = {
languages: '语言',
newConfig: '新增{name}',
editConfig: '编辑{name}',
moduleSettings: '模块设置',
tradingModule: 'Trading',
hasItemDrop: '有掉落物',
hasTrading: '有 Trading',
opposite: '反义词',