mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Refactor HTMX fragment architecture: DRY split into auth endpoints + shared templates
- Created templates/partials/form/_licence.php (shared HTML, no auth logic)
- Created templates/partials/form/_format-website.php (shared HTML, no auth logic)
- Created src/FragmentRenderer.php helper for clean fragment rendering
- Created public/{admin,partage}/fragments/ subdirectories
- Created thin fragment endpoint files: auth guard + data fetch + render template
- Updated all hx-post references in templates to new fragments/ paths
- Updated partage/index.php routing for new fragments subdirectory
- Kept old fragment files as thin delegates for backward compat
- Updated nginx config: added PHP handler in /partage/ location block
This commit is contained in:
12
TODO.md
12
TODO.md
@@ -21,6 +21,18 @@
|
||||
- [x] F. `ThesisEditController.php` — Remove separate video/audio/peertube_* handleFilePondQueueFiles calls; also legacy $_FILES path
|
||||
- [x] G. `ThesisCreateController.php` — Same as F
|
||||
|
||||
# HTMX Fragment Architecture Reorganization
|
||||
|
||||
- [x] Create shared templates `_licence.php` and `_format-website.php` in `templates/partials/form/`
|
||||
- [x] Create `src/FragmentRenderer.php` helper
|
||||
- [x] Create `public/admin/fragments/` and `public/partage/fragments/` subdirectories
|
||||
- [x] Create thin fragment endpoint files (auth + data prep + render shared template)
|
||||
- [x] Update all hx-post references in templates to point to new `fragments/` paths
|
||||
- [x] Update `partage/index.php` routing for new fragments
|
||||
- [x] Keep old fragment files as thin delegates to new `fragments/` for backward compat
|
||||
- [x] Update nginx config for partage fragment PHP handling
|
||||
- [ ] Deploy: `just deploy` + `just deploy-nginx`
|
||||
|
||||
## Previous items
|
||||
|
||||
- [x] Step 1 — Build 4 PHP endpoints (process.php, revert.php, load.php, remove.php)
|
||||
|
||||
Reference in New Issue
Block a user