From 4f8de18d1f21518b98aba82cbf14d2d23c0c178c Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Thu, 4 May 2023 21:09:08 +0430 Subject: renamed setting.html to settings.html and update its route name --- web/controller/xui.go | 6 +- web/html/xui/common_sider.html | 2 +- web/html/xui/setting.html | 775 ----------------------------------------- web/html/xui/settings.html | 775 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 779 insertions(+), 779 deletions(-) delete mode 100644 web/html/xui/setting.html create mode 100644 web/html/xui/settings.html diff --git a/web/controller/xui.go b/web/controller/xui.go index 5832be84..c836057a 100644 --- a/web/controller/xui.go +++ b/web/controller/xui.go @@ -23,7 +23,7 @@ func (a *XUIController) initRouter(g *gin.RouterGroup) { g.GET("/", a.index) g.GET("/inbounds", a.inbounds) - g.GET("/setting", a.setting) + g.GET("/settings", a.settings) a.inboundController = NewInboundController(g) a.settingController = NewSettingController(g) @@ -37,6 +37,6 @@ func (a *XUIController) inbounds(c *gin.Context) { html(c, "inbounds.html", "pages.inbounds.title", nil) } -func (a *XUIController) setting(c *gin.Context) { - html(c, "setting.html", "pages.setting.title", nil) +func (a *XUIController) settings(c *gin.Context) { + html(c, "settings.html", "pages.setting.title", nil) } diff --git a/web/html/xui/common_sider.html b/web/html/xui/common_sider.html index 278dc4e5..c7765d60 100644 --- a/web/html/xui/common_sider.html +++ b/web/html/xui/common_sider.html @@ -7,7 +7,7 @@ {{ i18n "menu.inbounds"}} - + {{ i18n "menu.setting"}} diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html deleted file mode 100644 index 7cbb44a2..00000000 --- a/web/html/xui/setting.html +++ /dev/null @@ -1,775 +0,0 @@ - - -{{template "head" .}} - - - - - {{ template "commonSider" . }} - - - - - - {{ i18n "pages.setting.save" }} - {{ i18n "pages.setting.restartPanel" }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ i18n "confirm" }} - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ i18n "confirm" }} - - - - - {{ i18n "pages.setting.actions"}} - - {{ i18n "pages.setting.resetDefaultConfig" }} - - - {{ i18n "pages.setting.basicTemplate"}} - - - -

- - {{ i18n "pages.setting.generalConfigsDesc" }} -

-
- - - - -
- - -

- - {{ i18n "pages.setting.countryConfigsDesc" }} -

-
- - - - - - -
- - -

- - {{ i18n "pages.setting.ipv4ConfigsDesc" }} -

-
- - -
- - -

- - {{ i18n "pages.setting.warpConfigsDesc" }} -

-
- - - - -
-
- - {{ i18n "pages.setting.advancedTemplate"}} - - - - - - - - - - - - - {{ i18n "pages.setting.completeTemplate"}} - -
-
- - - - - - - - - - - - - - - - - -
-
-
-
-
-
- {{template "js" .}} - {{template "component/setting"}} - - - - diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html new file mode 100644 index 00000000..7cbb44a2 --- /dev/null +++ b/web/html/xui/settings.html @@ -0,0 +1,775 @@ + + +{{template "head" .}} + + + + + {{ template "commonSider" . }} + + + + + + {{ i18n "pages.setting.save" }} + {{ i18n "pages.setting.restartPanel" }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + {{ i18n "pages.setting.actions"}} + + {{ i18n "pages.setting.resetDefaultConfig" }} + + + {{ i18n "pages.setting.basicTemplate"}} + + + +

+ + {{ i18n "pages.setting.generalConfigsDesc" }} +

+
+ + + + +
+ + +

+ + {{ i18n "pages.setting.countryConfigsDesc" }} +

+
+ + + + + + +
+ + +

+ + {{ i18n "pages.setting.ipv4ConfigsDesc" }} +

+
+ + +
+ + +

+ + {{ i18n "pages.setting.warpConfigsDesc" }} +

+
+ + +