gitea/templates/admin
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests (#23911)
Follow up #22405

Fix #20703 

This PR rewrites storage configuration read sequences with some breaks
and tests. It becomes more strict than before and also fixed some
inherit problems.

- Move storage's MinioConfig struct into setting, so after the
configuration loading, the values will be stored into the struct but not
still on some section.
- All storages configurations should be stored on one section,
configuration items cannot be overrided by multiple sections. The
prioioty of configuration is `[attachment]` > `[storage.attachments]` |
`[storage.customized]` > `[storage]` > `default`
- For extra override configuration items, currently are `SERVE_DIRECT`,
`MINIO_BASE_PATH`, `MINIO_BUCKET`, which could be configured in another
section. The prioioty of the override configuration is `[attachment]` >
`[storage.attachments]` > `default`.
- Add more tests for storages configurations.
- Update the storage documentations.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-14 11:42:38 +08:00
..
applications Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
auth Minor UI improvements: logo alignment, auth map editor, auth name display (#25043) 2023-06-02 18:02:20 +08:00
base Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
emails Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
org Fix template function DateTime (#24317) 2023-04-25 15:48:30 -04:00
packages Fix template function DateTime (#24317) 2023-04-25 15:48:30 -04:00
repo Add "Updated" column for admin repositories list (#24429) 2023-04-29 20:40:10 +02:00
runners Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
user Improve AJAX link and modal confirm dialog (#25210) 2023-06-13 12:10:10 +00:00
actions.tmpl Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
config.tmpl Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
cron.tmpl various style fixes (#25008) 2023-05-30 22:28:25 +00:00
dashboard.tmpl Use a separate admin page to show global stats, remove `actions` stat (#25062) 2023-06-03 22:03:41 +08:00
hook_new.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
navbar.tmpl Add details summary for vertical menus in settings to allow toggling (#25098) 2023-06-07 10:49:48 +08:00
notice.tmpl Modify width of ui container, fine tune css for settings pages and org header (#24315) 2023-04-26 11:59:08 -04:00
queue.tmpl Improve queue & process & stacktrace (#24636) 2023-05-11 07:45:47 +00:00
queue_manage.tmpl Improve queue & process & stacktrace (#24636) 2023-05-11 07:45:47 +00:00
stacktrace-row.tmpl Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
stacktrace.tmpl Improve queue & process & stacktrace (#24636) 2023-05-11 07:45:47 +00:00
stats.tmpl Use a separate admin page to show global stats, remove `actions` stat (#25062) 2023-06-03 22:03:41 +08:00