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-file-pdf.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-file-pdf.svg')
-rw-r--r-- | public/img/svg/octicon-file-pdf.svg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/img/svg/octicon-file-pdf.svg b/public/img/svg/octicon-file-pdf.svg new file mode 100644 index 0000000000..a986d99f8c --- /dev/null +++ b/public/img/svg/octicon-file-pdf.svg @@ -0,0 +1 @@ +<svg viewBox="0 0 12 16" class="svg octicon-file-pdf" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.5 1H1a1 1 0 00-1 1v12a1 1 0 001 1h10a1 1 0 001-1V4.5L8.5 1zM1 2h4a.68.68 0 00-.31.2 1.08 1.08 0 00-.23.47 4.22 4.22 0 00-.09 1.47c.06.609.173 1.211.34 1.8A21.78 21.78 0 013.6 8.6c-.5 1-.8 1.66-.91 1.84a7.156 7.156 0 00-.69.3c-.362.165-.699.38-1 .64V2zm4.42 4.8a5.65 5.65 0 001.17 2.09c.275.237.595.417.94.53-.64.09-1.23.2-1.81.33-.618.15-1.223.347-1.81.59s.22-.44.61-1.25c.365-.74.67-1.51.91-2.3l-.01.01zM11 14H1.5a.743.743 0 01-.17 0 2.12 2.12 0 00.73-.44 10.14 10.14 0 001.78-2.38c.31-.13.58-.23.81-.31l.42-.14c.45-.13.94-.23 1.44-.33s1-.16 1.48-.2c.447.216.912.394 1.39.53.403.11.814.188 1.23.23h.38V14H11zm0-4.86a3.743 3.743 0 00-.64-.28 4.221 4.221 0 00-.75-.11c-.411.003-.822.03-1.23.08a3 3 0 01-1-.64 6.07 6.07 0 01-1.29-2.33c.111-.661.178-1.33.2-2 .02-.25.02-.5 0-.75a1.05 1.05 0 00-.2-.88.82.82 0 00-.61-.23H8l3 3v4.14z"/></svg>
\ No newline at end of file |