0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 04:58:29 +01:00
gitea/routers/web
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>
2023-04-12 18:16:45 +08:00
..
admin Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
auth Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
devtest Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
events
explore
feed User/Org Feed render description as per web (#23887) 2023-04-04 04:39:47 +01:00
healthcheck
misc Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
org Add cardtype to org/user level project on creation, edit and view (#24043) 2023-04-11 14:28:40 -04:00
repo Make Release Download URLs predictable (#23891) 2023-04-12 17:05:23 +08:00
shared
user
auth_windows.go
auth.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
web.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
webfinger.go Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2023-04-04 10:08:23 +08:00