fix(preview): ship rendered.js, hide loader on missing file

- Remove preview/rendered.js from .gitignore so the project works
  out-of-the-box after clone (no Go required for static preview).
- Hide loading spinner when rendered.js is not found; previously
  the spinner stayed visible forever because render() returned
  early when 'rendered' was null.
- Regenerate rendered.js with all current template fixes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
KenanZhuandClaude Opus 4.8 committed 2026-06-04 14:21:46 +08:00
1 parent fe77d52b5b
commit fa6c7032dd
3 files changed
+284 -3

No files matched your search

-3
View File
@@ -20,6 +20,3 @@ Desktop.ini
# Package lock file
package-lock.json
# Generated preview data (run: cd tools && go run . preview all)
preview/rendered.js