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.
forgejo/cmd
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
..
admin.go Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) 1 year ago
admin_auth_ldap.go Implement FSFE REUSE for golang files (#21840) 2 years ago
admin_auth_ldap_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
admin_user.go Add command to bulk set must-change-password (#22823) 1 year ago
admin_user_change_password.go Provide the ability to set password hash algorithm parameters (#22942) 1 year ago
admin_user_create.go Provide the ability to set password hash algorithm parameters (#22942) 1 year ago
admin_user_delete.go Add context cache as a request level cache (#22294) 1 year ago
admin_user_generate_access_token.go Add command to bulk set must-change-password (#22823) 1 year ago
admin_user_list.go Add command to bulk set must-change-password (#22823) 1 year ago
admin_user_must_change_password.go Add command to bulk set must-change-password (#22823) 1 year ago
cert.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cmd.go Refactor the setting to make unit test easier (#22405) 1 year ago
convert.go Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
docs.go Implement FSFE REUSE for golang files (#21840) 2 years ago
doctor.go Refactor the setting to make unit test easier (#22405) 1 year ago
dump.go Add --quiet option to gitea dump (#22969) 1 year ago
dump_repo.go Refactor the setting to make unit test easier (#22405) 1 year ago
embedded.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
generate.go Implement FSFE REUSE for golang files (#21840) 2 years ago
hook.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
hook_test.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
keys.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
mailer.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
main_test.go Refactor the setting to make unit test easier (#22405) 1 year ago
manager.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
manager_logging.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
migrate.go Refactor the setting to make unit test easier (#22405) 1 year ago
migrate_storage.go Make minio package support legacy MD5 checksum (#23768) 1 year ago
migrate_storage_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
restore_repo.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
serv.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 1 year ago
web.go Move pidfile creation from setting to web cmd package (#23285) 1 year ago
web_acme.go Implement FSFE REUSE for golang files (#21840) 2 years ago
web_graceful.go Implement FSFE REUSE for golang files (#21840) 2 years ago
web_https.go Implement FSFE REUSE for golang files (#21840) 2 years ago