mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-10 11:40:28 +08:00
Merge branch 'smart_core' of https://github.com/mihomo-party-org/clash-party into smart_core
This commit is contained in:
commit
0cc1d238c9
@ -56,7 +56,8 @@ export const defaultConfig: IAppConfig = {
|
||||
showRedirPort: 0,
|
||||
enableRedirPort: false,
|
||||
showTproxyPort: 0,
|
||||
enableTproxyPort: false
|
||||
enableTproxyPort: false,
|
||||
testProfileOnStart: true
|
||||
}
|
||||
|
||||
export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
|
||||
|
||||
@ -21,6 +21,7 @@ const MihomoConfig: React.FC = () => {
|
||||
delayTestTimeout,
|
||||
githubToken = '',
|
||||
autoCloseConnection = true,
|
||||
testProfileOnStart = true,
|
||||
pauseSSID = [],
|
||||
delayTestUrl,
|
||||
userAgent,
|
||||
@ -228,6 +229,25 @@ const MihomoConfig: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
<SettingItem
|
||||
title={t('mihomo.testProfileOnStart')}
|
||||
actions={
|
||||
<Tooltip content={t('mihomo.testProfileOnStartTooltip')}>
|
||||
<Button isIconOnly size="sm" variant="light">
|
||||
<IoIosHelpCircle className="text-lg" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
}
|
||||
divider
|
||||
>
|
||||
<Switch
|
||||
size="sm"
|
||||
isSelected={testProfileOnStart}
|
||||
onValueChange={(v) => {
|
||||
patchAppConfig({ testProfileOnStart: v })
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
<SettingItem title={t('mihomo.pauseSSID.title')}>
|
||||
{pauseSSIDInput.join('') !== pauseSSID.join('') && (
|
||||
<Button
|
||||
|
||||
@ -160,6 +160,8 @@
|
||||
"mihomo.workDir.tooltip": "Enable to avoid conflicts when different subscriptions have proxy groups with the same name",
|
||||
"mihomo.controlSniff": "Control Domain Sniffing",
|
||||
"mihomo.autoCloseConnection": "Auto Close Connection",
|
||||
"mihomo.testProfileOnStart": "Test Profile on Start",
|
||||
"mihomo.testProfileOnStartTooltip": "Check if the configuration file is valid before starting the core. If invalid, prevent startup and display an error message",
|
||||
"mihomo.pauseSSID.title": "Direct Connection for Specific WiFi SSIDs",
|
||||
"mihomo.pauseSSID.placeholder": "Enter SSID",
|
||||
"mihomo.title": "Core Settings",
|
||||
|
||||
@ -141,6 +141,8 @@
|
||||
"mihomo.workDir.tooltip": "برای جلوگیری از تداخل گروههای پراکسی با نام یکسان در اشتراکهای مختلف",
|
||||
"mihomo.controlSniff": "کنترل تشخیص دامنه",
|
||||
"mihomo.autoCloseConnection": "بستن خودکار اتصال",
|
||||
"mihomo.testProfileOnStart": "بررسی پروفایل در شروع",
|
||||
"mihomo.testProfileOnStartTooltip": "قبل از شروع هسته، فایل پیکربندی را بررسی کنید. اگر نامعتبر باشد، شروع مسدود شده و پیام خطا نمایش داده میشود",
|
||||
"mihomo.pauseSSID.title": "اتصال مستقیم برای SSIDهای خاص",
|
||||
"mihomo.pauseSSID.placeholder": "SSID را وارد کنید",
|
||||
"mihomo.coreVersion": "نسخه هسته",
|
||||
|
||||
@ -141,6 +141,8 @@
|
||||
"mihomo.workDir.tooltip": "Включите для избежания конфликтов при наличии групп прокси с одинаковыми именами в разных подписках",
|
||||
"mihomo.controlSniff": "Управление сниффингом доменов",
|
||||
"mihomo.autoCloseConnection": "Автозакрытие соединений",
|
||||
"mihomo.testProfileOnStart": "Проверять профиль при запуске",
|
||||
"mihomo.testProfileOnStartTooltip": "Проверять конфигурационный файл перед запуском ядра. Если файл недействителен, запуск будет заблокирован с отображением сообщения об ошибке",
|
||||
"mihomo.pauseSSID.title": "Прямое подключение для определённых WiFi SSID",
|
||||
"mihomo.pauseSSID.placeholder": "Введите SSID",
|
||||
"mihomo.coreVersion": "Версия ядра",
|
||||
|
||||
@ -163,6 +163,8 @@
|
||||
"mihomo.workDir.tooltip": "启用后可避免不同订阅中存在相同名称的代理组时发生冲突",
|
||||
"mihomo.controlSniff": "控制域名嗅探",
|
||||
"mihomo.autoCloseConnection": "自动关闭连接",
|
||||
"mihomo.testProfileOnStart": "启动时检查配置文件",
|
||||
"mihomo.testProfileOnStartTooltip": "启动内核前检查配置文件是否有效,若无效则阻止启动并显示错误信息",
|
||||
"mihomo.pauseSSID.title": "指定 WiFi SSID 直连",
|
||||
"mihomo.pauseSSID.placeholder": "输入 SSID",
|
||||
"mihomo.coreVersion": "内核版本",
|
||||
|
||||
@ -163,6 +163,8 @@
|
||||
"mihomo.workDir.tooltip": "啟用後可避免不同訂閱中存在相同名稱的代理組時發生衝突",
|
||||
"mihomo.controlSniff": "控制域名嗅探",
|
||||
"mihomo.autoCloseConnection": "自動關閉連接",
|
||||
"mihomo.testProfileOnStart": "啟動時檢查配置檔案",
|
||||
"mihomo.testProfileOnStartTooltip": "啟動內核前檢查配置檔案是否有效,若無效則阻止啟動並顯示錯誤訊息",
|
||||
"mihomo.pauseSSID.title": "指定 Wi-Fi SSID 直連",
|
||||
"mihomo.pauseSSID.placeholder": "輸入 SSID",
|
||||
"mihomo.coreVersion": "內核版本",
|
||||
|
||||
1
src/shared/types.d.ts
vendored
1
src/shared/types.d.ts
vendored
@ -328,6 +328,7 @@ interface IAppConfig {
|
||||
enableRedirPort?: boolean
|
||||
showTproxyPort?: number
|
||||
enableTproxyPort?: boolean
|
||||
testProfileOnStart?: boolean
|
||||
}
|
||||
|
||||
interface IMihomoTunConfig {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user