Spaces:
Runtime error
Runtime error
File size: 11,944 Bytes
6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 980bfc2 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 900ee77 6c576f2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | import type { FeaturedCreator } from '../../discovery/types/discovery.types';
import type { MarketplaceType, AvailabilityStatus } from '../types/vault.types';
// Simplified types for mock data to avoid dependency on deleted trending feature
export interface MockVideo {
id: string;
videoId: string;
title: string;
description: string;
thumbnailUrl: string;
viewCount: number;
publishedAt: Date;
productCount: number;
trendingScore: number;
platform: 'youtube' | 'instagram' | 'tiktok' | 'facebook';
creator: {
id: string;
name: string;
slug: string;
channelName: string;
thumbnailUrl: string;
};
}
export interface MockProduct {
id: string; // Internal ID
objectId: string; // Legacy ID used by VaultService
marketplaceMatchId: string | null;
objectName: string;
name: string; // Legacy field used by VaultService
category: string;
frameTimestamp: number;
videoId: string;
videoTitle: string;
marketplace: MarketplaceType | null;
productName: string | null;
price: number | null;
availabilityStatus: AvailabilityStatus | null;
thumbnailUrl: string;
affiliateUrl: string | null;
clickCount: number;
viewCount: number;
trendingScore: number;
interestPledgeCount: number;
video: {
id: string;
videoId: string;
title: string;
thumbnailUrl: string;
};
creator: {
id: string;
name: string;
slug: string;
channelName: string;
thumbnailUrl: string;
};
}
export const SAMPLE_TRENDING_VIDEOS: MockVideo[] = [
{
id: 'vid_mkbhd_01',
videoId: 'XaqOejIaFgM',
title: 'Samsung Galaxy S24 Ultra Review: Why Buy Anything Else?',
description: 'Samsung\'s latest flagship is here and it is packed with features. But is it enough?',
thumbnailUrl: 'https://i.ytimg.com/vi/XaqOejIaFgM/maxresdefault.jpg',
viewCount: 4200000,
publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 2),
productCount: 4,
trendingScore: 98,
platform: 'youtube',
creator: {
id: 'creator_mkbhd',
name: 'Marques Brownlee',
slug: 'mkbhd',
channelName: 'Marques Brownlee',
thumbnailUrl: 'https://yt3.ggpht.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'vid_mrwho_01',
videoId: 'Ay9RL5YQViA',
title: '14 most AWKWARD Tech Fails of all time',
description: 'From exploding phones to failed launches, here are the biggest tech fails.',
thumbnailUrl: 'https://i.ytimg.com/vi/Ay9RL5YQViA/maxresdefault.jpg',
viewCount: 3800000,
publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 1),
productCount: 6,
trendingScore: 95,
platform: 'youtube',
creator: {
id: 'creator_mrwho',
name: 'Mrwhosetheboss',
slug: 'mrwhosetheboss',
channelName: 'Mrwhosetheboss',
thumbnailUrl: 'https://yt3.ggpht.com/a_1U9tYmozHPhZhsLiqqQ_XcYbhlmG_X1fsTdBWAHBjLmRN0haiv1xa_owiit7p8xyKDlMF1LXw=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'vid_jerry_01',
videoId: 'dMH7zI48Wrg',
title: 'Nothing Phone 2a Durability Test!',
description: 'Does the transparent plastic back going to scratch instantly? Let\'s find out.',
thumbnailUrl: 'https://i.ytimg.com/vi/dMH7zI48Wrg/maxresdefault.jpg',
viewCount: 1500000,
publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 3),
productCount: 3,
trendingScore: 89,
platform: 'youtube',
creator: {
id: 'creator_jerry',
name: 'JerryRigEverything',
slug: 'jerryrigeverything',
channelName: 'JerryRigEverything',
thumbnailUrl: 'https://yt3.ggpht.com/ebXyJhsgpfIHg4PXw3eSFTeSx6Ud1us26Gwgshe9jPBvSu82SpQkFmc1GK7q2Go2KJePYQ5Icg=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'vid_ijustine_01',
videoId: 'KrvXY5JK3ro',
title: 'Logitech MX Keys S Review',
description: 'Is this the best keyboard for productivity? Let\'s find out.',
thumbnailUrl: 'https://i.ytimg.com/vi/KrvXY5JK3ro/maxresdefault.jpg',
viewCount: 950000,
publishedAt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 4),
productCount: 5,
trendingScore: 85,
platform: 'youtube',
creator: {
id: 'creator_ijustine',
name: 'iJustine',
slug: 'ijustine',
channelName: 'iJustine',
thumbnailUrl: 'https://yt3.ggpht.com/TyFX--bFsY4XVipOdLiWA-NK8X0iwocs9ViPuoSMddCEgwSCrGCPQdRIe5KhEwwmRTvPv6vpnA=s800-c-k-c0x00ffffff-no-rj',
},
}
];
export const SAMPLE_TRENDING_PRODUCTS: MockProduct[] = [
{
id: 'prod_mkbhd_01',
objectId: 'obj_mkbhd_01',
marketplaceMatchId: 'match_mkbhd_01',
objectName: 'Phone',
name: 'Samsung Galaxy S24 Ultra',
category: 'Tech',
frameTimestamp: 120,
videoId: 'vid_mkbhd_01',
videoTitle: 'Samsung Galaxy S24 Ultra Review',
marketplace: 'amazon',
productName: 'Samsung Galaxy S24 Ultra',
price: 1299.99,
availabilityStatus: 'IN_STOCK',
thumbnailUrl: 'https://images.unsplash.com/photo-1610945415295-d9bbf067e59c?w=400&q=80',
affiliateUrl: 'https://www.amazon.com/s?k=Samsung+Galaxy+S24+Ultra',
clickCount: 5200,
viewCount: 4200000,
trendingScore: 99,
interestPledgeCount: 15,
video: {
id: 'vid_mkbhd_01',
videoId: 'XaqOejIaFgM',
title: 'Samsung Galaxy S24 Ultra Review',
thumbnailUrl: 'https://i.ytimg.com/vi/XaqOejIaFgM/maxresdefault.jpg',
},
creator: {
id: 'creator_mkbhd',
name: 'Marques Brownlee',
slug: 'mkbhd',
channelName: 'Marques Brownlee',
thumbnailUrl: 'https://yt3.ggpht.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'prod_mrwho_01',
objectId: 'obj_mrwho_01',
marketplaceMatchId: 'match_mrwho_01',
objectName: 'Phone',
name: 'iPhone 15 Pro Max',
category: 'Tech',
frameTimestamp: 45,
videoId: 'vid_mrwho_01',
videoTitle: '14 most AWKWARD Tech Fails',
marketplace: 'amazon',
productName: 'iPhone 15 Pro Max',
price: 1199.00,
availabilityStatus: 'IN_STOCK',
thumbnailUrl: 'https://images.unsplash.com/photo-1695048133142-1a20484d2569?w=400&q=80',
affiliateUrl: 'https://www.amazon.com/s?k=iPhone+15+Pro+Max',
clickCount: 4800,
viewCount: 3800000,
trendingScore: 96,
interestPledgeCount: 22,
video: {
id: 'vid_mrwho_01',
videoId: 'Ay9RL5YQViA',
title: '14 most AWKWARD Tech Fails',
thumbnailUrl: 'https://i.ytimg.com/vi/Ay9RL5YQViA/maxresdefault.jpg',
},
creator: {
id: 'creator_mrwho',
name: 'Mrwhosetheboss',
slug: 'mrwhosetheboss',
channelName: 'Mrwhosetheboss',
thumbnailUrl: 'https://yt3.ggpht.com/a_1U9tYmozHPhZhsLiqqQ_XcYbhlmG_X1fsTdBWAHBjLmRN0haiv1xa_owiit7p8xyKDlMF1LXw=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'prod_jerry_01',
objectId: 'obj_jerry_01',
marketplaceMatchId: 'match_jerry_01',
objectName: 'Phone',
name: 'Nothing Phone (2a)',
category: 'Tech',
frameTimestamp: 180,
videoId: 'vid_jerry_01',
videoTitle: 'Nothing Phone 2a Durability Test',
marketplace: 'amazon',
productName: 'Nothing Phone (2a)',
price: 349.00,
availabilityStatus: 'IN_STOCK',
thumbnailUrl: 'https://i.ytimg.com/vi/dMH7zI48Wrg/maxresdefault.jpg',
affiliateUrl: 'https://www.amazon.com/s?k=Nothing+Phone+2a',
clickCount: 2100,
viewCount: 1500000,
trendingScore: 90,
interestPledgeCount: 8,
video: {
id: 'vid_jerry_01',
videoId: 'dMH7zI48Wrg',
title: 'Nothing Phone 2a Durability Test',
thumbnailUrl: 'https://i.ytimg.com/vi/dMH7zI48Wrg/maxresdefault.jpg',
},
creator: {
id: 'creator_jerry',
name: 'JerryRigEverything',
slug: 'jerryrigeverything',
channelName: 'JerryRigEverything',
thumbnailUrl: 'https://yt3.ggpht.com/ebXyJhsgpfIHg4PXw3eSFTeSx6Ud1us26Gwgshe9jPBvSu82SpQkFmc1GK7q2Go2KJePYQ5Icg=s800-c-k-c0x00ffffff-no-rj',
},
},
{
id: 'prod_keyboard',
objectId: 'obj_keyboard_01',
marketplaceMatchId: 'match_keyboard_01',
objectName: 'Keyboard',
name: 'Logitech MX Keys S',
category: 'Tech',
frameTimestamp: 60,
videoId: 'vid_ijustine_01',
videoTitle: 'Logitech MX Keys S Review',
marketplace: 'amazon',
productName: 'Logitech MX Keys S',
price: 109.99,
availabilityStatus: 'IN_STOCK',
thumbnailUrl: 'https://i.ytimg.com/vi/KrvXY5JK3ro/maxresdefault.jpg',
affiliateUrl: 'https://www.amazon.com/s?k=Logitech+MX+Keys+S',
clickCount: 1800,
viewCount: 950000,
trendingScore: 88,
interestPledgeCount: 5,
video: {
id: 'vid_ijustine_01',
videoId: 'KrvXY5JK3ro',
title: 'Logitech MX Keys S Review',
thumbnailUrl: 'https://i.ytimg.com/vi/KrvXY5JK3ro/maxresdefault.jpg',
},
creator: {
id: 'creator_ijustine',
name: 'iJustine',
slug: 'ijustine',
channelName: 'iJustine',
thumbnailUrl: 'https://yt3.ggpht.com/TyFX--bFsY4XVipOdLiWA-NK8X0iwocs9ViPuoSMddCEgwSCrGCPQdRIe5KhEwwmRTvPv6vpnA=s800-c-k-c0x00ffffff-no-rj',
},
}
];
export const SAMPLE_FEATURED_CREATORS: FeaturedCreator[] = [
{
id: 'creator_mkbhd',
name: 'Marques Brownlee',
slug: 'mkbhd',
avatar: 'https://yt3.ggpht.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s800-c-k-c0x00ffffff-no-rj',
subscriberCount: 18500000,
totalProducts: 450,
channelId: 'channel_mkbhd',
vaultPreview: 'https://i.ytimg.com/vi/XaqOejIaFgM/maxresdefault.jpg',
},
{
id: 'creator_mrwho',
name: 'Mrwhosetheboss',
slug: 'mrwhosetheboss',
avatar: 'https://yt3.ggpht.com/a_1U9tYmozHPhZhsLiqqQ_XcYbhlmG_X1fsTdBWAHBjLmRN0haiv1xa_owiit7p8xyKDlMF1LXw=s800-c-k-c0x00ffffff-no-rj',
subscriberCount: 17200000,
totalProducts: 380,
channelId: 'channel_mrwho',
vaultPreview: 'https://i.ytimg.com/vi/Ay9RL5YQViA/maxresdefault.jpg',
},
{
id: 'creator_jerry',
name: 'JerryRigEverything',
slug: 'jerryrigeverything',
avatar: 'https://yt3.ggpht.com/ebXyJhsgpfIHg4PXw3eSFTeSx6Ud1us26Gwgshe9jPBvSu82SpQkFmc1GK7q2Go2KJePYQ5Icg=s800-c-k-c0x00ffffff-no-rj',
subscriberCount: 8400000,
totalProducts: 210,
channelId: 'channel_jerry',
vaultPreview: 'https://i.ytimg.com/vi/dMH7zI48Wrg/maxresdefault.jpg',
},
{
id: 'creator_ijustine',
name: 'iJustine',
slug: 'ijustine',
avatar: 'https://yt3.ggpht.com/TyFX--bFsY4XVipOdLiWA-NK8X0iwocs9ViPuoSMddCEgwSCrGCPQdRIe5KhEwwmRTvPv6vpnA=s800-c-k-c0x00ffffff-no-rj',
subscriberCount: 7100000,
totalProducts: 195,
channelId: 'channel_ijustine',
vaultPreview: 'https://i.ytimg.com/vi/KrvXY5JK3ro/maxresdefault.jpg',
}
];
|