mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -71,7 +71,20 @@ export const PiecesLengthWidget = ({ data }) => {
|
|||||||
|
|
||||||
export const StatusWidget = ({ data }) => {
|
export const StatusWidget = ({ data }) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
return <StatisticsField title={t('TorrentStatus')} value={data} iconBg='#aea25b' valueBg='#b4aa6e' icon={BuildIcon} />
|
let i18nd = data
|
||||||
|
if (data.toLowerCase() === 'torrent added')
|
||||||
|
i18nd = t('TorrentAdded')
|
||||||
|
else if (data.toLowerCase() === 'torrent getting info')
|
||||||
|
i18nd = t('TorrentGettingInfo')
|
||||||
|
else if (data.toLowerCase() === 'torrent preload')
|
||||||
|
i18nd = t('TorrentPreload')
|
||||||
|
else if (data.toLowerCase() === 'torrent working')
|
||||||
|
i18nd = t('TorrentWorking')
|
||||||
|
else if (data.toLowerCase() === 'torrent closed')
|
||||||
|
i18nd = t('TorrentClosed')
|
||||||
|
else if (data.toLowerCase() === 'torrent in db')
|
||||||
|
i18nd = t('TorrentInDb')
|
||||||
|
return <StatisticsField title={t('TorrentStatus')} value={i18nd} iconBg='#aea25b' valueBg='#b4aa6e' icon={BuildIcon} />
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SizeWidget = ({ data }) => {
|
export const SizeWidget = ({ data }) => {
|
||||||
|
|||||||
@@ -4,10 +4,12 @@ import Snackbar from '@material-ui/core/Snackbar'
|
|||||||
import IconButton from '@material-ui/core/IconButton'
|
import IconButton from '@material-ui/core/IconButton'
|
||||||
import CreditCardIcon from '@material-ui/icons/CreditCard'
|
import CreditCardIcon from '@material-ui/icons/CreditCard'
|
||||||
import CloseIcon from '@material-ui/icons/Close'
|
import CloseIcon from '@material-ui/icons/Close'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
import DonateDialog from './DonateDialog'
|
import DonateDialog from './DonateDialog'
|
||||||
|
|
||||||
export default function DonateSnackbar() {
|
export default function DonateSnackbar() {
|
||||||
|
const { t } = useTranslation()
|
||||||
const [open, setOpen] = useState(false)
|
const [open, setOpen] = useState(false)
|
||||||
const [snackbarOpen, setSnackbarOpen] = useState(true)
|
const [snackbarOpen, setSnackbarOpen] = useState(true)
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ export default function DonateSnackbar() {
|
|||||||
}}
|
}}
|
||||||
open={snackbarOpen}
|
open={snackbarOpen}
|
||||||
onClose={disableSnackbar}
|
onClose={disableSnackbar}
|
||||||
message='Donate?'
|
message={t('Donate?')}
|
||||||
action={
|
action={
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
@@ -40,7 +42,7 @@ export default function DonateSnackbar() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CreditCardIcon style={{ marginRight: '10px' }} fontSize='small' />
|
<CreditCardIcon style={{ marginRight: '10px' }} fontSize='small' />
|
||||||
Support
|
{t('Support')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<IconButton size='small' aria-label='close' color='inherit' onClick={disableSnackbar}>
|
<IconButton size='small' aria-label='close' color='inherit' onClick={disableSnackbar}>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"DHT": "DHT (Distributed Hash Table)",
|
"DHT": "DHT (Distributed Hash Table)",
|
||||||
"DhtConnectionLimit": "DHT Connection Limit",
|
"DhtConnectionLimit": "DHT Connection Limit",
|
||||||
"Donate": "Donate",
|
"Donate": "Donate",
|
||||||
|
"Donate?": "Want to donate?",
|
||||||
"DontAddRetrackers": "Don`t add retrackers",
|
"DontAddRetrackers": "Don`t add retrackers",
|
||||||
"DownloadPlaylist": "Download Playlist",
|
"DownloadPlaylist": "Download Playlist",
|
||||||
"DownloadRateLimit": "Download Rate Limit (Kilobytes)",
|
"DownloadRateLimit": "Download Rate Limit (Kilobytes)",
|
||||||
@@ -69,16 +70,23 @@
|
|||||||
"Size": "Size",
|
"Size": "Size",
|
||||||
"SpecialThanks": "Special Thanks:",
|
"SpecialThanks": "Special Thanks:",
|
||||||
"Speed": "Speed",
|
"Speed": "Speed",
|
||||||
|
"Support": "Support",
|
||||||
"TCP": "TCP (Transmission Control Protocol)",
|
"TCP": "TCP (Transmission Control Protocol)",
|
||||||
"ThanksToEveryone": "Thanks to everyone who tested and helped.",
|
"ThanksToEveryone": "Thanks to everyone who tested and helped.",
|
||||||
"Title": "Title",
|
"Title": "Title",
|
||||||
|
"TorrentAdded": "Added",
|
||||||
|
"TorrentClosed": "Сlosed",
|
||||||
"TorrentContent": "Torrent Content",
|
"TorrentContent": "Torrent Content",
|
||||||
"TorrentDetails": "Torrent Details",
|
"TorrentDetails": "Torrent Details",
|
||||||
"TorrentDisconnectTimeout": "Torrent Disconnect Timeout",
|
"TorrentDisconnectTimeout": "Torrent Disconnect Timeout",
|
||||||
|
"TorrentGettingInfo": "Getting Info",
|
||||||
|
"TorrentInDb": "In DB",
|
||||||
|
"TorrentPreload": "Preload",
|
||||||
"TorrentSize": "Torrent size",
|
"TorrentSize": "Torrent size",
|
||||||
"TorrentsSavePath": "Torrents Save Path",
|
"TorrentsSavePath": "Torrents Save Path",
|
||||||
"TorrentState": "Torrent State",
|
"TorrentState": "Torrent State",
|
||||||
"TorrentStatus": "Torrent Status",
|
"TorrentStatus": "Torrent Status",
|
||||||
|
"TorrentWorking": "Active",
|
||||||
"TurnOff": "Turn Off",
|
"TurnOff": "Turn Off",
|
||||||
"Upload": "Upload (not recommended to disable)",
|
"Upload": "Upload (not recommended to disable)",
|
||||||
"UploadFile": "Upload File",
|
"UploadFile": "Upload File",
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
"DHT": "DHT (Distributed Hash Table)",
|
"DHT": "DHT (Distributed Hash Table)",
|
||||||
"DhtConnectionLimit": "Лимит подключений DHT",
|
"DhtConnectionLimit": "Лимит подключений DHT",
|
||||||
"Donate": "Поддержка",
|
"Donate": "Поддержка",
|
||||||
|
"Donate?": "Хотите поддержать проект?",
|
||||||
"DontAddRetrackers": "Ничего не делать",
|
"DontAddRetrackers": "Ничего не делать",
|
||||||
"DownloadPlaylist": "Скачать плейлист",
|
"DownloadPlaylist": "Скачать плейлист",
|
||||||
"DownloadRateLimit": "Ограничение скорости загрузки (Килобайты)",
|
"DownloadRateLimit": "Ограничение скорости загрузки (Килобайты)",
|
||||||
@@ -69,16 +70,23 @@
|
|||||||
"Size": "Размер",
|
"Size": "Размер",
|
||||||
"SpecialThanks": "Отдельное спасибо:",
|
"SpecialThanks": "Отдельное спасибо:",
|
||||||
"Speed": "Скорость",
|
"Speed": "Скорость",
|
||||||
|
"Support": "Поддержать",
|
||||||
"TCP": "TCP (Transmission Control Protocol)",
|
"TCP": "TCP (Transmission Control Protocol)",
|
||||||
"ThanksToEveryone": "Спасибо всем, кто тестировал и помогал!",
|
"ThanksToEveryone": "Спасибо всем, кто тестировал и помогал!",
|
||||||
"Title": "Название",
|
"Title": "Название",
|
||||||
|
"TorrentAdded": "Добавлен",
|
||||||
|
"TorrentClosed": "Закрыт",
|
||||||
"TorrentContent": "Содержимое торрента",
|
"TorrentContent": "Содержимое торрента",
|
||||||
"TorrentDetails": "Информация о торренте",
|
"TorrentDetails": "Информация о торренте",
|
||||||
"TorrentDisconnectTimeout": "Тайм-аут отключения торрента (секунды)",
|
"TorrentDisconnectTimeout": "Тайм-аут отключения торрента (секунды)",
|
||||||
|
"TorrentGettingInfo": "Получение инфо",
|
||||||
|
"TorrentInDb": "Торрент в БД",
|
||||||
|
"TorrentPreload": "Предзагрузка",
|
||||||
"TorrentSize": "Размер торрента",
|
"TorrentSize": "Размер торрента",
|
||||||
"TorrentsSavePath": "Путь хранения кеша",
|
"TorrentsSavePath": "Путь хранения кеша",
|
||||||
"TorrentState": "Данные торрента",
|
"TorrentState": "Данные торрента",
|
||||||
"TorrentStatus": "Состояние",
|
"TorrentStatus": "Состояние торрента",
|
||||||
|
"TorrentWorking": "Активен",
|
||||||
"TurnOff": "Выключить",
|
"TurnOff": "Выключить",
|
||||||
"Upload": "Отдача (не рекомендуется отключать)",
|
"Upload": "Отдача (не рекомендуется отключать)",
|
||||||
"UploadFile": "Загрузить файл",
|
"UploadFile": "Загрузить файл",
|
||||||
|
|||||||
Reference in New Issue
Block a user