Add home dashboard and Mithril rendering support

- Create new home route with comprehensive dashboard statistics
- Implement Mithril rendering support with new `mithril_loader.html` template
- Add new routes for home and test pages in `app.py`
- Create `lib/mithril.py` with Mithril rendering and error handling utilities
- Update dashboard template to use new home route
- Add detailed dashboard view with timer and HTTP function statistics
This commit is contained in:
Peter Stockings
2025-02-20 23:35:46 +11:00
parent 24a0c0ffef
commit d4c0c0f262
9 changed files with 571 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
{% extends 'base.html' %}
{% block content %}
<div id="mithril-loader"></div>
<script>
m.mount(document.getElementById('mithril-loader'), {
view: () => m(DiffView, {{ props | tojson | safe }})
});
</script>
{% endblock %}