File size: 3,173 Bytes
b66240d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Crypto Intelligence Admin</title>
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
    <link rel="stylesheet" href="/static/css/unified-ui.css" />
    <link rel="stylesheet" href="/static/css/components.css" />
    <script defer src="/static/js/ui-feedback.js"></script>
    <script defer src="/static/js/admin-app.js"></script>
</head>
<body class="page page-admin">
<header class="top-nav">
    <div class="branding">
        <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 12h16M12 4v16"/></svg>
        <div>
            <strong>Providers & Scheduling</strong>
            <small style="color:var(--ui-text-muted);letter-spacing:0.2em;">/api/providers · /api/logs</small>
        </div>
    </div>
    <nav class="nav-links">
        <a href="/dashboard">Dashboard</a>
        <a class="active" href="/admin">Admin</a>
        <a href="/hf_console">HF Console</a>
        <a href="/docs" target="_blank" rel="noreferrer">API Docs</a>
    </nav>
</header>

<main class="page-content">
    <section class="card">
        <div class="section-heading">
            <h2>Providers Health</h2>
            <span class="badge info" id="providers-count">Loading...</span>
        </div>
        <div class="table-card">
            <table>
                <thead>
                    <tr><th>Provider</th><th>Status</th><th>Response (ms)</th><th>Category</th></tr>
                </thead>
                <tbody id="providers-table">
                    <tr><td colspan="4">Loading providers...</td></tr>
                </tbody>
            </table>
        </div>
    </section>

    <section class="split-grid">
        <article class="card" id="provider-detail">
            <div class="section-heading">
                <h2>Provider Detail</h2>
                <span class="badge info" id="selected-provider">Select a provider</span>
            </div>
            <ul class="list" id="provider-detail-list"></ul>
        </article>
        <article class="card">
            <div class="section-heading">
                <h2>Configuration Snapshot</h2>
                <span class="badge info" id="config-summary">Loading...</span>
            </div>
            <ul class="list" id="config-list"></ul>
        </article>
    </section>

    <section class="split-grid">
        <article class="card">
            <div class="section-heading"><h2>Logs ( /api/logs )</h2><span class="badge info">Latest</span></div>
            <div id="logs-list" class="ws-stream"></div>
        </article>
        <article class="card">
            <div class="section-heading"><h2>Alerts ( /api/alerts )</h2><span class="badge info">Live</span></div>
            <div id="alerts-list"></div>
        </article>
    </section>
</main>
</body>
</html>