This commit is contained in:
2026-04-21 04:20:14 +03:00
parent 82a932dd2b
commit c47dad2af8
5 changed files with 29 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ services:
PMA_HOST: iiko-db
PMA_PORT: 3306
UPLOAD_LIMIT: 10M
# PMA_ABSOLUTE_URI: https://phpmyadmin.dev.xserver.su/
PMA_ABSOLUTE_URI: https://iiko-app.dev.xserver.su/phpmyadmin/
TZ: Europe/Moscow
ports:
- "7102:80"

View File

@@ -92,6 +92,30 @@
</svg>
<span v-if="!sidebarCollapsed" class="truncate">{{ t('app.settings') }}</span>
</router-link>
<!-- PhpMyAdmin - только для администраторов -->
<a
v-if="userStore.role === 'admin'"
href="/phpmyadmin"
target="_self"
class="flex items-center rounded-lg hover:bg-gray-100 transition-colors no-router-link"
:class="[
sidebarCollapsed ? 'justify-center p-2' : 'px-4 py-3 space-x-3',
$route.path === '/phpmyadmin' ? 'bg-primary-50 text-primary-700' : 'text-gray-700'
]"
:title="sidebarCollapsed ? t('app.database') : ''"
>
<!-- Иконка базы данных -->
<svg class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 7v10c0 2 1.5 3 3 3h10c1.5 0 3-1 3-3V7c0-2-1.5-3-3-3H7c-1.5 0-3 1-3 3z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 7c0 2 1.5 3 3 3h10c1.5 0 3-1 3-3" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 12c0 2 1.5 3 3 3h10c1.5 0 3-1 3-3" />
</svg>
<span v-if="!sidebarCollapsed" class="truncate">{{ t('app.database') }}</span>
</a>
</nav>
<!-- User Info (collapsed aware) -->

View File

@@ -2,6 +2,7 @@
"app": {
"title": "Admin Panel",
"dashboard": "Dashboard",
"database": "Data Base",
"users": "Users",
"restaurants": "Restaurants",
"settings": "Settings",

View File

@@ -2,6 +2,7 @@
"app": {
"title": "Панель администратора",
"dashboard": "Панель управления",
"database": "База Данных",
"users": "Пользователи",
"restaurants": "Рестораны",
"settings": "Настройки",

View File

@@ -42,7 +42,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /phpmyadmin/ {
location /phpmyadmin {
allow 80.68.9.83;
allow 185.51.125.202;
@@ -64,7 +64,7 @@ server {
deny all;
proxy_pass http://127.0.0.1:7102/;
proxy_pass http://127.0.0.1:7102;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;