From dcf0936c2af605672254fbfcb05735adad964e35 Mon Sep 17 00:00:00 2001 From: aaronjaworski710 Date: Thu, 15 Oct 2026 12:21:56 +0300 Subject: [PATCH] ui: remove System/Storage/Captcha cards per owner request (services + mail pool stay) --- autoreg/index.html | 74 ++++------------------------------------------ 1 file changed, 6 insertions(+), 68 deletions(-) diff --git a/autoreg/index.html b/autoreg/index.html index b8a675b..c47c458 100644 --- a/autoreg/index.html +++ b/autoreg/index.html @@ -217,47 +217,19 @@ -
-
-

Captcha credits

Available provider balances

- 2captcha -
-
-
-

Balance bars use a $5 reference scale.

-
-
+ -
+

Mail pool

catchall + t-online
—addresses available
-
-

Storage

C:
-
—GB free disk space
-
+
-
-

System

PC resources, real time

local
-
-
-
CPU—
-
-
-
-
RAM—
-
-
-
-
Disk free—
-
-
-
-
+

Services

Stack health — видно агенту и ПК

auto
@@ -481,40 +453,7 @@ select.disabled = models.length === 0; } - function renderCaptcha(balances) { - $('captcha').innerHTML = balances.map(item => { - const balance = parseFloat(item.balance); - const valid = Number.isFinite(balance); - const healthy = valid && balance > .05; - const percentage = valid ? Math.min(100, Math.max(0, balance / 5 * 100)) : 0; - return `
-
- ${esc(item.label)} - $${esc(item.balance)} -
-
-
-
-
`; - }).join('') || '

No captcha balances reported.

'; - } - - function renderSystem(S) { - const pc = S.pc || {}; - const setBar = (id, pct, txt) => { - const bar = $(id + '-bar'); const el = $(id); - if (el) el.textContent = txt; - if (bar) { - const p = Math.min(100, Math.max(0, pct || 0)); - bar.style.width = p + '%'; - bar.style.background = p > 85 ? 'var(--destructive)' : p > 60 ? '#f59e0b' : 'var(--success)'; - } - }; - setBar('pc-cpu', pc.cpu_pct, pc.cpu_pct != null ? pc.cpu_pct + '%' : '—'); - const ramPct = pc.ram_total_gb ? (pc.ram_used_gb / pc.ram_total_gb * 100) : 0; - setBar('pc-ram', ramPct, pc.ram_total_gb ? pc.ram_used_gb + ' / ' + pc.ram_total_gb + ' GB' : '—'); - const d = $('pc-disk2'); if (d) d.textContent = (S.disk_free_gb ?? '—') + ' GB'; - const db = $('pc-disk-bar'); if (db) { db.style.width = Math.min(100, (S.disk_free_gb || 0) / 5) + '%'; } + function renderSystem(S) { const sv = S.services || {}; const waveUp = !!(S.wave && S.wave.running); const items = [ @@ -541,7 +480,7 @@ const values = { 'c-total': S.bank.total, 'c-comp': S.bank.complete, 'c-act': S.bank.activated, 'c-dead': S.bank.dead, - 'c-pool': S.pool_left, 'c-disk': S.disk_free_gb + 'c-pool': S.pool_left }; Object.entries(values).forEach(([id, value]) => { $(id).textContent = value ?? '—'; @@ -558,7 +497,6 @@ $('wave-pill').textContent = S.wave.running ? 'Running' + (pids != null && pids !== '' ? ' · PID ' + pids : '') : 'Stopped'; $('wave-pill').className = 'badge ' + (S.wave.running ? 'badge-success' : 'badge-outline'); updateWaveButtons(); - renderCaptcha(S.captcha || []); renderSystem(S); renderModels(S.gateway.models || []); if (Array.isArray(S.log) && currentTab !== 'log') renderLog(S.log);