gitea/routers/web/user/setting
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
..
security Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
account.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
account_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
adopt.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
applications.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
block.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
keys.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
oauth2_common.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
packages.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
profile.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
runner.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
webhooks.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00