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/setting
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
..
attachment.go Provide self-registering storage system (#12978) 4 years ago
cache.go Mark Cache with ini tag (#12605) 4 years ago
cors.go Movde dependents on macaron from modules/setting (#10050) 4 years ago
cron.go Allow extended config on cron settings (#12939) 4 years ago
cron_test.go Allow extended config on cron settings (#12939) 4 years ago
database.go When reinitialising DBConfig reset the database use flags (#13796) 4 years ago
database_sqlite.go Move database settings from models to setting (#7806) 5 years ago
database_test.go Move database settings from models to setting (#7806) 5 years ago
git.go Fixed git args duplication (#13411) 4 years ago
indexer.go Avoid setting the CONN_STR in issue indexer queue unless it is meant to be set (#13069) 4 years ago
indexer_test.go Restrict repository indexing by glob match (#7767) 5 years ago
lfs.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
log.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 4 years ago
mailer.go Sendmail should create a process on the gitea system and have a default timeout (#11256) 4 years ago
markup.go Fix sanitizer config - multiple rules (#11133) 4 years ago
migrations.go Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
picture.go Avatars and Repo avatars support storing in minio (#12516) 4 years ago
project.go Kanban board (#8346) 4 years ago
queue.go Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 4 years ago
repository.go Added option to disable migrations (#13114) 4 years ago
service.go Manually approve new registration (#13083) 4 years ago
session.go Movde dependents on macaron from modules/setting (#10050) 4 years ago
setting.go Display SVG files as images instead of text (#14101) 4 years ago
setting_test.go Fix manifest encoding (#14114) 4 years ago
storage.go more test case for STORAGE_TYPE overrides (and fixes) (#14096) 4 years ago
storage_test.go more test case for STORAGE_TYPE overrides (and fixes) (#14096) 4 years ago
task.go Avoid setitng the CONN_STR in queues unless it is meant to be set (#13025) 4 years ago
webhook.go Add Matrix webhook (#10831) 4 years ago