chore: add descriptions for Miscellaneous
Some checks are pending
Alpha Build / alpha (macos-latest, aarch64-apple-darwin) (push) Waiting to run
Alpha Build / alpha (macos-latest, x86_64-apple-darwin) (push) Waiting to run
Alpha Build / alpha (windows-latest, aarch64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha (windows-latest, i686-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha (windows-latest, x86_64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, aarch64-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, armv7-unknown-linux-gnueabihf) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, i686-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-linux (ubuntu-latest, x86_64-unknown-linux-gnu) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (arm64, windows-latest, aarch64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (x64, windows-latest, x86_64-pc-windows-msvc) (push) Waiting to run
Alpha Build / alpha-for-fixed-webview2 (x86, windows-latest, i686-pc-windows-msvc) (push) Waiting to run
Alpha Build / Update tag (push) Blocked by required conditions

This commit is contained in:
dongchengjie 2024-06-28 15:54:27 +08:00
parent 834edcd03e
commit 83b25920ea
7 changed files with 58 additions and 16 deletions

View File

@ -122,7 +122,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
return (
<BaseDialog
open={open}
title={t("Clash Port")}
title={t("Port Config")}
contentSx={{ width: 300 }}
okBtn={t("Save")}
cancelBtn={t("Cancel")}
@ -132,7 +132,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
>
<List>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Mixed Port" />
<ListItemText primary={t("Mixed Port")} />
<TextField
size="small"
autoComplete="off"
@ -144,7 +144,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
/>
</ListItem>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Socks Port" />
<ListItemText primary={t("Socks Port")} />
<TextField
size="small"
autoComplete="off"
@ -167,7 +167,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
/>
</ListItem>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Http Port" />
<ListItemText primary={t("Http Port")} />
<TextField
size="small"
autoComplete="off"
@ -191,7 +191,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem>
{OS !== "windows" && (
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Redir Port" />
<ListItemText primary={t("Redir Port")} />
<TextField
size="small"
autoComplete="off"
@ -216,7 +216,7 @@ export const ClashPortViewer = forwardRef<DialogRef>((props, ref) => {
)}
{OS === "linux" && (
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary="Tproxy Port" />
<ListItemText primary={t("Tproxy Port")} />
<TextField
size="small"
autoComplete="off"

View File

@ -127,7 +127,7 @@ export const LayoutViewer = forwardRef<DialogRef>((props, ref) => {
</Item>
<Item>
<ListItemText primary={t("Menu Icon")} />
<ListItemText primary={t("Nav Icon")} />
<GuardState
value={verge?.menu_icon ?? "monochrome"}
onCatch={onError}

View File

@ -12,6 +12,7 @@ import {
} from "@mui/material";
import { useVerge } from "@/hooks/use-verge";
import { BaseDialog, DialogRef, Notice, Switch } from "@/components/base";
import { TooltipIcon } from "@/components/base/base-tooltip-icon";
export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
const { t } = useTranslation();
@ -98,13 +99,18 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary={t("Auto Close Connections")} />
<ListItemText
primary={t("Auto Close Connections")}
sx={{ maxWidth: "fit-content" }}
/>
<TooltipIcon title={t("Auto Close Connections Info")} />
<Switch
edge="end"
checked={values.autoCloseConnection}
onChange={(_, c) =>
setValues((v) => ({ ...v, autoCloseConnection: c }))
}
sx={{ marginLeft: "auto" }}
/>
</ListItem>
@ -120,13 +126,18 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary={t("Enable Builtin Enhanced")} />
<ListItemText
primary={t("Enable Builtin Enhanced")}
sx={{ maxWidth: "fit-content" }}
/>
<TooltipIcon title={t("Enable Builtin Enhanced Info")} />
<Switch
edge="end"
checked={values.enableBuiltinEnhanced}
onChange={(_, c) =>
setValues((v) => ({ ...v, enableBuiltinEnhanced: c }))
}
sx={{ marginLeft: "auto" }}
/>
</ListItem>
@ -181,14 +192,18 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
</ListItem>
<ListItem sx={{ padding: "5px 2px" }}>
<ListItemText primary={t("Default Latency Test")} />
<ListItemText
primary={t("Default Latency Test")}
sx={{ maxWidth: "fit-content" }}
/>
<TooltipIcon title={t("Default Latency Test Info")} />
<TextField
size="small"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
sx={{ width: 250 }}
sx={{ width: 250, marginLeft: "auto" }}
value={values.defaultLatencyTest}
placeholder="http://1.1.1.1"
onChange={(e) =>

View File

@ -206,7 +206,7 @@
"Memory Usage": "Memory Usage",
"Memory Cleanup": "Tap to clean up memory",
"Proxy Group Icon": "Proxy Group Icon",
"Menu Icon": "Menu Icon",
"Nav Icon": "Nav Icon",
"Monochrome": "Monochrome",
"Colorful": "Colorful",
"Tray Icon": "Tray Icon",
@ -216,14 +216,17 @@
"Miscellaneous": "Miscellaneous",
"App Log Level": "App Log Level",
"Auto Close Connections": "Auto Close Connections",
"Auto Close Connections Info": "Terminate established connections when the proxy group selection or proxy mode changes",
"Auto Check Update": "Auto Check Update",
"Enable Builtin Enhanced": "Enable Builtin Enhanced",
"Enable Builtin Enhanced Info": "Compatibility handling for the configuration file",
"Proxy Layout Columns": "Proxy Layout Columns",
"Auto Columns": "Auto Columns",
"Auto Log Clean": "Auto Log Clean",
"Never Clean": "Never Clean",
"Retain _n Days": "Retain {{n}} Days",
"Default Latency Test": "Default Latency Test",
"Default Latency Test Info": "Used for HTTP client request testing only and won't make a difference to the configuration file",
"Default Latency Timeout": "Default Latency Timeout",
"Hotkey Setting": "Hotkey Setting",
"open_or_close_dashboard": "Open/Close Dashboard",

View File

@ -160,6 +160,11 @@
"Log Level": "سطح لاگ",
"Port Config": "پیکربندی پورت",
"Random Port": "پورت تصادفی",
"Mixed Port": "پورت پروکسی ترکیبی",
"Socks Port": "پورت پروکسی Socks",
"Http Port": "پورت پروکسی Http(s)",
"Redir Port": "پورت پروکسی شفاف Redir",
"Tproxy Port": "پورت پروکسی شفاف Tproxy",
"External": "خارجی",
"External Controller": "کنترل‌کننده خارجی",
"Core Secret": "رمز اصلی",
@ -206,7 +211,7 @@
"Memory Usage": "استفاده از حافظه",
"Memory Cleanup": "برای پاکسازی حافظه ضربه بزنید",
"Proxy Group Icon": "آیکون گروه پراکسی",
"Menu Icon": "آیکون منو",
"Nav Icon": "آیکون ناوبری",
"Monochrome": "تک رنگ",
"Colorful": "رنگارنگ",
"Tray Icon": "آیکون سینی سیستم",
@ -216,14 +221,17 @@
"Miscellaneous": "متفرقه",
"App Log Level": "سطح لاگ برنامه",
"Auto Close Connections": "بستن خودکار اتصالات",
"Auto Close Connections Info": "اتصالات برقرار شده را هنگام تغییر انتخاب گروه پروکسی یا حالت پروکسی خاتمه دهید",
"Auto Check Update": "بررسی خودکار به‌روزرسانی",
"Enable Builtin Enhanced": "فعال کردن تقویت داخلی",
"Enable Builtin Enhanced Info": "مدیریت سازگاری برای فایل پیکربندی",
"Proxy Layout Columns": "ستون چیدمان پراکسی",
"Auto Columns": "ستون‌های خودکار",
"Auto Log Clean": "پاکسازی خودکار لاگ",
"Never Clean": "هرگز پاک نکن",
"Retain _n Days": "نگهداری به مدت {{n}} روز",
"Default Latency Test": "آزمون تأخیر پیش‌فرض",
"Default Latency Test Info": "فقط برای تست درخواست‌های کلاینت HTTP استفاده می‌شود و بر فایل پیکربندی تأثیری نخواهد داشت",
"Default Latency Timeout": "زمان انتظار تأخیر پیش‌فرض",
"Hotkey Setting": "تنظیمات کلیدهای میانبر",
"open_or_close_dashboard": "باز/بستن داشبورد",

View File

@ -160,6 +160,11 @@
"Log Level": "Уровень логов",
"Port Config": "Настройка порта",
"Random Port": "Случайный порт",
"Mixed Port": "Смешанный прокси-порт",
"Socks Port": "Порт Socks-прокси",
"Http Port": "Порт Http(s)-прокси",
"Redir Port": "Порт прозрачного прокси Redir",
"Tproxy Port": "Порт прозрачного прокси Tproxy",
"External": "Внешний",
"External Controller": "Адрес прослушивания внешнего контроллера",
"Core Secret": "Секрет",
@ -206,7 +211,7 @@
"Memory Usage": "Использование памяти",
"Memory Cleanup": "Нажмите, чтобы очистить память",
"Proxy Group Icon": "Иконка Группы прокси",
"Menu Icon": "Иконка меню",
"Nav Icon": "Иконка навигации",
"Monochrome": "Монохромный",
"Colorful": "Полноцветный",
"Tray Icon": "Иконка лотка",
@ -216,14 +221,17 @@
"Miscellaneous": "Настройки Прочие",
"App Log Level": "Уровень журнала приложения",
"Auto Close Connections": "Автоматическое закрытие соединений",
"Auto Close Connections Info": "Завершить установленные соединения при изменении выбора группы прокси или режима прокси",
"Auto Check Update": "Автоматическая проверка обновлений",
"Enable Builtin Enhanced": "Включить встроенные улучшения",
"Enable Builtin Enhanced Info": "Обработка совместимости для файла конфигурации",
"Proxy Layout Columns": "Количество столбцов в макете прокси",
"Auto Columns": "Авто колонки",
"Auto Log Clean": "Автоматическая очистка журналов",
"Never Clean": "Никогда не очищать",
"Retain _n Days": "Сохранять {{n}} дней",
"Default Latency Test": "Ссылка на тестирование задержки по умолчанию",
"Default Latency Test Info": "Используется только для тестирования HTTP-запросов клиента и не влияет на файл конфигурации",
"Default Latency Timeout": "Таймаут задержки по умолчанию",
"Hotkey Setting": "Настройки клавиатурных сокращений",
"open_or_close_dashboard": "Открыть/Закрыть панель управления",

View File

@ -160,6 +160,11 @@
"Log Level": "日志等级",
"Port Config": "端口设置",
"Random Port": "随机端口",
"Mixed Port": "混合代理端口",
"Socks Port": "Socks代理端口",
"Http Port": "Http(s)代理端口",
"Redir Port": "Redir透明代理端口",
"Tproxy Port": "Tproxy透明代理端口",
"External": "外部控制",
"External Controller": "外部控制器监听地址",
"Core Secret": "API 访问密钥",
@ -203,10 +208,10 @@
"CSS Injection": "CSS 注入",
"Layout Setting": "界面设置",
"Traffic Graph": "流量图显",
"Memory Usage": "内存使用",
"Memory Usage": "内存用",
"Memory Cleanup": "点击清理内存",
"Proxy Group Icon": "代理组图标",
"Menu Icon": "菜单图标",
"Nav Icon": "导航栏图标",
"Monochrome": "单色图标",
"Colorful": "彩色图标",
"Tray Icon": "托盘图标",
@ -216,14 +221,17 @@
"Miscellaneous": "杂项设置",
"App Log Level": "App日志等级",
"Auto Close Connections": "自动关闭连接",
"Auto Close Connections Info": "当代理组选中节点或代理模式变动时,关闭已建立的连接",
"Auto Check Update": "自动检查更新",
"Enable Builtin Enhanced": "内置增强功能",
"Enable Builtin Enhanced Info": "配置文件的兼容性处理",
"Proxy Layout Columns": "代理页布局列数",
"Auto Columns": "自动列数",
"Auto Log Clean": "自动清理日志",
"Never Clean": "不清理",
"Retain _n Days": "保留{{n}}天",
"Default Latency Test": "默认测试链接",
"Default Latency Test Info": "仅用于 HTTP 客户端请求测试,不会对配置文件产生影响",
"Default Latency Timeout": "测试超时时间",
"Hotkey Setting": "热键设置",
"open_or_close_dashboard": "打开/关闭面板",