gitea/web_src/js
wxiaoguang 698ae7aa5b
Fix dynamic content loading init problem (#33748)
1. Rewrite `dirauto.ts` to `observer.ts`. 
* We have been using MutationObserver for long time, it's proven that it
is quite performant.
    * Now we extend its ability to handle more "init" works.
2. Use `observeAddedElement` to init all non-custom "dropdown".
3. Use `data-global-click` to handle click events from dynamically
loaded elements.
* By this new approach, the old fragile selector-based
(`.comment-reaction-button`) mechanism is removed.
4. By the way, remove unused `.diff-box` selector, it was abused and
never really used.

A lot of FIXMEs in "repo-diff.ts" are completely fixed, newly loaded
contents could work as expected.
2025-03-01 02:02:10 +00:00
..
components Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
features Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
markup Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
modules Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
render Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
standalone Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
utils Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +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 Refactor repo-new.ts (#33070) 2025-01-01 17:21:13 +00:00
globals.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
htmx.ts Enable Typescript `strictFunctionTypes` (#32911) 2024-12-22 02:59:25 +08:00
index.ts Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
types.ts Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
utils.test.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00