Commit Graph

8 Commits (d1a755e5b7c676750f3dfad2254e047e2d23c4ac)

Author SHA1 Message Date
Alexander McRae aba96f65cd
Use `git diff-tree` for `DiffFileTree` on diff pages ()
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>
wxiaoguang 2cb3946496
Make issue suggestion work for all editors ()
And do not handle special keys when the text-expander popup exists
wxiaoguang 386c1ed908
Refactor HTMLFormat, update chroma render, fix js error ()
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.

And fix , fix 
wxiaoguang c09656e0e0
Make issue suggestion work for new PR page ()
Fix 
wxiaoguang 6f1de0a9e5
Add avif image file support ()
Most modern browsers support it now

` Update ALLOWED_TYPES  ` https://gitea.com/gitea/docs/pulls/96

---------

Co-authored-by: silverwind <me@silverwind.io>
wxiaoguang a4a121c684
Fix suggestions for issues ()
silverwind 7207d93f01
Fix a number of Typescript issues ()
Typescript error count is reduced from 633 to 540 with this. No runtime
changes except in test code.
silverwind 5791a73e75
Convert frontend code to typescript ()
None of the frontend js/ts files was touched besides these two commands
(edit: no longer true, I touched one file in
61105d0618
because of a deprecation that was not showing before the rename).

`tsc` currently reports 778 errors, so I have disabled it in CI as
planned.

Everything appears to work fine.