feat: add tags

This commit is contained in:
2024-11-18 01:28:31 +07:00
parent 95f9f76edd
commit b0932c39b1
17 changed files with 409 additions and 67 deletions
+2
View File
@@ -14,6 +14,7 @@ const groupSchema = baseFormSchema.merge(
const hostSchema = baseFormSchema.merge(
z.object({
tags: z.string().array(),
host: hostnameShape(),
port: z.coerce
.number({ message: "Invalid port" })
@@ -65,6 +66,7 @@ export type FormSchema = z.infer<typeof formSchema>;
export const initialValues: FormSchema = {
type: "ssh",
host: "",
tags: [],
port: 22,
label: "",
keyId: "",