Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
model_editor.html · 3.7 KB · 64 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>New Model - 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">Data</li> |
| 28 | </ol> |
| 29 | </nav> |
| 30 | </div></div><div class="container-fluid"> |
| 31 | <nav aria-label="breadcrumb"> |
| 32 | <ol class="breadcrumb"> |
| 33 | <li class="breadcrumb-item"><a href="/">Data Service</a></li><li class="breadcrumb-item"><a href="/models">Models</a></li><li class="breadcrumb-item active">New Model</li> |
| 34 | </ol> |
| 35 | </nav> |
| 36 | |
| 37 | <div class="card h-100"> |
| 38 | <div class="card-body"> |
| 39 | <div class="d-flex justify-content-between align-items-start mb-2"> |
| 40 | <h5 class="card-title">📝 Create Model</h5> |
| 41 | |
| 42 | </div> |
| 43 | <p class="card-text"></p> |
| 44 | </div> |
| 45 | |
| 46 | </div> |
| 47 | <div class="card h-100"> |
| 48 | <div class="card-body"> |
| 49 | <div class="d-flex justify-content-between align-items-start mb-2"> |
| 50 | <h5 class="card-title">👁️ Preview</h5> |
| 51 | |
| 52 | </div> |
| 53 | <p class="card-text"></p> |
| 54 | </div> |
| 55 | |
| 56 | </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> |
| 57 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> |
| 58 | |
| 59 | <script> |
| 60 | function deployTemplate(id) { alert('Deploying: ' + id); } |
| 61 | function previewTemplate(id) { alert('Preview: ' + id); } |
| 62 | </script> |
| 63 | </body> |
| 64 | </html> |