|
@@ -13,6 +13,7 @@ import {
|
|
} from "@mui/material";
|
|
} from "@mui/material";
|
|
import { Settings } from "@mui/icons-material";
|
|
import { Settings } from "@mui/icons-material";
|
|
import { patchProfile } from "@/services/cmds";
|
|
import { patchProfile } from "@/services/cmds";
|
|
|
|
+import { version } from "@root/package.json";
|
|
import Notice from "../base/base-notice";
|
|
import Notice from "../base/base-notice";
|
|
|
|
|
|
interface Props {
|
|
interface Props {
|
|
@@ -119,7 +120,7 @@ const InfoEditor = (props: Props) => {
|
|
{...textFieldProps}
|
|
{...textFieldProps}
|
|
label="User Agent"
|
|
label="User Agent"
|
|
value={option.user_agent}
|
|
value={option.user_agent}
|
|
- placeholder="clash-verge/v1.0.0"
|
|
|
|
|
|
+ placeholder={`clash-verge/v${version}`}
|
|
onChange={(e) => setOption({ user_agent: e.target.value })}
|
|
onChange={(e) => setOption({ user_agent: e.target.value })}
|
|
onKeyDown={(e) => e.key === "Enter" && onUpdate()}
|
|
onKeyDown={(e) => e.key === "Enter" && onUpdate()}
|
|
/>
|
|
/>
|