diff --git a/client/src/App.tsx b/client/src/App.tsx index db59e06..237eb40 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -5,8 +5,6 @@ import { Toaster } from "@/components/ui/toaster"; import { TooltipProvider } from "@/components/ui/tooltip"; import Home from "@/pages/home"; import VideoPage from "@/pages/VideoPage"; -import Admin from "@/pages/admin"; -import BunnyAdminPage from "@/pages/BunnyAdminPage"; import NotFound from "@/pages/not-found"; function Router() { @@ -14,8 +12,6 @@ function Router() { - - ); diff --git a/client/src/components/search-header.tsx b/client/src/components/search-header.tsx index 96a661c..cd7a859 100644 --- a/client/src/components/search-header.tsx +++ b/client/src/components/search-header.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { Search, Play, Menu, Grid3X3, List, DollarSign, Settings, Info } from "lucide-react"; +import { Search, Play, Menu, Grid3X3, List } from "lucide-react"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; @@ -8,16 +8,12 @@ interface SearchHeaderProps { onSearch: (query: string) => void; onViewChange: (view: "grid" | "list") => void; currentView: "grid" | "list"; - onAdSettingsOpen?: () => void; - onAdExplanationOpen?: () => void; } export default function SearchHeader({ onSearch, onViewChange, - currentView, - onAdSettingsOpen, - onAdExplanationOpen + currentView }: SearchHeaderProps) { const [searchQuery, setSearchQuery] = useState(""); @@ -44,26 +40,6 @@ export default function SearchHeader({ Home - - Admin - - - Bunny Admin - - - - Library - - - Upload -
diff --git a/client/src/pages/BunnyAdminPage.tsx b/client/src/pages/BunnyAdminPage.tsx deleted file mode 100644 index e61ac95..0000000 --- a/client/src/pages/BunnyAdminPage.tsx +++ /dev/null @@ -1,346 +0,0 @@ -import { useState } from "react"; -import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; -import { Button } from "@/components/ui/button"; -import { Input } from "@/components/ui/input"; -import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; -import { Badge } from "@/components/ui/badge"; -import { - Plus, - Search, - Edit3, - Trash2, - Upload, - Play, - Pause, - Settings, - BarChart3, - Users, - Video as VideoIcon -} from "lucide-react"; -import { type Video } from "@shared/schema"; -import { apiRequest } from "@/lib/queryClient"; -import BunnyVideoModal from "@/components/bunny-video-modal"; - -interface BunnyStats { - totalVideos: number; - totalViews: number; - totalStorage: number; - bandwidth: number; -} - -function formatFileSize(bytes: number): string { - const sizes = ['B', 'KB', 'MB', 'GB', 'TB']; - if (bytes === 0) return '0 B'; - const i = Math.floor(Math.log(bytes) / Math.log(1024)); - return Math.round(bytes / Math.pow(1024, i) * 100) / 100 + ' ' + sizes[i]; -} - -function formatDuration(seconds: number): string { - const minutes = Math.floor(seconds / 60); - const remainingSeconds = seconds % 60; - return `${minutes}:${remainingSeconds.toString().padStart(2, '0')}`; -} - -function formatViews(views: number): string { - if (views >= 1000000) { - return `${(views / 1000000).toFixed(1)}M`; - } else if (views >= 1000) { - return `${(views / 1000).toFixed(1)}K`; - } - return views.toString(); -} - -export default function BunnyAdminPage() { - const [searchTerm, setSearchTerm] = useState(""); - const [selectedVideo, setSelectedVideo] = useState