+
{props.data.name}
-
+
{prettyBytes(props.data.downloaded_bytes)} of{" "}
{prettyBytes(props.data.size)}{" "}
@@ -20,13 +20,12 @@ export const DownloadProgressTick = (props): ReactElement => {
%
-
- {prettyBytes(props.data.speed)} per second.
-
-
+
+
{prettyBytes(props.data.speed)} per second.
Time left:
{Math.round(parseInt(props.data.seconds_left) / 60)}
+
{props.data.target}
);
diff --git a/src/client/components/ComicDetail/RawFileDetails.tsx b/src/client/components/ComicDetail/RawFileDetails.tsx
index 7a8c071..26a2bfa 100644
--- a/src/client/components/ComicDetail/RawFileDetails.tsx
+++ b/src/client/components/ComicDetail/RawFileDetails.tsx
@@ -7,7 +7,7 @@ export const RawFileDetails = (props): ReactElement => {
const { rawFileDetails, inferredMetadata } = props.data;
return (
<>
-
+
- Raw File Details
-
@@ -103,4 +103,4 @@ RawFileDetails.propTypes = {
}),
}),
}),
-};
\ No newline at end of file
+};
diff --git a/src/client/components/Downloads/Downloads.tsx b/src/client/components/Downloads/Downloads.tsx
index 3c619ed..312ea14 100644
--- a/src/client/components/Downloads/Downloads.tsx
+++ b/src/client/components/Downloads/Downloads.tsx
@@ -1,13 +1,5 @@
-import React, {
- ReactElement,
- useCallback,
- useContext,
- useEffect,
- useState,
-} from "react";
+import React, { ReactElement, useEffect, useState } from "react";
import { getTransfers } from "../../actions/airdcpp.actions";
-import { useDispatch, useSelector } from "react-redux";
-import { AirDCPPSocketContext } from "../../context/AirDCPPSocket";
import { isEmpty, isNil, isUndefined } from "lodash";
import { determineCoverFile } from "../../shared/utils/metadata.utils";
import MetadataPanel from "../shared/MetadataPanel";
@@ -17,18 +9,18 @@ interface IDownloadsProps {
}
export const Downloads = (props: IDownloadsProps): ReactElement => {
- const airDCPPConfiguration = useContext(AirDCPPSocketContext);
+ // const airDCPPConfiguration = useContext(AirDCPPSocketContext);
const {
airDCPPState: { settings, socket },
} = airDCPPConfiguration;
- const dispatch = useDispatch();
+ // const dispatch = useDispatch();
- const airDCPPTransfers = useSelector(
- (state: RootState) => state.airdcpp.transfers,
- );
- const issueBundles = useSelector(
- (state: RootState) => state.airdcpp.issue_bundles,
- );
+ // const airDCPPTransfers = useSelector(
+ // (state: RootState) => state.airdcpp.transfers,
+ // );
+ // const issueBundles = useSelector(
+ // (state: RootState) => state.airdcpp.issue_bundles,
+ // );
const [bundles, setBundles] = useState([]);
// Make the call to get all transfers from AirDC++
useEffect(() => {
diff --git a/src/client/components/Import/Import.tsx b/src/client/components/Import/Import.tsx
index de96c86..0bb8c73 100644
--- a/src/client/components/Import/Import.tsx
+++ b/src/client/components/Import/Import.tsx
@@ -226,7 +226,7 @@ export const Import = (props: IProps): ReactElement => {
{!isLoading && !isEmpty(data?.data) && (
<>
Past Imports
-
+
| Time Started |
diff --git a/src/client/store/index.ts b/src/client/store/index.ts
index 97cd229..eb5b5c1 100644
--- a/src/client/store/index.ts
+++ b/src/client/store/index.ts
@@ -23,6 +23,7 @@ export const useStore = create((set, get) => ({
airDCPPSocketConnected: value,
})),
airDCPPDownloadTick: {},
+ airDCPPTransfers: {},
// Socket.io state
socketIOInstance: {},
diff --git a/yarn.lock b/yarn.lock
index bf819e1..23accd5 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4310,6 +4310,11 @@ builtin-modules@^3.3.0:
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
+bulma-prefers-dark@^0.1.0-beta.1:
+ version "0.1.0-beta.1"
+ resolved "https://registry.yarnpkg.com/bulma-prefers-dark/-/bulma-prefers-dark-0.1.0-beta.1.tgz#074aa71899f389a0137dd3753f0d89e96ab1e59b"
+ integrity sha512-ti4sKxIIrTAvGtsYc9Rk66SUZSH/j63EU1hApQijQVlKFF0qBLGSb8E16HhI83KJaIeYP4aAHQv2tj0ara831A==
+
bulma@^0.9.4:
version "0.9.4"
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.4.tgz#0ca8aeb1847a34264768dba26a064c8be72674a1"