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
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
captcha.ts
citation.ts
clipboard.ts
code-frequency.ts
codeeditor.ts Improve JSX/TSX support in code editor (#32833) 2024-12-14 03:10:20 +00:00
colorpicker.ts
common-button.ts
common-fetch-action.ts
common-form.ts
common-issue-list.test.ts
common-issue-list.ts
common-organization.ts
common-page.ts
contextpopup.ts
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
copycontent.ts
dropzone.ts
emoji.ts
eventsource.sharedworker.ts
file-fold.ts
heatmap.ts
imagediff.ts
install.ts
issue.ts
notification.ts
oauth2-settings.ts
org-team.ts
pull-view-file.ts
recent-commits.ts
repo-branch.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-code.test.ts
repo-code.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-commit.ts
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
repo-diff-filetree.ts
repo-diff.ts
repo-editor.ts
repo-findfile.test.ts
repo-findfile.ts
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
repo-issue-edit.ts
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
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
repo-issue-sidebar.md
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
repo-migration.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-milestone.ts
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
repo-settings-branches.ts
repo-settings.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
repo-template.ts
repo-unicode-escape.ts Fix "unicode escape" JS error (#32806) 2024-12-12 18:37:44 +00:00
repo-wiki.ts
scoped-access-token.ts
sshkey-helper.ts Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
stopwatch.ts
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
user-auth.ts
user-settings.ts