diff --git a/src/components/proxy/proxy-chain.tsx b/src/components/proxy/proxy-chain.tsx index cef8ffcf9..68bd78385 100644 --- a/src/components/proxy/proxy-chain.tsx +++ b/src/components/proxy/proxy-chain.tsx @@ -21,6 +21,7 @@ import { DragIndicator, Link, LinkOff, + WarningRounded, } from '@mui/icons-material' import { Alert, @@ -40,6 +41,7 @@ import { selectNodeForGroup, } from 'tauri-plugin-mihomo-api' +import { TooltipIcon } from '@/components/base' import { useAppRefreshers, useProxiesData } from '@/providers/app-data-context' import { updateProxyChainConfigInRuntime } from '@/services/cmds' import { debugLog } from '@/utils/debug' @@ -251,6 +253,7 @@ export const ProxyChain = ({ }: ProxyChainProps) => { const theme = useTheme() const { t } = useTranslation() + const chainWarning = t('proxies.page.chain.warning') const { proxies } = useProxiesData() const { refreshProxy } = useAppRefreshers() const [isConnecting, setIsConnecting] = useState(false) @@ -499,7 +502,15 @@ export const ProxyChain = ({ mb: 2, }} > - {t('proxies.page.chain.header')} + + {t('proxies.page.chain.header')} + + {proxyChain.length > 0 && ( { const normalizedMode = clashConfig?.mode?.toLowerCase() const curMode = isMode(normalizedMode) ? normalizedMode : undefined + const chainWarning = t('proxies.page.chain.warning') const onChangeMode = useLockFn(async (mode: Mode) => { // 断开连接 @@ -134,9 +135,23 @@ const ProxyPage = () => { full contentStyle={{ height: '101.5%' }} title={ - isChainMode - ? t('proxies.page.title.chainMode') - : t('proxies.page.title.default') + isChainMode ? ( + + {t('proxies.page.title.chainMode')} + + + ) : ( + t('proxies.page.title.default') + ) } header={ diff --git a/src/types/generated/i18n-keys.ts b/src/types/generated/i18n-keys.ts index 529188cf8..8bbe53909 100644 --- a/src/types/generated/i18n-keys.ts +++ b/src/types/generated/i18n-keys.ts @@ -238,6 +238,7 @@ export const translationKeys = [ 'proxies.page.tooltips.filter', 'proxies.page.placeholders.delayCheckUrl', 'proxies.page.chain.header', + 'proxies.page.chain.warning', 'proxies.page.chain.empty', 'proxies.page.chain.instruction', 'proxies.page.chain.minimumNodes', diff --git a/src/types/generated/i18n-resources.ts b/src/types/generated/i18n-resources.ts index ff067b820..9834e7901 100644 --- a/src/types/generated/i18n-resources.ts +++ b/src/types/generated/i18n-resources.ts @@ -439,6 +439,7 @@ export interface TranslationResources { instruction: string minimumNodes: string minimumNodesHint: string + warning: string } labels: { delayCheckReset: string