mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-19 04:17:29 +08:00
feat: refactor code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user