From c2a3ce12eb812ec4d521691da5275cc821788d03 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Thu, 28 Aug 2025 10:04:50 +0000 Subject: [PATCH] Remove ad monetization indicator and explanation from the platform Remove the `AdExplanation` component and the ad monetization indicator from `VideoCard`. Update the `/api/bunny/stats` and video fetching endpoints to use new `storage.getVideos` and `storage.getVideoCount` methods, returning pagination information. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/JzV8bfS --- client/src/components/video-card.tsx | 5 +---- client/src/pages/home.tsx | 11 +++-------- server/routes.ts | 15 ++++++++++----- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index 2c7d318..ce86daf 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -72,10 +72,7 @@ export default function VideoCard({ video, onClick }: VideoCardProps) { {formatDuration(video.duration)} - {/* VAST Ad monetization indicator */} -
- 💰 OGLAS -
+ {/* Play button overlay */}
diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 761a25d..0bde475 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -4,7 +4,7 @@ import { type Video } from "@shared/schema"; import SearchHeader from "@/components/search-header"; import VideoGrid from "@/components/video-grid"; import AdSettings from "@/components/ad-settings"; -import AdExplanation from "@/components/ad-explanation"; + interface VideosResponse { videos: Video[]; @@ -18,7 +18,7 @@ export default function Home() { const [offset, setOffset] = useState(0); const [allVideos, setAllVideos] = useState([]); const [showAdSettings, setShowAdSettings] = useState(false); - const [showAdExplanation, setShowAdExplanation] = useState(false); + // Fetch videos const { data: videosResponse, isLoading, refetch } = useQuery({ @@ -79,7 +79,6 @@ export default function Home() { onViewChange={setViewMode} currentView={viewMode} onAdSettingsOpen={() => setShowAdSettings(true)} - onAdExplanationOpen={() => setShowAdExplanation(true)} />
@@ -98,11 +97,7 @@ export default function Home() { onClose={() => setShowAdSettings(false)} /> - {/* Ad Explanation Modal */} - setShowAdExplanation(false)} - /> + {/* Footer */}