mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +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" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Certimate - Your Trusted SSL Automation Partner</title>
|
<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">
|
<link rel="stylesheet" crossorigin href="/assets/index-6bfokHP3.css">
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-background">
|
<body class="bg-background">
|
||||||
|
@ -89,12 +89,15 @@ export function AccessEdit({
|
|||||||
<RadioGroup
|
<RadioGroup
|
||||||
value={configType}
|
value={configType}
|
||||||
className="flex mt-3 space-x-2"
|
className="flex mt-3 space-x-2"
|
||||||
onValueChange={setConfigType}
|
onValueChange={(val) => {
|
||||||
|
console.log(val);
|
||||||
|
setConfigType(val);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{typeKeys.map((key) => (
|
{typeKeys.map((key) => (
|
||||||
<div className="flex items-center space-x-2" key={key}>
|
<div className="flex items-center space-x-2" key={key}>
|
||||||
<RadioGroupItem value={key} id={key} hidden />
|
<Label>
|
||||||
<Label htmlFor={key}>
|
<RadioGroupItem value={key} hidden />
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex items-center space-x-2 border p-2 rounded cursor-pointer",
|
"flex items-center space-x-2 border p-2 rounded cursor-pointer",
|
||||||
|
@ -62,9 +62,7 @@ const Edit = () => {
|
|||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
id: z.string().optional(),
|
id: z.string().optional(),
|
||||||
domain: z
|
domain: z.string().regex(/^(?!:\/\/)([a-zA-Z0-9-_]+\.)+[a-zA-Z]{2,}$/, {
|
||||||
.string()
|
|
||||||
.regex(/^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.[A-Za-z]{2,6})+$/, {
|
|
||||||
message: "请输入正确的域名",
|
message: "请输入正确的域名",
|
||||||
}),
|
}),
|
||||||
access: z.string().regex(/^[a-zA-Z0-9]+$/, {
|
access: z.string().regex(/^[a-zA-Z0-9]+$/, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user