diff options
author | silverwind <me@silverwind.io> | 2020-07-12 11:10:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 12:10:56 +0300 |
commit | 8188176b588264fe0ff8e3f82a623ea007a1af41 (patch) | |
tree | 0dd469b25f45c5a40ee62916b40162985753972a /public/img/svg/octicon-heart-outline.svg | |
parent | 63591016b3ecd79ab1172cd98e2e830a09d6f515 (diff) | |
download | gitea-8188176b588264fe0ff8e3f82a623ea007a1af41.tar.gz gitea-8188176b588264fe0ff8e3f82a623ea007a1af41.zip |
Direct SVG rendering (#12157)
Introduce 'make svg' which calls a node script that compiles svg files
to `public/img/svg`. These files are vendored to not create a dependency
on Node for the backend build.
On the frontend side, configure webpack using `raw-loader` so SVGs can
be imported as string.
Also moved our existing SVGs to web_src/svg for consistency.
Fixes: https://github.com/go-gitea/gitea/issues/11618
Diffstat (limited to 'public/img/svg/octicon-heart-outline.svg')
-rw-r--r-- | public/img/svg/octicon-heart-outline.svg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/img/svg/octicon-heart-outline.svg b/public/img/svg/octicon-heart-outline.svg new file mode 100644 index 0000000000..bcfc9bd3f2 --- /dev/null +++ b/public/img/svg/octicon-heart-outline.svg @@ -0,0 +1 @@ +<svg viewBox="0 0 12 16" class="svg octicon-heart-outline" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M1.192 3.924C1.909 3.294 2.835 3 3.727 3 4.73 3 5.513 3.485 6 3.894 6.488 3.485 7.271 3 8.273 3c.892 0 1.818.293 2.535.924C11.545 4.572 12 5.525 12 6.7c0 .962-.435 1.891-.944 2.67-.522.8-1.2 1.558-1.852 2.203a24.563 24.563 0 01-1.793 1.6c-.451.365-1.39 1.045-1.39 1.045s-1.277-.921-1.431-1.046a24.57 24.57 0 01-1.793-1.599c-.652-.645-1.33-1.404-1.853-2.202C.434 8.59 0 7.662 0 6.7c0-1.175.455-2.128 1.192-2.776zm4.96 7.694l-.151.122a22.6 22.6 0 01-1.797-1.588c-.599-.593-1.17-1.24-1.586-1.876C2.19 7.621 2 7.088 2 6.7c0-.625.226-1.022.513-1.274.305-.27.743-.426 1.214-.426.344 0 .686.172.993.43.191.161.332.314.455.448.255.278.432.472.826.472a.868.868 0 00.497-.14c.146-.096.264-.232.394-.38.112-.13.234-.27.39-.4.306-.258.647-.43.99-.43.472 0 .91.157 1.215.426.287.252.513.649.513 1.274 0 .388-.19.922-.618 1.576-.416.636-.987 1.283-1.585 1.876-.595.589-1.193 1.1-1.645 1.466z"/></svg>
\ No newline at end of file |