You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/diff
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.
1 month ago
..
blob_excerpt.tmpl Refactor tmpl and blob_excerpt (#32967) 3 months ago
box.tmpl Fix dynamic content loading init problem (#33748) 1 month ago
comment_form.tmpl Refactor markdown editor and use it for milestone description editor (#32688) 4 months ago
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 3 years ago
comments.tmpl Hide/disable unusable UI elements when a repository is archived (#33459) 2 months ago
compare.tmpl Refactor pull-request compare&create page (#33071) 3 months ago
conversation.tmpl Improve mobile review ui (#31091) 10 months ago
conversation_outdated.tmpl Improve user experience for outdated comments (#29050) 1 year ago
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 3 years ago
escape_title.tmpl Refactor tmpl and blob_excerpt (#32967) 3 months ago
image_diff.tmpl Refactor image diff (#31444) 9 months ago
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
new_review.tmpl Hide/disable unusable UI elements when a repository is archived (#33459) 2 months ago
options_dropdown.tmpl Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 1 month ago
section_code.tmpl Add template linting via djlint (#25212) 2 years ago
section_split.tmpl Refactor tmpl and blob_excerpt (#32967) 3 months ago
section_unified.tmpl De-emphasize signed commits (#31160) 3 months ago
stats.tmpl Migrate margin and padding helpers to tailwind (#30043) 1 year ago
whitespace_dropdown.tmpl code optimization (#31315) 10 months ago