项目从单体结构重构为 pnpm monorepo (shared/backend/frontend), 新增 YouTube、Instagram、Twitter/X、哔哩哔哩、微博 5 个平台适配器, 包含完整的单元测试和 E2E 测试覆盖。 - 完成 T-031~T-044: 5 个适配器实现、注册、配置和测试 - 重构前后端分离: Hono 后端 + Next.js 前端 - 151 个单元测试 + 21 个 Mock E2E + 25 个真实 E2E - 适配器基于真实 TikHub API 响应结构实现 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
149 lines
3.9 KiB
TypeScript
149 lines
3.9 KiB
TypeScript
export const mockContentList = [
|
|
{
|
|
id: "dy-001",
|
|
title: "抖音热门视频测试内容 - 创意摄影技巧",
|
|
cover_url: "",
|
|
author_name: "摄影师小明",
|
|
author_avatar: "",
|
|
play_count: 1_500_000,
|
|
like_count: 80_000,
|
|
collect_count: 12_000,
|
|
comment_count: 3_500,
|
|
share_count: 5_000,
|
|
publish_time: "2024-01-15T08:00:00Z",
|
|
platform: "douyin",
|
|
original_url: "https://www.douyin.com/video/dy-001",
|
|
tags: ["摄影", "创意", "技巧"],
|
|
},
|
|
{
|
|
id: "tt-002",
|
|
title: "TikTok Viral Dance Challenge 2024",
|
|
cover_url: "",
|
|
author_name: "DanceMaster",
|
|
author_avatar: "",
|
|
play_count: 5_000_000,
|
|
like_count: 250_000,
|
|
collect_count: 45_000,
|
|
comment_count: 12_000,
|
|
share_count: 80_000,
|
|
publish_time: "2024-01-14T12:00:00Z",
|
|
platform: "tiktok",
|
|
original_url: "https://www.tiktok.com/@user/video/tt-002",
|
|
tags: ["dance", "viral", "challenge"],
|
|
},
|
|
{
|
|
id: "xhs-003",
|
|
title: "小红书美食探店 | 隐藏在街角的宝藏咖啡馆",
|
|
cover_url: "",
|
|
author_name: "美食家小红",
|
|
author_avatar: "",
|
|
play_count: 300_000,
|
|
like_count: 45_000,
|
|
collect_count: 28_000,
|
|
comment_count: 8_000,
|
|
share_count: 3_000,
|
|
publish_time: "2024-01-13T16:00:00Z",
|
|
platform: "xiaohongshu",
|
|
original_url: "https://www.xiaohongshu.com/explore/xhs-003",
|
|
tags: ["美食", "探店", "咖啡"],
|
|
},
|
|
{
|
|
id: "dy-004",
|
|
title: "抖音生活小妙招合集",
|
|
cover_url: "",
|
|
author_name: "生活达人",
|
|
author_avatar: "",
|
|
play_count: 800_000,
|
|
like_count: 35_000,
|
|
collect_count: 20_000,
|
|
comment_count: 5_000,
|
|
share_count: 15_000,
|
|
publish_time: "2024-01-12T10:00:00Z",
|
|
platform: "douyin",
|
|
original_url: "https://www.douyin.com/video/dy-004",
|
|
tags: [],
|
|
},
|
|
{
|
|
id: "yt-005",
|
|
title: "YouTube Top Music Video of 2024",
|
|
cover_url: "",
|
|
author_name: "MusicChannel",
|
|
author_avatar: "",
|
|
play_count: 10_000_000,
|
|
like_count: 500_000,
|
|
collect_count: 0,
|
|
comment_count: 50_000,
|
|
share_count: 100_000,
|
|
publish_time: "2024-01-16T10:00:00Z",
|
|
platform: "youtube",
|
|
original_url: "https://www.youtube.com/watch?v=yt-005",
|
|
tags: ["music", "trending"],
|
|
},
|
|
{
|
|
id: "ig-006",
|
|
title: "Instagram Explore: Stunning Photography",
|
|
cover_url: "",
|
|
author_name: "photoartist",
|
|
author_avatar: "",
|
|
play_count: 0,
|
|
like_count: 120_000,
|
|
collect_count: 30_000,
|
|
comment_count: 8_000,
|
|
share_count: 15_000,
|
|
publish_time: "2024-01-17T14:00:00Z",
|
|
platform: "instagram",
|
|
original_url: "https://www.instagram.com/p/ig-006/",
|
|
tags: [],
|
|
},
|
|
{
|
|
id: "tw-007",
|
|
title: "Breaking: Major tech announcement shakes the industry",
|
|
cover_url: "",
|
|
author_name: "TechReporter",
|
|
author_avatar: "",
|
|
play_count: 0,
|
|
like_count: 200_000,
|
|
collect_count: 50_000,
|
|
comment_count: 25_000,
|
|
share_count: 80_000,
|
|
publish_time: "2024-01-18T09:00:00Z",
|
|
platform: "twitter",
|
|
original_url: "https://twitter.com/i/status/tw-007",
|
|
tags: ["tech", "breaking"],
|
|
},
|
|
{
|
|
id: "bl-008",
|
|
title: "B站年度最佳科技视频解析",
|
|
cover_url: "",
|
|
author_name: "科技UP主",
|
|
author_avatar: "",
|
|
play_count: 3_000_000,
|
|
like_count: 150_000,
|
|
collect_count: 80_000,
|
|
comment_count: 20_000,
|
|
share_count: 40_000,
|
|
publish_time: "2024-01-19T11:00:00Z",
|
|
platform: "bilibili",
|
|
original_url: "https://www.bilibili.com/video/bl-008",
|
|
tags: ["科技"],
|
|
},
|
|
{
|
|
id: "wb-009",
|
|
title: "微博热搜:春节档电影票房破纪录",
|
|
cover_url: "",
|
|
author_name: "娱乐博主",
|
|
author_avatar: "",
|
|
play_count: 2_000_000,
|
|
like_count: 90_000,
|
|
collect_count: 10_000,
|
|
comment_count: 35_000,
|
|
share_count: 60_000,
|
|
publish_time: "2024-01-20T08:00:00Z",
|
|
platform: "weibo",
|
|
original_url: "https://weibo.com/u/wb-009",
|
|
tags: [],
|
|
},
|
|
];
|
|
|
|
export const mockDetailItem = mockContentList[0];
|