add kiss-proxy link

This commit is contained in:
Gabe Yuan
2023-09-01 11:03:53 +08:00
parent b14a38e4fb
commit cde7a1d49f
3 changed files with 13 additions and 1 deletions

View File

@@ -152,6 +152,10 @@ export const I18N = {
zh: `查看关于数据同步接口部署`,
en: `View About Data Synchronization Interface Deployment`,
},
about_api_proxy: {
zh: `查看自建一个翻译接口代理`,
en: `Check out the self-built translation interface proxy`,
},
style_none: {
zh: ``,
en: `None`,

View File

@@ -49,6 +49,7 @@ export const THEME_LIGHT = "light";
export const THEME_DARK = "dark";
export const URL_KISS_WORKER = "https://github.com/fishjar/kiss-worker";
export const URL_KISS_PROXY = "https://github.com/fishjar/kiss-proxy";
export const URL_RAW_PREFIX =
"https://raw.githubusercontent.com/fishjar/kiss-translator/master";
export const URL_MICROSOFT_AUTH = "https://edge.microsoft.com/translate/auth";

View File

@@ -5,10 +5,11 @@ import TextField from "@mui/material/TextField";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
import Link from "@mui/material/Link";
import { useSetting } from "../../hooks/Setting";
import { limitNumber } from "../../libs/utils";
import { useI18n } from "../../hooks/I18n";
import { UI_LANGS } from "../../config";
import { UI_LANGS, URL_KISS_WORKER } from "../../config";
export default function Settings() {
const i18n = useI18n();
@@ -125,6 +126,9 @@ export default function Settings() {
name="googleUrl"
value={googleUrl}
onChange={handleChange}
helperText={
<Link href={URL_KISS_WORKER}>{i18n("about_api_proxy")}</Link>
}
/>
<TextField
@@ -133,6 +137,9 @@ export default function Settings() {
name="openaiUrl"
value={openaiUrl}
onChange={handleChange}
helperText={
<Link href={URL_KISS_WORKER}>{i18n("about_api_proxy")}</Link>
}
/>
<TextField