mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-07 21:19:51 +00:00
fix some ui problems
This commit is contained in:
parent
76c445a51c
commit
f13ba57851
File diff suppressed because one or more lines are too long
2
ui/dist/index.html
vendored
2
ui/dist/index.html
vendored
@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Certimate - Your Trusted SSL Automation Partner</title>
|
||||
<script type="module" crossorigin src="/assets/index-BaOyaxPQ.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-BvAG2YSh.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-6bfokHP3.css">
|
||||
</head>
|
||||
<body class="bg-background">
|
||||
|
@ -89,12 +89,15 @@ export function AccessEdit({
|
||||
<RadioGroup
|
||||
value={configType}
|
||||
className="flex mt-3 space-x-2"
|
||||
onValueChange={setConfigType}
|
||||
onValueChange={(val) => {
|
||||
console.log(val);
|
||||
setConfigType(val);
|
||||
}}
|
||||
>
|
||||
{typeKeys.map((key) => (
|
||||
<div className="flex items-center space-x-2" key={key}>
|
||||
<RadioGroupItem value={key} id={key} hidden />
|
||||
<Label htmlFor={key}>
|
||||
<Label>
|
||||
<RadioGroupItem value={key} hidden />
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center space-x-2 border p-2 rounded cursor-pointer",
|
||||
|
@ -62,11 +62,9 @@ const Edit = () => {
|
||||
|
||||
const formSchema = z.object({
|
||||
id: z.string().optional(),
|
||||
domain: z
|
||||
.string()
|
||||
.regex(/^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.[A-Za-z]{2,6})+$/, {
|
||||
message: "请输入正确的域名",
|
||||
}),
|
||||
domain: z.string().regex(/^(?!:\/\/)([a-zA-Z0-9-_]+\.)+[a-zA-Z]{2,}$/, {
|
||||
message: "请输入正确的域名",
|
||||
}),
|
||||
access: z.string().regex(/^[a-zA-Z0-9]+$/, {
|
||||
message: "请选择DNS服务商授权配置",
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user