mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-22 20:32:15 +08:00
feat(settings): add update channel selector
Expose `update_channel` in Misc settings so users can pick the mirror fallbacks, GitHub directly, or GitHub through the Clash proxy. Refs: clash-verge-rev/clash-verge-rev#8706 Assisted-by: Claude:claude-opus-5.5 [gh-stack] Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
|
||||
- 新增连接页面按网络协议(TCP/UDP)筛选连接
|
||||
- 新增规则模式下在规则流量未经过的代理组选节点时,自动将首个包含该组的 `select` 代理组切换到该组,可在「杂项设置」关闭
|
||||
- 新增「杂项设置」中的「更新通道」,可选择直连 GitHub 或经代理从 GitHub 下载更新
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ const buildInitialValues = (verge?: IVergeConfig | null) => ({
|
||||
autoCloseConnection: verge?.auto_close_connection ?? true,
|
||||
autoSwitchSelectorGroup: verge?.auto_switch_selector_group ?? true,
|
||||
autoCheckUpdate: verge?.auto_check_update ?? true,
|
||||
updateChannel: verge?.update_channel || 'auto',
|
||||
enableBuiltinEnhanced: verge?.enable_builtin_enhanced ?? true,
|
||||
proxyLayoutColumn: verge?.proxy_layout_column || 6,
|
||||
enableAutoDelayDetection: verge?.enable_auto_delay_detection ?? false,
|
||||
@@ -58,6 +59,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
auto_close_connection: values.autoCloseConnection,
|
||||
auto_switch_selector_group: values.autoSwitchSelectorGroup,
|
||||
auto_check_update: values.autoCheckUpdate,
|
||||
update_channel: values.updateChannel,
|
||||
enable_builtin_enhanced: values.enableBuiltinEnhanced,
|
||||
proxy_layout_column: values.proxyLayoutColumn,
|
||||
enable_auto_delay_detection: values.enableAutoDelayDetection,
|
||||
@@ -242,6 +244,36 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
|
||||
/>
|
||||
</ListItem>
|
||||
|
||||
<ListItem
|
||||
data-setting-target="settings.modals.misc.fields.updateChannel"
|
||||
sx={{ padding: '5px 2px' }}
|
||||
>
|
||||
<ListItemText
|
||||
primary={t('settings.modals.misc.fields.updateChannel')}
|
||||
/>
|
||||
<Select
|
||||
size="small"
|
||||
sx={{ width: 160, '> div': { py: '7.5px' } }}
|
||||
value={values.updateChannel}
|
||||
onChange={(e) =>
|
||||
setValues((v) => ({
|
||||
...v,
|
||||
updateChannel: e.target.value as string,
|
||||
}))
|
||||
}
|
||||
>
|
||||
<MenuItem value="auto">
|
||||
{t('settings.modals.misc.options.updateChannel.auto')}
|
||||
</MenuItem>
|
||||
<MenuItem value="github">
|
||||
{t('settings.modals.misc.options.updateChannel.github')}
|
||||
</MenuItem>
|
||||
<MenuItem value="github_proxy">
|
||||
{t('settings.modals.misc.options.updateChannel.githubProxy')}
|
||||
</MenuItem>
|
||||
</Select>
|
||||
</ListItem>
|
||||
|
||||
<ListItem
|
||||
data-setting-target="settings.modals.misc.fields.enableBuiltinEnhanced"
|
||||
sx={{ padding: '5px 2px' }}
|
||||
|
||||
@@ -483,6 +483,7 @@ const settingsCatalog: readonly SettingEntry[] = [
|
||||
'settings.modals.misc.fields.autoSwitchSelectorGroup':
|
||||
'auto switch select group',
|
||||
'settings.modals.misc.fields.autoCheckUpdate': 'auto check update',
|
||||
'settings.modals.misc.fields.updateChannel': 'update channel source',
|
||||
'settings.modals.misc.fields.enableBuiltinEnhanced':
|
||||
'enable builtin enhanced',
|
||||
'settings.modals.misc.fields.proxyLayoutColumns': 'proxy layout columns',
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "إغلاق الاتصالات تلقائيًا",
|
||||
"autoSwitchSelectorGroup": "تبديل مجموعة select تلقائيًا",
|
||||
"autoCheckUpdate": "فحص التحديث تلقائيًا",
|
||||
"updateChannel": "قناة التحديث",
|
||||
"enableBuiltinEnhanced": "تفعيل التحسين المدمج",
|
||||
"proxyLayoutColumns": "أعمدة عرض الوكيل",
|
||||
"autoLogClean": "تنظيف السجلات تلقائيًا",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "عدم التنظيف أبدًا",
|
||||
"retainDays": "الاحتفاظ لمدة {{n}} يومًا"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "تلقائي (مرايا)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub عبر الوكيل"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Verbindungen automatisch schließen",
|
||||
"autoSwitchSelectorGroup": "Select-Gruppe automatisch umschalten",
|
||||
"autoCheckUpdate": "Automatisch auf Updates prüfen",
|
||||
"updateChannel": "Update-Kanal",
|
||||
"enableBuiltinEnhanced": "Eingebaute Verbesserungen aktivieren",
|
||||
"proxyLayoutColumns": "Anzahl der Spalten im Proxy-Layout",
|
||||
"autoLogClean": "Protokolle automatisch bereinigen",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Nie bereinigen",
|
||||
"retainDays": "{{n}} Tage behalten"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Automatisch (Mirrors)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub über Proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Auto Close Connections",
|
||||
"autoSwitchSelectorGroup": "Auto Switch Select Group",
|
||||
"autoCheckUpdate": "Auto Check Update",
|
||||
"updateChannel": "Update Channel",
|
||||
"enableBuiltinEnhanced": "Enable Builtin Enhanced",
|
||||
"proxyLayoutColumns": "Proxy Layout Columns",
|
||||
"autoLogClean": "Auto Log Clean",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Never Clean",
|
||||
"retainDays": "Retain {{n}} Days"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Auto (Mirrors)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub via Proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Cerrar conexiones automáticamente",
|
||||
"autoSwitchSelectorGroup": "Cambiar grupo select automáticamente",
|
||||
"autoCheckUpdate": "Comprobar actualizaciones automáticamente",
|
||||
"updateChannel": "Canal de actualización",
|
||||
"enableBuiltinEnhanced": "Habilitar funciones mejoradas integradas",
|
||||
"proxyLayoutColumns": "Número de columnas en la disposición de la página de proxy",
|
||||
"autoLogClean": "Limpiar registros automáticamente",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "No limpiar",
|
||||
"retainDays": "Retener {{n}} días"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Automático (espejos)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub mediante proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "بستن خودکار اتصالات",
|
||||
"autoSwitchSelectorGroup": "تغییر خودکار گروه select",
|
||||
"autoCheckUpdate": "بررسی خودکار بهروزرسانی",
|
||||
"updateChannel": "کانال بهروزرسانی",
|
||||
"enableBuiltinEnhanced": "فعال کردن تقویت داخلی",
|
||||
"proxyLayoutColumns": "ستون چیدمان پراکسی",
|
||||
"autoLogClean": "پاکسازی خودکار لاگ",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "هرگز پاک نکن",
|
||||
"retainDays": "نگهداری به مدت {{n}} روز"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "خودکار (آینهها)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub از طریق پروکسی"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Tutup Koneksi Otomatis",
|
||||
"autoSwitchSelectorGroup": "Alihkan Grup Select Otomatis",
|
||||
"autoCheckUpdate": "Periksa Pembaruan Otomatis",
|
||||
"updateChannel": "Saluran Pembaruan",
|
||||
"enableBuiltinEnhanced": "Aktifkan Peningkatan Bawaan",
|
||||
"proxyLayoutColumns": "Kolom Tata Letak Proksi",
|
||||
"autoLogClean": "Pembersihan Log Otomatis",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Jangan Pernah Bersihkan",
|
||||
"retainDays": "Simpan {{n}} Hari"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Otomatis (Mirror)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub melalui Proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "接続を自動的に閉じる",
|
||||
"autoSwitchSelectorGroup": "ノード選択時にグループを連動",
|
||||
"autoCheckUpdate": "自動更新チェック",
|
||||
"updateChannel": "アップデートチャネル",
|
||||
"enableBuiltinEnhanced": "組み込み拡張機能を有効にする",
|
||||
"proxyLayoutColumns": "プロキシページのレイアウト列数",
|
||||
"autoLogClean": "ログを自動的にクリーンアップ",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "クリーンアップしない",
|
||||
"retainDays": "{{n}}日間保持"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "自動(ミラー)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub(プロキシ経由)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "연결 자동 종료",
|
||||
"autoSwitchSelectorGroup": "노드 선택 시 그룹 연동",
|
||||
"autoCheckUpdate": "업데이트 자동 확인",
|
||||
"updateChannel": "업데이트 채널",
|
||||
"enableBuiltinEnhanced": "내장 향상 기능 사용",
|
||||
"proxyLayoutColumns": "프록시 레이아웃 열 수",
|
||||
"autoLogClean": "로그 자동 정리",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "정리 안 함",
|
||||
"retainDays": "{{n}}일 보관"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "자동 (미러)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub (프록시 경유)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Fechar Conexões Automaticamente",
|
||||
"autoSwitchSelectorGroup": "Alternar Grupo Select Automaticamente",
|
||||
"autoCheckUpdate": "Verificar Atualizações Automaticamente",
|
||||
"updateChannel": "Canal de atualização",
|
||||
"enableBuiltinEnhanced": "Ativar Aprimoramento Integrado",
|
||||
"proxyLayoutColumns": "Colunas do Layout de Proxy",
|
||||
"autoLogClean": "Limpeza Automática de Logs",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Nunca Limpar",
|
||||
"retainDays": "Manter {{n}} Dias"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Automático (espelhos)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub via proxy"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Автоматическое закрытие соединений",
|
||||
"autoSwitchSelectorGroup": "Автопереключение группы select",
|
||||
"autoCheckUpdate": "Автоматическая проверка обновлений",
|
||||
"updateChannel": "Канал обновлений",
|
||||
"enableBuiltinEnhanced": "Включить встроенные улучшения",
|
||||
"proxyLayoutColumns": "Количество столбцов в макете прокси",
|
||||
"autoLogClean": "Автоматическая очистка логов",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Никогда не очищать",
|
||||
"retainDays": "Хранить {{n}} дней"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Авто (зеркала)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub через прокси"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Bağlantıları Otomatik Kapat",
|
||||
"autoSwitchSelectorGroup": "Select Grubunu Otomatik Değiştir",
|
||||
"autoCheckUpdate": "Otomatik Güncelleme Kontrolü",
|
||||
"updateChannel": "Güncelleme Kanalı",
|
||||
"enableBuiltinEnhanced": "Yerleşik Geliştirilmiş Modu Etkinleştir",
|
||||
"proxyLayoutColumns": "Vekil Düzeni Sütunları",
|
||||
"autoLogClean": "Otomatik Günlük Temizleme",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Asla Temizleme",
|
||||
"retainDays": "{{n}} Gün Sakla"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Otomatik (Yansılar)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "Proxy üzerinden GitHub"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "Тоташуларны автоматик ябу",
|
||||
"autoSwitchSelectorGroup": "Select төркемен автоматик күчерү",
|
||||
"autoCheckUpdate": "Яңартуларны автоматик тикшерү",
|
||||
"updateChannel": "Яңарту каналы",
|
||||
"enableBuiltinEnhanced": "Эчке камилләштерүне кабызу",
|
||||
"proxyLayoutColumns": "Прокси күрсәтү баганалары саны",
|
||||
"autoLogClean": "Логларны автоматик чистарту",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "Беркайчан чистартмаска",
|
||||
"retainDays": "{{n}} көн саклау"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "Автоматик (көзгеләр)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "Прокси аша GitHub"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "自动关闭连接",
|
||||
"autoSwitchSelectorGroup": "选择节点时联动代理组",
|
||||
"autoCheckUpdate": "自动检查更新",
|
||||
"updateChannel": "更新通道",
|
||||
"enableBuiltinEnhanced": "内置增强功能",
|
||||
"proxyLayoutColumns": "代理页布局列数",
|
||||
"autoLogClean": "自动清理日志",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "不清理",
|
||||
"retainDays": "保留 {{n}} 天"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "自动(镜像)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub(经代理)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"autoCloseConnections": "自動關閉連線",
|
||||
"autoSwitchSelectorGroup": "選擇節點時聯動代理組",
|
||||
"autoCheckUpdate": "自動檢查更新",
|
||||
"updateChannel": "更新通道",
|
||||
"enableBuiltinEnhanced": "內建增強功能",
|
||||
"proxyLayoutColumns": "代理頁面欄數",
|
||||
"autoLogClean": "自動清理日誌",
|
||||
@@ -435,6 +436,11 @@
|
||||
"autoLogClean": {
|
||||
"never": "不清理",
|
||||
"retainDays": "保留 {{n}} 天"
|
||||
},
|
||||
"updateChannel": {
|
||||
"auto": "自動(鏡像)",
|
||||
"github": "GitHub",
|
||||
"githubProxy": "GitHub(經代理)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -657,6 +657,7 @@ export const translationKeys = [
|
||||
'settings.modals.misc.fields.autoCloseConnections',
|
||||
'settings.modals.misc.fields.autoSwitchSelectorGroup',
|
||||
'settings.modals.misc.fields.autoCheckUpdate',
|
||||
'settings.modals.misc.fields.updateChannel',
|
||||
'settings.modals.misc.fields.enableBuiltinEnhanced',
|
||||
'settings.modals.misc.fields.proxyLayoutColumns',
|
||||
'settings.modals.misc.fields.autoLogClean',
|
||||
@@ -672,6 +673,9 @@ export const translationKeys = [
|
||||
'settings.modals.misc.options.proxyLayoutColumns.auto',
|
||||
'settings.modals.misc.options.autoLogClean.never',
|
||||
'settings.modals.misc.options.autoLogClean.retainDays',
|
||||
'settings.modals.misc.options.updateChannel.auto',
|
||||
'settings.modals.misc.options.updateChannel.github',
|
||||
'settings.modals.misc.options.updateChannel.githubProxy',
|
||||
'settings.modals.update.title',
|
||||
'settings.modals.update.actions.goToRelease',
|
||||
'settings.modals.update.actions.update',
|
||||
|
||||
@@ -1131,6 +1131,7 @@ export interface TranslationResources {
|
||||
defaultLatencyTimeout: string
|
||||
enableBuiltinEnhanced: string
|
||||
proxyLayoutColumns: string
|
||||
updateChannel: string
|
||||
}
|
||||
options: {
|
||||
autoLogClean: {
|
||||
@@ -1140,6 +1141,11 @@ export interface TranslationResources {
|
||||
proxyLayoutColumns: {
|
||||
auto: string
|
||||
}
|
||||
updateChannel: {
|
||||
auto: string
|
||||
github: string
|
||||
githubProxy: string
|
||||
}
|
||||
}
|
||||
title: string
|
||||
tooltips: {
|
||||
|
||||
Reference in New Issue
Block a user