diff --git a/web/html/xui/common_sider.html b/web/html/xui/common_sider.html
deleted file mode 100644
index 97114c15..00000000
--- a/web/html/xui/common_sider.html
+++ /dev/null
@@ -1,55 +0,0 @@
-{{define "menuItems"}}
-
-
- {{ i18n "menu.dashboard"}}
-
-
-
- {{ i18n "menu.inbounds"}}
-
-
-
- {{ i18n "menu.settings"}}
-
-
-
- {{ i18n "menu.xray"}}
-
-
-
- {{ i18n "menu.logout"}}
-
-{{end}}
-
-
-{{define "commonSider"}}
-
-
- key.startsWith('http') ? window.open(key) : location.href = key">
- {{template "menuItems" .}}
-
-
-
-
-
- key.startsWith('http') ? window.open(key) : location.href = key">
- {{template "menuItems" .}}
-
-
-
-{{end}}
diff --git a/web/html/xui/component/aSidebar.html b/web/html/xui/component/aSidebar.html
new file mode 100644
index 00000000..0ddaa176
--- /dev/null
+++ b/web/html/xui/component/aSidebar.html
@@ -0,0 +1,101 @@
+{{define "component/sidebar/content"}}
+
+
+
+{{end}}
+
+{{define "component/aSidebar"}}
+
+
+
+{{end}}
\ No newline at end of file
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index fd6ebe8d..4a0d2c8f 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -133,7 +133,7 @@
- {{ template "commonSider" . }}
+
@@ -584,6 +584,7 @@
+{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aCustomStatistic" .}}
{{template "component/aPersianDatepicker" .}}
@@ -678,7 +679,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
- siderDrawer,
themeSwitcher,
persianDatepicker,
spinning: false,
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 073564c3..6c398b4b 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -74,7 +74,7 @@
- {{ template "commonSider" . }}
+
@@ -417,6 +417,7 @@
{{template "js" .}}
+{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aCustomStatistic" .}}
{{template "modals/textModal"}}
@@ -591,7 +592,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
- siderDrawer,
themeSwitcher,
status: new Status(),
versionModal,
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html
index 1bf5dab8..336a44c3 100644
--- a/web/html/xui/settings.html
+++ b/web/html/xui/settings.html
@@ -70,7 +70,7 @@
- {{ template "commonSider" . }}
+
@@ -131,6 +131,7 @@
{{template "js" .}}
+{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aPasswordInput" .}}
{{template "component/aSettingListItem" .}}
@@ -139,7 +140,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
- siderDrawer,
themeSwitcher,
spinning: false,
changeSecret: false,
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index 8eb8239a..82f4bfd7 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -59,7 +59,7 @@
- {{ template "commonSider" . }}
+
@@ -130,6 +130,7 @@
{{template "js" .}}
+{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aTableSortable" .}}
{{template "component/aSettingListItem" .}}
@@ -207,7 +208,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
- siderDrawer,
themeSwitcher,
isDarkTheme: themeSwitcher.isDarkTheme,
spinning: false,