You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang 50a72e7a83
Use a general approach to access custom/static/builtin assets (#24022)
The idea is to use a Layered Asset File-system (modules/assetfs/layered.go)

For example: when there are 2 layers: "custom", "builtin", when access
to asset "my/page.tmpl", the Layered Asset File-system will first try to
use "custom" assets, if not found, then use "builtin" assets.

This approach will hugely simplify a lot of code, make them testable.

Other changes:

* Simplify the AssetsHandlerFunc code
* Simplify the `gitea embedded` sub-command code

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
filebuffer Implement FSFE REUSE for golang files (#21840) 2 years ago
error.go Use ErrInvalidArgument in packages (#22268) 2 years ago
file_unix.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_unix_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago
io.go Improve checkIfPRContentChanged (#22611) 1 year ago
keypair.go Add Chef package registry (#22554) 1 year ago
keypair_test.go Use minio/sha256-simd for accelerated SHA256 (#23052) 1 year ago
legacy.go Implement FSFE REUSE for golang files (#21840) 2 years ago
legacy_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pack.go Add support for incoming emails (#22056) 2 years ago
pack_test.go Add support for incoming emails (#22056) 2 years ago
paginate.go Implement FSFE REUSE for golang files (#21840) 2 years ago
paginate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
path.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
path_test.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
remove.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
slice.go Improve utils of slices (#22379) 2 years ago
slice_test.go Improve utils of slices (#22379) 2 years ago
string.go Implement FSFE REUSE for golang files (#21840) 2 years ago
string_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
timer.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
timer_test.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
truncate.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
truncate_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
url.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago
util_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago