From 0f397ae09b028e3537d70659409ac6a1f069033e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 8 Nov 2024 14:04:24 +0800 Subject: [PATCH] Refactor language menu and dom utils (#32450) 1. Make `queryElem*` functions could correctly handle TS types 2. Remove some legacy jQuery $ calls (introduce fomanticQuery for Fomantic UI only) 3. Fix some TS typing problems --- templates/base/footer_content.tmpl | 8 +++---- web_src/css/home.css | 2 +- web_src/js/features/common-page.ts | 27 ++++++++++++----------- web_src/js/features/imagediff.ts | 32 +++++++++++++++------------- web_src/js/features/repo-common.ts | 2 +- web_src/js/features/repo-editor.ts | 24 ++++++++++----------- web_src/js/features/repo-settings.ts | 2 +- web_src/js/modules/fomantic/base.ts | 4 ++++ web_src/js/modules/tippy.ts | 8 +++---- web_src/js/utils/dom.ts | 23 +++++++++++--------- 10 files changed, 70 insertions(+), 62 deletions(-) diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index 4b9d9f5bbec..60eb2fe1f82 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -17,12 +17,12 @@ {{end}}