revert: restore the original pre-redesign web console

Revert 688aad3, 39ac03a, c84dc36, and ff6a828 in reverse chronological order. Restore the exact tracked tree from 99aff42 while preserving history.

Validation: 29 authentication and base-path tests passed offline. All 23 prior UI browser tests ran in system Edge: 22 passed initially; the fake-login test passed on an unchanged isolated retry. Live game HTTP was blocked throughout browser validation.
This commit is contained in:
AttilaNet
2026-11-11 10:08:02 +08:00
parent 688aad37c1
commit e26d37e9c5
46 changed files with 748 additions and 4554 deletions
+2 -15
View File
@@ -111,21 +111,11 @@ export class PageView {
clearError() { this.errorBox.hidden = true; }
setQuery(key, value) {
if (this.destroyed || this.query[key] === value) return;
if (this.query[key] === value) return;
this.query[key] = value;
this.generation = (this.generation || 0) + 1;
clearTimeout(this.queryTimer);
this.queryTimer = setTimeout(() => { if (!this.destroyed) this.options.load(this, true); }, key === 'search' ? 220 : 0);
}
destroy() {
this.destroyed = true;
clearTimeout(this.queryTimer);
this.generation = (this.generation || 0) + 1;
this.table?.destroy?.();
this.statisticsTable?.destroy();
this.login?.clearPassword();
this.root.remove();
this.queryTimer = setTimeout(() => this.options.load(this, true), key === 'search' ? 220 : 0);
}
updateFilters(filters) {
@@ -207,7 +197,6 @@ export class PageView {
}
render(data, loading = false) {
if (this.destroyed) return;
if (!data) { this.loading.textContent = '正在读取…'; this.loading.dataset.loading = 'true'; return; }
this.data = data;
this.loading.dataset.loading = String(loading);
@@ -235,8 +224,6 @@ export class PageView {
const mode = this.key === 'statistics' ? 'statistics' : grouped ? 'grouped' : 'table';
if (this.contentMode !== mode) {
if (this.content.contains(document.activeElement)) return;
this.table?.destroy?.();
this.statisticsTable?.destroy();
this.content.replaceChildren();
this.contentMode = mode;
this.table = mode === 'grouped' ? new GroupedTables(this.content, this.context, {collapsed: this.key === 'maps'}) : mode === 'table' ? new DataTable(this.content, this.context, {emptyMessage: this.key === 'plans' ? '当前没有执行计划。请配置策略并刷新 / 预览,查看下一步或等待原因。' : '当前筛选下没有条目。可调整筛选,或登录后刷新状态。'}) : null;