gitea/web_src/js
wxiaoguang 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
2024-11-14 05:02:11 +00:00
..
components Fix a number of typescript issues (#32308) 2024-10-31 14:57:40 +00:00
features Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
markup Fix a number of typescript issues (#32459) 2024-11-11 11:13:57 +00:00
modules Refactor language menu and dom utils (#32450) 2024-11-08 14:04:24 +08: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 Refactor sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
vendor Fix a number of typescript issues (#32308) 2024-10-31 14:57:40 +00:00
webcomponents Fix a number of typescript issues (#32308) 2024-10-31 14:57:40 +00: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 Move web globals to web_src/js/globals.d.ts (#31943) 2024-08-30 07:36:53 +00: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 sidebar label selector (#32460) 2024-11-10 08:26:42 +00:00
svg.test.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
svg.ts Fix a number of typescript issues (#32459) 2024-11-11 11:13:57 +00:00
types.ts Refactor issue page info (#32445) 2024-11-08 02:21:13 +00:00
utils.test.ts Fix suggestions for issues (#32380) 2024-10-30 20:06:36 +00:00
utils.ts Refactor issue page info (#32445) 2024-11-08 02:21:13 +00:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00