gitea/routers/web/admin
Giteabot aaf35ee49c
Refactor system setting () ()
Backport  by @wxiaoguang

This PR reduces the complexity of the system setting system.

It only needs one line to introduce a new option, and the option can be
used anywhere out-of-box.

It is still high-performant (and more performant) because the config
values are cached in the config system.


![image](https://github.com/go-gitea/gitea/assets/2114189/f8cdd743-1145-41ab-9f8f-3996aa97d440)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
admin.go Reduce usage of `db.DefaultContext` ()
admin_test.go Implement FSFE REUSE for golang files ()
applications.go Pre-register OAuth2 applications for git credential helpers ()
auths.go Move web JSON functions to web context and simplify code ()
config.go Refactor system setting () ()
diagnosis.go Improve queue & process & stacktrace ()
emails.go Reduce usage of `db.DefaultContext` ()
hooks.go Move web JSON functions to web context and simplify code ()
main_test.go Implement FSFE REUSE for golang files ()
notice.go Another round of `db.DefaultContext` refactor () ()
orgs.go Display all user types and org types on admin management UI ()
packages.go Another round of `db.DefaultContext` refactor () ()
queue.go Fix admin queue page title ()
queue_tester.go Improve queue and logger context ()
repos.go Move createrepository from module to service layer ()
runners.go Move secrets and runners settings to actions settings ()
stacktrace.go Move web JSON functions to web context and simplify code ()
users.go Refactor system setting () ()
users_test.go Move web/api context related testing function into a separate package ()