gitea/services/context
Guillaume 303af554c9
Improve "generate new access token" form (#33730)
Fix: https://github.com/go-gitea/gitea/issues/33519

As discussed in [PR
#33614](https://github.com/go-gitea/gitea/pull/33614), the
ScopedAccessTokenSelector Vue component is not particularly useful.

This PR removes the component and reverts to using HTML templates. It
also introduces some (hopefully) useful refactoring.

The Vue component was causing the UX bug reported in the linked issue.
Required form fields are now properly working, as expected (see
screenshot).

![Screenshot from 2025-02-25
22-00-28](https://github.com/user-attachments/assets/41167854-0718-48b0-a3ee-75ca3a7b8b20)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-27 19:40:12 +00:00
..
upload Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
access_log_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
access_log.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
api_org.go
api_test.go
api.go Fix git empty check and HEAD request (#33690) 2025-02-24 02:11:29 +00:00
base_form.go [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
base_path.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
base_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
base.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
captcha.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
context_cookie.go
context_model.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
context_request.go
context_response.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
context_template.go
context_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
context.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
csrf.go Refactor CSRF token (#32216) 2024-10-10 03:48:21 +00:00
org.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
package.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
pagination.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
permission.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
private.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
repo.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
response.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
user.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
utils.go
xsrf_test.go
xsrf.go