From 86c8949d9cb7d48cce686afb039873f141c87e60 Mon Sep 17 00:00:00 2001 From: Beowulf Date: Sun, 19 Jan 2025 18:55:01 +0100 Subject: [PATCH] Remove DiffFileList component The benefit / functionality provided by DiffFileList is already (better) integrated in the header of the files. If you want an overview, you can collapse all files via the same overflow menu (where the stats were available). To reduce the maintenance effort, the DiffFileList component is therefore removed. --- options/locale/locale_en-US.ini | 1 - templates/repo/diff/box.tmpl | 1 - templates/repo/diff/options_dropdown.tmpl | 1 - web_src/css/repo.css | 24 ---------- web_src/js/components/DiffFileList.vue | 58 ----------------------- web_src/js/features/repo-diff-filetree.js | 9 ---- web_src/js/features/repo-diff.js | 5 +- 7 files changed, 2 insertions(+), 97 deletions(-) delete mode 100644 web_src/js/components/DiffFileList.vue diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 127e629e80..501e98131e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2643,7 +2643,6 @@ diff.git-notes.remove-header = Remove note diff.git-notes.remove-body = This note will be removed. diff.data_not_available = Diff content is not available diff.options_button = Diff options -diff.show_diff_stats = Show stats diff.download_patch = Download patch file diff.download_diff = Download diff file diff.show_split_view = Split view diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 49483433f4..e24c880746 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -85,7 +85,6 @@ diffFileInfo.files.push(...diffDataFiles); window.config.pageData.diffFileInfo = diffFileInfo; -
{{end}}
{{if $showFileTree}} diff --git a/templates/repo/diff/options_dropdown.tmpl b/templates/repo/diff/options_dropdown.tmpl index 97dc3ba940..44b0743e09 100644 --- a/templates/repo/diff/options_dropdown.tmpl +++ b/templates/repo/diff/options_dropdown.tmpl @@ -1,7 +1,6 @@