0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-12 01:40:11 +01:00
gitea/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>
2021-01-12 22:45:19 -05:00
..
attachment.go Provide self-registering storage system (#12978) 2020-10-12 23:58:34 -04:00
cache.go
cors.go
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go When reinitialising DBConfig reset the database use flags (#13796) 2020-12-02 19:39:48 -05:00
git.go Fixed git args duplication (#13411) 2020-11-03 13:35:09 +02:00
indexer_test.go
indexer.go
lfs.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
log.go
mailer.go
markup.go
migrations.go Add Allow-/Block-List for Migrate & Mirrors (#13610) 2020-11-28 19:37:58 -05:00
picture.go Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
project.go
queue.go Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 2020-10-15 17:40:03 -04:00
repository.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
service.go Manually approve new registration (#13083) 2020-12-19 20:31:06 -05:00
session.go
setting_test.go Fix manifest encoding (#14114) 2020-12-23 19:09:54 +00:00
setting.go Display SVG files as images instead of text (#14101) 2021-01-12 22:45:19 -05:00
storage_test.go more test case for STORAGE_TYPE overrides (and fixes) (#14096) 2020-12-22 01:03:18 +02:00
storage.go more test case for STORAGE_TYPE overrides (and fixes) (#14096) 2020-12-22 01:03:18 +02:00
task.go
webhook.go