0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-24 11:58:17 +01:00
gitea/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_test.go
editor.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
http.go Restore token authentication for git http when 2FA active (#15915) 2021-05-18 22:30:33 -04:00
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Ensure that ctx.Written is checked after issues(...) calls (#15797) 2021-05-09 10:33:49 +08:00
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_test.go
projects.go
pull_review.go
pull.go Add links to toggle WIP status (#14677) 2021-05-27 22:02:04 +02:00
release_test.go
release.go
repo.go
search.go
setting_protected_branch.go
setting.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
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_test.go
wiki.go