gitea/web_src/js
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
..
components Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
features Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
markup Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
modules Clone button enhancements (#33362) 2025-01-27 02:07:29 +08:00
render Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
standalone Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
utils Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
bootstrap.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
bootstrap.ts Add types to fetch,toast,bootstrap,svg (#31627) 2024-07-25 23:31:24 +00:00
globals.d.ts Refactor repo-new.ts (#33070) 2025-01-01 17:21:13 +00:00
globals.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
htmx.ts Enable Typescript `strictFunctionTypes` (#32911) 2024-12-22 02:59:25 +08:00
index.ts Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
types.ts Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
utils.test.ts Make issue suggestion work for all editors (#33340) 2025-01-21 19:33:45 +08:00
utils.ts Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00