gitea/templates
Alexander McRae aba96f65cd
Use `git diff-tree` for `DiffFileTree` on diff pages (#33514)
Modify Diff View FileTree to show all files

## Changes

* removes Show Status button on diff
* uses `git diff-tree` to generate the file tree for the diff
* doesn't reload the diff tree each time we load more files in the
preview
* selecting and unloaded file will keep loading until that file is
loaded
* removes `DiffFileList.vue` and "Show Stats" in diff options

## Open Questions

* selecting and unloaded file will keep loading until that file is
loaded. Is this behaviour okay? It matches what github does.

### Demo

In this demo I set `git.MAX_GIT_DIFF_FILES=1` in my `app.ini` to
demonstrate a worst case example. In most cases the behaviour isn't
nearly as jarring as we load a bunch of files at a time.


https://github.com/user-attachments/assets/72f29663-d6fc-472d-94fa-7fb5950c2836

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-28 00:58:25 +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 Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
shared Add No Results Prompt Message on Issue List Page (#33699) 2025-02-24 18:24:56 +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