✨ feat: add admin-ui-config, content-authoring, and frontend-architecture skills documentation
- Introduced `admin-ui-config` skill for configuring admin UI for collections. - Added `content-authoring` skill detailing page and block creation in the CMS. - Included `frontend-architecture` skill explaining custom SPA routing and state management. - Updated `AGENTS.md` to reference new skills and provide infrastructure prerequisites. - Enhanced `frontend/AGENTS.md` with routing details and SPA navigation information.
This commit is contained in:
@@ -10,6 +10,17 @@ Svelte 5 SPA bundled with esbuild and styled with Tailwind CSS 4.
|
||||
- `src/css/` — global styles and Tailwind imports.
|
||||
- Keep route components in a `src/routes/` folder when needed.
|
||||
|
||||
## Routing
|
||||
|
||||
This project uses a **custom SPA router** (NOT SvelteKit, NOT file-based routing). Pages are CMS content entries loaded dynamically by URL path.
|
||||
|
||||
- `lib/store.ts` proxies `history.pushState`/`replaceState` → updates `$location` store.
|
||||
- `App.svelte` reacts to `$location.path` → calls `getCachedEntries("content", { lang, path })` → renders blocks.
|
||||
- `lib/navigation.ts` provides `spaNavigate(url)` for programmatic navigation and `use:spaLink` action for `<a>` elements.
|
||||
- URL structure: `/{lang}/{path}` (e.g. `/de/ueber-uns`, `/en/about`).
|
||||
- Root `/` auto-redirects to `/{browserLanguage}/`.
|
||||
- **For full details see the `frontend-architecture` skill.**
|
||||
|
||||
## Conventions
|
||||
|
||||
- PascalCase component names; export props at the top of `<script>` tag.
|
||||
|
||||
Reference in New Issue
Block a user