From 3430d5ae171cdeecee6a65efdea81e0c957bd478 Mon Sep 17 00:00:00 2001 From: n8detar Date: Mon, 18 Apr 2022 11:57:01 -0700 Subject: [PATCH] Notifications groundwork --- tubearchivist/www/src/pages/download.tsx | 59 ++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/tubearchivist/www/src/pages/download.tsx b/tubearchivist/www/src/pages/download.tsx index 1a20a59..a7ce58c 100755 --- a/tubearchivist/www/src/pages/download.tsx +++ b/tubearchivist/www/src/pages/download.tsx @@ -12,6 +12,8 @@ import DownloadIcon from "../images/icon-download.svg"; import AddIcon from "../images/icon-add.svg"; import GridViewIcon from "../images/icon-gridview.svg"; import ListViewIcon from "../images/icon-listview.svg"; +import StopIcon from "../images/icon-stop.svg"; +import CloseIcon from "../images/icon-close.svg"; import { getTAUrl } from "../lib/constants"; const TA_BASE_URL = getTAUrl(); @@ -106,15 +108,60 @@ const Download: NextPage = () => {

Downloads

- {errorMessage && -
+
+ {errorMessage &&

Failed to extract links.

Not a video, channel or playlist ID or URL

-
- } -
+ } + { + //
+ //

Adding new videos to download queue.

+ //

Extracting lists

+ //

Progress: 0/0

+ //
+ } + { + //
+ //

Rescanning channels and playlists.

+ //

Looking for new videos.

+ //
+ } + { + //
+ //

Downloading: `VIDEO_TITLE`

+ //

processing

+ //

`DOWNLOADED_PERCENTAGE`% of `VIDEO_SIVE``VIDEO_SIZE_UNIT` at `DOWNLOAD_SPEED``DOWNLOAD_SPEED_UNIT` - time left: `DOWNLOAD_TIME_LEFT`

+ //

processing

+ //

Moving

+ //

Completed

+ //
+ } +
+
+ {/* Appears when video is downloading */} + {/*
+ console.log("stopQueue()")} + /> + console.log("killQueue()")} + /> +
*/} +
{ src={RescanIcon} alt="rescan-icon" title="Rescan subscriptions" + // className="rotate-img" // Set when rescanning onClick={() => console.log("rescanPending()")} /> {/* rescan-icon */} @@ -135,6 +183,7 @@ const Download: NextPage = () => { src={DownloadIcon} alt="download-icon" title="Start download" + // className="bounce-img" // Set when video is downloading onClick={() => console.log("dlPending()")} /> {/* download-icon */}