Wallet system (sats ledger + deposit + spend), HydraProxy fulfillment queue, paid IP-quality scorer (85/100 verified)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<h2>Dashboard</h2>
|
||||
<div class="stats-row">
|
||||
<div class="card stat"><span class="lbl">Balance</span><span class="val">{{ '%.2f'|format(user.balance_gb) }} GB</span></div>
|
||||
<div class="card stat"><span class="lbl">Wallet</span><span class="val">{{ balance }} <span style="font-size:14px;color:var(--muted)">sats</span></span></div>
|
||||
<div class="card stat"><span class="lbl">Used</span><span class="val">{{ '%.3f'|format(used_gb) }} GB</span></div>
|
||||
<div class="card stat"><span class="lbl">Status</span>
|
||||
<span class="val" style="color:{{ 'var(--ok)' if user.active else 'var(--danger)' }}">{{ 'ACTIVE' if user.active else 'INACTIVE' }}</span>
|
||||
@@ -93,6 +94,29 @@
|
||||
<p class="muted" style="margin-top:18px">No dedicated IPs yet — <a href="/dedicated">order one</a>.</p>
|
||||
{% endif %}
|
||||
|
||||
{% if hydra %}
|
||||
<div class="card" style="margin-top:18px">
|
||||
<h3>HydraProxy orders <span class="muted" style="font-size:12px">(broker-fulfilled)</span></h3>
|
||||
{% for h in hydra %}
|
||||
<div style="border:1px solid var(--border);border-radius:8px;padding:12px;margin:10px 0">
|
||||
<div style="display:flex;justify-content:space-between">
|
||||
<strong style="color:var(--text)">{{ h.product }}{% if h.location %} · {{ h.location }}{% endif %}</strong>
|
||||
<span style="color:{{ 'var(--ok)' if h.status=='active' else 'var(--warn)' }}">{{ h.status }}</span>
|
||||
</div>
|
||||
{% if h.status == 'active' %}
|
||||
<label style="font-size:11px;color:var(--muted)">Proxy</label>
|
||||
<div class="copy">
|
||||
<input type="text" readonly value="{{ h.proxy_user }}:{{ h.proxy_pass }}@{{ h.proxy_host }}:{{ h.proxy_port }}" onclick="this.select()">
|
||||
<button onclick="copy(this.previousElementSibling)">Copy</button>
|
||||
</div>
|
||||
{% elif h.status == 'pending_fulfillment' %}
|
||||
<p class="muted" style="font-size:12px;margin:6px 0 0">Broker is fulfilling your order — your proxy appears here when ready.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if orders %}
|
||||
<div class="card" style="margin-top:18px">
|
||||
<h3>Order history</h3>
|
||||
|
||||
Reference in New Issue
Block a user