feat: refactor code

This commit is contained in:
shinya
2025-06-29 20:36:03 +08:00
parent 0b0048209f
commit 5c8360d9dd
8 changed files with 40 additions and 95 deletions

View File

@@ -34,6 +34,7 @@ import {
toggleFavorite,
} from '@/lib/db.client';
import { type VideoDetail, fetchVideoDetail } from '@/lib/fetchVideoDetail';
import { SearchResult } from '@/lib/types';
// 扩展 HTMLVideoElement 类型以支持 hls 属性
declare global {
@@ -42,17 +43,6 @@ declare global {
}
}
// 搜索结果类型
interface SearchResult {
id: string;
title: string;
poster: string;
episodes: string[];
source: string;
source_name: string;
year: string;
}
function PlayPageClient() {
const searchParams = useSearchParams();
// @ts-ignore