refactor: упростил настройки уведомлений

This commit is contained in:
2026-05-14 02:08:24 +03:00
parent 8d4b9ffeec
commit fef6962fa7
3 changed files with 2 additions and 11 deletions
@@ -14,7 +14,7 @@ type AppRole = 'student' | 'teacher' | 'admin'
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: 'clipboard-list', to: '/my-lectures', roles: ['student'] },
{ label: 'Достижения', icon: 'trophy', to: '/achievements', roles: ['student'] },
{ label: 'Уведомления', icon: 'bell', to: '/notifications', roles: ['student'] },
{ label: 'Профиль', icon: 'user', to: '/profile', roles: ['student'] },
@@ -23,7 +23,6 @@ function openProfile() {
<template>
<header class="topbar">
<div class="topbar-brand">
<AppIcon class="brand-icon" icon="world" :size="24" />
<span class="brand-name">UniVerse</span>
</div>
+1 -9
View File
@@ -33,7 +33,7 @@ const interestTags = ref([
{ label: '#маркетинг', active: true },
])
const notificationSettings = ref({ email: true, web: true, telegram: false })
const notificationSettings = ref({ email: true })
const historyColumns = [
{ key: 'date', label: 'Дата' },
@@ -94,14 +94,6 @@ onMounted(() => {
<input type="checkbox" v-model="notificationSettings.email" />
Email уведомления
</label>
<label class="setting">
<input type="checkbox" v-model="notificationSettings.web" />
Web push
</label>
<label class="setting">
<input type="checkbox" v-model="notificationSettings.telegram" />
Telegram бот @universe_sfedu
</label>
</div>
<div class="section-title">Достижения</div>
<EmptyState