You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KN4CK3R cd78c30fd3
Use filename as id/class prefix. (#16997)
Currently the svg minifier (`make svg`) rewrites all `id` and `class` attributes in svg files. Every file gets the ids `a, b, ...`. If multiple svgs with ids are used on a page these ids are conflicting and the results are broken images.

| minified ids | unique ids |
| - | - |
| ![grafik](https://user-images.githubusercontent.com/1666336/132579375-59d3996f-c4e5-43b8-8c8d-82280c90d9e3.png) | ![grafik](https://user-images.githubusercontent.com/1666336/132579413-05bf9285-4e3b-4d0d-8f95-90b212405b05.png) |

This PR adds a prefix (the filename) to every id/class.

Follow up problem: Because we embed svg images there are duplicated ids if one svg image is used multiple times on a page. As those ids refer to the same content it may be no real problem because browser handle that fine.
3 years ago
..
auth Add microsoft oauth2 providers (#16544) 3 years ago
emoji Add forge emojies (#16296) 3 years ago
svg Use filename as id/class prefix. (#16997) 3 years ago
404.png Optimize png images via Google zopflipng [ci skip] (#1639) 7 years ago
500.png Optimize png images via Google zopflipng [ci skip] (#1639) 7 years ago
apple-touch-icon.png Clean up SVG (#13680) 4 years ago
avatar_default.png Clean up SVG (#13680) 4 years ago
checkmark.png ui for repo/create page 10 years ago
dingtalk.ico Add dingtalk webhook (#2777) 7 years ago
discord.png Implementation of discord webhook (#2402) 7 years ago
failed.png Store task errors following migrations and display them (#13246) 4 years ago
favicon.png Clean up SVG (#13680) 4 years ago
favicon.svg Clean up SVG (#13680) 4 years ago
feishu.png Add feishu webhook support (#10229) 4 years ago
gitea.svg Consolidate Logos and update README header (#14136) 4 years ago
gogs.ico Add Gitea Webhook (#1755) 7 years ago
loading.png optimize public/img/loading.png (#10372) 4 years ago
logo.png Consolidate Logos and update README header (#14136) 4 years ago
logo.svg Update JS dependencies (#15033) 3 years ago
matrix.svg Add Matrix webhook (#10831) 4 years ago
msteams.png fix apple-touch-icon, regenerate images (#10065) 4 years ago
openid-16x16.png optimize all images in public/img (#6427) 5 years ago
repo_default.png fix apple-touch-icon, regenerate images (#10065) 4 years ago
slack.png optimize all images in public/img (#6427) 5 years ago
telegram.png fix apple-touch-icon, regenerate images (#10065) 4 years ago
wechatwork.png Add support for corporate WeChat webhooks (#15910) 3 years ago