gitea/web_src/js/features
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
..
admin Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00
comp Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00
autofocus-end.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00
captcha.ts Fix mCaptcha bug (#33659) 2025-02-20 22:53:38 +08:00
citation.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
clipboard.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
code-frequency.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
codeeditor.ts Improve JSX/TSX support in code editor (#32833) 2024-12-14 03:10:20 +00:00
colorpicker.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
common-button.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
common-fetch-action.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
common-form.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
common-issue-list.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
common-issue-list.ts Fix remaining typescript issues, enable tsc (#32840) 2024-12-16 05:02:32 +08:00
common-organization.ts Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00
common-page.ts Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
contextpopup.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
copycontent.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
dashboard.ts Enable Typescript noImplicitThis (#33250) 2025-01-16 04:26:17 +08:00
dropzone.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
emoji.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
eventsource.sharedworker.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
file-fold.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
heatmap.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
imagediff.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
install.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
issue.ts Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
notification.ts Refactor legacy JS (#33115) 2025-01-06 17:38:42 +08:00
oauth2-settings.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
org-team.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
pull-view-file.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
recent-commits.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-actions.ts Enable Typescript noImplicitThis (#33250) 2025-01-16 04:26:17 +08:00
repo-branch.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-code.ts Refactor legacy line-number and scroll code (#33094) 2025-01-04 10:56:07 +08:00
repo-commit.ts Enable Typescript noImplicitThis (#33250) 2025-01-16 04:26:17 +08:00
repo-common.test.ts Improve Open-with URL encoding (#33666) 2025-02-21 17:46:05 +00:00
repo-common.ts Clone repository with Tea CLI (#33725) 2025-02-27 18:18:02 +00:00
repo-diff-commit.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-diff-commitselect.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-diff-filetree.ts make show stats work when only one file changed (#32244) 2024-10-14 21:23:20 +00:00
repo-diff.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-editor.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-findfile.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-findfile.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-graph.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
repo-home.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-issue-content.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-issue-edit.ts Fix js error when edit issue (#33384) 2025-01-25 09:37:25 +08:00
repo-issue-list.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-issue-pr-form.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-issue-pr-status.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-issue-sidebar-combolist.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-issue-sidebar.md Fix issue sidebar dropdown keyboard support (#33447) 2025-01-30 22:54:50 +00:00
repo-issue-sidebar.ts Refactor legacy JS (#33115) 2025-01-06 17:38:42 +08:00
repo-issue.ts Hide/disable unusable UI elements when a repository is archived (#33459) 2025-01-31 20:47:31 +08:00
repo-legacy.ts Refactor pull-request compare&create page (#33071) 2025-01-02 01:16:09 +08:00
repo-migrate.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-migration.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-milestone.ts Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
repo-new.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
repo-projects.ts Refactor repo-projects.ts (#32892) 2024-12-19 08:37:12 +00:00
repo-release.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
repo-search.ts Enable Typescript strictFunctionTypes (#32911) 2024-12-22 02:59:25 +08:00
repo-settings-branches.test.ts Refactor repo-projects.ts (#32892) 2024-12-19 08:37:12 +00:00
repo-settings-branches.ts Allow cropping an avatar before setting it (#32565) 2024-11-28 02:15:59 +00:00
repo-settings.ts Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00
repo-unicode-escape.ts Fix "unicode escape" JS error (#32806) 2024-12-12 18:37:44 +00:00
repo-wiki.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
sshkey-helper.ts Enable Typescript noImplicitThis (#33250) 2025-01-16 04:26:17 +08:00
stopwatch.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
tablesort.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
tribute.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
user-auth-webauthn.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
user-auth.ts Warn users when they try to use a non-root-url to sign in/up (#32272) 2024-10-17 10:28:51 +08:00
user-settings.ts Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00