mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add inputs adornment and fix title for mobile
This commit is contained in:
@@ -19,7 +19,7 @@ export const HeaderSection = styled.section`
|
||||
}
|
||||
|
||||
@media (max-width: 930px) {
|
||||
font-size: 30px;
|
||||
font-size: 24px;
|
||||
padding: 10px 20px;
|
||||
|
||||
img {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import TextField from '@material-ui/core/TextField'
|
||||
import { FormControlLabel, InputLabel, Select, Switch } from '@material-ui/core'
|
||||
import { FormControlLabel, InputAdornment, InputLabel, Select, Switch } from '@material-ui/core'
|
||||
|
||||
import { SecondarySettingsContent, SettingSectionLabel } from './style'
|
||||
|
||||
@@ -59,6 +59,11 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
margin='normal'
|
||||
id='TorrentDisconnectTimeout'
|
||||
label={t('SettingsDialog.TorrentDisconnectTimeout')}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position='end'>{t('Seconds')}</InputAdornment>
|
||||
),
|
||||
}}
|
||||
value={TorrentDisconnectTimeout}
|
||||
type='number'
|
||||
variant='outlined'
|
||||
@@ -70,6 +75,11 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
margin='normal'
|
||||
id='ConnectionsLimit'
|
||||
label={t('SettingsDialog.ConnectionsLimit')}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position='end'>{t('SettingsDialog.ConnectionsLimitHint')}</InputAdornment>
|
||||
),
|
||||
}}
|
||||
value={ConnectionsLimit}
|
||||
type='number'
|
||||
variant='outlined'
|
||||
@@ -97,6 +107,11 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
margin='normal'
|
||||
id='DownloadRateLimit'
|
||||
label={t('SettingsDialog.DownloadRateLimit')}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position='end'>{t('Kilobytes')}</InputAdornment>
|
||||
),
|
||||
}}
|
||||
value={DownloadRateLimit}
|
||||
type='number'
|
||||
variant='outlined'
|
||||
@@ -113,6 +128,11 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
||||
margin='normal'
|
||||
id='UploadRateLimit'
|
||||
label={t('SettingsDialog.UploadRateLimit')}
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position='end'>{t('Kilobytes')}</InputAdornment>
|
||||
),
|
||||
}}
|
||||
value={UploadRateLimit}
|
||||
type='number'
|
||||
variant='outlined'
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
"Full": "Full",
|
||||
"Host": "Host",
|
||||
"Info": "Info",
|
||||
"Kilobytes": "Kilobytes",
|
||||
"LatestFilePlayed": "Latest file played:",
|
||||
"Links": "Links",
|
||||
"Name": "Name",
|
||||
@@ -71,6 +72,7 @@
|
||||
"Save": "Save",
|
||||
"ScrollDown": "scroll down",
|
||||
"Season": "Season",
|
||||
"Seconds": "Seconds",
|
||||
"SelectSeason": "Select Season",
|
||||
"SettingsDialog": {
|
||||
"AddRetrackers": "Add retrackers",
|
||||
@@ -81,11 +83,12 @@
|
||||
"CacheSettings": "Cache Settings",
|
||||
"CacheStorageLocation": "Cache Storage Location",
|
||||
"ConnectionsLimit": "Connections Limit",
|
||||
"ConnectionsLimitHint": "20-25 recommended",
|
||||
"DHT": "DHT (Distributed Hash Table)",
|
||||
"DhtConnectionLimit": "DHT Connection Limit",
|
||||
"Disk": "Disk",
|
||||
"DontAddRetrackers": "Don`t add retrackers",
|
||||
"DownloadRateLimit": "Download Rate Limit (Kilobytes)",
|
||||
"DownloadRateLimit": "Download Rate Limit",
|
||||
"ForceEncrypt": "Force Encrypt Headers",
|
||||
"PeersListenPort": "Peers Listen Port",
|
||||
"PreloadCache": "Preload Cache Before Play",
|
||||
@@ -102,7 +105,7 @@
|
||||
"TorrentDisconnectTimeout": "Torrent Disconnect Timeout",
|
||||
"TorrentsSavePath": "Torrents Save Path",
|
||||
"Upload": "Upload (not recommended to disable)",
|
||||
"UploadRateLimit": "Upload Rate Limit (Kilobytes)",
|
||||
"UploadRateLimit": "Upload Rate Limit",
|
||||
"UseDiskDesc": "Better use RAM or external storage on flash-based devices",
|
||||
"Tabs": {
|
||||
"Main": "Main",
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
"Full": "Полный",
|
||||
"Host": "Хост",
|
||||
"Info": "Инфо",
|
||||
"KB": "КБ",
|
||||
"Kilobytes": "Килобайты",
|
||||
"LatestFilePlayed": "Последний воспроизведенный файл:",
|
||||
"Links": "Ссылки",
|
||||
"Name": "Название",
|
||||
@@ -71,6 +73,8 @@
|
||||
"Save": "Сохранить",
|
||||
"ScrollDown": "прокрутить вниз",
|
||||
"Season": "Сезон",
|
||||
"Sec": "Cек.",
|
||||
"Seconds": "Секунды",
|
||||
"SelectSeason": "Выбор сезона",
|
||||
"SettingsDialog": {
|
||||
"AddRetrackers": "Добавлять",
|
||||
@@ -80,12 +84,13 @@
|
||||
"CacheSize": "Размер кеша",
|
||||
"CacheSettings": "Настройки кеша",
|
||||
"CacheStorageLocation": "Место хранения кеша",
|
||||
"ConnectionsLimit": "Торрент-соединения (рек. 20-25)",
|
||||
"ConnectionsLimit": "Торрент-соединения",
|
||||
"ConnectionsLimitHint": "рекомендуется 20-25",
|
||||
"DHT": "DHT (Distributed Hash Table)",
|
||||
"DhtConnectionLimit": "Лимит подключений DHT",
|
||||
"Disk": "Накопитель",
|
||||
"DontAddRetrackers": "Ничего не делать",
|
||||
"DownloadRateLimit": "Ограничение скорости загрузки (Килобайты)",
|
||||
"DownloadRateLimit": "Ограничение скорости загрузки",
|
||||
"ForceEncrypt": "Принудительное шифрование заголовков",
|
||||
"PeersListenPort": "Порт для входящих подключений",
|
||||
"PreloadCache": "Буфер предзагрузки",
|
||||
@@ -99,10 +104,10 @@
|
||||
"RetrackersMode": "Ретрекеры",
|
||||
"ResetToDefault": "Настройки по умолчанию",
|
||||
"Settings": "Настройки",
|
||||
"TorrentDisconnectTimeout": "Тайм-аут отключения торрента (секунды)",
|
||||
"TorrentDisconnectTimeout": "Тайм-аут отключения торрента",
|
||||
"TorrentsSavePath": "Путь хранения кеша",
|
||||
"Upload": "Отдача (не рекомендуется отключать)",
|
||||
"UploadRateLimit": "Ограничение скорости отдачи (Килобайты)",
|
||||
"UploadRateLimit": "Ограничение скорости отдачи",
|
||||
"UseDiskDesc": "Рекомендуется использовать оперативную память или внешние носители на устройствах с flash-памятью",
|
||||
"Tabs": {
|
||||
"Main": "Основные",
|
||||
|
||||
Reference in New Issue
Block a user