File size: 25,865 Bytes
d6d843f |
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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Crypto Monitor HF - Unified Dashboard</title>
<link rel="stylesheet" href="static/css/design-tokens.css" />
<link rel="stylesheet" href="static/css/design-system.css" />
<link rel="stylesheet" href="static/css/dashboard.css" />
<link rel="stylesheet" href="static/css/pro-dashboard.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js" defer></script>
</head>
<body data-theme="dark">
<div class="app-shell">
<aside class="sidebar">
<div class="brand">
<strong>Crypto Monitor HF</strong>
<span class="env-pill">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="1.5" />
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="1.5" />
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="1.5" />
</svg>
HF Space
</span>
</div>
<nav class="nav">
<button class="nav-button active" data-nav="page-overview">Overview</button>
<button class="nav-button" data-nav="page-market">Market</button>
<button class="nav-button" data-nav="page-chart">Chart Lab</button>
<button class="nav-button" data-nav="page-ai">Sentiment & AI</button>
<button class="nav-button" data-nav="page-news">News</button>
<button class="nav-button" data-nav="page-providers">Providers</button>
<button class="nav-button" data-nav="page-api">API Explorer</button>
<button class="nav-button" data-nav="page-debug">Diagnostics</button>
<button class="nav-button" data-nav="page-datasets">Datasets & Models</button>
<button class="nav-button" data-nav="page-settings">Settings</button>
</nav>
<div class="sidebar-footer">
Unified crypto intelligence console<br />Realtime data • HF optimized
</div>
</aside>
<main class="main-area">
<header class="topbar">
<div>
<h1>Unified Intelligence Dashboard</h1>
<p class="text-muted">Live market telemetry, AI signals, diagnostics, and provider health.</p>
</div>
<div class="status-group">
<div class="status-pill" data-api-health data-state="warn">
<span class="status-dot"></span>
<span>checking</span>
</div>
<div class="status-pill" data-ws-status data-state="warn">
<span class="status-dot"></span>
<span>connecting</span>
</div>
</div>
</header>
<div class="page-container">
<section id="page-overview" class="page active">
<div class="section-header">
<h2 class="section-title">Global Overview</h2>
<span class="chip">Powered by /api/market/stats</span>
</div>
<div class="stats-grid" data-overview-stats></div>
<div class="grid-two">
<div class="glass-card">
<div class="section-header">
<h3>Top Coins</h3>
<span class="text-muted">Market movers</span>
</div>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>#</th>
<th>Symbol</th>
<th>Name</th>
<th>Price</th>
<th>24h %</th>
<th>Volume</th>
<th>Market Cap</th>
</tr>
</thead>
<tbody data-top-coins-body></tbody>
</table>
</div>
</div>
<div class="glass-card">
<div class="section-header">
<h3>Global Sentiment</h3>
<span class="text-muted">CryptoBERT stack</span>
</div>
<canvas id="sentiment-chart" height="220"></canvas>
</div>
</div>
</section>
<section id="page-market" class="page">
<div class="section-header">
<h2 class="section-title">Market Intelligence</h2>
<div class="controls-bar">
<div class="input-chip">
<svg viewBox="0 0 24 24" width="16" height="16"><path d="M21 20l-5.6-5.6A6.5 6.5 0 1 0 15.4 16L21 21zM5 10.5a5.5 5.5 0 1 1 11 0a5.5 5.5 0 0 1-11 0z" fill="currentColor"/></svg>
<input type="text" placeholder="Search symbol" data-market-search />
</div>
<div class="input-chip">
Timeframe:
<button class="ghost" data-timeframe="1d">1D</button>
<button class="ghost active" data-timeframe="7d">7D</button>
<button class="ghost" data-timeframe="30d">30D</button>
</div>
<label class="input-chip"> Live updates
<div class="toggle">
<input type="checkbox" data-live-toggle />
<span></span>
</div>
</label>
</div>
</div>
<div class="glass-card">
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>#</th>
<th>Symbol</th>
<th>Name</th>
<th>Price</th>
<th>24h %</th>
<th>Volume</th>
<th>Market Cap</th>
</tr>
</thead>
<tbody data-market-body></tbody>
</table>
</div>
</div>
<div class="drawer" data-market-drawer>
<button class="ghost" data-close-drawer>Close</button>
<h3 data-drawer-symbol>—</h3>
<div data-drawer-stats></div>
<div class="glass-card" data-chart-wrapper>
<canvas id="market-detail-chart" height="180"></canvas>
</div>
<div class="glass-card">
<h4>Related Headlines</h4>
<div data-drawer-news></div>
</div>
</div>
</section>
<section id="page-chart" class="page">
<div class="section-header">
<h2 class="section-title">Chart Lab</h2>
<div class="controls-bar">
<select data-chart-symbol>
<option value="BTC">BTC</option>
<option value="ETH">ETH</option>
<option value="SOL">SOL</option>
<option value="BNB">BNB</option>
</select>
<div class="input-chip">
<button class="ghost active" data-chart-timeframe="7d">7D</button>
<button class="ghost" data-chart-timeframe="30d">30D</button>
<button class="ghost" data-chart-timeframe="90d">90D</button>
</div>
</div>
</div>
<div class="glass-card">
<canvas id="chart-lab-canvas" height="260"></canvas>
</div>
<div class="glass-card">
<div class="controls-bar">
<label><input type="checkbox" data-indicator value="MA20" checked /> MA 20</label>
<label><input type="checkbox" data-indicator value="MA50" /> MA 50</label>
<label><input type="checkbox" data-indicator value="RSI" /> RSI</label>
<label><input type="checkbox" data-indicator value="Volume" /> Volume</label>
</div>
<button class="primary" data-run-analysis>Analyze Chart with AI</button>
<div data-ai-insights class="ai-insights"></div>
</div>
</section>
<section id="page-ai" class="page">
<div class="section-header">
<h2 class="section-title">Sentiment & AI Advisor</h2>
</div>
<div class="glass-card">
<form data-ai-form class="ai-form">
<div class="grid-two">
<label>Symbol
<select name="symbol">
<option value="BTC">BTC</option>
<option value="ETH">ETH</option>
<option value="SOL">SOL</option>
</select>
</label>
<label>Time Horizon
<select name="horizon">
<option value="intraday">Intraday</option>
<option value="swing" selected>Swing</option>
<option value="long">Long Term</option>
</select>
</label>
<label>Risk Profile
<select name="risk">
<option value="conservative">Conservative</option>
<option value="moderate" selected>Moderate</option>
<option value="aggressive">Aggressive</option>
</select>
</label>
<label>Sentiment Model
<select name="model">
<option value="auto">Auto</option>
<option value="crypto">CryptoBERT</option>
<option value="financial">FinBERT</option>
<option value="social">Twitter Sentiment</option>
</select>
</label>
</div>
<label>Context or Headline
<textarea name="context" placeholder="Paste a headline or trade thesis for AI analysis"></textarea>
</label>
<button class="primary" type="submit">Generate Guidance</button>
</form>
<div class="grid-two">
<div data-ai-result class="ai-result"></div>
<div data-sentiment-result></div>
</div>
<div class="inline-message inline-info" data-ai-disclaimer>
Experimental AI output. Not financial advice.
</div>
</div>
</section>
<section id="page-news" class="page">
<div class="section-header">
<h2 class="section-title">News & Summaries</h2>
</div>
<div class="controls-bar">
<select data-news-range>
<option value="24h">Last 24h</option>
<option value="7d">7 Days</option>
<option value="30d">30 Days</option>
</select>
<input type="text" placeholder="Search headline" data-news-search />
<input type="text" placeholder="Filter symbol (e.g. BTC)" data-news-symbol />
</div>
<div class="glass-card">
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Time</th>
<th>Source</th>
<th>Title</th>
<th>Symbols</th>
<th>Sentiment</th>
<th>AI</th>
</tr>
</thead>
<tbody data-news-body></tbody>
</table>
</div>
</div>
<div class="modal-backdrop" data-news-modal>
<div class="modal">
<button class="ghost" data-close-news-modal>Close</button>
<div data-news-modal-content></div>
</div>
</div>
</section>
<section id="page-providers" class="page">
<div class="section-header">
<h2 class="section-title">Provider Health</h2>
<button class="ghost" data-provider-refresh>Refresh</button>
</div>
<div class="stats-grid" data-provider-summary></div>
<div class="controls-bar">
<input type="search" placeholder="Search provider" data-provider-search />
<select data-provider-category>
<option value="all">All Categories</option>
<option value="market">Market Data</option>
<option value="news">News</option>
<option value="ai">AI</option>
</select>
</div>
<div class="glass-card">
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Name</th>
<th>Category</th>
<th>Status</th>
<th>Latency</th>
<th>Details</th>
</tr>
</thead>
<tbody data-providers-table></tbody>
</table>
</div>
</div>
</section>
<section id="page-api" class="page">
<div class="section-header">
<h2 class="section-title">API Explorer</h2>
<span class="chip">Test live endpoints</span>
</div>
<div class="glass-card">
<div class="grid-two">
<label>Endpoint
<select data-api-endpoint></select>
</label>
<label>Method
<select data-api-method>
<option value="GET">GET</option>
<option value="POST">POST</option>
</select>
</label>
<label>Query Params
<input type="text" placeholder="limit=10&symbol=BTC" data-api-params />
</label>
<label>Body (JSON)
<textarea data-api-body placeholder='{ "text": "Bitcoin" }'></textarea>
</label>
</div>
<p class="text-muted">Path: <span data-api-path></span> — <span data-api-description></span></p>
<button class="primary" data-api-send>Send Request</button>
<div class="inline-message" data-api-meta>Ready</div>
<pre data-api-response class="api-response"></pre>
</div>
</section>
<section id="page-debug" class="page">
<div class="section-header">
<h2 class="section-title">Diagnostics</h2>
<button class="ghost" data-refresh-health>Refresh</button>
</div>
<div class="stats-grid">
<div class="glass-card">
<h3>API Health</h3>
<div class="stat-value" data-health-status>—</div>
</div>
<div class="glass-card">
<h3>Providers</h3>
<div data-providers class="grid-two"></div>
</div>
</div>
<div class="grid-two">
<div class="glass-card">
<h4>Request Log</h4>
<div class="table-wrapper log-table">
<table>
<thead>
<tr>
<th>Time</th>
<th>Method</th>
<th>Endpoint</th>
<th>Status</th>
<th>Latency</th>
</tr>
</thead>
<tbody data-request-log></tbody>
</table>
</div>
</div>
<div class="glass-card">
<h4>Error Log</h4>
<div class="table-wrapper log-table">
<table>
<thead>
<tr>
<th>Time</th>
<th>Endpoint</th>
<th>Message</th>
</tr>
</thead>
<tbody data-error-log></tbody>
</table>
</div>
</div>
</div>
<div class="glass-card">
<h4>WebSocket Events</h4>
<div class="table-wrapper log-table">
<table>
<thead>
<tr>
<th>Time</th>
<th>Type</th>
<th>Detail</th>
</tr>
</thead>
<tbody data-ws-log></tbody>
</table>
</div>
</div>
</section>
<section id="page-datasets" class="page">
<div class="section-header">
<h2 class="section-title">Datasets & Models</h2>
</div>
<div class="grid-two">
<div class="glass-card">
<h3>Datasets</h3>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Name</th>
<th>Records</th>
<th>Updated</th>
<th>Actions</th>
</tr>
</thead>
<tbody data-datasets-body></tbody>
</table>
</div>
</div>
<div class="glass-card">
<h3>Models</h3>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Name</th>
<th>Task</th>
<th>Status</th>
<th>Notes</th>
</tr>
</thead>
<tbody data-models-body></tbody>
</table>
</div>
</div>
</div>
<div class="glass-card">
<h4>Test a Model</h4>
<form data-model-test-form class="grid-two">
<label>Model
<select data-model-select name="model"></select>
</label>
<label>Input
<textarea name="input" placeholder="Type a prompt"></textarea>
</label>
<button class="primary" type="submit">Run Test</button>
</form>
<div data-model-test-output></div>
</div>
<div class="modal-backdrop" data-dataset-modal>
<div class="modal">
<button class="ghost" data-close-dataset-modal>Close</button>
<div data-dataset-modal-content></div>
</div>
</div>
</section>
<section id="page-settings" class="page">
<div class="section-header">
<h2 class="section-title">Settings</h2>
</div>
<div class="glass-card">
<div class="grid-two">
<label class="input-chip">Light Theme
<div class="toggle">
<input type="checkbox" data-theme-toggle />
<span></span>
</div>
</label>
<label>Market Refresh (sec)
<input type="number" min="15" step="5" data-market-interval />
</label>
<label>News Refresh (sec)
<input type="number" min="30" step="10" data-news-interval />
</label>
<label class="input-chip">Compact Layout
<div class="toggle">
<input type="checkbox" data-layout-toggle />
<span></span>
</div>
</label>
</div>
</div>
</section>
</div>
</main>
</div>
<script type="module" src="static/js/app.js"></script>
</body>
</html>
|