gitea/templates
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
..
admin Improve admin user view page (#33735) 2025-02-27 17:47:37 +08:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Remove superflous tw-content-center (#33741) 2025-02-27 19:05:28 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Always show the "rerun" button for action jobs (#33692) 2025-02-24 08:40:46 +00:00
explore Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Improve button layout on small screens (#33633) 2025-02-18 11:02:40 +00:00
package Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
projects Fix project issues list and counting (#33594) 2025-02-17 05:14:56 +00:00
repo Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
shared Fix dynamic content loading init problem (#33748) 2025-03-01 02:02:10 +00:00
status Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
swagger allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam (#33684) 2025-02-27 17:50:44 +00:00
user Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
install.tmpl Supplement and Improvement for #32558 (#32585) 2024-11-21 02:42:37 +00:00
post-install.tmpl Optimize the installation page (#32994) 2024-12-31 04:49:26 +00:00