mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-27 20:07:37 +03:00
chore: update translations (#1912)
Co-authored-by: Larsluph <22910497+Larsluph@users.noreply.github.com>
This commit is contained in:
parent
1c56f330bd
commit
1074f030af
13 changed files with 106 additions and 69 deletions
30
CHANGELOG.md
30
CHANGELOG.md
|
@ -2,26 +2,32 @@
|
||||||
|
|
||||||
## [2.13.0](https://github.com/VueTorrent/VueTorrent/compare/v2.12.0...v2.13.0) (2024-09-19)
|
## [2.13.0](https://github.com/VueTorrent/VueTorrent/compare/v2.12.0...v2.13.0) (2024-09-19)
|
||||||
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
* **backend:** Auto-configure on load ([#1904](https://github.com/VueTorrent/VueTorrent/issues/1904)) ([909d26a](https://github.com/VueTorrent/VueTorrent/commit/909d26a568de7d5d2d0bac5701a8cb3acb77316f))
|
- **backend:** Auto-configure on load ([#1904](https://github.com/VueTorrent/VueTorrent/issues/1904))
|
||||||
* responsive search bar placement ([#1883](https://github.com/VueTorrent/VueTorrent/issues/1883)) ([8b9a3a3](https://github.com/VueTorrent/VueTorrent/commit/8b9a3a36ce9197392c84757363d3340444e565fd))
|
([909d26a](https://github.com/VueTorrent/VueTorrent/commit/909d26a568de7d5d2d0bac5701a8cb3acb77316f))
|
||||||
* **settings:** Add pagination position configuration ([#1870](https://github.com/VueTorrent/VueTorrent/issues/1870)) ([b82c124](https://github.com/VueTorrent/VueTorrent/commit/b82c1245f14c220c6a58812390c9016eff4e116f))
|
- responsive search bar placement ([#1883](https://github.com/VueTorrent/VueTorrent/issues/1883))
|
||||||
* tooltip on torrent state indicator for table view ([#1890](https://github.com/VueTorrent/VueTorrent/issues/1890)) ([c6722b1](https://github.com/VueTorrent/VueTorrent/commit/c6722b17b54808e081d407ed411d1b546f3c195d))
|
([8b9a3a3](https://github.com/VueTorrent/VueTorrent/commit/8b9a3a36ce9197392c84757363d3340444e565fd))
|
||||||
|
- **settings:** Add pagination position configuration ([#1870](https://github.com/VueTorrent/VueTorrent/issues/1870))
|
||||||
|
([b82c124](https://github.com/VueTorrent/VueTorrent/commit/b82c1245f14c220c6a58812390c9016eff4e116f))
|
||||||
|
- tooltip on torrent state indicator for table view ([#1890](https://github.com/VueTorrent/VueTorrent/issues/1890))
|
||||||
|
([c6722b1](https://github.com/VueTorrent/VueTorrent/commit/c6722b17b54808e081d407ed411d1b546f3c195d))
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* Increase menu overflow threshold ([#1887](https://github.com/VueTorrent/VueTorrent/issues/1887)) ([d02a29b](https://github.com/VueTorrent/VueTorrent/commit/d02a29b409611ced6201506e5fcea1453aad24a3))
|
- Increase menu overflow threshold ([#1887](https://github.com/VueTorrent/VueTorrent/issues/1887))
|
||||||
* **RSS:** "mark as read" on feed not working ([#1897](https://github.com/VueTorrent/VueTorrent/issues/1897)) ([c290202](https://github.com/VueTorrent/VueTorrent/commit/c290202e21e5609be207564daee27ea93431a9bb))
|
([d02a29b](https://github.com/VueTorrent/VueTorrent/commit/d02a29b409611ced6201506e5fcea1453aad24a3))
|
||||||
|
- **RSS:** "mark as read" on feed not working ([#1897](https://github.com/VueTorrent/VueTorrent/issues/1897))
|
||||||
|
([c290202](https://github.com/VueTorrent/VueTorrent/commit/c290202e21e5609be207564daee27ea93431a9bb))
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
||||||
* Disallow robots indexing of the WebUI to reduce exposure ([#1903](https://github.com/VueTorrent/VueTorrent/issues/1903)) ([b829924](https://github.com/VueTorrent/VueTorrent/commit/b8299245817b77f1c0826ed3cd33f7d9c7e25132))
|
- Disallow robots indexing of the WebUI to reduce exposure ([#1903](https://github.com/VueTorrent/VueTorrent/issues/1903))
|
||||||
* **Login:** Improve error message ([#1901](https://github.com/VueTorrent/VueTorrent/issues/1901)) ([7c3fb61](https://github.com/VueTorrent/VueTorrent/commit/7c3fb619f92c7726974f0fe0ed37f80138793afa))
|
([b829924](https://github.com/VueTorrent/VueTorrent/commit/b8299245817b77f1c0826ed3cd33f7d9c7e25132))
|
||||||
* **router:** Add catch-all route ([#1886](https://github.com/VueTorrent/VueTorrent/issues/1886)) ([e7abdb2](https://github.com/VueTorrent/VueTorrent/commit/e7abdb2ab382604f3b69672abf57f42ce9a58346))
|
- **Login:** Improve error message ([#1901](https://github.com/VueTorrent/VueTorrent/issues/1901))
|
||||||
|
([7c3fb61](https://github.com/VueTorrent/VueTorrent/commit/7c3fb619f92c7726974f0fe0ed37f80138793afa))
|
||||||
|
- **router:** Add catch-all route ([#1886](https://github.com/VueTorrent/VueTorrent/issues/1886))
|
||||||
|
([e7abdb2](https://github.com/VueTorrent/VueTorrent/commit/e7abdb2ab382604f3b69672abf57f42ce9a58346))
|
||||||
|
|
||||||
## [2.12.0](https://github.com/VueTorrent/VueTorrent/compare/v2.11.2...v2.12.0) (2024-08-18)
|
## [2.12.0](https://github.com/VueTorrent/VueTorrent/compare/v2.11.2...v2.12.0) (2024-08-18)
|
||||||
|
|
||||||
|
|
|
@ -15,5 +15,5 @@ services:
|
||||||
- ./docker/downloads:/downloads
|
- ./docker/downloads:/downloads
|
||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- '8080:8080'
|
||||||
- "6881:6881"
|
- '6881:6881'
|
||||||
- "6881:6881/udp"
|
- '6881:6881/udp'
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<link rel="icon" href="icon.svg" type="image/svg+xml" />
|
<link rel="icon" href="icon.svg" type="image/svg+xml" />
|
||||||
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
||||||
<meta name="theme-color" content="#000" />
|
<meta name="theme-color" content="#000" />
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
<title>VueTorrent</title>
|
<title>VueTorrent</title>
|
||||||
|
|
||||||
<script type="module" src="/src/globalErrorHandler.ts"></script>
|
<script type="module" src="/src/globalErrorHandler.ts"></script>
|
||||||
|
|
|
@ -65,15 +65,11 @@ const getTorrentRowColorClass = (torrent: TorrentType) => [isTorrentSelected(tor
|
||||||
@touchstart="$emit('startPress', $event.touches.item(0)!, torrent)"
|
@touchstart="$emit('startPress', $event.touches.item(0)!, torrent)"
|
||||||
@click="$emit('onTorrentClick', $event, torrent)"
|
@click="$emit('onTorrentClick', $event, torrent)"
|
||||||
@dblclick="$emit('onTorrentDblClick', torrent)">
|
@dblclick="$emit('onTorrentDblClick', torrent)">
|
||||||
|
|
||||||
<v-tooltip top>
|
<v-tooltip top>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<td
|
<td v-bind="props" :class="`pa-0 bg-torrent-${TorrentState[torrent.state].toLowerCase()}`" />
|
||||||
v-bind="props"
|
|
||||||
:class="`pa-0 bg-torrent-${TorrentState[torrent.state].toLowerCase()}`"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
{{$t(`torrent.state.${getTorrentStateValue(torrent.state)}`)}}
|
{{ $t(`torrent.state.${getTorrentStateValue(torrent.state)}`) }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
|
|
||||||
<td v-if="dashboardStore.isSelectionMultiple">
|
<td v-if="dashboardStore.isSelectionMultiple">
|
||||||
|
|
|
@ -245,6 +245,8 @@
|
||||||
},
|
},
|
||||||
"torrent": {
|
"torrent": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"avg_download_speed": "Průměrná rychlost stahování",
|
||||||
|
"avg_upload_speed": "Průměrná rychlost nahrávání",
|
||||||
"priority": "Priorita"
|
"priority": "Priorita"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,8 +215,8 @@
|
||||||
"availability": "Availability",
|
"availability": "Availability",
|
||||||
"available_peers": "Peers (swarm)",
|
"available_peers": "Peers (swarm)",
|
||||||
"available_seeds": "Seeds (swarm)",
|
"available_seeds": "Seeds (swarm)",
|
||||||
"avg_download_speed": "Avg DL Speed",
|
"avg_download_speed": "Avg. DL Speed",
|
||||||
"avg_upload_speed": "Avg UL Speed",
|
"avg_upload_speed": "Avg. UL Speed",
|
||||||
"basename_content_path": "Content Path (basename)",
|
"basename_content_path": "Content Path (basename)",
|
||||||
"basename_download_path": "Download Path (basename)",
|
"basename_download_path": "Download Path (basename)",
|
||||||
"basename_save_path": "Save Path (basename)",
|
"basename_save_path": "Save Path (basename)",
|
||||||
|
@ -245,7 +245,7 @@
|
||||||
"num_incomplete": "Peers (swarm)",
|
"num_incomplete": "Peers (swarm)",
|
||||||
"num_leechs": "Peers (connected)",
|
"num_leechs": "Peers (connected)",
|
||||||
"num_seeds": "Seeds (connected)",
|
"num_seeds": "Seeds (connected)",
|
||||||
"priority": "Queue Position",
|
"priority": "Queue position",
|
||||||
"progress": "Progress",
|
"progress": "Progress",
|
||||||
"ratio": "Ratio",
|
"ratio": "Ratio",
|
||||||
"ratio_limit": "Ratio Limit",
|
"ratio_limit": "Ratio Limit",
|
||||||
|
@ -1300,7 +1300,7 @@
|
||||||
"num_leechs": "Peers (connected)",
|
"num_leechs": "Peers (connected)",
|
||||||
"num_seeds": "Seeds (connected)",
|
"num_seeds": "Seeds (connected)",
|
||||||
"peers": "Peers",
|
"peers": "Peers",
|
||||||
"priority": "Queue",
|
"priority": "Queue Pos.",
|
||||||
"progress": "Progress",
|
"progress": "Progress",
|
||||||
"progress_bar": "Progress Bar",
|
"progress_bar": "Progress Bar",
|
||||||
"ratio": "Ratio",
|
"ratio": "Ratio",
|
||||||
|
@ -1328,24 +1328,24 @@
|
||||||
"upload_speed": "UL Speed"
|
"upload_speed": "UL Speed"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"checking_disk": "🔍 Checking Disk Files",
|
"checking_disk": "\uD83D\uDD0D Checking Disk Files",
|
||||||
"checking_resume_data": "🔍 Checking Resume Data",
|
"checking_resume_data": "\uD83D\uDD0D Checking Resume Data",
|
||||||
"dl_forced": "📥 Downloading [F]",
|
"dl_forced": "\uD83D\uDCE5 Downloading [F]",
|
||||||
"dl_paused": "⏸️ Paused",
|
"dl_paused": "⏸️ Paused",
|
||||||
"dl_queued": "⏳ Queued (DL)",
|
"dl_queued": "⏳ Queued (DL)",
|
||||||
"dl_stalled": "🕔 Stalled",
|
"dl_stalled": "\uD83D\uDD54 Stalled",
|
||||||
"downloading": "📥 Downloading",
|
"downloading": "\uD83D\uDCE5 Downloading",
|
||||||
"error": "❌ Error",
|
"error": "❌ Error",
|
||||||
"forced_meta_download": "📝 Metadata [F]",
|
"forced_meta_download": "\uD83D\uDCDD Metadata [F]",
|
||||||
"meta_download": "📝 Metadata",
|
"meta_download": "\uD83D\uDCDD Metadata",
|
||||||
"missing_files": "⚠️ Missing Files",
|
"missing_files": "⚠️ Missing Files",
|
||||||
"moving": "🚚 Moving",
|
"moving": "\uD83D\uDE9A Moving",
|
||||||
"ul_forced": "📤 Uploading [F]",
|
"ul_forced": "\uD83D\uDCE4 Uploading [F]",
|
||||||
"ul_paused": "✅ Done",
|
"ul_paused": "✅ Done",
|
||||||
"ul_queued": "⏳ Queued (UP)",
|
"ul_queued": "⏳ Queued (UP)",
|
||||||
"ul_stalled": "🌱 Seeding",
|
"ul_stalled": "\uD83C\uDF31 Seeding",
|
||||||
"unknown": "❓ Unknown",
|
"unknown": "❓ Unknown",
|
||||||
"uploading": "📤 Uploading"
|
"uploading": "\uD83D\uDCE4 Uploading"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"units": {
|
"units": {
|
||||||
|
|
|
@ -1194,7 +1194,7 @@
|
||||||
"reannounce": "Következő újrahirdetés",
|
"reannounce": "Következő újrahirdetés",
|
||||||
"save_path": "Mentési Útvonal",
|
"save_path": "Mentési Útvonal",
|
||||||
"seeding_time": "Seedelési idő",
|
"seeding_time": "Seedelési idő",
|
||||||
"seeding_time_limit": "Seedelési időkorlát",
|
"seeding_time_limit": "Seedelési idő korlát",
|
||||||
"seeds": "Seedek",
|
"seeds": "Seedek",
|
||||||
"seen_complete": "Teljesként Látva",
|
"seen_complete": "Teljesként Látva",
|
||||||
"seq_dl": "Szekvenciális Letöltés",
|
"seq_dl": "Szekvenciális Letöltés",
|
||||||
|
|
|
@ -505,7 +505,11 @@
|
||||||
},
|
},
|
||||||
"torrent": {
|
"torrent": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"priority": "Priorità"
|
"avg_download_speed": "Velocità DL Media",
|
||||||
|
"avg_upload_speed": "Velocità UL Media",
|
||||||
|
"priority": "Priorità",
|
||||||
|
"seeding_time": "Tempo di Seeding",
|
||||||
|
"seeding_time_limit": "Limite Tempo di Seeding"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1162,6 +1162,7 @@
|
||||||
"ratio_limit": "비율 제한",
|
"ratio_limit": "비율 제한",
|
||||||
"save_path": "저장 경로",
|
"save_path": "저장 경로",
|
||||||
"seeding_time": "시딩 시간",
|
"seeding_time": "시딩 시간",
|
||||||
|
"seeding_time_limit": "시딩 시간 제한",
|
||||||
"seeds": "시드",
|
"seeds": "시드",
|
||||||
"seen_complete": "완료됨",
|
"seen_complete": "완료됨",
|
||||||
"seq_dl": "순차 다운로드",
|
"seq_dl": "순차 다운로드",
|
||||||
|
|
|
@ -157,7 +157,36 @@
|
||||||
"save_path": "Definir caminho de salvamento",
|
"save_path": "Definir caminho de salvamento",
|
||||||
"seq_dl": "Download sequencial",
|
"seq_dl": "Download sequencial",
|
||||||
"title": "Avançado"
|
"title": "Avançado"
|
||||||
|
},
|
||||||
|
"copy": {
|
||||||
|
"magnet": "Magnético",
|
||||||
|
"name": "Nome",
|
||||||
|
"title": "Copiar"
|
||||||
|
},
|
||||||
|
"info": "Exibir informações",
|
||||||
|
"priority": {
|
||||||
|
"decrease": "Diminuir",
|
||||||
|
"increase": "Aumentar",
|
||||||
|
"title": "Definir posição da fila"
|
||||||
|
},
|
||||||
|
"speed_limit": {
|
||||||
|
"download": "Definir limite do download"
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"disabled_title": "Sem tags",
|
||||||
|
"remove_all": "Remover todos"
|
||||||
|
},
|
||||||
|
"top": {
|
||||||
|
"delete": "Excluir",
|
||||||
|
"force_resume": "Forçar início",
|
||||||
|
"pause": "Pausar",
|
||||||
|
"resume": "Iniciar"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"searchInputLabel": "Buscar",
|
||||||
|
"sortBy": {
|
||||||
|
"availability": "Disponibilidade",
|
||||||
|
"category": "Categoria"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"navbar": {
|
"navbar": {
|
||||||
|
|
|
@ -981,7 +981,8 @@
|
||||||
"title": "Параметры",
|
"title": "Параметры",
|
||||||
"vuetorrent": {
|
"vuetorrent": {
|
||||||
"general": {
|
"general": {
|
||||||
"backendUrl": "Серверный URL",
|
"backendUrl": "Переопределение серверного URL",
|
||||||
|
"backendUrlHint": "Оставить пустым для автоматического определения",
|
||||||
"canvasRefreshThreshold": "Количество фрагментов, при котором отключается обновление их визуализации",
|
"canvasRefreshThreshold": "Количество фрагментов, при котором отключается обновление их визуализации",
|
||||||
"canvasRenderThreshold": "Количество фрагментов для отключения их визуализации",
|
"canvasRenderThreshold": "Количество фрагментов для отключения их визуализации",
|
||||||
"check_new": "Проверить обновление",
|
"check_new": "Проверить обновление",
|
||||||
|
@ -1286,7 +1287,7 @@
|
||||||
"global_speed": "Общая скорость",
|
"global_speed": "Общая скорость",
|
||||||
"global_volume": "Отдано/загружено всего",
|
"global_volume": "Отдано/загружено всего",
|
||||||
"hash": "Хэш",
|
"hash": "Хэш",
|
||||||
"inactive_seeding_time_limit": "Ограничение по времени неактивного сидирования",
|
"inactive_seeding_time_limit": "Ограничению по времени неактивного сидирования",
|
||||||
"infohash_v1": "Хеш-сумма v1",
|
"infohash_v1": "Хеш-сумма v1",
|
||||||
"infohash_v2": "Хеш-сумма v2",
|
"infohash_v2": "Хеш-сумма v2",
|
||||||
"is_private": "Приватный торрент",
|
"is_private": "Приватный торрент",
|
||||||
|
@ -1306,7 +1307,7 @@
|
||||||
"reannounce": "Будет переанонсировано в",
|
"reannounce": "Будет переанонсировано в",
|
||||||
"save_path": "Путь сохранения",
|
"save_path": "Путь сохранения",
|
||||||
"seeding_time": "Время сидирования",
|
"seeding_time": "Время сидирования",
|
||||||
"seeding_time_limit": "Ограничение времени сидирования",
|
"seeding_time_limit": "Ограничению времени сидирования",
|
||||||
"seeds": "Сиды",
|
"seeds": "Сиды",
|
||||||
"seen_complete": "Замечен целиком",
|
"seen_complete": "Замечен целиком",
|
||||||
"seq_dl": "Последовательная загрузка",
|
"seq_dl": "Последовательная загрузка",
|
||||||
|
@ -1328,22 +1329,22 @@
|
||||||
"state": {
|
"state": {
|
||||||
"checking_disk": "Проверка файлов на диске",
|
"checking_disk": "Проверка файлов на диске",
|
||||||
"checking_resume_data": "Возобновление",
|
"checking_resume_data": "Возобновление",
|
||||||
"dl_forced": "[П] Загрузка",
|
"dl_forced": "\uD83D\uDCE5 Загрузка [П]",
|
||||||
"dl_paused": "На паузе",
|
"dl_paused": "⏸️ Пауза",
|
||||||
"dl_queued": "Очередь (Загр)",
|
"dl_queued": "⏳ Очередь (Загр)",
|
||||||
"dl_stalled": "Простаивает",
|
"dl_stalled": "\uD83D\uDD54 Простаивает",
|
||||||
"downloading": "Загрузка",
|
"downloading": "\uD83D\uDCE5 Загрузка",
|
||||||
"error": "Ошибка",
|
"error": "❌ Ошибка",
|
||||||
"forced_meta_download": "[П] Метадата",
|
"forced_meta_download": "\uD83D\uDCDD Метадата [П]",
|
||||||
"meta_download": "Метадата",
|
"meta_download": "\uD83D\uDCDD Метадата",
|
||||||
"missing_files": "Нет файлов",
|
"missing_files": "⚠️ Нет файлов",
|
||||||
"moving": "Перемещение",
|
"moving": "\uD83D\uDE9A Перемещение",
|
||||||
"ul_forced": "[П] Раздача",
|
"ul_forced": "\uD83D\uDCE4 Раздача [П]",
|
||||||
"ul_paused": "Завершено",
|
"ul_paused": "✅ Завершено",
|
||||||
"ul_queued": "Очередь (Разд)",
|
"ul_queued": "⏳ Очередь (Разд)",
|
||||||
"ul_stalled": "Сидирование",
|
"ul_stalled": "\uD83C\uDF31 Сидирование",
|
||||||
"unknown": "Неизвестно",
|
"unknown": "❓ Неизвестно",
|
||||||
"uploading": "Раздача"
|
"uploading": "\uD83D\uDCE4 Раздача"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"units": {
|
"units": {
|
||||||
|
|
|
@ -284,6 +284,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"torrent": {
|
"torrent": {
|
||||||
|
"properties": {
|
||||||
|
"avg_download_speed": "Середня швидкість завантаження",
|
||||||
|
"avg_upload_speed": "Середня швидкість роздачі",
|
||||||
|
"seeding_time": "Час сідування",
|
||||||
|
"seeding_time_limit": "Обмеження часу сідування"
|
||||||
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"checking_resume_data": "Перевірка для відновлення",
|
"checking_resume_data": "Перевірка для відновлення",
|
||||||
"dl_forced": "[Ф] Завантаження",
|
"dl_forced": "[Ф] Завантаження",
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
import {
|
import { ConnectionStatus, FilePriority, LogType, PieceState, TorrentOperatingMode, TorrentState } from '@/constants/qbit'
|
||||||
ConnectionStatus,
|
|
||||||
FilePriority,
|
|
||||||
LogType,
|
|
||||||
PieceState,
|
|
||||||
TorrentOperatingMode,
|
|
||||||
TorrentState
|
|
||||||
} from '@/constants/qbit'
|
|
||||||
import { ContentLayout, ProxyType, ResumeDataStorageType, StopCondition } from '@/constants/qbit/AppPreferences'
|
import { ContentLayout, ProxyType, ResumeDataStorageType, StopCondition } from '@/constants/qbit/AppPreferences'
|
||||||
import type {
|
import type {
|
||||||
ApplicationVersion,
|
ApplicationVersion,
|
||||||
|
@ -54,8 +47,7 @@ export default class MockProvider implements IProvider {
|
||||||
.fill('')
|
.fill('')
|
||||||
.map((_, i) => (i + 1).toString(16).padStart(40, '0'))
|
.map((_, i) => (i + 1).toString(16).padStart(40, '0'))
|
||||||
|
|
||||||
private constructor() {
|
private constructor() {}
|
||||||
}
|
|
||||||
|
|
||||||
static getInstance(): MockProvider {
|
static getInstance(): MockProvider {
|
||||||
if (!MockProvider.instance) {
|
if (!MockProvider.instance) {
|
||||||
|
@ -95,7 +87,7 @@ export default class MockProvider implements IProvider {
|
||||||
infohash_v1: hash,
|
infohash_v1: hash,
|
||||||
infohash_v2: '',
|
infohash_v2: '',
|
||||||
last_activity: last_activity.getTime() / 1000,
|
last_activity: last_activity.getTime() / 1000,
|
||||||
magnet_uri: `magnet:?xt=urn:btih:${ hash }&dn=${ name }&tr=${ tracker }`,
|
magnet_uri: `magnet:?xt=urn:btih:${hash}&dn=${name}&tr=${tracker}`,
|
||||||
max_inactive_seeding_time: -1,
|
max_inactive_seeding_time: -1,
|
||||||
max_ratio: -1,
|
max_ratio: -1,
|
||||||
max_seeding_time: -1,
|
max_seeding_time: -1,
|
||||||
|
@ -406,7 +398,7 @@ export default class MockProvider implements IProvider {
|
||||||
result: {
|
result: {
|
||||||
data: 'Ok.',
|
data: 'Ok.',
|
||||||
status: 200,
|
status: 200,
|
||||||
statusText: 'OK',
|
statusText: 'OK'
|
||||||
} as AxiosResponse<string, string>
|
} as AxiosResponse<string, string>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue