Release · v2.4.3
Move client logic to TypeScript and fix db asset…
Move client logic to TypeScript and fix db asset loading.
Details
Extract inline HTML scripts into compiled TS (news box, runtime, analytics, theme toggle, section nav). Generate site-runtime-config.ts from env; pin Node 24. Use data-db-src for images/favicon to avoid db:// fetch errors. Co-authored-by: Cursor <cursoragent@cursor.com>
Files changed (25)
| .gitignore | +1 | −0 |
| .nvmrc | +1 | −0 |
| README.md | +3 | −0 |
| backend/runtime/scripts/generate_runtime_config.sh | +36 | −0 |
| backend/runtime/templates/site-runtime-config.ts | +20 | −0 |
| frontend/client/ts/analytics-init.ts | +24 | −0 |
| frontend/client/ts/db_assets.ts | +29 | −0 |
| frontend/client/ts/load-section.ts | +20 | −1 |
| frontend/client/ts/news-box.ts | +47 | −0 |
| frontend/client/ts/profile-rotator.ts | +5 | −6 |
| frontend/client/ts/site-runtime.ts | +25 | −0 |
| frontend/client/ts/theme-toggle.ts | +14 | −1 |
| frontend/jekyll/_data/runtime.yml.template | +1 | −1 |
| frontend/jekyll/_includes/news_box.html | +1 | −42 |
| frontend/jekyll/_includes/runtime_head.html | +3 | −17 |
| frontend/jekyll/_includes/v2/hero.html | +1 | −1 |
| frontend/jekyll/_layouts/default.html | +13 | −12 |
| frontend/jekyll/_layouts/v2.html | +2 | −2 |
| frontend/jekyll/_layouts/view.html | +1 | −3 |
| frontend/jekyll/assets/css/view.css | +7 | −0 |
| package-lock.json | +3 | −0 |
| package.json | +4 | −1 |
| test/check_runtime_console.mjs | +78 | −0 |
| test/verify_google_analytics.mjs | +20 | −12 |
| tsconfig.json | +4 | −0 |