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
attachment.go
blame.go Make modules/context.Context a context.Context (#16031) 2021-05-31 02:18:11 -04:00
branch.go
commit.go
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
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
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
main_test.go
middlewares.go
migrate.go
milestone.go
projects.go
projects_test.go
pull.go Add links to toggle WIP status (#14677) 2021-05-27 22:02:04 +02:00
pull_review.go
release.go fix some ui bug about draft release (#15137) 2021-05-06 05:12:50 +02:00
release_test.go
repo.go
search.go
setting.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
setting_protected_branch.go
settings_test.go
topic.go
view.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
webhook.go
wiki.go
wiki_test.go