🔽 Downloads section building out

This commit is contained in:
2022-07-30 21:38:56 -07:00
parent f146dfdd0b
commit 580d19e8a4
5 changed files with 81 additions and 16 deletions

View File

@@ -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(

View File

@@ -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",
}),

View File

@@ -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",
}} />

View File

@@ -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) ? (