mirror of
1
Fork 0
forgejo/routers/repo
KN4CK3R 8e262104c2
Add Image Diff for SVG files (#14867)
* Added type sniffer.

* Switched content detection from base to typesniffer.

* Added GuessContentType to Blob.

* Moved image info logic to client.
Added support for SVG images in diff.

* Restore old blocked svg behaviour.

* Added missing image formats.

* Execute image diff only when container is visible.

* add margin to spinner

* improve BIN tag on image diffs

* Default to render view.

* Show image diff on incomplete diff.

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-06-05 15:32:19 +03:00
..
activity.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
attachment.go Add ETag header (#15370) 2021-04-12 10:49:26 -04:00
blame.go Make modules/context.Context a context.Context (#16031) 2021-05-31 02:18:11 -04:00
branch.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
commit.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
compare.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
download.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
editor.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
http.go Restore token authentication for git http when 2FA active (#15915) 2021-05-18 22:30:33 -04:00
issue.go Ensure that ctx.Written is checked after issues(...) calls (#15797) 2021-05-09 10:33:49 +08:00
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 2020-01-20 13:00:32 +01:00
issue_label.go Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
issue_label_test.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
issue_lock.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
issue_stopwatch.go Display current stopwatch in navbar (#14122) 2021-01-21 15:51:52 +01:00
issue_test.go Fix bug when combine label comments (#14894) 2021-03-05 16:17:32 +01:00
issue_timetrack.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
issue_watch.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
lfs.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
middlewares.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00
migrate.go Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
milestone.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
projects.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
projects_test.go KanBan: be able to set default board (#14147) 2021-01-15 22:29:32 +02:00
pull.go Add links to toggle WIP status (#14677) 2021-05-27 22:02:04 +02:00
pull_review.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
release.go fix some ui bug about draft release (#15137) 2021-05-06 05:12:50 +02:00
release_test.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
repo.go Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
search.go fix wrong file link in code search page (#15466) 2021-04-14 17:59:42 +02:00
setting.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
setting_protected_branch.go Code Formats, Nits & Unused Func/Var deletions (#15286) 2021-04-09 09:40:34 +02:00
settings_test.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
topic.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
view.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
webhook.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
wiki.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
wiki_test.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00