mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import { SectionTitle, WidgetWrapper } from '../style'
|
|
import { DetailedViewCacheSection, DetailedViewWidgetSection } from './style'
|
|
import TorrentCache from '../TorrentCache'
|
|
import {
|
|
SizeWidget,
|
|
PiecesLengthWidget,
|
|
StatusWidget,
|
|
PiecesCountWidget,
|
|
PeersWidget,
|
|
UploadSpeedWidget,
|
|
DownlodSpeedWidget,
|
|
} from '../widgets'
|
|
|
|
export default function DetailedView({
|
|
downloadSpeed,
|
|
uploadSpeed,
|
|
torrent,
|
|
torrentSize,
|
|
PiecesCount,
|
|
PiecesLength,
|
|
stat,
|
|
cache,
|
|
}) {
|
|
return (
|
|
<>
|
|
<DetailedViewWidgetSection>
|
|
<SectionTitle mb={20}>Data</SectionTitle>
|
|
<WidgetWrapper detailedView>
|
|
<DownlodSpeedWidget data={downloadSpeed} />
|
|
<UploadSpeedWidget data={uploadSpeed} />
|
|
<PeersWidget data={torrent} />
|
|
<SizeWidget data={torrentSize} />
|
|
<PiecesCountWidget data={PiecesCount} />
|
|
<PiecesLengthWidget data={PiecesLength} />
|
|
<StatusWidget stat={stat} />
|
|
</WidgetWrapper>
|
|
</DetailedViewWidgetSection>
|
|
|
|
<DetailedViewCacheSection>
|
|
<SectionTitle mb={20}>Cache</SectionTitle>
|
|
<TorrentCache cache={cache} />
|
|
</DetailedViewCacheSection>
|
|
</>
|
|
)
|
|
}
|