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

@@ -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": "Настройки",