refactor(website): convert to ES modules with TypeScript

- Replace all inline scripts with TypeScript modules
- Create page-specific modules for agents, prompts, instructions, skills, collections, index
- Create core modules: utils.ts, search.ts, modal.ts, choices.ts, jszip.ts, theme.ts
- Remove window global exports, use proper ES module imports
- Add type interfaces for all data structures
- Use data-base-path attribute on body for base URL handling
- Bundle Choices.js and JSZip via npm instead of CDN
- Astro pages now just have single script import each
This commit is contained in:
Aaron Powell
2026-01-28 16:38:49 +11:00
parent 875219812e
commit 6bcb6ffc37
69 changed files with 42046 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{
"generated": "2026-01-28T03:53:29.513Z",
"generated": "2026-01-28T04:53:00.935Z",
"counts": {
"agents": 140,
"prompts": 134,