fix: 移除冲突的 node-polyfills(改用 CDN 加载 WebTorrent)+ 加 P2P 进度翻译与顶栏活动指示灯

This commit is contained in:
ice-a
2026-10-16 19:48:04 +08:00
parent 7e65ae975f
commit 895977626b
7 changed files with 90 additions and 15 deletions
+6 -1
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { locale, setLocale, type Locale } from '~/utils/i18n'
import { locale, setLocale, translateText, type Locale } from '~/utils/i18n'
import { p2pActive } from '~/utils/clientTorrent'
const route = useRoute()
const health = useHealth()
@@ -50,6 +51,10 @@ async function logout() {
<i class="dot" />
{{ health?.webTorrent ? '磁力解析就绪' : '磁力解析(缓存模式)' }}
</span>
<span class="pill hide-sm" :class="p2pActive ? 'on' : 'dim'">
<i class="dot" />
{{ p2pActive ? translateText('P2P 活动中') : translateText('P2P 空闲') }}
</span>
<NuxtLink to="/settings" class="pill" :class="mongoPill.cls">
<i class="dot" />
{{ mongoPill.text }}