Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-04 19:39:08 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-05-04 19:39:08 +0300
commit4f8de18d1f21518b98aba82cbf14d2d23c0c178c (patch)
treeab4fe59fa64bcd4499fb4586ee31445dd9b47e17 /web
parentdbac48f05db6328bb9e19fc354c61d1a9e85de74 (diff)
renamed setting.html to settings.html and update its route name
Diffstat (limited to 'web')
-rw-r--r--web/controller/xui.go6
-rw-r--r--web/html/xui/common_sider.html2
-rw-r--r--web/html/xui/settings.html (renamed from web/html/xui/setting.html)0
3 files changed, 4 insertions, 4 deletions
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 @@
<a-icon type="user"></a-icon>
<span>{{ i18n "menu.inbounds"}}</span>
</a-menu-item>
-<a-menu-item key="{{ .base_path }}xui/setting">
+<a-menu-item key="{{ .base_path }}xui/settings">
<a-icon type="setting"></a-icon>
<span>{{ i18n "menu.setting"}}</span>
</a-menu-item>
diff --git a/web/html/xui/setting.html b/web/html/xui/settings.html
index 7cbb44a2..7cbb44a2 100644
--- a/web/html/xui/setting.html
+++ b/web/html/xui/settings.html