mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
make svg does rm -rf public/assets/img/svg then regenerates, and the generator special-cased public/assets/img/gitea.svg into an icon named gitea-gitea — so every regen deleted the hand-committed hanzo-gitea.svg and wrote the upstream name back, leaving templates/shared/webhook/icon.tmpl pointing at nothing and make svg-check red. That asset turned out to be our own logo rendered at 32px — byte-identical to public/assets/img/logo.svg but for a trailing newline. So the fix is deletion: drop the duplicate and the build flag that emitted it, and derive the icon from logo.svg under our own name (hanzo-hanzo). Icons are now generated, not hand-written; the regen also repaired 20 internal SVG ids the rename had missed. Also: svg.ts and favicon-status.ts bindings named for the upstream set, and a shipped reference config documenting emoji defaults that no longer exist and three PNGs that were deleted. Co-authored-by: Hanzo Dev <[email protected]>
28 lines
1.2 KiB
Handlebars
28 lines
1.2 KiB
Handlebars
{{$size := 26}}
|
|
{{if .Size}}
|
|
{{$size = .Size}}
|
|
{{end}}
|
|
{{if eq .HookType "gitea"}}
|
|
{{svg "hanzo-hanzo" $size "img"}}
|
|
{{else if eq .HookType "gogs"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/gogs.png">
|
|
{{else if eq .HookType "slack"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/slack.png">
|
|
{{else if eq .HookType "discord"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/discord.png">
|
|
{{else if eq .HookType "dingtalk"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/dingtalk.ico">
|
|
{{else if eq .HookType "telegram"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/telegram.png">
|
|
{{else if eq .HookType "msteams"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/msteams.png">
|
|
{{else if eq .HookType "feishu"}}
|
|
{{svg "hanzo-feishu" $size "img"}}
|
|
{{else if eq .HookType "matrix"}}
|
|
{{svg "hanzo-matrix" $size "img"}}
|
|
{{else if eq .HookType "wechatwork"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/wechatwork.png">
|
|
{{else if eq .HookType "packagist"}}
|
|
<img alt width="{{$size}}" height="{{$size}}" src="{{AssetUrlPrefix}}/img/packagist.png">
|
|
{{end}}
|