optimized the random port and key mechanism to prevent random freezing! optimized the save mechanism, using smooth functions to prevent the client from freezing! Optimized the translation problem!

This commit is contained in:
Ahao
2025-05-20 22:51:11 +08:00
parent 4024b72954
commit 400efa00ec
5 changed files with 150 additions and 48 deletions
+15 -4
View File
@@ -11,6 +11,7 @@ import {
LanRounded,
SettingsRounded
} from "@mui/icons-material";
import ErrorOutlineRounded from '@mui/icons-material/ErrorOutlineRounded';
import { MenuItem, Select, TextField, Typography } from "@mui/material";
import { invoke } from "@tauri-apps/api/core";
import { useLockFn } from "ahooks";
@@ -219,10 +220,20 @@ const SettingClash = ({ onError }: Props) => {
/>
</SettingItem>
<SettingItem
onClick={() => ctrlRef.current?.open()}
label={t("External")}
/>
<SettingItem
onClick={() => ctrlRef.current?.open()}
label={
<>
{t("External")}
<TooltipIcon
title={t("Enable one-click random API port and key. Click to randomize the port and key")}
color={"error"}
icon={ErrorOutlineRounded}
sx={{ fontSize: "0.875em", ml: 0.5 }}
/>
</>
}
/>
<SettingItem onClick={() => webRef.current?.open()} label={t("Web UI")} />