Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Updated Queue and History table styling.
nzbdav-dev8771e2488430
diff --git a/frontend/app/routes/health/components/health-stats/health-stats.module.css b/frontend/app/routes/health/components/health-stats/health-stats.module.cssindex 4d856851..4513c10c 100644--- a/frontend/app/routes/health/components/health-stats/health-stats.module.css+++ b/frontend/app/routes/health/components/health-stats/health-stats.module.css@@ -1,9 +1,9 @@.container {width: 100%;- background: hsl(192, 90%, 6%);+ background: hsl(196.8 80% 7%);border-radius: 10px;padding: 24px;- border: 1px solid rgba(255, 255, 255, 0.05);+ border: 1px solid rgba(255, 255, 255, 0.03);}.header {diff --git a/frontend/app/routes/health/components/health-table/health-table.module.css b/frontend/app/routes/health/components/health-table/health-table.module.cssindex 8aacb40f..7e205396 100644--- a/frontend/app/routes/health/components/health-table/health-table.module.css+++ b/frontend/app/routes/health/components/health-table/health-table.module.css@@ -1,10 +1,10 @@.container {width: 100%;- background: hsl(192, 90%, 6%);+ background: hsl(196.8 80% 7%);border-radius: 10px;padding: var(--container-padding);padding-bottom: 0;- border: 1px solid rgba(255, 255, 255, 0.05);+ border: 1px solid rgba(255, 255, 255, 0.03);--container-padding: 24px;}diff --git a/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css b/frontend/app/routes/queue/components/empty-queue/empty-queue.module.cssindex 37021e6f..78c828e6 100644--- a/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css+++ b/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css@@ -1,43 +1,28 @@-.container {- border-radius: 10px;+.emptyState {+ text-align: center;min-height: 300px;- border: 1px solid #586e75;display: flex;flex-direction: column;- align-items: center;justify-content: center;+ color: hsl(180, 7%, 55%);}-@media not (pointer: coarse), (min-width: 900px) {- .container:hover {- background-color: #ffffff08;- cursor: pointer;- }+.emptyIcon {+ font-size: 3em;+ margin-bottom: 16px;+ opacity: 0.6;}-.container:active {- background-color: #ffffff10;+.emptyTitle {+ font-size: 1.2em;+ font-weight: 600;+ color: hsl(180, 7%, 70%);+ margin-bottom: 8px;}-.upload-icon {- display: inline-block;- width: 48px;- height: 48px;- background-repeat: no-repeat;- background-size: 100% 100%;- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23586e75' fill-rule='evenodd' d='M12 3a1 1 0 0 1 .78.375l4 5a1 1 0 1 1-1.56 1.25L13 6.85V14a1 1 0 1 1-2 0V6.85L8.78 9.626a1 1 0 1 1-1.56-1.25l4-5A1 1 0 0 1 12 3M9 14v-1H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-4v1a3 3 0 1 1-6 0m8 2a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2z' clip-rule='evenodd'/%3E%3C/svg%3E");+.emptyDescription {+ font-size: 0.9em;+ line-height: 1.5;+ max-width: 400px;+ margin: 0 auto;}--.drop-icon {- display: inline-block;- width: 48px;- height: 48px;- background-repeat: no-repeat;- background-size: 100% 100%;- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23586e75' d='M5.94 5.94a1.5 1.5 0 0 1 2.12 0L12 9.878l3.94-3.94a1.5 1.5 0 0 1 2.12 2.122l-5 5a1.5 1.5 0 0 1-2.12 0l-5-5a1.5 1.5 0 0 1 0-2.122Zm0 6a1.5 1.5 0 0 1 2.12 0L12 15.878l3.94-3.94a1.5 1.5 0 0 1 2.12 2.122l-5 5a1.5 1.5 0 0 1-2.12 0l-5-5a1.5 1.5 0 0 1 0-2.122Z'/%3E%3C/g%3E%3C/svg%3E");-}--.drag-active {- background-color: #073642;- border: 1px solid #073642;-}\ No newline at end of filediff --git a/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css.d.ts b/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css.d.tsdeleted file mode 100644index 2c221916..00000000--- a/frontend/app/routes/queue/components/empty-queue/empty-queue.module.css.d.ts+++ /dev/null@@ -1,8 +0,0 @@-declare const styles: {- readonly "container": string;- readonly "drag-active": string;- readonly "drop-icon": string;- readonly "upload-icon": string;-};-export = styles;-diff --git a/frontend/app/routes/queue/components/empty-queue/empty-queue.tsx b/frontend/app/routes/queue/components/empty-queue/empty-queue.tsxindex 44c33047..ee779f02 100644--- a/frontend/app/routes/queue/components/empty-queue/empty-queue.tsx+++ b/frontend/app/routes/queue/components/empty-queue/empty-queue.tsx@@ -1,62 +1,13 @@-import pageStyles from "../../route.module.css"-import { useCallback, useRef } from "react";import styles from "./empty-queue.module.css"-import { useDropzone, type FileWithPath } from 'react-dropzone'-import { className } from "~/utils/styling";-import { useFetcher } from "react-router";export function EmptyQueue() {- const fetcher = useFetcher();- const formRef = useRef<HTMLFormElement>(null);- const inputRef = useRef<HTMLInputElement>(null);- const isSubmitting = (fetcher.state === 'submitting');-- const { getRootProps, getInputProps, isDragActive } = useDropzone({- accept: { 'application/x-nzb': ['.nzb'] },- onDrop: useCallback((acceptedFiles: FileWithPath[]) => {- const dataTransfer = new DataTransfer();- acceptedFiles.forEach((file) => {- const newFile = new File([file], file.name, {- type: 'application/x-nzb',- lastModified: file.lastModified,- });- dataTransfer.items.add(newFile);- });- if (inputRef?.current) {- inputRef.current.files = dataTransfer.files;- fetcher.submit(formRef.current);- }- }, [])- });-return (- <fetcher.Form ref={formRef} method="POST" encType="multipart/form-data">- <div className={pageStyles["section-title"]}>- <h3>Queue</h3>- </div>- <div {...className([styles.container, isDragActive && styles["drag-active"]])} {...getRootProps()}>- <input {...getInputProps()} />- <input ref={inputRef} name="nzbFile" type="file" style={{ display: 'none' }} />-- {isSubmitting && <>- <div>Uploading...</div>- </>}-- {/* default view */}- {!isSubmitting && !isDragActive && <>- <div className={styles["upload-icon"]}></div>- <br />- <div>Queue is empty.</div>- <div>Upload an *.nzb file</div>- </>}-- {/* when dragging a file */}- {!isSubmitting && isDragActive && <>- <div className={styles["drop-icon"]}></div>- <br />- <div>Drop your *.nzb file</div>- </>}+ <div className={styles.emptyState}>+ <div className={styles.emptyIcon}>πͺ ππ₯³</div>+ <div className={styles.emptyTitle}>Empty Queue!</div>+ <div className={styles.emptyDescription}>+ Upload an nzb file to get started</div>- </fetcher.Form>+ </div>);}\ No newline at end of filediff --git a/frontend/app/routes/queue/components/history-table/history-table.tsx b/frontend/app/routes/queue/components/history-table/history-table.tsxindex acbc3232..dedf3643 100644--- a/frontend/app/routes/queue/components/history-table/history-table.tsx+++ b/frontend/app/routes/queue/components/history-table/history-table.tsx@@ -1,21 +1,23 @@-import pageStyles from "../../route.module.css"import { ActionButton } from "../action-button/action-button"-import { PageRow, PageTable } from "../page-table/page-table"import { useCallback, useState } from "react"import { ConfirmModal } from "../confirm-modal/confirm-modal"import { Link } from "react-router"import { type TriCheckboxState } from "../tri-checkbox/tri-checkbox"import type { PresentationHistorySlot } from "../../route"import { getLeafDirectoryName } from "~/utils/path"+import { PageRow, PageTable } from "../page-table/page-table"+import styles from "../../route.module.css"+import { PageSection } from "../page-section/page-section"export type HistoryTableProps = {historySlots: PresentationHistorySlot[],+ totalHistoryCount: number,onIsSelectedChanged: (nzo_ids: Set<string>, isSelected: boolean) => void,onIsRemovingChanged: (nzo_ids: Set<string>, isRemoving: boolean) => void,onRemoved: (nzo_ids: Set<string>) => void,}-export function HistoryTable({ historySlots, onIsSelectedChanged, onIsRemovingChanged, onRemoved }: HistoryTableProps) {+export function HistoryTable({ historySlots, totalHistoryCount, onIsSelectedChanged, onIsRemovingChanged, onRemoved }: HistoryTableProps) {const [isConfirmingRemoval, setIsConfirmingRemoval] = useState(false);var selectedCount = historySlots.filter(x => !!x.isSelected).length;var headerCheckboxState: TriCheckboxState = selectedCount === 0 ? 'none' : selectedCount === historySlots.length ? 'all' : 'some';@@ -56,14 +58,17 @@ export function HistoryTable({ historySlots, onIsSelectedChanged, onIsRemovingChonIsRemovingChanged(nzo_ids, false);}, [historySlots, setIsConfirmingRemoval, onIsRemovingChanged, onRemoved]);+ var sectionTitle = (+ <div className={styles.sectionTitle}>+ <h3>History</h3>+ {headerCheckboxState !== 'none' &&+ <ActionButton type="delete" onClick={onRemove} />+ }+ </div>+ );+return (- <>- <div className={pageStyles["section-title"]}>- <h3>History</h3>- {headerCheckboxState !== 'none' &&- <ActionButton type="delete" onClick={onRemove} />- }- </div>+ <PageSection title={sectionTitle} badgeText={`${historySlots.length} of ${totalHistoryCount}`}><PageTable headerCheckboxState={headerCheckboxState} onHeaderCheckboxChange={onSelectAll}>{historySlots.map(slot =><HistoryRow@@ -83,7 +88,7 @@ export function HistoryTable({ historySlots, onIsSelectedChanged, onIsRemovingChcheckboxMessage="Delete mounted files"onConfirm={onConfirmRemoval}onCancel={onCancelRemoval} />- </>+ </PageSection>);}diff --git a/frontend/app/routes/queue/components/page-section/page-section.module.css b/frontend/app/routes/queue/components/page-section/page-section.module.cssnew file mode 100644index 00000000..8ea28a1c--- /dev/null+++ b/frontend/app/routes/queue/components/page-section/page-section.module.css@@ -0,0 +1,29 @@+.container {+ width: 100%;+ background: hsl(196.8 80% 7%);+ border-radius: 10px;+ padding: var(--container-padding);+ padding-bottom: 0;+ border: 1px solid rgba(255, 255, 255, 0.03);+ --container-padding: 24px;+ margin-bottom: 50px;+}++.header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: 24px;+ flex-wrap: wrap;+ gap: 16px;+}++.badgeText {+ color: hsl(180, 7%, 55%);+ font-size: 0.9em;+ font-weight: 500;+ background: hsl(196.8, 25%, 14.51%);+ padding: 6px 12px;+ border-radius: 16px;+ border: 1px solid rgba(255, 255, 255, 0.05);+}\ No newline at end of filediff --git a/frontend/app/routes/queue/components/page-section/page-section.tsx b/frontend/app/routes/queue/components/page-section/page-section.tsxnew file mode 100644index 00000000..113bbcaa--- /dev/null+++ b/frontend/app/routes/queue/components/page-section/page-section.tsx@@ -0,0 +1,22 @@+import styles from "./page-section.module.css";+import type { ReactNode } from "react";++export type PageTableProps = {+ title: ReactNode,+ badgeText: string,+ children?: ReactNode,+}++export function PageSection({ title, badgeText, children }: PageTableProps) {+ return (+ <div className={styles.container}>+ <div className={styles.header}>+ {title}+ <div className={styles.badgeText}>+ {badgeText}+ </div>+ </div>+ {children}+ </div>+ );+}\ No newline at end of filediff --git a/frontend/app/routes/queue/components/page-table/page-table.module.css b/frontend/app/routes/queue/components/page-table/page-table.module.cssindex fbed42f8..5faf9b89 100644--- a/frontend/app/routes/queue/components/page-table/page-table.module.css+++ b/frontend/app/routes/queue/components/page-table/page-table.module.css@@ -1,75 +1,98 @@.container {- container-type: inline-size;+ width: 100%;+ background: hsl(196.8 80% 7%);+ border-radius: 10px;+ padding: var(--container-padding);+ padding-bottom: 0;+ border: 1px solid rgba(255, 255, 255, 0.03);+ --container-padding: 24px;}-.page-table {+.header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: 24px;+ flex-wrap: wrap;+ gap: 16px;+}++.footer {+ text-align: center;+ padding: 12px 0;+}++.title {+ margin: 0;+}- /* header column */- th {- padding: 0;- padding-top: 8px;- padding-bottom: 8px;+.count {+ color: hsl(180, 7%, 55%);+ font-size: 0.9em;+ font-weight: 500;+ background: hsl(196.8, 25%, 14.51%);+ padding: 6px 12px;+ border-radius: 16px;+ border: 1px solid rgba(255, 255, 255, 0.05);+}++.tableContainer {+ margin-left: calc(-1 * var(--container-padding));+ margin-right: calc(-1 * var(--container-padding));+}++.table {+ margin: 0;+ color: hsl(180, 7%, 70%);++ /* table headers */+ thead th {background-color: hsl(192, 100%, 11%) !important;+ color: hsl(180, 7%, 85%) !important;+ border: none;+ padding: 16px 0;+ font-weight: 600;+ font-size: 0.9em;+ letter-spacing: 0.5px;+ white-space: nowrap;text-align: center;width: 100px;- /* first header column */&:first-child {- border-radius: 10px 0 0 0;text-align: left;+ padding-left: 0;width: 50%;}-- /* last header column */- &:last-child {- border-radius: 0 10px 0 0;- }}- /* body column */- td {- padding: 0;- padding-top: 11px;- padding-bottom: 11px;- max-width: 200px;- color: hsl(180, 7%, 70%) !important;- --bs-table-bg: hsl(192, 90%, 6%);- text-align: center;+ /* table body */+ tbody td {+ color: hsl(180, 7%, 70%);+ border: none;+ background-color: unset;+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);+ padding: 12px 0;vertical-align: middle;+ text-align: center;+ max-width: 200px;white-space: nowrap;- border-bottom: 1px solid rgba(255, 255, 255, .05);- /* first body column */&:first-child {text-align: left;+ padding-left: 0;}}- /* last row */- tr:last-child {-- /* cell on the last row */- td {- border-bottom: none;-- /* first cell on the last row */- &:first-child {- border-radius: 0 0 0 10px;- }-- /* last cell on the last row */- &:last-child {- border-radius: 0 0 10px 0;- }- }- }-- /* when a row is being removed, set opacity to 50% */+ /* when a row is being removed, set opacity to 20% */.removing {opacity: 20%;}}+.table:not(:has(+ .footer)) tbody tr:last-child td {+ border-bottom: none;+}+.badges {display: flex;margin-top: 3px;@@ -110,7 +133,7 @@display: block;}- .page-table thead tr th:first-child {+ .table thead tr th:first-child {width: unset;}}diff --git a/frontend/app/routes/queue/components/page-table/page-table.module.css.d.ts b/frontend/app/routes/queue/components/page-table/page-table.module.css.d.tsdeleted file mode 100644index 7c41c2cc..00000000--- a/frontend/app/routes/queue/components/page-table/page-table.module.css.d.ts+++ /dev/null@@ -1,12 +0,0 @@-declare const styles: {- readonly "container": string;- readonly "page-table": string;- readonly "removing": string;- readonly "badges": string;- readonly "actions": string;- readonly "desktop": string;- readonly "mobile": string;- readonly "skinny": string;-};-export = styles;-diff --git a/frontend/app/routes/queue/components/page-table/page-table.tsx b/frontend/app/routes/queue/components/page-table/page-table.tsxindex 4f690576..79c77ab9 100644--- a/frontend/app/routes/queue/components/page-table/page-table.tsx+++ b/frontend/app/routes/queue/components/page-table/page-table.tsx@@ -7,20 +7,20 @@ import { StatusBadge } from "../status-badge/status-badge";import { formatFileSize } from "~/utils/file-size";export type PageTableProps = {- striped?: boolean,children?: ReactNode,headerCheckboxState: TriCheckboxState,- onHeaderCheckboxChange: (isChecked: boolean) => void+ onHeaderCheckboxChange: (isChecked: boolean) => void,+ footer?: string,}-export function PageTable({ striped, children, headerCheckboxState, onHeaderCheckboxChange: onTitleCheckboxChange }: PageTableProps) {+export function PageTable({ children, headerCheckboxState, onHeaderCheckboxChange, footer }: PageTableProps) {return (- <div className={styles.container}>- <Table className={styles["page-table"]} responsive striped={striped}>+ <div className={styles.tableContainer}>+ <Table className={styles.table} responsive><thead><tr><th>- <TriCheckbox state={headerCheckboxState} onChange={onTitleCheckboxChange}>+ <TriCheckbox state={headerCheckboxState} onChange={onHeaderCheckboxChange}>Name</TriCheckbox></th>@@ -34,8 +34,11 @@ export function PageTable({ striped, children, headerCheckboxState, onHeaderChec{children}</tbody></Table>+ {footer &&+ <div className={styles.footer}>{footer}</div>+ }</div>- )+ );}export type PageRowProps = {diff --git a/frontend/app/routes/queue/components/queue-table/queue-table.tsx b/frontend/app/routes/queue/components/queue-table/queue-table.tsxindex 61dbfdbd..263a101f 100644--- a/frontend/app/routes/queue/components/queue-table/queue-table.tsx+++ b/frontend/app/routes/queue/components/queue-table/queue-table.tsx@@ -1,19 +1,22 @@-import pageStyles from "../../route.module.css"import { ActionButton } from "../action-button/action-button"-import { PageRow, PageTable } from "../page-table/page-table"import { useCallback, useState } from "react"import { ConfirmModal } from "../confirm-modal/confirm-modal"import type { PresentationQueueSlot } from "../../route"import type { TriCheckboxState } from "../tri-checkbox/tri-checkbox"+import { PageRow, PageTable } from "../page-table/page-table"+import { PageSection } from "../page-section/page-section"+import { EmptyQueue } from "../empty-queue/empty-queue"+import styles from "../../route.module.css"export type QueueTableProps = {queueSlots: PresentationQueueSlot[],+ totalQueueCount: number,onIsSelectedChanged: (nzo_ids: Set<string>, isSelected: boolean) => void,onIsRemovingChanged: (nzo_ids: Set<string>, isRemoving: boolean) => void,onRemoved: (nzo_ids: Set<string>) => void,}-export function QueueTable({ queueSlots, onIsSelectedChanged, onIsRemovingChanged, onRemoved }: QueueTableProps) {+export function QueueTable({ queueSlots, totalQueueCount, onIsSelectedChanged, onIsRemovingChanged, onRemoved }: QueueTableProps) {const [isConfirmingRemoval, setIsConfirmingRemoval] = useState(false);var selectedCount = queueSlots.filter(x => !!x.isSelected).length;var headerCheckboxState: TriCheckboxState = selectedCount === 0 ? 'none' : selectedCount === queueSlots.length ? 'all' : 'some';@@ -54,16 +57,21 @@ export function QueueTable({ queueSlots, onIsSelectedChanged, onIsRemovingChangeonIsRemovingChanged(nzo_ids, false);}, [queueSlots, setIsConfirmingRemoval, onIsRemovingChanged, onRemoved]);+ var sectionTitle = (+ <div className={styles.sectionTitle}>+ <h3>Queue</h3>+ {headerCheckboxState !== 'none' &&+ <ActionButton type="delete" onClick={onRemove} />+ }+ </div>+ );+return (- <>- <div className={pageStyles["section-title"]}>- <h3>Queue</h3>- {headerCheckboxState !== 'none' &&- <ActionButton type="delete" onClick={onRemove} />- }- </div>- <div style={{ minHeight: "300px" }}>- <PageTable headerCheckboxState={headerCheckboxState} onHeaderCheckboxChange={onSelectAll} striped>+ <PageSection title={sectionTitle} badgeText={`${queueSlots.length} of ${totalQueueCount}`}>+ {queueSlots?.length == 0 ? (+ <EmptyQueue />+ ) : (+ <PageTable headerCheckboxState={headerCheckboxState} onHeaderCheckboxChange={onSelectAll}>{queueSlots.map(slot =><QueueRowkey={slot.nzo_id}@@ -74,7 +82,7 @@ export function QueueTable({ queueSlots, onIsSelectedChanged, onIsRemovingChange/>)}</PageTable>- </div>+ )}<ConfirmModalshow={isConfirmingRemoval}@@ -82,7 +90,7 @@ export function QueueTable({ queueSlots, onIsSelectedChanged, onIsRemovingChangemessage={`${selectedCount} item(s) will be removed`}onConfirm={onConfirmRemoval}onCancel={onCancelRemoval} />- </>+ </PageSection>);}diff --git a/frontend/app/routes/queue/route.module.css b/frontend/app/routes/queue/route.module.cssindex 76839c13..20f8059d 100644--- a/frontend/app/routes/queue/route.module.css+++ b/frontend/app/routes/queue/route.module.css@@ -1,7 +1,7 @@.container {min-width: 100%;min-height: 100%;- padding: 30px 35px 20px 35px;+ padding: 35px 30px;color: #93a1a1;font-size: 14px;}@@ -10,11 +10,13 @@margin-bottom: 50px;}-.section-title {- margin-bottom: 30px;+.sectionTitle {display: flex;gap: 10px;align-items: baseline;+ h3 {+ margin: 0;+ }}.alert {diff --git a/frontend/app/routes/queue/route.module.css.d.ts b/frontend/app/routes/queue/route.module.css.d.tsindex 4b64b250..322292e4 100644--- a/frontend/app/routes/queue/route.module.css.d.ts+++ b/frontend/app/routes/queue/route.module.css.d.ts@@ -1,7 +1,7 @@declare const styles: {readonly "container": string;readonly "section": string;- readonly "section-title": string;+ readonly "sectionTitle": string;readonly "alert": string;readonly "list": string;readonly "listItem": string;diff --git a/frontend/app/routes/queue/route.tsx b/frontend/app/routes/queue/route.tsxindex b4c0e795..c6e06b3d 100644--- a/frontend/app/routes/queue/route.tsx+++ b/frontend/app/routes/queue/route.tsx@@ -3,12 +3,13 @@ import type { Route } from "./+types/route";import styles from "./route.module.css"import { Alert } from 'react-bootstrap';import { backendClient, type HistorySlot, type QueueSlot } from "~/clients/backend-client.server";-import { EmptyQueue } from "./components/empty-queue/empty-queue";import { HistoryTable } from "./components/history-table/history-table";import { QueueTable } from "./components/queue-table/queue-table";import { useCallback, useEffect, useState } from "react";import { receiveMessage } from "~/utils/websocket-util";import { isAuthenticated } from "~/auth/authentication.server";+import { PageSection } from "./components/page-section/page-section";+import { EmptyQueue } from "./components/empty-queue/empty-queue";const topicNames = {queueItemStatus: 'qs',@@ -163,28 +164,27 @@ export default function Queue(props: Route.ComponentProps) {}{/* queue */}- <div className={styles.section}>- {queueSlots.length > 0 ?- <QueueTable queueSlots={queueSlots}- onIsSelectedChanged={onSelectQueueSlots}- onIsRemovingChanged={onRemovingQueueSlots}- onRemoved={onRemoveQueueSlots}- /> :- <EmptyQueue />}+ <div style={{ minHeight: '383.59px', marginBottom: '50px' }}>+ <QueueTable+ queueSlots={queueSlots}+ totalQueueCount={props.loaderData.totalQueueCount}+ onIsSelectedChanged={onSelectQueueSlots}+ onIsRemovingChanged={onRemovingQueueSlots}+ onRemoved={onRemoveQueueSlots}+ /></div>{/* history */}{historySlots.length > 0 &&- <div className={styles.section}>- <HistoryTable- historySlots={historySlots}- onIsSelectedChanged={onSelectHistorySlots}- onIsRemovingChanged={onRemovingHistorySlots}- onRemoved={onRemoveHistorySlots}- />- </div>+ <HistoryTable+ historySlots={historySlots}+ totalHistoryCount={props.loaderData.totalHistoryCount}+ onIsSelectedChanged={onSelectHistorySlots}+ onIsRemovingChanged={onRemovingHistorySlots}+ onRemoved={onRemoveHistorySlots}+ />}- </div>+ </div >);}