revert: restore the original pre-redesign web console
Revert688aad3,39ac03a,c84dc36, andff6a828in reverse chronological order. Restore the exact tracked tree from99aff42while 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user