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.
gitea/modules/setting
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>
2 years ago
..
actions.go Refactor the setting to make unit test easier (#22405) 2 years ago
admin.go Refactor the setting to make unit test easier (#22405) 2 years ago
api.go Refactor the setting to make unit test easier (#22405) 2 years ago
asset_dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
asset_static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
attachment.go Add `.patch` to `attachment.ALLOWED_TYPES` (#23580) 2 years ago
cache.go Refactor the setting to make unit test easier (#22405) 2 years ago
camo.go Refactor the setting to make unit test easier (#22405) 2 years ago
config_provider.go handle deprecated settings (#22992) 2 years ago
cors.go Refactor the setting to make unit test easier (#22405) 2 years ago
cron.go Refactor the setting to make unit test easier (#22405) 2 years ago
cron_test.go Refactor the setting to make unit test easier (#22405) 2 years ago
database.go Move pidfile creation from setting to web cmd package (#23285) 2 years ago
database_sqlite.go Implement FSFE REUSE for golang files (#21840) 2 years ago
database_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
federation.go Refactor the setting to make unit test easier (#22405) 2 years ago
git.go Support reflogs (#22451) 2 years ago
highlight.go Refactor the setting to make unit test easier (#22405) 2 years ago
i18n.go Refactor the setting to make unit test easier (#22405) 2 years ago
incoming_email.go Refactor the setting to make unit test easier (#22405) 2 years ago
indexer.go Add meilisearch support (#23136) 2 years ago
indexer_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
lfs.go handle deprecated settings (#22992) 2 years ago
log.go Parse external request id from request headers, and print it in access log (#22906) 2 years ago
mailer.go handle deprecated settings (#22992) 2 years ago
mailer_test.go Refactor the setting to make unit test easier (#22405) 2 years ago
markup.go Refactor the setting to make unit test easier (#22405) 2 years ago
metrics.go Refactor the setting to make unit test easier (#22405) 2 years ago
migrations.go Refactor the setting to make unit test easier (#22405) 2 years ago
mime_type_map.go Refactor the setting to make unit test easier (#22405) 2 years ago
mirror.go handle deprecated settings (#22992) 2 years ago
oauth2.go Refactor the setting to make unit test easier (#22405) 2 years ago
other.go Refactor the setting to make unit test easier (#22405) 2 years ago
packages.go Add Swift package registry (#22404) 2 years ago
packages_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
picture.go Refactor the setting to make unit test easier (#22405) 2 years ago
project.go Refactor the setting to make unit test easier (#22405) 2 years ago
proxy.go Refactor the setting to make unit test easier (#22405) 2 years ago
queue.go Refactor the setting to make unit test easier (#22405) 2 years ago
repository.go Editor preview support for external renderers (#23333) 2 years ago
security.go Refactor the setting to make unit test easier (#22405) 2 years ago
server.go handle deprecated settings (#22992) 2 years ago
service.go Refactor the setting to make unit test easier (#22405) 2 years ago
session.go Refactor the setting to make unit test easier (#22405) 2 years ago
setting.go Move pidfile creation from setting to web cmd package (#23285) 2 years ago
setting_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
ssh.go Prefer native parser for SSH public key parsing (#23798) 2 years ago
storage.go Make minio package support legacy MD5 checksum (#23768) 2 years ago
storage_test.go Refactor the setting to make unit test easier (#22405) 2 years ago
task.go handle deprecated settings (#22992) 2 years ago
time.go Refactor the setting to make unit test easier (#22405) 2 years ago
ui.go Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) 2 years ago
webhook.go Refactor the setting to make unit test easier (#22405) 2 years ago