gitea/templates/shared
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
..
actions Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) 2024-12-23 09:59:16 +00:00
misc Prevent tab shifting, remove extra margin on fluid pages (#31090) 2024-05-27 06:45:16 +00:00
search Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
secrets Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
user Add a option "--user-type bot" to admin user create, improve role display (#27885) 2025-02-07 08:41:55 +00:00
variables Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
webhook Update feishu icon (#33470) 2025-02-01 14:08:32 +00:00
avatar_upload_crop.tmpl Add cropping support when modifying the user/org/repo avatar (#33498) 2025-02-06 21:07:44 +08:00
combomarkdowneditor.tmpl Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +08:00
fileisempty.tmpl Improve detecting empty files (#31332) 2024-06-13 01:06:46 +00:00
filetoolarge.tmpl Improve detecting empty files (#31332) 2024-06-13 01:06:46 +00:00
issueicon.tmpl Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
issuelist.tmpl Add No Results Prompt Message on Issue List Page (#33699) 2025-02-24 18:24:56 +00:00
repo_search.tmpl Improve repo search UI (#29767) 2024-03-15 09:45:30 +00:00
searchbottom.tmpl Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
searchfile.tmpl Fix wrong line number in code search result (#29260) 2024-03-06 07:24:43 +00:00