feat(админка): таблица клиентов v2

This commit is contained in:
anor
2026-11-06 21:35:34 +10:00
parent 47c1a93b99
commit c7558f2772
7 changed files with 220 additions and 1 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ import { h, render } from '/static/admin2/vendor/preact.module.js';
import htm from '/static/admin2/vendor/htm.module.js';
import { SECTIONS, sectionFromPath, hrefFor } from '/static/admin2/router.js';
import { DayPage } from '/static/admin2/pages/day.js';
import { CustomersPage } from '/static/admin2/pages/customers.js';
const html = htm.bind(h);
const TITLES = {
@@ -25,7 +26,8 @@ const App = () => html`
</nav>
<main class="main">
<header class="top"><div><h1>${title}</h1><p>${subtitle}</p></div></header>
${section === 'today' ? html`<${DayPage} />` : html`
${section === 'today' ? html`<${DayPage} />`
: section === 'customers' ? html`<${CustomersPage} />` : html`
<section class="card" aria-labelledby="placeholder">
<h2 id="placeholder">Раздел готовится</h2>
<p>Данные и действия подключит следующий этап.</p>