gitea/modules/templates
wxiaoguang 43c7a2e7b1
Refactor names ()
This PR only does "renaming":

* `Route` should be `Router` (and chi router is also called "router")
* `Params` should be `PathParam` (to distingush it from URL query param, and to match `FormString`)
* Use lower case for private functions to avoid exposing or abusing
..
eval Use a general Eval function for expressions in templates. ()
scopedtmpl Replace `interface{}` with `any` ()
vars Implement FSFE REUSE for golang files ()
base.go Replace `util.SliceXxx` with `slices.Xxx` ()
dynamic.go Use a general approach to access custom/static/builtin assets ()
helper.go Refactor names ()
helper_test.go Refactor names ()
htmlrenderer.go Enable more `revive` linter rules ()
htmlrenderer_test.go Show friendly 500 error page to users and developers ()
mailer.go Refactor names ()
static.go Use a general approach to access custom/static/builtin assets ()
templates_bindata.go Implement FSFE REUSE for golang files ()
util_avatar.go Fix default avatar image size in PR diff page ()
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. ()
util_json.go Improve template helper ()
util_misc.go Refactor names ()
util_render.go Refactor names ()
util_render_test.go Refactor names ()
util_slice.go Improve template helper functions: string/slice ()
util_string.go Refactor some Str2html code ()
util_test.go Improve template helper functions: string/slice ()