gitea/web_src/js/features
silverwind bed563e574
Improve JSX/TSX support in code editor (#32833)
Two tweaks to Monaco to improve JSX/TSX support.

1. Certain language features like JSX/TSX only work when passing `uri`
(containing the filename), do this.
2. Set the `jsx` compiler option to avoid error annotations

Before:
<img width="441" alt="Screenshot 2024-12-13 at 15 11 33"
src="https://github.com/user-attachments/assets/dac245a7-e80f-4249-8e09-13124b03d12a"
/>

After:
<img width="441" alt="Screenshot 2024-12-13 at 15 10 46"
src="https://github.com/user-attachments/assets/726ad712-d116-438d-88da-bc40534b6860"
/>
2024-12-14 03:10:20 +00:00
..
admin Refactor some frontend problems (#32646) 2024-11-26 15:36:55 +00:00
comp Fix JS error when dropping a file to a editor without dropzone (#32804) 2024-12-12 12:37:25 +08:00
autofocus-end.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00
captcha.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00
citation.ts GitHub like repo home page (#32213) 2024-12-06 14:29:04 +00:00
clipboard.ts Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00: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 Fix some typescript issues (#32586) 2024-11-21 13:57:42 +00:00
common-button.ts Refactor some frontend problems (#32646) 2024-11-26 15:36:55 +00:00
common-fetch-action.ts Fix global form submit event (#32652) 2024-11-27 11:54:50 +08:00
common-form.ts Refactor markdown editor and use it for milestone description editor (#32688) 2024-12-04 02:11:34 +00:00
common-issue-list.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
common-issue-list.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
common-organization.ts Refactor LabelEdit (#32752) 2024-12-08 02:35:28 +00:00
common-page.ts Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
contextpopup.ts Fix suggestions for issues (#32380) 2024-10-30 20:06:36 +00:00
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
copycontent.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
dropzone.ts Fix broken image when editing comment with non-image attachments (#32319) 2024-10-23 17:39:10 +02:00
emoji.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
eventsource.sharedworker.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
file-fold.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
heatmap.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
imagediff.ts Refactor language menu and dom utils (#32450) 2024-11-08 14:04:24 +08:00
install.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
issue.ts Suggestions for issues (#32327) 2024-10-29 17:20:49 +08:00
notification.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
oauth2-settings.ts add skip secondary authorization option for public oauth2 clients (#31454) 2024-07-19 14:28:30 -04:00
org-team.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
pull-view-file.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
recent-commits.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-branch.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-code.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-code.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-commit.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-common.ts Fix clone panel js error (#32798) 2024-12-12 02:01:20 +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 Fix JS error when reply comment on Conversation page (#32685) 2024-12-02 00:13:58 +08:00
repo-editor.ts Fix file editor & preview (#32706) 2024-12-04 09:26:54 +00:00
repo-findfile.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-findfile.ts Fix word overflow in file search page (#32695) 2024-12-03 16:52:25 +00:00
repo-graph.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-home.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-issue-content.ts Refactor issue page info (#32445) 2024-11-08 02:21:13 +00:00
repo-issue-edit.ts Support quote selected comments to reply (#32431) 2024-11-07 03:57:07 +00:00
repo-issue-list.ts Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00: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 Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
repo-issue-sidebar.md Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
repo-issue-sidebar.ts Fix bug of branch/tag selector in the issue sidebar (#32744) 2024-12-13 00:45:06 +00:00
repo-issue.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-legacy.ts Fix repo home file list (#32788) 2024-12-11 23:54:42 +08:00
repo-migrate.ts Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00: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 Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-projects.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-release.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-search.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-settings-branches.test.ts Allow cropping an avatar before setting it (#32565) 2024-11-28 02:15:59 +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 Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-template.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
repo-unicode-escape.ts Fix "unicode escape" JS error (#32806) 2024-12-12 18:37:44 +00:00
repo-wiki.ts Refactor markdown editor and use it for milestone description editor (#32688) 2024-12-04 02:11:34 +00:00
scoped-access-token.ts fix the component of access token list not mounted (#31824) 2024-08-16 17:37:36 +00:00
sshkey-helper.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
stopwatch.ts Add types to various low-level functions (#31781) 2024-08-10 09:46:48 +00:00
tablesort.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
tribute.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
user-auth-webauthn.ts Fix: passkey login not working anymore (#32623) 2024-11-26 16:04:17 +00: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 Allow cropping an avatar before setting it (#32565) 2024-11-28 02:15:59 +00:00