diff --git a/README.md b/README.md index ee4623d..8d3d8e8 100644 --- a/README.md +++ b/README.md @@ -32,17 +32,39 @@ path/to/Android/sdk/ndk/ver/toolchains/llvm/prebuilt/platform # ### Server args: #### Usage -TorrServer [--port PORT] [--path PATH] [--logpath LOGPATH] [--rdb] [--httpauth] [--dontkill] [--ui] +TorrServer-darwin-arm64 [--port PORT] [--path PATH] [--logpath LOGPATH] [--weblogpath WEBLOGPATH] [--rdb] [--httpauth] [--dontkill] [--ui] [--torrentsdir TORRENTSDIR] [--torrentaddr TORRENTADDR] [--pubipv4 PUBIPV4] [--pubipv6 PUBIPV6] [--searchwa] #### Options -* --port PORT, -p PORT web server port -* --path PATH, -d PATH database and settings path -* --logpath LOGPATH, -l LOGPATH log path -* --rdb, -r start in read-only DB mode -* --httpauth, -a http auth on all requests -* --dontkill, -k dont kill server on signal -* --ui, -u run page torrserver in browser -* --version display version and exit +* --port PORT, -p PORT + * web server port, default 8090 +* --path PATH, -d PATH + * database dir path +* --logpath LOGPATH, -l LOGPATH + * server log file path +* --weblogpath WEBLOGPATH, -w WEBLOGPATH + * web access log file path +* --rdb, -r + * start in read-only DB mode +* --httpauth, -a + * enable http auth on all requests +* --dontkill, -k + * don't kill server on signal +* --ui, -u + * open torrserver page in browser +* --torrentsdir TORRENTSDIR, -t TORRENTSDIR + * autoload torrents from dir +* --torrentaddr TORRENTADDR + * Torrent client address, default :32000 +* --pubipv4 PUBIPV4, -4 PUBIPV4 + * set public IPv4 addr +* --pubipv6 PUBIPV6, -6 PUBIPV6 + * set public IPv6 addr +* --searchwa, -s + * search without auth +* --help, -h + * display this help and exit +* --version + * display version and exit # diff --git a/web/public/index.html b/web/public/index.html index 71ab03d..70e6e93 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -2,7 +2,7 @@ - + diff --git a/web/src/components/Add/LeftSideComponent.jsx b/web/src/components/Add/LeftSideComponent.jsx index a5ceda1..7bb785a 100644 --- a/web/src/components/Add/LeftSideComponent.jsx +++ b/web/src/components/Add/LeftSideComponent.jsx @@ -54,6 +54,7 @@ export default function LeftSideComponent({ helperText={t('AddDialog.TorrentSourceOptions')} type='text' fullWidth + variant='outlined' onFocus={() => setIsTorrentSourceActive(true)} onBlur={() => setIsTorrentSourceActive(false)} inputProps={{ autoComplete: 'off' }} diff --git a/web/src/components/Add/RightSideComponent.jsx b/web/src/components/Add/RightSideComponent.jsx index 3cc995b..69240a4 100644 --- a/web/src/components/Add/RightSideComponent.jsx +++ b/web/src/components/Add/RightSideComponent.jsx @@ -67,6 +67,7 @@ export default function RightSideComponent({ margin='dense' label={t('AddDialog.OriginalTorrentTitle')} type='text' + variant='outlined' fullWidth disabled={isCustomTitleEnabled} InputProps={{ readOnly: true }} @@ -79,6 +80,7 @@ export default function RightSideComponent({ margin='dense' label={t('AddDialog.CustomTorrentTitle')} type='text' + variant='outlined' fullWidth helperText={t('AddDialog.CustomTorrentTitleHelperText')} InputProps={{ @@ -107,7 +109,9 @@ export default function RightSideComponent({ margin='dense' label={t('AddDialog.TitleBlank')} type='text' + variant='outlined' fullWidth + helperText={t('AddDialog.TitleBlankHelperText')} /> )} diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index 0a7fafe..2d42179 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -13,7 +13,8 @@ "CustomTorrentTitleHelperText": "Write custom title to find poster", "HashExists": "This torrent is already in database", "OriginalTorrentTitle": "Original torrent title", - "TitleBlank": "Title (blank for orig. torrent title)", + "TitleBlank": "Title", + "TitleBlankHelperText": "Blank for orig. torrent title", "TorrentSourceLink": "Torrent source", "TorrentSourceOptions": "magnet / hash / .torrent file link", "WrongTorrentSource": "Wrong torrent source" diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index d6932ac..18da191 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -13,7 +13,8 @@ "CustomTorrentTitleHelperText": "Напишите свое название, чтобы найти постер", "HashExists": "Этот торрент уже есть в базе данных", "OriginalTorrentTitle": "Оригинальное название торрента", - "TitleBlank": "Название (пустое - ориг. название торрента)", + "TitleBlank": "Название", + "TitleBlankHelperText": "Пустое - ориг. название торрента", "TorrentSourceLink": "Ссылка на источник торрента", "TorrentSourceOptions": "magnet-ссылка / хеш / ссылка на .torrent файл", "WrongTorrentSource": "Неправильный торрент" diff --git a/web/src/locales/ua/translation.json b/web/src/locales/ua/translation.json index 31417af..57139ca 100644 --- a/web/src/locales/ua/translation.json +++ b/web/src/locales/ua/translation.json @@ -13,7 +13,8 @@ "CustomTorrentTitleHelperText": "Напишіть власну назву, щоб знайти плакат", "HashExists": "Даний торент вже є у базі даних", "OriginalTorrentTitle": "Оригінальна назва торенту", - "TitleBlank": "Назва (порожнє - ориг. назва торенту)", + "TitleBlank": "Назва", + "TitleBlankHelperText": "Порожнє - ориг. назва торенту", "TorrentSourceLink": "Посилання на джерело терента", "TorrentSourceOptions": "magnet-посилання / хеш / посилання на .torrent файл", "WrongTorrentSource": "Хибне torrent-джерело"