Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
dbbasic_event_store_ui.py · 740 bytes · 30 lines
| 1 | #!/usr/bin/env python3 |
| 2 | """ |
| 3 | Dbbasic Event Store UI Module |
| 4 | Provides UI data structures for the service |
| 5 | """ |
| 6 | |
| 7 | from dbbasic_unified_ui import get_master_layout |
| 8 | |
| 9 | def get_event_store_dashboard(): |
| 10 | """Get dashboard UI for event_store""" |
| 11 | return get_master_layout( |
| 12 | title='Event Store', |
| 13 | service_name='event_store', |
| 14 | content=[ |
| 15 | { |
| 16 | 'type': 'hero', |
| 17 | 'title': 'Event Store', |
| 18 | 'subtitle': 'Service dashboard' |
| 19 | }, |
| 20 | { |
| 21 | 'type': 'div', |
| 22 | 'id': 'content', |
| 23 | 'children': [] |
| 24 | } |
| 25 | ] |
| 26 | ) |
| 27 | |
| 28 | def get_event_store_ui(): |
| 29 | """Get default UI for event_store""" |
| 30 | return get_event_store_dashboard() |