From 45101cc497e662b76e49d179ba70269e53c2ba9c Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sun, 20 Jul 2025 22:07:09 +0800 Subject: [PATCH] Add domain preview modal and manager Introduces a domain preview modal to the UI, allowing users to preview domain rules for each service. Adds DomainPreviewManager.js to handle fetching and displaying domain data from YAML files. Updates ServicesManager.js to support preview actions and UI, and enhances main.css with modal and preview button styles. --- index.html | 44 ++ src/scripts/app.js | 4 + .../components/DomainPreviewManager.js | 446 ++++++++++++++++++ src/scripts/components/ServicesManager.js | 69 ++- src/styles/main.css | 391 +++++++++++++++ 5 files changed, 951 insertions(+), 3 deletions(-) create mode 100644 src/scripts/components/DomainPreviewManager.js diff --git a/index.html b/index.html index 8a4338a..8396878 100644 --- a/index.html +++ b/index.html @@ -223,6 +223,50 @@ + + +