1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
gitea/web_src/js
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
..
components Detect whether action view branch was deleted (#32764) 2024-12-12 19:28:23 +00:00
features Improve JSX/TSX support in code editor (#32833) 2024-12-14 03:10:20 +00:00
markup Fix various UI bugs (#32821) 2024-12-13 01:45:32 -05:00
modules Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
render Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
standalone Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
utils Rearrange Clone Panel (#31142) 2024-12-11 21:54:30 +08:00
vendor Fix file editor & preview (#32706) 2024-12-04 09:26:54 +00:00
webcomponents Rearrange Clone Panel (#31142) 2024-12-11 21:54:30 +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 Fix a number of typescript errors (#32773) 2024-12-11 09:29:04 +01:00
globals.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
htmx.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
index.ts Refactor issue filter (labels, poster, assignee) (#32771) 2024-12-10 11:38:22 +08:00
svg.test.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
svg.ts Improve diff file tree (#32658) 2024-11-28 12:25:21 +00:00
types.ts Refactor RepoBranchTagSelector (#32681) 2024-12-02 01:41:32 +00:00
utils.test.ts Add avif image file support (#32508) 2024-11-15 00:55:50 +00:00
utils.ts Add avif image file support (#32508) 2024-11-15 00:55:50 +00:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00