mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-23 19:52:09 +08:00
Merge branch 'main' into middleware
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user