refactor(preview): remove juice/Node.js, simplify to pure Go dev server with SSE

- Delete tools/server/ (Node.js, juice, inliner.mjs, server.mjs, node_modules)
- Create tools/preview/server.go — pure Go dev server with SSE + file polling
- Rewrite tools/cli/dev.go — start Go server in-process, no Node.js required
- Simplify preview/index.html — View dropdown (Modern/Source), remove Client
  Simulation panel, remove Gmail/Outlook logic, WebSocket → SSE
- Update all 14 documentation files (README, CONTRIBUTING, AGENTS + translations)
  to reflect pure Go dev server and simplified preview

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
KenanZhuandClaude committed 2026-06-23 09:48:04 +08:00
1 parent d4c6eb99af
commit 0ad7db124a
20 files changed
+319 -633

No files matched your search

+2 -5
View File
@@ -49,15 +49,12 @@ cd tools && go run . preview all
```
その後 `preview/index.html` を開く。
**開発サーバー(ライブリロード + Juice CSSインライン + クライアントシミュレーション):**
**開発サーバー(ライブリロード):**
```bash
cd tools && go run . dev # Node.jsが必要です
cd tools && go run . dev
# → http://localhost:3456
```
> [!NOTE]
> Dev シミュレーションは各メールクライアントのレンダリングを完全には再現できません — 参考用です。実際のクライアントで必ず確認してください。
## 互換性
- **Gitea 1.25+**, 100%互換, 組み込み関数のみ