Dev #11

Merged
serega404 merged 87 commits from dev into main 2026-05-25 03:22:55 +03:00
2 changed files with 0 additions and 4 deletions
Showing only changes of commit 90300b0644 - Show all commits
@@ -13,7 +13,6 @@ const navItems = computed(() => {
{ label: 'Дашборд', icon: 'chart-bar', to: '/teacher' },
{ label: 'Лекции', icon: 'book-2', to: '/teacher/lectures' },
{ label: 'Аналитика', icon: 'chart-line', to: '/teacher/analytics' },
{ label: 'Профиль', icon: 'user', to: '/profile' },
]
if (role === 'admin') return [
{ label: 'Дашборд', icon: 'shield', to: '/admin' },
@@ -25,7 +24,6 @@ const navItems = computed(() => {
{ label: 'Главная', icon: 'home', to: '/' },
{ label: 'Лекции', icon: 'books', to: '/catalog' },
{ label: 'Мои', icon: 'clipboard-list', to: '/my-lectures' },
{ label: 'Профиль', icon: 'user', to: '/profile' },
]
})
@@ -13,12 +13,10 @@ const navItems: NavItem[] = [
{ label: 'Главная', icon: 'home', to: '/', roles: ['student'] },
{ label: 'Каталог', icon: 'books', to: '/catalog', roles: ['student'] },
{ label: 'Мои записи', icon: 'clipboard-list', to: '/my-lectures', roles: ['student'] },
{ label: 'Профиль', icon: 'user', to: '/profile', roles: ['student'] },
// Teacher
{ label: 'Дашборд', icon: 'chart-bar', to: '/teacher', roles: ['teacher'] },
{ label: 'Лекции', icon: 'book-2', to: '/teacher/lectures', roles: ['teacher'] },
{ label: 'Аналитика', icon: 'chart-line', to: '/teacher/analytics', roles: ['teacher'] },
{ label: 'Профиль', icon: 'user', to: '/profile', roles: ['teacher'] },
// Admin
{ label: 'Дашборд', icon: 'shield', to: '/admin', roles: ['admin'] },
{ label: 'Пользователи', icon: 'users', to: '/admin/users', roles: ['admin'] },