🔽 Downloads section building out
This commit is contained in:
@@ -42,7 +42,7 @@ const AirDCPPSocketComponent = (): ReactElement => {
|
||||
"queue_bundle_added",
|
||||
async (data) => {
|
||||
console.log("JEMEN:", data);
|
||||
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
@@ -59,10 +59,12 @@ const AirDCPPSocketComponent = (): ReactElement => {
|
||||
);
|
||||
// download complete listener
|
||||
await airDCPPConfiguration.airDCPPState.socket.addListener(
|
||||
`transfers`,
|
||||
"transfer_completed",
|
||||
async (transferData) => {
|
||||
console.log(transferData)
|
||||
`queue`,
|
||||
"queue_bundle_status",
|
||||
async (bundleData) => {
|
||||
if (bundleData.status.completed && bundleData.status.downloaded) {
|
||||
console.log("IM THE MAN UP IN THIS")
|
||||
}
|
||||
},
|
||||
);
|
||||
console.log(
|
||||
|
||||
@@ -20,7 +20,7 @@ export const PullList = ({ issues }: PullListProps): ReactElement => {
|
||||
useEffect(() => {
|
||||
dispatch(
|
||||
getWeeklyPullList({
|
||||
startDate: "2022-7-29",
|
||||
startDate: "2022-8-9",
|
||||
pageSize: "15",
|
||||
currentPage: "1",
|
||||
}),
|
||||
|
||||
@@ -61,10 +61,11 @@ export const Downloads = (props: IDownloadsProps): ReactElement => {
|
||||
return <>
|
||||
<MetadataPanel
|
||||
data={bundle}
|
||||
imageStyle={{ maxWidth: 100 }}
|
||||
imageStyle={{ maxWidth: 80 }}
|
||||
titleStyle={{ fontSize: "0.8rem" }}
|
||||
tagsStyle={{ fontSize: "0.7rem" }}
|
||||
containerStyle={{
|
||||
maxWidth: 400,
|
||||
padding: 0,
|
||||
margin: "0 0 8px 0",
|
||||
}} />
|
||||
|
||||
@@ -73,7 +73,7 @@ const Navbar: React.FunctionComponent = (props) => {
|
||||
<a className="navbar-link is-arrowless">
|
||||
<i className="fa-solid fa-download"></i>
|
||||
{downloadProgressTick && (
|
||||
<i className="fa-regular fa-circle-dot ml-2 "></i>
|
||||
<div className="pulsating-circle"></div>
|
||||
)}
|
||||
</a>
|
||||
{!isUndefined(downloadProgressTick) ? (
|
||||
|
||||
Reference in New Issue
Block a user