gitea/templates/admin
Lunny Xiao 32b97b3ce8
Uniform all temporary directories and allow customizing temp path (#32352)
This PR uniform all temporary directory usage so that it will be easier
to manage.

Relate to #31792 

- [x] Added a new setting to allow users to configure the global
temporary directory.
- [x] Move all temporary files and directories to be placed under
os.Temp()/gitea.
- [x] `setting.Repository.Local.LocalCopyPath` now will be
`setting.TempPath/local-repo` and the customized path is removed.
```diff
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;[repository.local]
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;
-;; Path for local repository copy. Defaults to  TEMP_PATH + `local-repo`, this is deprecated and cannot be changed
-;LOCAL_COPY_PATH = local-repo
```

- [x] `setting.Repository.Upload.TempPath` now will be
`settting.TempPath/uploads` and the customized path is removed.
```diff
;[repository.upload]
-;;
-;; Path for uploads. Defaults to TEMP_PATH + `uploads`
-;TEMP_PATH = uploads
```

- [x] `setting.Packages.ChunkedUploadPath` now will be
`settting.TempPath/package-upload` and the customized path is removed.
```diff
;[packages]
-;;
-;; Path for chunked uploads. Defaults it's `package-upload` under `TEMP_PATH` unless it's an absolute path.
-;CHUNKED_UPLOAD_PATH = package-upload
```

- [x] `setting.SSH.KeyTestPath` now will be
`settting.TempPath/ssh_key_test` and the customized path is removed.
```diff
[server]
-;;
-;; Directory to create temporary files in when testing public keys using ssh-keygen,
-;; default is the system temporary directory.
-;SSH_KEY_TEST_PATH =
```

TODO:
- [ ] setting.PprofDataPath haven't been changed because it may need to
be kept until somebody read it but temp path may be clean up any time.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-08 16:15:28 +00:00
..
applications Always use `ctx.Locale.Tr` inside templates (#27231) 2023-09-25 08:56:50 +00:00
auth Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
emails Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
org Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
packages Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
repo Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
runners
user Improve admin user view page (#33735) 2025-02-27 17:47:37 +08:00
actions.tmpl Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
config.tmpl Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
config_settings.tmpl Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
cron.tmpl Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
dashboard.tmpl Replace text-align classes with tailwind (#33905) 2025-03-16 12:08:16 +00:00
hook_new.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 2023-09-25 08:56:50 +00:00
hooks.tmpl
layout_footer.tmpl
layout_head.tmpl Fix flash message for flex-container (#30657) 2024-04-23 08:31:51 +00:00
navbar.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
notice.tmpl Add "No data available" display when list is empty (#33517) 2025-02-09 00:13:41 +08:00
perftrace.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
queue.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 2023-09-25 08:56:50 +00:00
queue_manage.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
self_check.tmpl Add cache test for admins (#31265) 2024-06-17 21:22:39 +02:00
stacktrace-row.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
stacktrace.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
stats.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 2023-09-25 08:56:50 +00:00
system_status.tmpl Auto-update the system status in admin dashboard (#29163) 2024-02-16 02:52:25 +00:00
trace_tabs.tmpl Support performance trace (#32973) 2025-01-21 18:57:07 +00:00