forgejo/modules
Lunny Xiao effad26c0e
Improve assets handler middleware ()
* Use route to serve assets but not middleware

* Fix build error with bindata tag

* convert path to absolute

* fix build

* reduce function stack

* Add tests for assets

* Remove test for assets because they are not generated

* Use a http function to serve assets

* Still use middleware to serve assets then less middleware stack for assets

* Move serveContent to original position

* remove unnecessary blank line change

* Fix bug for /assets* requests

* clean code

Co-authored-by: zeripath <art27@cantab.net>
2021-05-30 18:25:11 +08:00
..
analyze Speed up enry.IsVendor () 2021-04-01 19:41:09 +02:00
auth Allow Token/Basic auth on raw paths () 2021-05-27 19:46:11 +01:00
avatar Use single shared random string generation function () 2021-05-10 07:45:17 +01:00
base fix truncate utf8 string () 2021-05-13 08:50:57 +01:00
cache [Vendor] Update go-redis to v8.5.0 () 2021-02-10 21:28:32 +00:00
charset Refactor renders () 2021-04-19 18:25:08 -04:00
context Prevent double-login for Git HTTP and LFS and simplify login () 2021-05-15 17:32:09 +02:00
convert Fix individual tests (addition to ) () 2021-05-12 00:13:42 -04:00
cron add cron job to delete old actions from database () 2021-05-01 14:17:02 +02:00
csv Refactor renders () 2021-04-19 18:25:08 -04:00
doctor Add err to log () 2021-05-10 20:48:23 +01:00
emoji Fix several render issues () 2021-03-16 00:20:05 +01:00
eventsource Hold the event source when there are no listeners () 2021-05-15 23:46:13 +02:00
generate Use single shared random string generation function () 2021-05-10 07:45:17 +01:00
git git migration: don't prompt interactively for clone credentials () 2021-05-17 18:59:31 +08:00
gitgraph Fix bug on commit graph () 2021-04-17 10:27:25 +01:00
graceful Multiple Queue improvements: LevelDB Wait on empty, shutdown empty shadow level queue, reduce goroutines etc () 2021-05-15 16:22:26 +02:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight Allow custom highlight mapping beyond file extensions () 2021-05-13 12:31:23 +03:00
httpcache Add ETag header () 2021-04-12 10:49:26 -04:00
httplib fix webhook timeout bug () 2021-04-25 21:48:12 +03:00
indexer Multiple Queue improvements: LevelDB Wait on empty, shutdown empty shadow level queue, reduce goroutines etc () 2021-05-15 16:22:26 +02:00
lfs Fix lfs management find () 2021-04-21 18:31:59 +02:00
log Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
markup Make tasklist checkboxes clickable () 2021-05-23 17:14:03 +03:00
matchlist Add Allow-/Block-List for Migrate & Mirrors () 2020-11-28 19:37:58 -05:00
metrics Prometheus endpoint () 2018-11-04 22:20:00 -05:00
migrations Fix get tag when migration () 2021-05-29 16:04:58 -04:00
nosql Fix setting redis db path () 2021-05-03 13:24:24 -04:00
notification Don't manipulate input params in email notification () 2021-05-30 10:38:38 +01:00
options Add StatDir and replace com.StatDir () 2020-12-22 07:40:57 +08:00
password Check passwords against HaveIBeenPwned () 2020-09-08 17:06:39 -05:00
pprof Add golangci () 2019-06-12 15:41:28 -04:00
private add a new internal hook to save ssh log () 2021-05-21 17:37:16 -04:00
process Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
public Improve assets handler middleware () 2021-05-30 18:25:11 +08:00
queue Multiple Queue improvements: LevelDB Wait on empty, shutdown empty shadow level queue, reduce goroutines etc () 2021-05-15 16:22:26 +02:00
recaptcha Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
references Respect default merge message syntax when parsing item references () 2021-05-09 19:25:23 +01:00
repofiles Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
repository Double the avatar size factor () 2021-05-21 21:18:43 -04:00
secret Use single shared random string generation function () 2021-05-10 07:45:17 +01:00
session Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
setting Unified custom config creation () 2021-05-29 19:44:14 +01:00
ssh Make internal SSH server host key path configurable () 2021-03-08 03:43:59 +01:00
storage Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
structs Add Active and ProhibitLogin to API () 2021-05-11 02:22:29 +02:00
svg Fix filepath basename on Windows for SVG bindata () 2020-07-13 21:16:40 +01:00
sync Fix missing unlock in uniquequeue () 2020-01-15 23:58:33 +02:00
task Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
templates Fix incorrect asset URL () 2021-05-09 21:03:09 +01:00
test Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00
timeutil Fix display since time round () 2021-01-28 13:29:22 +01:00
translation Use index of the supported tags to choose user lang () 2021-04-14 19:52:01 +01:00
upload Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea () 2020-12-27 11:34:19 +08:00
user Add gitea-vet () 2020-04-05 07:20:50 +01:00
util Use single shared random string generation function () 2021-05-10 07:45:17 +01:00
validation Move macaron to chi () 2021-01-26 16:36:53 +01:00
web Fix setting of SameSite on cookies () 2021-05-26 21:01:07 -04:00