Peter Stockings
62e203bc2a
feat: Add SQL script export option
...
- Added functionality to export the full database schema (CREATE statements) and data (INSERT statements) as a single `.sql` file.
- Created a new route `/export/database.sql` in `routes/export.py`.
- Added helper functions to `routes/export.py` (adapted from `sql_explorer`) to generate schema CREATE statements and data INSERT statements.
- Added a download link for the SQL export to the Settings page (`templates/settings.html`).
- Updated the changelog entry for data export to include the SQL option.
2025-04-12 21:17:19 +10:00
Peter Stockings
0f55d42f22
* Add SQL query executor
...
* Move mermaid.min.js to static asset
* Create templates for sql logic
2024-11-06 23:25:25 +11:00
Peter Stockings
3a07b9d97f
WIP: Render database schema using Mermaid.js
...
Still need to:
* Move mermaid.js to static files
* Make template for mermaid wrapper
* Create new page for SQL viewer then add explorer
2024-11-06 22:48:51 +11:00
Peter Stockings
d967920e03
Start to refactor away from using camel case (Not sure why I did this in the first place)
2023-12-09 16:14:10 +11:00
Peter Stockings
95b89ef9e8
Use hyperscript for rendering notifications
2023-07-26 14:23:57 +10:00
Peter Stockings
efc662360b
Convert exercise/person search on settings page to hyperscript
2023-07-25 19:22:45 +10:00
Peter Stockings
650a3879a2
Clear form and display temporary notification when adding users/exercises on settings page
2023-07-24 09:45:33 +10:00
Peter Stockings
38d250902b
Use jinja2_fragments to remove wrapper templates to handle htmx and non-htmx requests(Full or just partial html)
2023-07-15 23:27:14 +10:00
Peter Stockings
9cd3ce15e0
Fix issue where arriving directly on settings page would show an empty list for exercises & people
2023-07-14 22:10:26 +10:00
Peter Stockings
41bfce9513
Make dashboard, person, settings page htmx driven
2022-11-23 22:39:57 +11:00
Peter Stockings
042d3517b6
Refactor exercise & person into template partials
2022-11-21 23:57:13 +11:00
Peter Stockings
3dcc61005e
Convert edit/add/remove people form in settings to htmx driven and trigger event to refresh list of people and workout count on insert/update/remove person
2022-11-20 14:14:04 +11:00
Peter Stockings
93fc2fcfb8
Add missing cursor pointer styles
2022-11-20 13:02:07 +11:00
Peter Stockings
605d84f8bb
Convert exercise form into htmx driven
2022-11-19 22:48:24 +11:00
Peter Stockings
3005dd18bd
Add ability to dynamically add/remove users & exercises
2022-09-17 13:15:29 +10:00
Peter Stockings
c4ee668d64
Add static forms on settings page to add new users/exercises
2022-09-15 23:32:10 +10:00