Build admin SPA shell with route guards #7

Open
opened 2026-07-01 01:00:56 +00:00 by manlycucumber · 0 comments
manlycucumber commented 2026-07-01 01:00:56 +00:00 (Migrated from github.com)

Problem

The admin is a Svelte/Vue SPA compiled to static assets served behind authenticated PHP endpoints. We need the SPA shell, routing, and an unauthenticated-redirect guard.

Acceptance criteria

  • The SPA builds to static assets via the Node build-time toolchain (no Node at runtime)
  • Unauthenticated access to any admin route redirects to the login view
  • A session-expiry response from any API call returns the user to login without a hard crash
  • The shell renders top-level navigation for keys, usage, status, and rebuild sections

Notes

Node is build-time only; output is static assets served by PHP.

## Problem The admin is a Svelte/Vue SPA compiled to static assets served behind authenticated PHP endpoints. We need the SPA shell, routing, and an unauthenticated-redirect guard. ## Acceptance criteria - [ ] The SPA builds to static assets via the Node build-time toolchain (no Node at runtime) - [ ] Unauthenticated access to any admin route redirects to the login view - [ ] A session-expiry response from any API call returns the user to login without a hard crash - [ ] The shell renders top-level navigation for keys, usage, status, and rebuild sections ## Notes Node is build-time only; output is static assets served by PHP.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Directorium/Site#7
No description provided.