feat: подготовил дизайн (изменения из другого репозитория)
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 5s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 8s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 5s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 8s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
export type UserRole = 'student' | 'teacher' | 'admin'
|
||||
|
||||
export interface User {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
role: UserRole
|
||||
avatar?: string
|
||||
institute?: string
|
||||
department?: string
|
||||
year?: number
|
||||
direction?: string
|
||||
coins: number
|
||||
level: number
|
||||
xp?: number
|
||||
lecturesAttended?: number
|
||||
hoursLearned?: number
|
||||
achievements?: string[]
|
||||
}
|
||||
|
||||
export interface Lecture {
|
||||
id: string
|
||||
title: string
|
||||
description: string
|
||||
teacher: string
|
||||
teacherTitle?: string
|
||||
department?: string
|
||||
institute: string
|
||||
date: string
|
||||
time: string
|
||||
duration: number
|
||||
building: string
|
||||
room?: string
|
||||
format: 'online' | 'offline'
|
||||
totalSeats: number
|
||||
freeSeats: number
|
||||
registrationClosed?: boolean
|
||||
tags: string[]
|
||||
rating: number
|
||||
reviewCount: number
|
||||
status?: 'upcoming' | 'ongoing' | 'completed'
|
||||
registered?: boolean
|
||||
}
|
||||
|
||||
export interface Review {
|
||||
id: string
|
||||
lectureId: string
|
||||
userId: string
|
||||
userName: string
|
||||
text: string
|
||||
sentiment: 'positive' | 'neutral' | 'negative'
|
||||
coins?: number
|
||||
createdAt: string
|
||||
status: 'pending' | 'analyzing' | 'done' | 'rejected'
|
||||
quality?: number
|
||||
}
|
||||
|
||||
export interface Achievement {
|
||||
id: string
|
||||
title: string
|
||||
description: string
|
||||
icon: string
|
||||
unlocked: boolean
|
||||
unlockedAt?: string
|
||||
coins?: number
|
||||
}
|
||||
|
||||
export interface Notification {
|
||||
id: string
|
||||
type: 'reminder' | 'schedule-change' | 'achievement' | 'coins' | 'recommendation'
|
||||
title: string
|
||||
body: string
|
||||
read: boolean
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
export interface CoinTransaction {
|
||||
id: string
|
||||
date: string
|
||||
description: string
|
||||
amount: number
|
||||
type: 'earned' | 'spent'
|
||||
}
|
||||
Reference in New Issue
Block a user