add kiss-proxy link
This commit is contained in:
@@ -152,6 +152,10 @@ export const I18N = {
|
|||||||
zh: `查看关于数据同步接口部署`,
|
zh: `查看关于数据同步接口部署`,
|
||||||
en: `View About Data Synchronization Interface Deployment`,
|
en: `View About Data Synchronization Interface Deployment`,
|
||||||
},
|
},
|
||||||
|
about_api_proxy: {
|
||||||
|
zh: `查看自建一个翻译接口代理`,
|
||||||
|
en: `Check out the self-built translation interface proxy`,
|
||||||
|
},
|
||||||
style_none: {
|
style_none: {
|
||||||
zh: `无`,
|
zh: `无`,
|
||||||
en: `None`,
|
en: `None`,
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export const THEME_LIGHT = "light";
|
|||||||
export const THEME_DARK = "dark";
|
export const THEME_DARK = "dark";
|
||||||
|
|
||||||
export const URL_KISS_WORKER = "https://github.com/fishjar/kiss-worker";
|
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 =
|
export const URL_RAW_PREFIX =
|
||||||
"https://raw.githubusercontent.com/fishjar/kiss-translator/master";
|
"https://raw.githubusercontent.com/fishjar/kiss-translator/master";
|
||||||
export const URL_MICROSOFT_AUTH = "https://edge.microsoft.com/translate/auth";
|
export const URL_MICROSOFT_AUTH = "https://edge.microsoft.com/translate/auth";
|
||||||
|
|||||||
@@ -5,10 +5,11 @@ import TextField from "@mui/material/TextField";
|
|||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
import FormControl from "@mui/material/FormControl";
|
import FormControl from "@mui/material/FormControl";
|
||||||
import Select from "@mui/material/Select";
|
import Select from "@mui/material/Select";
|
||||||
|
import Link from "@mui/material/Link";
|
||||||
import { useSetting } from "../../hooks/Setting";
|
import { useSetting } from "../../hooks/Setting";
|
||||||
import { limitNumber } from "../../libs/utils";
|
import { limitNumber } from "../../libs/utils";
|
||||||
import { useI18n } from "../../hooks/I18n";
|
import { useI18n } from "../../hooks/I18n";
|
||||||
import { UI_LANGS } from "../../config";
|
import { UI_LANGS, URL_KISS_WORKER } from "../../config";
|
||||||
|
|
||||||
export default function Settings() {
|
export default function Settings() {
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
@@ -125,6 +126,9 @@ export default function Settings() {
|
|||||||
name="googleUrl"
|
name="googleUrl"
|
||||||
value={googleUrl}
|
value={googleUrl}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
helperText={
|
||||||
|
<Link href={URL_KISS_WORKER}>{i18n("about_api_proxy")}</Link>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
@@ -133,6 +137,9 @@ export default function Settings() {
|
|||||||
name="openaiUrl"
|
name="openaiUrl"
|
||||||
value={openaiUrl}
|
value={openaiUrl}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
helperText={
|
||||||
|
<Link href={URL_KISS_WORKER}>{i18n("about_api_proxy")}</Link>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
|
|||||||
Reference in New Issue
Block a user