🚸 Improve UX and QoL

This commit is contained in:
WalkxCode
2022-06-01 19:53:57 +02:00
parent c258003ec5
commit 5758019923
19 changed files with 12109 additions and 17365 deletions

View File

@@ -1,13 +1,4 @@
import {
Table,
Text,
Tooltip,
Title,
Group,
Progress,
Skeleton,
ScrollArea,
} from '@mantine/core';
import { Table, Text, Tooltip, Title, Group, Progress, Skeleton, ScrollArea } from '@mantine/core';
import { IconDownload as Download } from '@tabler/icons';
import { useEffect, useState } from 'react';
import axios from 'axios';
@@ -63,9 +54,9 @@ export default function DownloadComponent() {
if (!qBittorrentService && !delugeService) {
return (
<Group direction="column">
<Title>Critical: No qBittorrent/Deluge instance found in services.</Title>
<Title order={3}>No supported download clients found!</Title>
<Group>
<Title order={3}>Add a qBittorrent/Deluge service to view current downloads</Title>
<Text>Add a download service to view your current downloads...</Text>
<AddItemShelfButton />
</Group>
</Group>

View File

@@ -43,7 +43,7 @@ function humanFileSize(initialBytes: number, si = true, dp = 1) {
}
export const TotalDownloadsModule: IModule = {
title: 'Download speed',
title: 'Download Speed',
description: 'Show the current download speed of supported services',
icon: Download,
component: TotalDownloadsComponent,
@@ -104,9 +104,9 @@ export default function TotalDownloadsComponent() {
if (!qBittorrentService && !delugeService) {
return (
<Group direction="column">
<Title order={3}>Critical: No qBittorrent/Deluge instance found in services.</Title>
<Title order={4}>No supported download clients found!</Title>
<Group noWrap>
<Title order={5}>Add a qBittorrent/Deluge service to view current downloads</Title>
<Text>Add a download service to view your current downloads...</Text>
<AddItemShelfButton />
</Group>
</Group>

View File

@@ -116,7 +116,7 @@ export default function SearchBar(props: any) {
}
>
<Text>
tip: Use the prefixes <b>!yt</b> and <b>!t</b> in front of your query to search on YouTube
Tip: Use the prefixes <b>!yt</b> and <b>!t</b> in front of your query to search on YouTube
or for a Torrent respectively.
</Text>
</Popover>