-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42b204e
commit 9d38846
Showing
10 changed files
with
78 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
apps/desktop/src/routes/extension/create-quick-link/schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { z } from "zod"; | ||
import { z } from "zod" | ||
|
||
export const formSchema = z.object({ | ||
username: z.string().min(2).max(50), | ||
}); | ||
export type FormSchema = typeof formSchema; | ||
username: z.string().min(2).max(50) | ||
}) | ||
|
||
export type FormSchema = typeof formSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
<script lang="ts" module> | ||
import type { FormPath as _FormPath } from "sveltekit-superforms"; | ||
type T = Record<string, unknown>; | ||
type U = _FormPath<T>; | ||
import type { FormPath as _FormPath } from "sveltekit-superforms" | ||
type T = Record<string, unknown> | ||
type U = _FormPath<T> | ||
</script> | ||
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>"> | ||
import * as FormPrimitive from "formsnap"; | ||
import type { WithoutChild } from "bits-ui"; | ||
import { cn } from "@kksh/ui/utils"; | ||
import { cn } from "@kksh/ui/utils" | ||
import type { WithoutChild } from "bits-ui" | ||
import * as FormPrimitive from "formsnap" | ||
let { | ||
ref = $bindable(null), | ||
class: className, | ||
form, | ||
name, | ||
...restProps | ||
}: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props(); | ||
}: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props() | ||
</script> | ||
|
||
<FormPrimitive.Fieldset bind:ref {form} {name} class={cn("space-y-2", className)} {...restProps} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Root from "./label.svelte"; | ||
import Root from "./label.svelte" | ||
|
||
export { | ||
Root, | ||
// | ||
Root as Label, | ||
}; | ||
Root as Label | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters