mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
Notifications groundwork
This commit is contained in:
parent
494d97ee60
commit
3430d5ae17
@ -12,6 +12,8 @@ import DownloadIcon from "../images/icon-download.svg";
|
|||||||
import AddIcon from "../images/icon-add.svg";
|
import AddIcon from "../images/icon-add.svg";
|
||||||
import GridViewIcon from "../images/icon-gridview.svg";
|
import GridViewIcon from "../images/icon-gridview.svg";
|
||||||
import ListViewIcon from "../images/icon-listview.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";
|
import { getTAUrl } from "../lib/constants";
|
||||||
|
|
||||||
const TA_BASE_URL = getTAUrl();
|
const TA_BASE_URL = getTAUrl();
|
||||||
@ -106,15 +108,60 @@ const Download: NextPage = () => {
|
|||||||
<div className="title-bar">
|
<div className="title-bar">
|
||||||
<h1>Downloads</h1>
|
<h1>Downloads</h1>
|
||||||
</div>
|
</div>
|
||||||
{errorMessage &&
|
<div id="notifications">
|
||||||
<div id="notifications">
|
{errorMessage &&
|
||||||
<div className="error notification">
|
<div className="error notification">
|
||||||
<h3>Failed to extract links.</h3>
|
<h3>Failed to extract links.</h3>
|
||||||
<p>Not a video, channel or playlist ID or URL</p>
|
<p>Not a video, channel or playlist ID or URL</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
}
|
||||||
}
|
{
|
||||||
<div id="downloadControl"></div>
|
// <div className="info notification">
|
||||||
|
// <h3>Adding new videos to download queue.</h3>
|
||||||
|
// <p>Extracting lists</p>
|
||||||
|
// <p>Progress: 0/0</p>
|
||||||
|
// </div>
|
||||||
|
}
|
||||||
|
{
|
||||||
|
// <div className="info notification">
|
||||||
|
// <h3>Rescanning channels and playlists.</h3>
|
||||||
|
// <p>Looking for new videos.</p>
|
||||||
|
// </div>
|
||||||
|
}
|
||||||
|
{
|
||||||
|
// <div className="info notification">
|
||||||
|
// <h3>Downloading: `VIDEO_TITLE`</h3>
|
||||||
|
// <p>processing</p>
|
||||||
|
// <p>`DOWNLOADED_PERCENTAGE`% of `VIDEO_SIVE``VIDEO_SIZE_UNIT` at `DOWNLOAD_SPEED``DOWNLOAD_SPEED_UNIT` - time left: `DOWNLOAD_TIME_LEFT`</p>
|
||||||
|
// <p>processing</p>
|
||||||
|
// <p>Moving</p>
|
||||||
|
// <p>Completed</p>
|
||||||
|
// </div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div id="downloadControl">
|
||||||
|
{/* Appears when video is downloading */}
|
||||||
|
{/* <div className="dl-control-icons">
|
||||||
|
<NextImage
|
||||||
|
width={30}
|
||||||
|
height={30}
|
||||||
|
src={StopIcon}
|
||||||
|
alt="stop icon"
|
||||||
|
title="Stop Download Queue"
|
||||||
|
id="stop-icon"
|
||||||
|
onClick={() => console.log("stopQueue()")}
|
||||||
|
/>
|
||||||
|
<NextImage
|
||||||
|
width={30}
|
||||||
|
height={30}
|
||||||
|
src={CloseIcon}
|
||||||
|
alt="kill icon"
|
||||||
|
title="Kill Download Queue"
|
||||||
|
id="kill-icon"
|
||||||
|
onClick={() => console.log("killQueue()")}
|
||||||
|
/>
|
||||||
|
</div> */}
|
||||||
|
</div>
|
||||||
<div className="info-box info-box-3">
|
<div className="info-box info-box-3">
|
||||||
<div className="icon-text">
|
<div className="icon-text">
|
||||||
<NextImage
|
<NextImage
|
||||||
@ -123,6 +170,7 @@ const Download: NextPage = () => {
|
|||||||
src={RescanIcon}
|
src={RescanIcon}
|
||||||
alt="rescan-icon"
|
alt="rescan-icon"
|
||||||
title="Rescan subscriptions"
|
title="Rescan subscriptions"
|
||||||
|
// className="rotate-img" // Set when rescanning
|
||||||
onClick={() => console.log("rescanPending()")}
|
onClick={() => console.log("rescanPending()")}
|
||||||
/>
|
/>
|
||||||
{/* <img id="rescan-icon" onclick="rescanPending()" src="{% static 'img/icon-rescan.svg' %}" alt="rescan-icon"></img> */}
|
{/* <img id="rescan-icon" onclick="rescanPending()" src="{% static 'img/icon-rescan.svg' %}" alt="rescan-icon"></img> */}
|
||||||
@ -135,6 +183,7 @@ const Download: NextPage = () => {
|
|||||||
src={DownloadIcon}
|
src={DownloadIcon}
|
||||||
alt="download-icon"
|
alt="download-icon"
|
||||||
title="Start download"
|
title="Start download"
|
||||||
|
// className="bounce-img" // Set when video is downloading
|
||||||
onClick={() => console.log("dlPending()")}
|
onClick={() => console.log("dlPending()")}
|
||||||
/>
|
/>
|
||||||
{/* <img id="download-icon" onclick="dlPending()" src="{% static 'img/icon-download.svg' %}" alt="download-icon"></img> */}
|
{/* <img id="download-icon" onclick="dlPending()" src="{% static 'img/icon-download.svg' %}" alt="download-icon"></img> */}
|
||||||
|
Loading…
Reference in New Issue
Block a user