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/web_src/js/features
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>
2 weeks ago
..
admin Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago
comp Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago
autofocus-end.ts Fix some typescript issues (#32586) 4 months ago
captcha.ts Fix mCaptcha bug (#33659) 3 weeks ago
citation.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
clipboard.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
code-frequency.ts Convert frontend code to typescript (#31559) 8 months ago
codeeditor.ts Improve JSX/TSX support in code editor (#32833) 3 months ago
colorpicker.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
common-button.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
common-fetch-action.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
common-form.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
common-issue-list.test.ts Convert frontend code to typescript (#31559) 8 months ago
common-issue-list.ts Fix remaining typescript issues, enable `tsc` (#32840) 3 months ago
common-organization.ts Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago
common-page.ts Refactor sidebar label selector (#32460) 4 months ago
contextpopup.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
contributors.ts Add "n commits" link to contributors in contributors graph page (#32799) 3 months ago
copycontent.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
dashboard.ts Enable Typescript `noImplicitThis` (#33250) 2 months ago
dropzone.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
emoji.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
eventsource.sharedworker.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
file-fold.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
heatmap.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
imagediff.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
install.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
issue.ts Trivial fixes (#33304) 2 months ago
notification.ts Refactor legacy JS (#33115) 2 months ago
oauth2-settings.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
org-team.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
pull-view-file.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
recent-commits.ts Convert frontend code to typescript (#31559) 8 months ago
repo-actions.ts Enable Typescript `noImplicitThis` (#33250) 2 months ago
repo-branch.ts Fix a number of typescript errors (#32773) 3 months ago
repo-code.ts Refactor legacy line-number and scroll code (#33094) 2 months ago
repo-commit.ts Enable Typescript `noImplicitThis` (#33250) 2 months ago
repo-common.test.ts Improve Open-with URL encoding (#33666) 3 weeks ago
repo-common.ts Clone repository with Tea CLI (#33725) 2 weeks ago
repo-diff-commit.ts Fix a number of typescript errors (#32773) 3 months ago
repo-diff-commitselect.ts Convert frontend code to typescript (#31559) 8 months ago
repo-diff-filetree.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
repo-diff.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
repo-editor.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-findfile.test.ts Convert frontend code to typescript (#31559) 8 months ago
repo-findfile.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-graph.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
repo-home.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-issue-content.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-issue-edit.ts Fix js error when edit issue (#33384) 2 months ago
repo-issue-list.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-issue-pr-form.ts Convert frontend code to typescript (#31559) 8 months ago
repo-issue-pr-status.ts Fix a number of typescript errors (#32773) 3 months ago
repo-issue-sidebar-combolist.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-issue-sidebar.md Fix issue sidebar dropdown keyboard support (#33447) 1 month ago
repo-issue-sidebar.ts Refactor legacy JS (#33115) 2 months ago
repo-issue.ts Hide/disable unusable UI elements when a repository is archived (#33459) 1 month ago
repo-legacy.ts Refactor pull-request compare&create page (#33071) 2 months ago
repo-migrate.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-migration.ts Fix a number of typescript errors (#32773) 3 months ago
repo-milestone.ts Fix milestone deadline and date related problems (#32339) 4 months ago
repo-new.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
repo-projects.ts Refactor repo-projects.ts (#32892) 3 months ago
repo-release.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
repo-search.ts Enable Typescript `strictFunctionTypes` (#32911) 3 months ago
repo-settings-branches.test.ts Refactor repo-projects.ts (#32892) 3 months ago
repo-settings-branches.ts Allow cropping an avatar before setting it (#32565) 4 months ago
repo-settings.ts Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago
repo-unicode-escape.ts Fix "unicode escape" JS error (#32806) 3 months ago
repo-wiki.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
sshkey-helper.ts Enable Typescript `noImplicitThis` (#33250) 2 months ago
stopwatch.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
tablesort.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
tribute.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
user-auth-webauthn.ts Enable Typescript `noImplicitAny` (#33322) 2 months ago
user-auth.ts Warn users when they try to use a non-root-url to sign in/up (#32272) 5 months ago
user-settings.ts Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago