mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 17:25:51 +00:00
ci: auto build & obfuscate [2026-04-06 00:50:28] (Jenkins #7)
This commit is contained in:
36
SL/module/register-all.js
Normal file
36
SL/module/register-all.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* register-all.js — 集中注册所有 UI 模块
|
||||
*
|
||||
* 调用 registerAllModules() 后,所有模块工厂被注册到 ModuleRegistry。
|
||||
* 随后由 drawer.js 在面板容器就绪后调用 registry.mountAll(ctx) 完成挂载。
|
||||
*
|
||||
* 注册顺序即挂载顺序 —— DOM 中面板的排列取决于此。
|
||||
*/
|
||||
|
||||
import registry from './ModuleRegistry.js';
|
||||
|
||||
import AdditionalFeaturesModule from './AdditionalFeaturesModule.js';
|
||||
import HistoriographyModule from './HistoriographyModule.js';
|
||||
import HanlinyuanModule from './HanlinyuanModule.js';
|
||||
import TableModule from './TableModule.js';
|
||||
import PlotOptModule from './PlotOptModule.js';
|
||||
import CWBModule from './CWBModule.js';
|
||||
import WorldEditorModule from './WorldEditorModule.js';
|
||||
import GlossaryModule from './GlossaryModule.js';
|
||||
import RendererModule from './RendererModule.js';
|
||||
import SuperMemoryModule from './SuperMemoryModule.js';
|
||||
import ApiConfigModule from './ApiConfigModule.js';
|
||||
|
||||
export function registerAllModules() {
|
||||
registry.register('AdditionalFeatures', () => new AdditionalFeaturesModule());
|
||||
registry.register('Historiography', () => new HistoriographyModule());
|
||||
registry.register('Hanlinyuan', () => new HanlinyuanModule());
|
||||
registry.register('Table', () => new TableModule());
|
||||
registry.register('PlotOptimization', () => new PlotOptModule());
|
||||
registry.register('CharacterWorldBook', () => new CWBModule());
|
||||
registry.register('WorldEditor', () => new WorldEditorModule());
|
||||
registry.register('Glossary', () => new GlossaryModule());
|
||||
registry.register('Renderer', () => new RendererModule());
|
||||
registry.register('SuperMemory', () => new SuperMemoryModule());
|
||||
registry.register('ApiConfig', () => new ApiConfigModule());
|
||||
}
|
||||
Reference in New Issue
Block a user