feat: implement turbo mode functionality with proxy support and dashboard display
CI / lint-and-test (push) Has been cancelled
CI / lint-and-test (push) Has been cancelled
This commit is contained in:
@@ -82,6 +82,28 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card stat-card" style="border-left: 4px solid {% if data.turbo_active %}var(--warning-text){% else %}var(--border-hover){% endif %};">
|
||||
<div class="stat-label">Turbo Mode (Admin)</div>
|
||||
<div class="stat-value" style="font-size: 24px; color: {% if data.turbo_active %}var(--warning-text){% else %}var(--text-primary){% endif %};">
|
||||
{{ 'Active' if data.turbo_active else ('Armed' if data.turbo_mode else 'Off') }}
|
||||
</div>
|
||||
<div class="stat-subtext muted">
|
||||
{% if data.proxy_enabled %}
|
||||
Scheduler runs every ~{{ '%.1f'|format(data.turbo_effective_sleep_s) }}s
|
||||
{% else %}
|
||||
Enable proxy first to activate turbo
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if data.seconds_until_next is not none %}
|
||||
<div class="stat-subtext muted">Next cycle in ~{{ data.seconds_until_next }}s</div>
|
||||
{% endif %}
|
||||
<form method="post" action="/admin/turbo" style="margin-top: 12px;">
|
||||
<button type="submit" {% if not data.proxy_enabled %}disabled{% endif %} style="border: 1px solid var(--border-hover); background: {% if data.turbo_mode %}var(--warning-bg){% else %}var(--bg-surface-active){% endif %}; color: var(--text-primary); border-radius: 10px; padding: 8px 12px; cursor: {% if data.proxy_enabled %}pointer{% else %}not-allowed{% endif %}; font-weight: 600; opacity: {% if data.proxy_enabled %}1{% else %}0.55{% endif %};">
|
||||
{{ 'Disable Turbo' if data.turbo_mode else 'Enable Turbo' }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card stat-card" style="border-left: 4px solid {% if data.queue_dead > 0 %}var(--danger-text){% else %}var(--success-text){% endif %};">
|
||||
<div class="stat-label">Delivery Queue</div>
|
||||
<div class="stat-value" style="font-size: 24px;">
|
||||
|
||||
Reference in New Issue
Block a user