feat: refactor code, sort search result

This commit is contained in:
shinya
2025-07-04 13:35:46 +08:00
parent 4988ac7207
commit faf5340b4b
9 changed files with 511 additions and 420 deletions

View File

@@ -41,7 +41,10 @@ import {
savePlayRecord,
toggleFavorite,
} from '@/lib/db.client';
import { type VideoDetail, fetchVideoDetail } from '@/lib/fetchVideoDetail';
import {
type VideoDetail,
fetchVideoDetail,
} from '@/lib/fetchVideoDetail.client';
import { SearchResult } from '@/lib/types';
// 扩展 HTMLVideoElement 类型以支持 hls 属性