gitea/models
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
..
actions Fix Untranslated Text on Actions Page (#33635) 2025-02-18 11:29:08 +00:00
activities Optimize user dashboard loading (#33686) 2025-02-24 11:29:32 -08:00
admin Fix omitempty bug (#33663) 2025-02-20 12:39:21 -08:00
asymkey Move commits signature and verify functions to service layers (#33605) 2025-02-16 12:24:07 +00:00
auth Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
avatars Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00
db Refactor context flash msg and global variables (#33375) 2025-01-25 14:36:47 +00:00
dbfs Enable `unparam` linter (#31277) 2024-06-11 18:47:45 +00:00
fixtures Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
git Move commits signature and verify functions to service layers (#33605) 2025-02-16 12:24:07 +00:00
issues allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam (#33684) 2025-02-27 17:50:44 +00:00
migrations Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
organization Fix some user name usages (#33689) 2025-02-23 12:33:43 +00:00
packages Add API to support link package to repository and unlink it (#33481) 2025-02-16 19:18:00 -08:00
perm Fix PR web route permission check (#33636) 2025-02-19 00:55:19 +00:00
project Fix project issues list and counting (#33594) 2025-02-17 05:14:56 +00:00
pull Automerge supports deleting branch automatically after merging (#32343) 2025-01-10 03:51:03 +08:00
renderhelper Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
repo Clone repository with Tea CLI (#33725) 2025-02-27 18:18:02 +00:00
secret Clarify Actions resources ownership (#31724) 2024-08-01 09:04:04 +00:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system chore: fix some trivial problems and TODOs (#33473) 2025-02-02 18:16:56 +00:00
unit Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (#32416) 2024-11-11 00:11:00 +00:00
unittest Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
user Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
webhook Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00
repo_test.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00