feat: добавить новый backend и cabinet

- добавлен новый Nest backend для auth, projects и project access tokens
- добавлена control-plane схема БД и миграция Drizzle
- перенесён старый backend в old-backend
- добавлен React/Vite cabinet с auth-only входом и Mantine layout
- обновлены workspace scripts и lockfile
This commit is contained in:
2026-05-12 09:22:04 +03:00
parent d49449c30c
commit 98295d0569
113 changed files with 3426 additions and 169 deletions

View File

@@ -0,0 +1,20 @@
import { ApiProperty } from "@nestjs/swagger"
export class LoginRequestDto {
@ApiProperty({ description: "Логин администратора.", example: "admin" })
username!: string
@ApiProperty({ description: "Пароль администратора.", example: "admin" })
password!: string
}
export class LoginResponseDto {
@ApiProperty({ description: "Bearer token сессии администратора.", example: "admin.eyJ1c2VybmFtZSI6ImFkbWluIn0.signature" })
accessToken!: string
@ApiProperty({ description: "Тип токена для HTTP Authorization header.", example: "Bearer" })
tokenType!: "Bearer"
@ApiProperty({ description: "ISO-дата истечения сессии.", example: "2026-05-13T10:00:00.000Z" })
expiresAt!: string
}