Merge branch 'main' into middleware

This commit is contained in:
shinya
2025-07-09 20:18:33 +08:00
6 changed files with 221 additions and 134 deletions

View File

@@ -199,11 +199,10 @@ function DoubanPageClient() {
doubanData.map((item, index) => (
<div key={`${item.title}-${index}`} className='w-full'>
<VideoCard
id={item.id}
source=''
from='douban'
title={item.title}
poster={item.poster}
source_name=''
douban_id={item.id}
rate={item.rate}
/>
</div>

View File

@@ -161,7 +161,7 @@ function HomeClient() {
<div className='justify-start grid grid-cols-3 gap-x-2 gap-y-14 sm:gap-y-20 px-2 sm:grid-cols-[repeat(auto-fill,_minmax(11rem,_1fr))] sm:gap-x-8 sm:px-4'>
{favoriteItems.map((item) => (
<div key={item.id + item.source} className='w-full'>
<VideoCard {...item} from='favorites' />
<VideoCard {...item} from='favorite' />
</div>
))}
{favoriteItems.length === 0 && (
@@ -212,11 +212,10 @@ function HomeClient() {
className='min-w-[96px] w-24 sm:min-w-[180px] sm:w-44'
>
<VideoCard
id=''
source=''
from='douban'
title={movie.title}
poster={movie.poster}
source_name=''
douban_id={movie.id}
rate={movie.rate}
/>
</div>
@@ -259,11 +258,10 @@ function HomeClient() {
className='min-w-[96px] w-24 sm:min-w-[180px] sm:w-44'
>
<VideoCard
id={show.id}
source=''
from='douban'
title={show.title}
poster={show.poster}
source_name=''
douban_id={show.id}
rate={show.rate}
/>
</div>

View File

@@ -201,15 +201,7 @@ function SearchPageClient() {
? aggregatedResults.map(([mapKey, group]) => {
return (
<div key={`agg-${mapKey}`} className='w-full'>
<VideoCard
id={group[0].id}
source={group[0].source}
title={group[0].title}
poster={group[0].poster}
source_name={group[0].source_name}
year={group[0].year}
items={group}
/>
<VideoCard from='search' items={group} />
</div>
);
})
@@ -225,7 +217,7 @@ function SearchPageClient() {
episodes={item.episodes.length}
source={item.source}
source_name={item.source_name}
douban_id={item.douban_id}
douban_id={item.douban_id?.toString()}
from='search'
/>
</div>