- Split monolithic build-preview.go into modular packages: tools.go (entry), cli/ (list/create/delete/preview commands), config/ (JSON loading), preview/ (rendering engine, funcs, locale) - Extract all template metadata into data/templates_config.json as single source of truth — no hardcoded template data in Go - Replace hand-rolled CLI parsing with github.com/urfave/cli/v2 - Add sensible defaults for --folder (../themes) and --config (./data/templates_config.json) — most commands now run bare - Add type-coercing gt/lt/ge/le template funcs for JSON float64 - Fix AppUrl to gitea.com matching official template convention - rendered.js now exports __REGISTRY__ and __PARAMS__ alongside __RENDERED__ — preview/index.html reads all from single source - Cross-validate all 11 template data contexts against official Gitea source (services/mailer/*.go + templates/mail/*.tmpl) - Update all docs (README, AGENTS, CONTRIBUTING, 5 languages) to reflect new CLI workflow with create scaffolding command Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
1.9 KiB
Markdown
51 lines
1.9 KiB
Markdown
# Gitea メールテンプレート
|
|
|
|
[Gitea](https://about.gitea.com) のためのメールテンプレートコレクション。
|
|
|
|
> **110 ファイル — 10 スタイル、各11種類**
|
|
|
|
---
|
|
|
|
## スタイルギャラリー
|
|
|
|
| プレビュー | スタイル | 対象 | 特徴 |
|
|
|---|---|---|---|
|
|
|  | **Horizon** | エンタープライズ | Blue accent, slate, centred cards |
|
|
|  | **Terminal** | 開発者 | Dark mode, monospace, green CLI |
|
|
|  | **Ember** | コミュニティ | Warm amber, rounded, inclusive |
|
|
|  | **Bloom** | クリエイティブ | Frosted glass, soft blue light |
|
|
|  | **Heritage** | 教育/研究 | Navy and gold, serif, classic |
|
|
|  | **Neon** | ゲーム/Web3 | Cyberpunk neon, pink and cyan |
|
|
|  | **Mono** | デザイン/編集 | Swiss brutalist, black-white-red |
|
|
|  | **Terra** | サステナビリティ | Warm earth tones, organic textures |
|
|
|  | **Ink** | 出版/ニュース | Editorial print, navy and gold |
|
|
|  | **Aurora** | プレミアムSaaS | Ethereal gradients, purple and teal |
|
|
|
|
> 画像は[ライブプレビュー](../preview/index.html)からの600px幅のスクリーンショットです。キャプチャ手順は [images/README.md](images/README.md) を参照してください。
|
|
|
|
[**ライブプレビュー**](../preview/index.html)
|
|
|
|
---
|
|
|
|
## インストール
|
|
|
|
```bash
|
|
cp -r themes/horizon/mail/* /var/lib/gitea/custom/templates/mail/
|
|
systemctl restart gitea
|
|
```
|
|
|
|
## プレビュー
|
|
|
|
```bash
|
|
cd tools && go run . preview all
|
|
```
|
|
その後 `preview/index.html` を開く。
|
|
|
|
## 互換性
|
|
|
|
- **Gitea 1.21+**, 100%互換, 組み込み関数のみ
|
|
|
|
## ライセンス
|
|
|
|
MIT — [LICENSE](../LICENSE).
|