Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
hooks.html · 3.9 KB · 59 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Model Hooks Dashboard - DBBasic</title> |
| 7 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> |
| 8 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css"> |
| 9 | |
| 10 | <style> |
| 11 | .card { transition: transform 0.3s; } |
| 12 | .card:hover { transform: translateY(-5px); } |
| 13 | </style> |
| 14 | </head> |
| 15 | <body> |
| 16 | |
| 17 | <nav class="navbar navbar-expand-lg navbar-light bg-light"> |
| 18 | <div class="container-fluid"> |
| 19 | <a class="navbar-brand" href="#">DBBasic</a> |
| 20 | <div class="navbar-nav ms-auto"> |
| 21 | <a class="nav-link" href="http://localhost:8004">Monitor</a> <a class="nav-link" href="http://localhost:8005">Data</a> <a class="nav-link" href="http://localhost:8003">AI Services</a> <a class="nav-link" href="http://localhost:8006">Event Store</a> <a class="nav-link" href="http://localhost:8005/templates">Templates</a> |
| 22 | </div> |
| 23 | </div> |
| 24 | </nav><div class="container-fluid"><div class="container"> |
| 25 | <nav aria-label="breadcrumb"> |
| 26 | <ol class="breadcrumb"> |
| 27 | <li class="breadcrumb-item"><a href="/">DBBasic</a></li><li class="breadcrumb-item active">AI Services</li> |
| 28 | </ol> |
| 29 | </nav> |
| 30 | </div></div><div class="container-fluid"> |
| 31 | <div class="bg-primary text-white text-center py-5"> |
| 32 | <div class="container"> |
| 33 | <h1 class="display-4">🔗 Model Hooks System</h1> |
| 34 | <p class="lead">Event-driven business logic automation</p> |
| 35 | </div> |
| 36 | </div> |
| 37 | <div class="container my-5"> |
| 38 | <div class="row row-cols-1 row-cols-md-3 g-4"> |
| 39 | <div class="col">{'type': 'metric_card', 'id': 'total-hooks', 'title': 'Total Hooks', 'value': '0', 'icon': 'bi-link'}</div> <div class="col">{'type': 'metric_card', 'id': 'pending-hooks', 'title': 'Pending', 'value': '0', 'icon': 'bi-hourglass', 'variant': 'warning'}</div> <div class="col">{'type': 'metric_card', 'id': 'processed-hooks', 'title': 'Processed', 'value': '0', 'icon': 'bi-check-circle', 'variant': 'success'}</div> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="card h-100"> |
| 43 | <div class="card-body"> |
| 44 | <div class="d-flex justify-content-between align-items-start mb-2"> |
| 45 | <h5 class="card-title">Configure Model Hooks</h5> |
| 46 | |
| 47 | </div> |
| 48 | <p class="card-text"></p> |
| 49 | </div> |
| 50 | |
| 51 | </div></div><div class="container-fluid"><div class="container">{'type': 'row', 'children': [{'type': 'col', 'size': 4, 'children': ['<h5>DBBasic</h5>', '<p class="text-muted">Config-driven application platform</p>']}, {'type': 'col', 'size': 4, 'children': ['<h6>Services</h6>', {'type': 'list', 'class': 'list-unstyled', 'items': ['<a href="http://localhost:8004" class="text-muted">Monitor</a>', '<a href="http://localhost:8005" class="text-muted">Data</a>', '<a href="http://localhost:8003" class="text-muted">AI Services</a>', '<a href="http://localhost:8006" class="text-muted">Event Store</a>', '<a href="http://localhost:8005" class="text-muted">Templates</a>']}]}, {'type': 'col', 'size': 4, 'children': ['<h6>Performance</h6>', '<p class="text-muted">🚀 402M rows/sec with DuckDB</p>', '<p class="text-muted">⚡ Post-Code Era</p>', '<p class="text-muted">🤖 AI-Enhanced</p>']}]}<hr class="border-secondary"><p class="text-center text-muted mb-0">© 2024 DBBasic - Everything is Data</p></div></div> |
| 52 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> |
| 53 | |
| 54 | <script> |
| 55 | function deployTemplate(id) { alert('Deploying: ' + id); } |
| 56 | function previewTemplate(id) { alert('Preview: ' + id); } |
| 57 | </script> |
| 58 | </body> |
| 59 | </html> |