Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use a general approach to access custom/static/builtin assets (#24022) | wxiaoguang | 2023-04-12 | 1 | -11/+4 |
| | | | | | | | | | | | | | | | | | | | 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> | ||||
* | Implement FSFE REUSE for golang files (#21840) | flynnnnnnnnnn | 2022-11-27 | 1 | -2/+1 |
| | | | | | | | | | Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com> | ||||
* | Remove legacy `+build:` constraint (#19582) | wxiaoguang | 2022-05-02 | 1 | -1/+0 |
| | | | Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed. | ||||
* | Fix mime-type detection for HTTP server (#18370) | wxiaoguang | 2022-01-23 | 1 | -0/+24 |
Bypass the unstable behavior of Golang's mime.TypeByExtension |