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.
forgejo/modules
Jonathan Tran 81467e6f35
Display SVG files as images instead of text (#14101)
* Change to display SVG files as images

* Remove unsafe styles from SVG CSP

* Add integration test to test SVG headers

* Add config setting to disable SVG rendering

* Add test for img tag when loading SVG image

* Remove the Raw view button for svg files since we don't fully support this

* Fix copyright year

* Rename and move config setting

* Add setting to cheat sheet in docs

* Fix so that comment matches cheat sheet

* Add allowing styles in CSP based on pull request feedback

* Re-enable raw button since we show SVG styles now

* Change so that SVG files are editable

* Add UI to toggle between source and rendered image for SVGs

* Change to show blame button for SVG images

* Fix to update ctx data

* Add test for DetectContentType when file is longer than sniffLen

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
4 years ago
..
analyze Exclude generated files from language statistics (#11653) 4 years ago
auth Add option to change username to the admin panel (#14229) 4 years ago
avatar Avatars and Repo avatars support storing in minio (#12516) 4 years ago
base Display SVG files as images instead of text (#14101) 4 years ago
cache Use native git variants by default with go-git variants as build tag (#13673) 4 years ago
charset Ensure that the detected charset order is set in chardet test (#12574) 4 years ago
context Fix windows build error (#14263) 4 years ago
convert Add MirrorInterval to the API (#14163) 4 years ago
cron Added option to disable migrations (#13114) 4 years ago
doctor Refactor doctor (#12264) 4 years ago
emoji Fix emoji detection in certain cases (#12320) 4 years ago
eventsource Move EventSource to SharedWorker (#12095) 4 years ago
generate Add gitea-vet (#10948) 4 years ago
git migrate from com.* to alternatives (#14103) 4 years ago
gitgraph [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 4 years ago
graceful Fix windows build error (#14263) 4 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Use existing analyzer module for language detection for highlighting (#13522) 4 years ago
httpcache HTTP cache rework and enable caching for storage assets (#13569) 4 years ago
httplib Add golangci (#6418) 5 years ago
indexer Use native git variants by default with go-git variants as build tag (#13673) 4 years ago
lfs Some code improvements (#14266) 4 years ago
log Fix windows build error (#14263) 4 years ago
markup Render links for commit hashes followed by comma (#14224) 4 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
middlewares Fix recovery middleware to render gitea style page. (#13857) 4 years ago
migrations Add MirrorInterval to the API (#14163) 4 years ago
nosql Allow common redis and leveldb connections (#12385) 4 years ago
notification Send notifications for mentions in pulls, issues, (code-)comments (#14218) 4 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Check passwords against HaveIBeenPwned (#12716) 4 years ago
pprof Add golangci (#6418) 5 years ago
private Fix send mail (#13312) 4 years ago
process Only write to global gitconfig if necessary (#11876) 4 years ago
public When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route (#14211) 4 years ago
queue Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 4 years ago
recaptcha hCaptcha Support (#12594) 4 years ago
references Add mentionable teams to tributeValues and change team mention rules to gh's style (#13198) 4 years ago
repofiles Standardize Co-Authored-By / Reviewed-By strings (#14097) 4 years ago
repository Add MirrorInterval to the API (#14163) 4 years ago
secret Attachments: Add extension support, allow all types for releases (#12465) 4 years ago
session Allow common redis and leveldb connections (#12385) 4 years ago
setting Display SVG files as images instead of text (#14101) 4 years ago
ssh migrate from com.* to alternatives (#14103) 4 years ago
storage Fix Storage mapping (#13297) 4 years ago
structs Add MirrorInterval to the API (#14163) 4 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Migrations: Use Process Manager to create own Context (#13792) 4 years ago
templates Fix recovery middleware to render gitea style page. (#13857) 4 years ago
test Macaron 1.5 (#12596) 4 years ago
timeutil Fix timezone on issue deadline (#11697) 4 years ago
translation Fix recovery middleware to render gitea style page. (#13857) 4 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util migrate from com.* to alternatives (#14103) 4 years ago
validation [API] Get a single commit via Ref (#10915) 4 years ago