mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-04-12 14:28:19 +02:00
Adding a removing jobs.
Having a list of running and waiting jobs
This commit is contained in:
parent
84520d8e18
commit
1eef710efc
19
Website/modules/Chapter.tsx
Normal file
19
Website/modules/Chapter.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import {getData} from "../App";
|
||||
import IChapter from "./interfaces/IChapter";
|
||||
|
||||
export default class Chapter{
|
||||
|
||||
static async GetChapterFromId(apiUri: string, chapterId: string): Promise<IChapter> {
|
||||
if(chapterId === undefined || chapterId === null) {
|
||||
console.error(`chapterId was not provided`);
|
||||
return Promise.reject();
|
||||
}
|
||||
return getData(`${apiUri}/v2/Query/Chapter/${chapterId}`)
|
||||
.then((json) => {
|
||||
//console.info("Got all Manga");
|
||||
const ret = json as IChapter;
|
||||
//console.debug(ret);
|
||||
return (ret);
|
||||
});
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ import Job from './Job';
|
||||
import Icon from '@mdi/react';
|
||||
import {mdiCounter, mdiEyeCheck, mdiRun, mdiTrayFull} from '@mdi/js';
|
||||
import QueuePopUp from "./QueuePopUp";
|
||||
import {JobState, JobType} from "./interfaces/IJob";
|
||||
import {JobState, JobType} from "./interfaces/Jobs/IJob";
|
||||
|
||||
export default function Footer({connectedToBackend, apiUri} : {connectedToBackend: boolean, apiUri: string}) {
|
||||
const [MonitoringJobsCount, setMonitoringJobsCount] = React.useState(0);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {deleteData, getData, patchData, postData, putData} from '../App';
|
||||
import IJob, {JobState, JobType} from "./interfaces/IJob";
|
||||
import IJob, {JobState, JobType} from "./interfaces/Jobs/IJob";
|
||||
import IModifyJobRecord from "./interfaces/records/IModifyJobRecord";
|
||||
|
||||
export default class Job
|
||||
|
@ -1,6 +1,5 @@
|
||||
import IManga from './interfaces/IManga';
|
||||
import {deleteData, getData, patchData, postData} from '../App';
|
||||
import {RefObject} from "react";
|
||||
import IChapter from "./interfaces/IChapter";
|
||||
|
||||
export default class Manga
|
||||
|
@ -1,19 +1,15 @@
|
||||
import React, {EventHandler, MouseEventHandler, ReactElement, useEffect, useState} from 'react';
|
||||
import React, {EventHandler, ReactElement, useEffect, useState} from 'react';
|
||||
import Job from './Job';
|
||||
import '../styles/monitorMangaList.css';
|
||||
import IJob, {JobType} from "./interfaces/IJob";
|
||||
import IManga from "./interfaces/IManga";
|
||||
import {JobType} from "./interfaces/Jobs/IJob";
|
||||
import '../styles/MangaCoverCard.css'
|
||||
import DownloadAvailableChaptersJob from "./interfaces/Jobs/DownloadAvailableChaptersJob";
|
||||
import {CoverCard} from "./interfaces/IManga";
|
||||
|
||||
export default function MonitorJobsList({onStartSearch, onJobsChanged, connectedToBackend, apiUri, updateList} : {onStartSearch() : void, onJobsChanged: EventHandler<any>, connectedToBackend: boolean, apiUri: string, updateList: Date}) {
|
||||
const [MonitoringJobs, setMonitoringJobs] = useState<IJob[]>([]);
|
||||
const [AllManga, setAllManga] = useState<IManga[]>([]);
|
||||
const [MonitoringJobs, setMonitoringJobs] = useState<DownloadAvailableChaptersJob[]>([]);
|
||||
const [joblistUpdateInterval, setJoblistUpdateInterval] = React.useState<number>();
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
}, [MonitoringJobs]);
|
||||
|
||||
useEffect(() => {
|
||||
if(connectedToBackend){
|
||||
UpdateMonitoringJobsList();
|
||||
@ -35,35 +31,24 @@ export default function MonitorJobsList({onStartSearch, onJobsChanged, connected
|
||||
return;
|
||||
//console.debug("Updating MonitoringJobsList");
|
||||
Job.GetJobsWithType(apiUri, JobType.DownloadAvailableChaptersJob)
|
||||
.then((jobs) => setMonitoringJobs(jobs));
|
||||
.then((jobs) => setMonitoringJobs(jobs as DownloadAvailableChaptersJob[]));
|
||||
}
|
||||
|
||||
function StartSearchMangaEntry() : ReactElement {
|
||||
return (<div key="monitorMangaEntry.StartSearch" className="monitorMangaEntry" onClick={onStartSearch}>
|
||||
<div className="Manga" key="StartSearch.Manga">
|
||||
<img src="../media/blahaj.png" alt="Blahaj"></img>
|
||||
<div>
|
||||
<p style={{textAlign: "center", width: "100%"}} className="Manga-name">Add new Manga</p>
|
||||
<p style={{fontSize: "42pt", textAlign: "center"}}>+</p>
|
||||
</div>
|
||||
return (<div key="monitorMangaEntry.StartSearch" className="startSearchEntry Manga" onClick={onStartSearch}>
|
||||
<img src="../media/blahaj.png" alt="Blahaj"></img>
|
||||
<div>
|
||||
<p style={{textAlign: "center", width: "100%"}} className="Manga-name">Add new Manga</p>
|
||||
<p style={{fontSize: "42pt", textAlign: "center"}}>+</p>
|
||||
</div>
|
||||
</div>);
|
||||
}
|
||||
|
||||
const DeleteJob : MouseEventHandler = (e) => {
|
||||
const jobId = e.currentTarget.id.slice(e.currentTarget.id.indexOf("-")+1);
|
||||
//console.info(`Pressed ${e.currentTarget.id} => ${jobId}`);
|
||||
Job.DeleteJob(apiUri, jobId).then(() => onJobsChanged(jobId));
|
||||
}
|
||||
|
||||
const StartJob : MouseEventHandler = (e) => {
|
||||
const jobId = e.currentTarget.id.slice(e.currentTarget.id.indexOf("-")+1);
|
||||
//console.info(`Pressed ${e.currentTarget.id} => ${jobId}`);
|
||||
Job.StartJob(apiUri, jobId);
|
||||
}
|
||||
|
||||
return (
|
||||
<div id="MonitorMangaList">
|
||||
{StartSearchMangaEntry()}
|
||||
</div>)
|
||||
<StartSearchMangaEntry />
|
||||
{MonitoringJobs.map((MonitoringJob) =>
|
||||
<CoverCard apiUri={apiUri} mangaId={MonitoringJob.mangaId} key={MonitoringJob.mangaId} />
|
||||
)}
|
||||
</div>);
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
import React, {useEffect, useState} from 'react';
|
||||
import IJob, {JobState} from "./interfaces/IJob";
|
||||
import IJob, {JobState, JobType} from "./interfaces/Jobs/IJob";
|
||||
import '../styles/queuePopUp.css';
|
||||
import '../styles/popup.css';
|
||||
import Job from "./Job";
|
||||
import IManga, {QueueItem} from "./interfaces/IManga";
|
||||
import Manga from "./Manga";
|
||||
import DownloadSingleChapterJob from "./interfaces/Jobs/DownloadSingleChapterJob";
|
||||
import { ItemDownloadSingleChapterJob } from "./interfaces/IManga";
|
||||
|
||||
export default function QueuePopUp({connectedToBackend, children, apiUri} : {connectedToBackend: boolean, children: JSX.Element[], apiUri: string}) {
|
||||
|
||||
@ -33,17 +33,17 @@ export default function QueuePopUp({connectedToBackend, children, apiUri} : {con
|
||||
|
||||
function UpdateMonitoringJobsList(){
|
||||
Job.GetJobsInState(apiUri, JobState.Waiting)
|
||||
.then((jobs:IJob[]) => {
|
||||
//console.log(StandbyJobs)
|
||||
setWaitingJobs(jobs);
|
||||
//console.log(StandbyJobs)
|
||||
});
|
||||
.then((jobs: IJob[]) => {
|
||||
//console.log(jobs);
|
||||
return jobs;
|
||||
})
|
||||
.then(setWaitingJobs);
|
||||
Job.GetJobsInState(apiUri, JobState.Running)
|
||||
.then((jobs:IJob[]) =>{
|
||||
//console.log(StandbyJobs)
|
||||
setRunningJobs(jobs);
|
||||
//console.log(StandbyJobs)
|
||||
});
|
||||
.then((jobs: IJob[]) => {
|
||||
//console.log(jobs);
|
||||
return jobs;
|
||||
})
|
||||
.then(setRunningJobs);
|
||||
}
|
||||
|
||||
return (<>
|
||||
@ -58,6 +58,12 @@ export default function QueuePopUp({connectedToBackend, children, apiUri} : {con
|
||||
onClick={() => setShowQueuePopup(false)}/>
|
||||
</div>
|
||||
<div id="QueuePopUpBody" className="popupBody">
|
||||
<div>
|
||||
{RunningJobs.filter(j => j.jobType == JobType.DownloadSingleChapterJob).map(j => <ItemDownloadSingleChapterJob apiUri={apiUri} job={j as DownloadSingleChapterJob} key={j.jobId} />)}
|
||||
</div>
|
||||
<div>
|
||||
{WaitingJobs.filter(j => j.jobType == JobType.DownloadSingleChapterJob).map(j => <ItemDownloadSingleChapterJob apiUri={apiUri} job={j as DownloadSingleChapterJob} key={j.jobId} />)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
: <></>
|
||||
|
@ -2,10 +2,11 @@ import React, {ChangeEventHandler, EventHandler, useEffect, useState} from 'reac
|
||||
import {MangaConnector} from "./MangaConnector";
|
||||
import IMangaConnector from "./interfaces/IMangaConnector";
|
||||
import {isValidUri} from "../App";
|
||||
import IManga, {SearchResult} from "./interfaces/IManga";
|
||||
import IManga, {ExtendedInfo} from "./interfaces/IManga";
|
||||
import '../styles/search.css';
|
||||
import '../styles/MangaSearchResult.css'
|
||||
import '../styles/ExtendedInfo.css'
|
||||
import SearchFunctions from "./SearchFunctions";
|
||||
import Job from "./Job";
|
||||
|
||||
export default function Search({apiUri, jobInterval, onJobsChanged, closeSearch} : {apiUri: string, jobInterval: Date, onJobsChanged: (internalId: string) => void, closeSearch(): void}) {
|
||||
const [mangaConnectors, setConnectors] = useState<IMangaConnector[]>();
|
||||
@ -90,14 +91,15 @@ export default function Search({apiUri, jobInterval, onJobsChanged, closeSearch}
|
||||
<div id="SearchBox">
|
||||
<input type="text" placeholder="Manganame" id="Searchbox-Manganame" onKeyDown={(e) => {if(e.key == "Enter") ExecuteSearch(null);}} onChange={searchBoxValueChanged}></input>
|
||||
<select id="Searchbox-Connector" value={selectedConnector === undefined ? "" : selectedConnector.name} onChange={selectedConnectorChanged}>
|
||||
<option value="" disabled hidden>Select</option>
|
||||
{mangaConnectors === undefined ? <option value="Loading">Loading</option> : <option value="" disabled hidden>Select</option>}
|
||||
{mangaConnectors === undefined
|
||||
? <option value="Loading">Loading</option>
|
||||
? null
|
||||
: mangaConnectors.map(con => <option value={con.name} key={con.name}>{con.name}</option>)}
|
||||
</select>
|
||||
<select id="Searchbox-language" onChange={changeSelectedLanguage} value={selectedLanguage === null ? "" : selectedLanguage}>
|
||||
{mangaConnectors === undefined ? <option value="Loading">Loading</option> : <option value="" disabled hidden>Select Connector</option>}
|
||||
{selectedConnector === undefined
|
||||
? <option value="" disabled hidden>Select Connector</option>
|
||||
? null
|
||||
: selectedConnector.supportedLanguages.map(language => <option value={language} key={language}>{language}</option>)}
|
||||
</select>
|
||||
<button id="Searchbox-button" type="submit" onClick={ExecuteSearch}>Search</button>
|
||||
@ -106,7 +108,14 @@ export default function Search({apiUri, jobInterval, onJobsChanged, closeSearch}
|
||||
<div id="SearchResults">
|
||||
{searchResults === undefined
|
||||
? <p></p>
|
||||
: searchResults.map(result => SearchResult(apiUri, result, jobInterval, onJobsChanged))}
|
||||
: searchResults.map(result =>
|
||||
<ExtendedInfo key={"Searchresult-"+result.mangaId} apiUri={apiUri} manga={result} actions={[
|
||||
<button className="Manga-AddButton" onClick={() => {
|
||||
Job.CreateDownloadAvailableChaptersJob(apiUri, result.mangaId, jobInterval.getTime()).then(() => onJobsChanged(result.mangaId));
|
||||
}}>Monitor</button>
|
||||
]}/>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</div>);
|
||||
}
|
@ -9,7 +9,7 @@ export function LoadFrontendSettings(): IFrontendSettings {
|
||||
const cookies = new Cookies();
|
||||
return {
|
||||
jobInterval: cookies.get('jobInterval') === undefined
|
||||
? new Date(0,0,0,3)
|
||||
? new Date(Date.parse("1970-01-01T03:00:00.000Z"))
|
||||
: cookies.get('jobInterval'),
|
||||
apiUri: cookies.get('apiUri') === undefined
|
||||
? `${window.location.protocol}//${window.location.host}/api`
|
||||
|
@ -1,12 +1,13 @@
|
||||
import Manga from "../Manga";
|
||||
import React, {ReactElement, ReactEventHandler} from "react";
|
||||
import React, {ReactElement, ReactEventHandler, useEffect} from "react";
|
||||
import Icon from '@mdi/react';
|
||||
import { mdiTagTextOutline, mdiAccountEdit, mdiLinkVariant } from '@mdi/js';
|
||||
import MarkdownPreview from '@uiw/react-markdown-preview';
|
||||
import IJob from "./IJob";
|
||||
import {AuthorElement} from "./IAuthor";
|
||||
import Job from "../Job";
|
||||
import {LinkElement} from "./ILink";
|
||||
import DownloadSingleChapterJob from "./Jobs/DownloadSingleChapterJob";
|
||||
import IChapter from "./IChapter";
|
||||
import Chapter from "../Chapter";
|
||||
|
||||
export default interface IManga{
|
||||
mangaId: string;
|
||||
@ -34,28 +35,66 @@ export enum MangaReleaseStatus {
|
||||
Unreleased = "Unreleased",
|
||||
}
|
||||
|
||||
export function CoverCard(apiUri: string, manga: IManga) : ReactElement {
|
||||
return(
|
||||
<div className="Manga" key={manga.mangaId}>
|
||||
<img src="../../media/blahaj.png" alt="Manga Cover"></img>
|
||||
<div>
|
||||
export const defaultManga: IManga = {
|
||||
altTitleIds: [],
|
||||
authorIds: [],
|
||||
connectorId: "",
|
||||
description: "",
|
||||
folderName: "",
|
||||
ignoreChapterBefore: 0,
|
||||
linkIds: [],
|
||||
mangaConnectorId: "",
|
||||
name: "",
|
||||
originalLanguage: "",
|
||||
releaseStatus: MangaReleaseStatus.Unreleased,
|
||||
tags: [],
|
||||
websiteUrl: "",
|
||||
year: 0,
|
||||
mangaId: ""
|
||||
}
|
||||
|
||||
export function CoverCard({apiUri, mangaId} : {apiUri: string, mangaId: string}) : ReactElement {
|
||||
let [manga, setContent] = React.useState<IManga>(defaultManga);
|
||||
let [extendedInfo, setExtendedInfo] = React.useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
Manga.GetMangaById(apiUri, mangaId).then(setContent);
|
||||
}, []);
|
||||
|
||||
const MangaCover : ReactEventHandler<HTMLImageElement> = (e) => {
|
||||
if(e.currentTarget.src != Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget))
|
||||
e.currentTarget.src = Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="Manga" key={manga.mangaId} onClick={(e) => {
|
||||
setExtendedInfo(!extendedInfo);
|
||||
}}>
|
||||
<img src={Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, undefined)} alt="Manga Cover" onLoad={MangaCover} onResize={MangaCover}></img>
|
||||
<div className="SimpleCover">
|
||||
<p className="pill connector-name">{manga.mangaConnectorId}</p>
|
||||
<div className="Manga-status" release-status={manga.releaseStatus}></div>
|
||||
<p className="Manga-name">{manga.name}</p>
|
||||
</div>
|
||||
{extendedInfo ? <div extended-info={extendedInfo ? "yes" : "no"}>
|
||||
<ExtendedInfo apiUri={apiUri} manga={manga} actions={[
|
||||
<button className="Manga-DeleteButton" onClick={() => {
|
||||
Manga.DeleteManga(apiUri, manga.mangaId);
|
||||
}}>Delete</button>
|
||||
]} />
|
||||
</div> : null}
|
||||
</div>);
|
||||
}
|
||||
|
||||
export function SearchResult(apiUri: string, manga: IManga, interval: Date, onJobsChanged: (internalId: string) => void) : ReactElement {
|
||||
export function ExtendedInfo({apiUri, manga, actions} : {apiUri: string, manga: IManga, actions: ReactElement[]}) : ReactElement {
|
||||
const MangaCover : ReactEventHandler<HTMLImageElement> = (e) => {
|
||||
console.log(manga.mangaId);
|
||||
if(e.currentTarget.src != Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget))
|
||||
e.currentTarget.src = Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget);
|
||||
}
|
||||
|
||||
return(
|
||||
<div className="SearchResult" key={manga.mangaId}>
|
||||
<img src={Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, undefined)} alt="Manga Cover" onLoad={MangaCover}></img>
|
||||
<img src={Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, undefined)} alt="Manga Cover" onLoad={MangaCover} onResize={MangaCover}></img>
|
||||
<p className="connector-name">{manga.mangaConnectorId}</p>
|
||||
<div className="Manga-status" release-status={manga.releaseStatus}></div>
|
||||
<p className="Manga-name"><a href={manga.websiteUrl}>{manga.name}<img src="../../media/link.svg"
|
||||
@ -79,30 +118,45 @@ export function SearchResult(apiUri: string, manga: IManga, interval: Date, onJo
|
||||
</div>
|
||||
<MarkdownPreview className="Manga-description" source={manga.description}
|
||||
style={{backgroundColor: "transparent", color: "black"}}/>
|
||||
<button className="Manga-AddButton" onClick={() => {
|
||||
Job.CreateDownloadAvailableChaptersJob(apiUri, manga.mangaId, interval.getMilliseconds()).then(() => onJobsChanged(manga.mangaId));
|
||||
}}>Monitor
|
||||
</button>
|
||||
<div className="Manga-actions">
|
||||
{actions.map((p, i) => <div key={i}>{p}</div>)}
|
||||
</div>
|
||||
</div>);
|
||||
}
|
||||
|
||||
export function QueueItem(apiUri: string, manga: IManga, job: IJob, triggerUpdate: () => void){
|
||||
export function ItemDownloadSingleChapterJob({apiUri, job} : {apiUri: string, job: DownloadSingleChapterJob}){
|
||||
const MangaCover : ReactEventHandler<HTMLImageElement> = (e) => {
|
||||
if(manga === null)
|
||||
return;
|
||||
if(e.currentTarget.src != Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget))
|
||||
e.currentTarget.src = Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, e.currentTarget);
|
||||
}
|
||||
|
||||
let [chapter, setChapter] = React.useState<IChapter|null>(null);
|
||||
let [manga, setManga] = React.useState<IManga|null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
Chapter.GetChapterFromId(apiUri, job.chapterId).then(setChapter);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if(chapter === null){
|
||||
setManga(null);
|
||||
return;
|
||||
}
|
||||
Manga.GetMangaById(apiUri, chapter.parentMangaId).then(setManga);
|
||||
}, [chapter]);
|
||||
|
||||
return (
|
||||
<div className="QueueJob" key={"QueueJob-" + job.jobId}>
|
||||
<img src="../../media/blahaj.png" alt="Manga Cover"></img>
|
||||
<p className="QueueJob-Name">{manga.name}</p>
|
||||
<p className="QueueJob-JobType">{job.jobType}</p>
|
||||
<div className="QueueJob-actions">
|
||||
<button className="QueueJob-Cancel"
|
||||
onClick={() => Job.StopJob(apiUri, job.jobId).then(triggerUpdate)}>Cancel
|
||||
</button>
|
||||
{job.parentJobId != null
|
||||
? <button className="QueueJob-Cancel"
|
||||
onClick={() => Job.StopJob(apiUri, job.parentJobId!).then(triggerUpdate)}>Cancel all
|
||||
related</button>
|
||||
: <></>
|
||||
}
|
||||
</div>
|
||||
<div className="DownloadSingleChapterJob" key={"DownloadSingleChapterJob-" + job.jobId}>
|
||||
<img src={manga ? Manga.GetMangaCoverImageUrl(apiUri, manga.mangaId, undefined) : ""} alt="Manga Cover" onLoad={MangaCover} onResize={MangaCover}></img>
|
||||
<p className="DownloadSingleChapterJob-Name">{manga ? manga.name : job.chapterId}</p>
|
||||
<p className="DownloadSingleChapterJob-Title">
|
||||
{chapter ? "Vol." + chapter.volumeNumber + " Ch." + chapter.chapterNumber + ": " + chapter.title : "loading"}
|
||||
<a href={chapter ? chapter.url : ""}>
|
||||
<img src="../../media/link.svg" alt=""/>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface DownloadAvailableChaptersJob extends IJob {
|
||||
mangaId: string;
|
||||
}
|
5
Website/modules/interfaces/Jobs/DownloadMangaCoverJob.ts
Normal file
5
Website/modules/interfaces/Jobs/DownloadMangaCoverJob.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface DownloadMangaCoverJob extends IJob {
|
||||
mangaId: string;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface DownloadSingleChapterJob extends IJob {
|
||||
chapterId: string;
|
||||
}
|
6
Website/modules/interfaces/Jobs/MoveFileOrFolderJob.ts
Normal file
6
Website/modules/interfaces/Jobs/MoveFileOrFolderJob.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface MoveFileOrFolderJob extends IJob {
|
||||
fromLocation: string;
|
||||
toLocation: string;
|
||||
}
|
5
Website/modules/interfaces/Jobs/RetrieveChaptersJob.ts
Normal file
5
Website/modules/interfaces/Jobs/RetrieveChaptersJob.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface RetrieveChaptersJob extends IJob {
|
||||
mangaId: string;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface UpdateFilesDownloadedJob extends IJob {
|
||||
mangaId: string;
|
||||
}
|
5
Website/modules/interfaces/Jobs/UpdateMetadataJob.ts
Normal file
5
Website/modules/interfaces/Jobs/UpdateMetadataJob.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import IJob from "./IJob";
|
||||
|
||||
export default interface UpdateMetadataJob extends IJob {
|
||||
mangaId: string;
|
||||
}
|
@ -66,10 +66,12 @@
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
max-height: 100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.SearchResult > .Manga-tags p {
|
||||
margin: 0 2px;
|
||||
margin: 2px;
|
||||
padding: 5px;
|
||||
font-size: 10pt;
|
||||
height: fit-content;
|
||||
@ -102,8 +104,7 @@
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.SearchResult > .Manga-AddButton {
|
||||
grid-area: button;
|
||||
.SearchResult > .Manga-actions button {
|
||||
background-color: white;
|
||||
border: 1px solid var(--primary-color);
|
||||
border-radius: 4px;
|
||||
@ -112,6 +113,12 @@
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.SearchResult > .Manga-actions {
|
||||
grid-area: button;
|
||||
padding: 0;
|
||||
margin: 5px 0 0 0;
|
||||
}
|
||||
|
||||
.SearchResult > .Manga-AddButton:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
@ -126,6 +133,6 @@
|
||||
bottom: 7px;
|
||||
}
|
||||
|
||||
.monitorMangaEntry {
|
||||
.startSearchEntry {
|
||||
position: relative;
|
||||
}
|
@ -32,6 +32,10 @@
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.startSearchEntry::after{
|
||||
background: initial !important;
|
||||
}
|
||||
|
||||
.Manga-name{
|
||||
width: fit-content;
|
||||
font-size: 16pt;
|
||||
@ -102,7 +106,7 @@
|
||||
background-color: gray;
|
||||
}
|
||||
|
||||
.Manga img {
|
||||
.Manga > img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@ -117,11 +121,23 @@
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.Manga > div {
|
||||
.Manga > .SimpleCover {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
div[extended-info="no"]{
|
||||
display: none;
|
||||
}
|
||||
|
||||
div[extended-info="yes"]{
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
flex-flow: row;
|
||||
flex-wrap: nowrap;
|
||||
flex-grow: 1;
|
||||
height: 100%;
|
||||
height: calc(100vh - 100px);
|
||||
overflow-y: scroll;
|
||||
scrollbar-color: var(--accent-color) var(--primary-color);
|
||||
scrollbar-width: thin;
|
||||
|
@ -1,5 +1,6 @@
|
||||
#QueuePopUp #QueuePopUpBody {
|
||||
display: flex;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#QueuePopUp #QueuePopUpBody > * {
|
||||
|
Loading…
x
Reference in New Issue
Block a user