refactor: почистил фронтенд
This commit is contained in:
@@ -5,7 +5,6 @@ import { useAuthStore } from '@/stores/auth'
|
||||
import { useLecturesStore } from '@/stores/lectures'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import GlassCard from '@/components/ui/GlassCard.vue'
|
||||
import StatsWidget from '@/components/ui/StatsWidget.vue'
|
||||
import LectureCard from '@/components/ui/LectureCard.vue'
|
||||
import ProgressBar from '@/components/ui/ProgressBar.vue'
|
||||
import AchievementBadge from '@/components/ui/AchievementBadge.vue'
|
||||
@@ -90,7 +89,6 @@ async function registerLecture(id: string) {
|
||||
<div class="quick-actions">
|
||||
<button class="btn-primary" @click="router.push('/catalog')">Найти лекцию</button>
|
||||
<button class="btn-secondary" @click="router.push('/my-lectures')">Мои записи</button>
|
||||
<button class="btn-secondary" :disabled="!nextLecture" @click="nextLecture && router.push(`/review/${nextLecture.id}`)">Оставить отзыв</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -122,13 +120,6 @@ async function registerLecture(id: string) {
|
||||
</GlassCard>
|
||||
<EmptyState v-else-if="!lectures.loading" title="Пока нет лекций" subtitle="Каталог пуст или данные ещё не синхронизированы." />
|
||||
|
||||
<div class="stats-row">
|
||||
<StatsWidget label="Посещено лекций" :value="user.lecturesAttended ?? 12" icon="books" color="green" />
|
||||
<StatsWidget label="Часов обучения" :value="user.hoursLearned ?? 18.5" icon="stopwatch" color="aqua" />
|
||||
<StatsWidget label="Монет" :value="user.coins" icon="coin" color="orange" />
|
||||
<StatsWidget label="Уровень" :value="user.level" icon="star" color="purple" sub="текущий уровень" />
|
||||
</div>
|
||||
|
||||
<GlassCard>
|
||||
<div class="xp-section">
|
||||
<div class="xp-header">
|
||||
@@ -186,7 +177,7 @@ async function registerLecture(id: string) {
|
||||
<div class="section-title">
|
||||
<span class="title-with-icon">
|
||||
<AppIcon class="title-icon" icon="bell" :size="18" />
|
||||
Напоминания
|
||||
Увидомления
|
||||
</span>
|
||||
</div>
|
||||
<div class="reminders">
|
||||
|
||||
Reference in New Issue
Block a user