diff --git a/backend/src/api-keys/dto/create-api-key.dto.ts b/backend/src/api-keys/dto/create-api-key.dto.ts index 91601a6..aeacda9 100644 --- a/backend/src/api-keys/dto/create-api-key.dto.ts +++ b/backend/src/api-keys/dto/create-api-key.dto.ts @@ -1,4 +1,10 @@ -import { IsDateString, IsNotEmpty, IsOptional, IsString, MaxLength } from "class-validator"; +import { + IsDateString, + IsNotEmpty, + IsOptional, + IsString, + MaxLength, +} from "class-validator"; export class CreateApiKeyDto { @IsString() diff --git a/backend/src/contents/dto/upload-content.dto.ts b/backend/src/contents/dto/upload-content.dto.ts index a67c3d7..5cc6902 100644 --- a/backend/src/contents/dto/upload-content.dto.ts +++ b/backend/src/contents/dto/upload-content.dto.ts @@ -1,4 +1,5 @@ import { + IsArray, IsEnum, IsNotEmpty, IsOptional, diff --git a/backend/src/reports/dto/create-report.dto.ts b/backend/src/reports/dto/create-report.dto.ts index 53a9bae..a3c86ab 100644 --- a/backend/src/reports/dto/create-report.dto.ts +++ b/backend/src/reports/dto/create-report.dto.ts @@ -1,4 +1,10 @@ -import { IsEnum, IsOptional, IsString, IsUUID, MaxLength } from "class-validator"; +import { + IsEnum, + IsOptional, + IsString, + IsUUID, + MaxLength, +} from "class-validator"; export enum ReportReason { INAPPROPRIATE = "inappropriate", diff --git a/frontend/src/app/(dashboard)/layout.tsx b/frontend/src/app/(dashboard)/layout.tsx index 89e2f02..fe976cb 100644 --- a/frontend/src/app/(dashboard)/layout.tsx +++ b/frontend/src/app/(dashboard)/layout.tsx @@ -2,12 +2,12 @@ import * as React from "react"; import { AppSidebar } from "@/components/app-sidebar"; import { MobileFilters } from "@/components/mobile-filters"; import { SearchSidebar } from "@/components/search-sidebar"; -import { UserNavMobile } from "@/components/user-nav-mobile"; import { SidebarInset, SidebarProvider, SidebarTrigger, } from "@/components/ui/sidebar"; +import { UserNavMobile } from "@/components/user-nav-mobile"; export default function DashboardLayout({ children, diff --git a/frontend/src/app/(dashboard)/profile/page.tsx b/frontend/src/app/(dashboard)/profile/page.tsx index d1c1746..e2f6765 100644 --- a/frontend/src/app/(dashboard)/profile/page.tsx +++ b/frontend/src/app/(dashboard)/profile/page.tsx @@ -7,12 +7,18 @@ import * as React from "react"; import { ContentList } from "@/components/content-list"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Spinner } from "@/components/ui/spinner"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useAuth } from "@/providers/auth-provider"; import { ContentService } from "@/services/content.service"; import { FavoriteService } from "@/services/favorite.service"; -import { Spinner } from "@/components/ui/spinner"; export default function ProfilePage() { const { user, isAuthenticated, isLoading, logout } = useAuth(); diff --git a/frontend/src/app/(dashboard)/upload/page.tsx b/frontend/src/app/(dashboard)/upload/page.tsx index 2049f8f..c817953 100644 --- a/frontend/src/app/(dashboard)/upload/page.tsx +++ b/frontend/src/app/(dashboard)/upload/page.tsx @@ -10,7 +10,13 @@ import { useForm } from "react-hook-form"; import { toast } from "sonner"; import * as z from "zod"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Form, FormControl, @@ -28,10 +34,10 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; +import { Spinner } from "@/components/ui/spinner"; import { useAuth } from "@/providers/auth-provider"; import { CategoryService } from "@/services/category.service"; import { ContentService } from "@/services/content.service"; -import { Spinner } from "@/components/ui/spinner"; import type { Category } from "@/types/content"; const uploadSchema = z.object({ diff --git a/frontend/src/components/app-sidebar.tsx b/frontend/src/components/app-sidebar.tsx index 49905bf..c89c51b 100644 --- a/frontend/src/components/app-sidebar.tsx +++ b/frontend/src/components/app-sidebar.tsx @@ -159,7 +159,9 @@ export function AppSidebar() { @@ -171,7 +173,9 @@ export function AppSidebar() { diff --git a/frontend/src/components/user-nav-mobile.tsx b/frontend/src/components/user-nav-mobile.tsx index c70387f..a87b737 100644 --- a/frontend/src/components/user-nav-mobile.tsx +++ b/frontend/src/components/user-nav-mobile.tsx @@ -29,9 +29,7 @@ export function UserNavMobile() { - - {user.username.slice(0, 2).toUpperCase()} - + {user.username.slice(0, 2).toUpperCase()}