Merge branch 'MHSanaei:main' into main

This commit is contained in:
Pk-web6936 2025-03-30 18:38:13 +03:30 committed by GitHub
commit 5940f6dfe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 14 deletions

35
.gitignore vendored
View file

@ -1,16 +1,39 @@
.idea # Ignore editor and IDE settings
.vscode .idea/
.cache .vscode/
.cache/
.sync* .sync*
*.tar.gz
# Ignore log files
*.log *.log
access.log access.log
error.log error.log
tmp
main # Ignore temporary files
tmp/
*.tar.gz
# Ignore build and distribution directories
backup/ backup/
bin/ bin/
dist/ dist/
release/ release/
node_modules/
# Ignore compiled binaries
main
# Ignore script and executable files
/release.sh /release.sh
/x-ui /x-ui
# Ignore OS specific files
.DS_Store
Thumbs.db
# Ignore Go specific files
*.exe
*.exe~
# Ignore Docker specific files
docker-compose.override.yml

View file

@ -45,27 +45,27 @@
return { return {
tabs: [ tabs: [
{ {
key: '/panel/', key: 'panel/',
icon: 'dashboard', icon: 'dashboard',
title: '{{ i18n "menu.dashboard"}}' title: '{{ i18n "menu.dashboard"}}'
}, },
{ {
key: '/panel/inbounds', key: 'panel/inbounds',
icon: 'user', icon: 'user',
title: '{{ i18n "menu.inbounds"}}' title: '{{ i18n "menu.inbounds"}}'
}, },
{ {
key: '/panel/settings', key: 'panel/settings',
icon: 'setting', icon: 'setting',
title: '{{ i18n "menu.settings"}}' title: '{{ i18n "menu.settings"}}'
}, },
{ {
key: '/panel/xray', key: 'panel/xray',
icon: 'tool', icon: 'tool',
title: '{{ i18n "menu.xray"}}' title: '{{ i18n "menu.xray"}}'
}, },
{ {
key: '/logout/', key: 'logout/',
icon: 'logout', icon: 'logout',
title: '{{ i18n "menu.logout"}}' title: '{{ i18n "menu.logout"}}'
}, },
@ -79,7 +79,9 @@
}, },
methods: { methods: {
openLink(key) { openLink(key) {
return key.startsWith('http') ? window.open(key) : location.href = key return key.startsWith('http') ?
window.open(`{{ .base_path }}${key}`) :
location.href = `{{ .base_path }}${key}`
}, },
closeDrawer() { closeDrawer() {
this.visible = false; this.visible = false;

View file

@ -635,7 +635,7 @@
"allClients" = "Все клиенты" "allClients" = "Все клиенты"
"addClient" = "Добавить клиента" "addClient" = "Добавить клиента"
"submitDisable" = "Отправить как отключенный ✅" "submitDisable" = "Отправить отключенным ✅"
"use_default" = "🏷️ Использовать по умолчанию" "use_default" = "🏷️ Использовать по умолчанию"
"change_id" = "⚙️🔑 ID" "change_id" = "⚙️🔑 ID"
"change_password" = "⚙️🔑 Пароль" "change_password" = "⚙️🔑 Пароль"

View file

@ -635,7 +635,7 @@
"allClients" = "Всі Клієнти" "allClients" = "Всі Клієнти"
"addClient" = "Додати клієнта" "addClient" = "Додати клієнта"
"submitDisable" = "Надіслати як вимкнене ✅" "submitDisable" = "Надіслати відключеним ✅"
"use_default" = "🏷️ Використовувати за замовчуванням" "use_default" = "🏷️ Використовувати за замовчуванням"
"change_id" = "⚙️🔑 ID" "change_id" = "⚙️🔑 ID"
"change_password" = "⚙️🔑 Пароль" "change_password" = "⚙️🔑 Пароль"