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/sub
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-09-18 13:20:21 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-09-18 13:20:21 +0300
commit8c8d280f147ce4e8f604080d1dbf066332e55efc (patch)
tree73229c45d18fefb88f99682d9826af8d10c3ff6f /sub
parentc720008187e36daeb7ac9799916c5ad16e1c57bf (diff)
minor change
Diffstat (limited to 'sub')
-rw-r--r--sub/sub.go4
-rw-r--r--sub/subController.go2
-rw-r--r--sub/subService.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/sub/sub.go b/sub/sub.go
index b7e2603e..8a16120d 100644
--- a/sub/sub.go
+++ b/sub/sub.go
@@ -30,7 +30,7 @@ func setEmbeddedTemplates(engine *gin.Engine) error {
webpkg.EmbeddedHTML(),
"html/common/page.html",
"html/component/aThemeSwitch.html",
- "html/subscription.html",
+ "html/settings/panel/subscription/subpage.html",
)
if err != nil {
return err
@@ -207,7 +207,7 @@ func (s *Server) getHtmlFiles() ([]string, error) {
files = append(files, theme)
}
// page itself
- page := filepath.Join(dir, "web", "html", "subscription.html")
+ page := filepath.Join(dir, "web", "html", "subpage.html")
if _, err := os.Stat(page); err == nil {
files = append(files, page)
} else {
diff --git a/sub/subController.go b/sub/subController.go
index 0e16a02d..170cfa74 100644
--- a/sub/subController.go
+++ b/sub/subController.go
@@ -75,7 +75,7 @@ func (a *SUBController) subs(c *gin.Context) {
// Build page data in service
subURL, subJsonURL := a.subService.BuildURLs(scheme, hostWithPort, a.subPath, a.subJsonPath, subId)
page := a.subService.BuildPageData(subId, hostHeader, traffic, lastOnline, subs, subURL, subJsonURL)
- c.HTML(200, "subscription.html", gin.H{
+ c.HTML(200, "subpage.html", gin.H{
"title": "subscription.title",
"cur_ver": config.GetVersion(),
"host": page.Host,
diff --git a/sub/subService.go b/sub/subService.go
index 17b05ad0..201fa09d 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -1007,7 +1007,7 @@ func searchHost(headers any) string {
return ""
}
-// PageData is a view model for subscription.html
+// PageData is a view model for subpage.html
type PageData struct {
Host string
BasePath string