mirror of
1
Fork 0
forgejo/modules/base
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
..
base.go API error cleanup (#7186) 2019-06-12 17:07:24 -04:00
natural_sort.go Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
natural_sort_test.go Add some Unit-Tests (#14500) 2021-01-28 19:08:11 +01:00
tool.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
tool_test.go Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00