mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-09 06:46:37 +08:00
优化
This commit is contained in:
@@ -33,6 +33,7 @@ type LibrarySeriesDetailSectionProps = {
|
||||
onOrganize: () => void
|
||||
onDelete: () => void
|
||||
onSeasonChange: (season: number) => void
|
||||
onManualScrapeMedia: (media: Media) => void
|
||||
}
|
||||
|
||||
export function LibrarySeriesDetailSection({
|
||||
@@ -58,6 +59,7 @@ export function LibrarySeriesDetailSection({
|
||||
onOrganize,
|
||||
onDelete,
|
||||
onSeasonChange,
|
||||
onManualScrapeMedia,
|
||||
}: LibrarySeriesDetailSectionProps) {
|
||||
return (
|
||||
<AnimatePresence mode="wait">
|
||||
@@ -70,7 +72,6 @@ export function LibrarySeriesDetailSection({
|
||||
>
|
||||
<LibrarySeriesDetailHeader
|
||||
series={selectedSeries}
|
||||
visibleEpisodes={visibleEpisodes}
|
||||
allEpisodes={allEpisodes}
|
||||
playbackFrom={playbackFrom}
|
||||
isAdmin={isAdmin}
|
||||
@@ -95,7 +96,9 @@ export function LibrarySeriesDetailSection({
|
||||
selectedSeason={selectedSeason}
|
||||
visibleEpisodes={visibleEpisodes}
|
||||
playbackFrom={playbackFrom}
|
||||
isAdmin={isAdmin}
|
||||
onSeasonChange={onSeasonChange}
|
||||
onManualScrape={onManualScrapeMedia}
|
||||
/>
|
||||
</motion.div>
|
||||
)}
|
||||
@@ -109,7 +112,9 @@ type LibrarySeriesEpisodesPanelProps = {
|
||||
selectedSeason: number | null
|
||||
visibleEpisodes: Media[]
|
||||
playbackFrom: string
|
||||
isAdmin: boolean
|
||||
onSeasonChange: (season: number) => void
|
||||
onManualScrape: (media: Media) => void
|
||||
}
|
||||
|
||||
function LibrarySeriesEpisodesPanel({
|
||||
@@ -118,7 +123,9 @@ function LibrarySeriesEpisodesPanel({
|
||||
selectedSeason,
|
||||
visibleEpisodes,
|
||||
playbackFrom,
|
||||
isAdmin,
|
||||
onSeasonChange,
|
||||
onManualScrape,
|
||||
}: LibrarySeriesEpisodesPanelProps) {
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
@@ -128,7 +135,9 @@ function LibrarySeriesEpisodesPanel({
|
||||
selectedSeason={selectedSeason}
|
||||
visibleEpisodes={visibleEpisodes}
|
||||
playbackFrom={playbackFrom}
|
||||
isAdmin={isAdmin}
|
||||
onSeasonChange={onSeasonChange}
|
||||
onManualScrape={onManualScrape}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user