mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 10:25:51 +00:00
23 lines
602 B
JavaScript
23 lines
602 B
JavaScript
import { Module, ModuleBuilder } from './Module.js';
|
|
import { bindHistoriographyEvents } from '../../ui/historiography-bindings.js';
|
|
|
|
const builder = new ModuleBuilder()
|
|
.name('Historiography')
|
|
.view('assets/Amily2-TextOptimization.html')
|
|
.strict(true)
|
|
.required(['mount']);
|
|
|
|
export default class HistoriographyModule extends Module {
|
|
constructor() {
|
|
super(builder);
|
|
}
|
|
|
|
async mount() {
|
|
if (this.el) {
|
|
this.el.id = 'amily2_text_optimization_panel';
|
|
this.el.style.display = 'none';
|
|
}
|
|
bindHistoriographyEvents();
|
|
}
|
|
}
|