feat(stove-api): expose estimate and operator controls

This commit is contained in:
anor
2026-11-26 20:22:55 +10:00
parent de624297ed
commit a98aa460d4
19 changed files with 1074 additions and 12 deletions
+4 -1
View File
@@ -8,6 +8,7 @@ import { CustomersPage } from '/static/admin2/pages/customers.js';
import { MoneyPage } from '/static/admin2/pages/money.js';
import { WorkPage } from '/static/admin2/pages/work.js';
import { SystemPage } from '/static/admin2/pages/system.js';
import { StoveApiPage } from '/static/admin2/pages/stove-api.js';
const html = htm.bind(h);
const TITLES = {
@@ -16,6 +17,7 @@ const TITLES = {
money: ["Деньги", "Поступления, поток и обязательства"],
work: ["Работа", "Очередь, прогоны и сбои"],
system: ["Система", "Здоровье службы и настройки"],
"stove-api": ["API печей", "Ключи, лимиты и история вызовов"],
};
const App = () => {
const [section, setSection] = useState(sectionFromPath(location.pathname));
@@ -78,7 +80,8 @@ const App = () => {
: section === 'customers' ? html`<${CustomersPage} />`
: section === 'money' ? html`<${MoneyPage} />`
: section === 'work' ? html`<${WorkPage} />`
: section === 'system' ? html`<${SystemPage} />` : html`
: section === 'system' ? html`<${SystemPage} />`
: section === 'stove-api' ? html`<${StoveApiPage} />` : html`
<section class="card" aria-labelledby="placeholder">
<h2 id="placeholder">Раздел готовится</h2>
<p>Данные и действия подключит следующий этап.</p>