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
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
webcomponents Enable Typescript `noImplicitAny` (#33322) 2025-01-22 15:11:51 +08:00
bootstrap.test.ts
bootstrap.ts
globals.d.ts
globals.ts
htmx.ts
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