cleanup cli, configs, systemd and readme
This commit is contained in:
@@ -264,7 +264,14 @@
|
||||
function renderStations(items) {
|
||||
const tbody = q('#stations');
|
||||
tbody.innerHTML = '';
|
||||
(items || []).forEach((s) => tbody.appendChild(stationRow(s)));
|
||||
const rows = items || [];
|
||||
if (!rows.length) {
|
||||
const tr = document.createElement('tr');
|
||||
tr.innerHTML = `<td colspan="7" class="muted">Станции пока не найдены. Сохрани токен и нажми «Найти колонки».</td>`;
|
||||
tbody.appendChild(tr);
|
||||
return;
|
||||
}
|
||||
rows.forEach((s) => tbody.appendChild(stationRow(s)));
|
||||
}
|
||||
|
||||
async function refreshStatus() {
|
||||
@@ -312,7 +319,7 @@
|
||||
setStatus('Генерирую Loxone шаблоны и готовлю архив...');
|
||||
await api('/api/templates/loxone', 'POST');
|
||||
window.location.href = '/api/download/loxone';
|
||||
setStatus('Скачивание Loxone ZIP запущено');
|
||||
setStatus('Скачивание Loxone ZIP запущено. Локальная копия лежит в configs/loxone/loxone_templates.zip');
|
||||
} catch (e) {
|
||||
setStatus(e.message, false);
|
||||
}
|
||||
@@ -323,7 +330,7 @@
|
||||
setStatus('Генерирую wb-rules шаблоны и готовлю архив...');
|
||||
await api('/api/templates/wb-rules', 'POST');
|
||||
window.location.href = '/api/download/wb-rules';
|
||||
setStatus('Скачивание wb-rules ZIP запущено');
|
||||
setStatus('Скачивание wb-rules ZIP запущено. Локальная копия лежит в configs/wb-rules/wb_rules_templates.zip');
|
||||
} catch (e) {
|
||||
setStatus(e.message, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user