fix(админка): свежие файлы без ручной чистки кеша, скелетон вместо «Загрузки»
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import { useEffect, useState } from '/static/admin2/vendor/hooks.module.js';
|
||||
import htm from '/static/admin2/vendor/htm.module.js';
|
||||
import { api } from '/static/admin2/api.js';
|
||||
import { Table } from '/static/admin2/ui/table.js';
|
||||
import { Loading } from '/static/admin2/ui/loading.js';
|
||||
|
||||
const html = htm.bind(h);
|
||||
const CAT = {wrong_answer: 'неверный ответ', off_topic: 'не по делу', failure: 'сбой',
|
||||
@@ -63,7 +64,7 @@ function FeedbackTab() {
|
||||
</div>
|
||||
${error ? html`<div class="card error" role="alert">${error}</div>` : null}
|
||||
${data ? html`<${Table} columns=${columns} rows=${data.items.map((r) => ({...r, key: r.id}))}
|
||||
empty="Жалоб нет" />` : html`<div class="card">Загрузка…</div>`}`;
|
||||
empty="Жалоб нет" />` : html`<${Loading} rows={2} />`}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +92,7 @@ function Paged({ title, path, columns, search = true, extra = null, params = {}
|
||||
</div>
|
||||
${error ? html`<div class="card error" role="alert">${error}</div>` : null}
|
||||
${data ? html`<${Table} columns=${columns} rows=${data.items.map((r) => ({...r, key: r.id || (r.username + r.tab_id)}))} empty="Пусто" />`
|
||||
: html`<div class="card">Загрузка…</div>`}`;
|
||||
: html`<${Loading} rows={2} />`}`;
|
||||
}
|
||||
|
||||
function DialogsTab() {
|
||||
|
||||
Reference in New Issue
Block a user