From 342d2e5a34ef9df93635582b1fc058c211f19d7f Mon Sep 17 00:00:00 2001 From: Surbiks Date: Tue, 6 Feb 2024 00:27:46 +0330 Subject: [PATCH] add balancer config to ui --- web/html/xui/xray.html | 153 ++++++++++++++++++++++++++ web/html/xui/xray_balancer_modal.html | 111 +++++++++++++++++++ web/translation/translate.en_US.toml | 8 ++ 3 files changed, 272 insertions(+) create mode 100644 web/html/xui/xray_balancer_modal.html diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 267103cb..0a3d26b2 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -452,6 +452,41 @@ + + {{ i18n "pages.xray.balancer.addBalancer"}} + + + + + + @@ -474,6 +509,7 @@ {{template "ruleModal"}} {{template "outModal"}} {{template "reverseModal"}} +{{template "balancerModal"}} {{template "warpModal"}} +{{end}} \ No newline at end of file diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 78c545f6..0edf1c3d 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -388,6 +388,7 @@ "Inbounds" = "Inbounds" "InboundsDesc" = "Accepting the specific clients." "Outbounds" = "Outbounds" +"Balancers" = "Balancers" "OutboundsDesc" = "Set the outgoing traffic pathway." "Routings" = "Routing Rules" "RoutingsDesc" = "The priority of each rule is important!" @@ -426,6 +427,13 @@ "portal" = "Portal" "intercon" = "Interconnection" +[pages.xray.balancer] +"addBalancer" = "Add Balancer" +"editBalancer" = "Edit Balancer" +"balancerStrategy" = "Strategy" +"balancerSelectors" = "Selectors" +"tag" = "Tag" + [pages.xray.wireguard] "secretKey" = "Secret Key" "publicKey" = "Public Key"