From 3816210c05d12271c358a6d7b7c0281517eff978 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 24 Apr 2026 10:02:37 +0200 Subject: [PATCH] Drop Fomantic tab, checkbox and form patches (#37377) Clean up the fomantic helpers that nothing inside fomantic depends on. Manually tested all functionality. --------- Co-authored-by: Claude (Opus 4.7) Co-authored-by: wxiaoguang --- templates/repo/diff/image_diff.tmpl | 4 +-- templates/repo/editor/edit.tmpl | 2 +- templates/repo/editor/patch.tmpl | 4 +-- templates/repo/settings/webhook/history.tmpl | 2 +- templates/user/auth/link_account.tmpl | 8 ++--- web_src/js/features/admin/common.ts | 4 +-- web_src/js/features/citation.ts | 4 +-- web_src/js/features/common-button.ts | 8 ++--- web_src/js/features/common-page.ts | 3 +- .../js/features/comp/ComboMarkdownEditor.ts | 19 +++++------ web_src/js/features/comp/ConfirmModal.ts | 9 +++--- web_src/js/features/comp/LabelEdit.ts | 6 ++-- web_src/js/features/imagediff.ts | 3 -- web_src/js/features/repo-branch.ts | 4 +-- web_src/js/features/repo-editor.ts | 2 -- web_src/js/features/repo-issue-content.ts | 10 +++--- web_src/js/features/repo-issue.ts | 3 +- web_src/js/features/repo-projects.ts | 4 +-- web_src/js/features/repo-release.ts | 7 ++-- web_src/js/modules/devtest.ts | 4 +-- web_src/js/modules/fomantic.ts | 6 ---- web_src/js/modules/fomantic/aria.md | 2 +- web_src/js/modules/fomantic/base.ts | 32 +++++++++++++++++-- web_src/js/modules/fomantic/checkbox.ts | 13 -------- web_src/js/modules/fomantic/form.ts | 13 -------- web_src/js/modules/fomantic/modal.ts | 21 ++++++++++++ web_src/js/modules/fomantic/tab.ts | 30 ++++++++--------- web_src/js/modules/observer.ts | 30 +++++++++-------- 28 files changed, 135 insertions(+), 122 deletions(-) delete mode 100644 web_src/js/modules/fomantic/checkbox.ts delete mode 100644 web_src/js/modules/fomantic/form.ts diff --git a/templates/repo/diff/image_diff.tmpl b/templates/repo/diff/image_diff.tmpl index 7557129c648..5a9dbc90674 100644 --- a/templates/repo/diff/image_diff.tmpl +++ b/templates/repo/diff/image_diff.tmpl @@ -7,8 +7,8 @@ data-mime-before="{{.sniffedTypeBase.GetMimeType}}" data-mime-after="{{.sniffedTypeHead.GetMimeType}}" > - -
+ +
{{ctx.Locale.Tr "repo.diff.image.side_by_side"}} {{if and .blobBase .blobHead}} {{ctx.Locale.Tr "repo.diff.image.swipe"}} diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl index 74d6dcb07f8..0acd7bfd717 100644 --- a/templates/repo/editor/edit.tmpl +++ b/templates/repo/editor/edit.tmpl @@ -19,7 +19,7 @@
-