fix(админка): свежие файлы без ручной чистки кеша, скелетон вместо «Загрузки»

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-10 01:26:08 +10:00
co-authored by Claude Code
parent 40dcb44a7c
commit 55aca56b3f
12 changed files with 92 additions and 10 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { useState, useEffect } from '/static/admin2/vendor/hooks.module.js';
import htm from '/static/admin2/vendor/htm.module.js';
import { api } from '/static/admin2/api.js';
import { Card } from '/static/admin2/ui/card.js';
import { Loading } from '/static/admin2/ui/loading.js';
import { Task } from '/static/admin2/ui/task.js';
const html = htm.bind(h);
@@ -35,7 +36,7 @@ export function DayPage() {
}, []);
if (error) return html`<div class="card error" role="alert">${error}</div>`;
if (!data) return html`<div class="card">Загрузка…</div>`;
if (!data) return html`<${Loading} />`;
const w = data.work_24h, m = data.money, c = data.customers || {};
return html`