From 825ad53c2c6c409fb5070ea03f0341c1f3da53ee Mon Sep 17 00:00:00 2001 From: coulsontl <149155411+coulsontl@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:09:33 +0800 Subject: [PATCH] refactor(ui): streamline auth file actions with event delegation - Updated the auth file action buttons to use data attributes for improved event handling. - Implemented event delegation for button actions (show details, download, delete) to enhance performance and maintainability. - Added a hidden class in CSS to manage file item visibility more effectively. - Refactored modal button actions to utilize event delegation for better code organization. --- app.js | 108 ++++++++++++++++++++++++++++++++++++++++++----------- styles.css | 4 ++ 2 files changed, 90 insertions(+), 22 deletions(-) diff --git a/app.js b/app.js index 2b9e615..1e56d3b 100644 --- a/app.js +++ b/app.js @@ -3157,14 +3157,14 @@ class CLIProxyManager { ${i18n.t('stats.failure')}: ${fileStats.failure} -