@vitnode/core 1.2.0-canary.56 → 1.2.0-canary.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +3 -3
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +1 -1
- package/dist/src/components/ui/command.js +1 -1
- package/dist/src/components/ui/context-menu.js +4 -4
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/components/ui/dropdown-menu.js +3 -3
- package/dist/src/components/ui/menubar.js +3 -3
- package/dist/src/components/ui/navigation-menu.js +1 -1
- package/dist/src/components/ui/select.js +2 -2
- package/dist/src/components/ui/tabs.js +1 -1
- package/dist/src/components/ui/toggle.js +1 -1
- package/dist/src/vitnode.config.d.ts +2 -2
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { drizzle } from "drizzle-orm/postgres-js";
|
|
2
2
|
import type { CronJobConfig } from "../../../../api/lib/cron";
|
|
3
3
|
interface CronJobFromDb {
|
|
4
4
|
createdAt: Date;
|
|
@@ -11,7 +11,7 @@ interface CronJobFromDb {
|
|
|
11
11
|
pluginId: string;
|
|
12
12
|
schedule: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function cleanupOutdatedCronJobs(db:
|
|
14
|
+
export declare function cleanupOutdatedCronJobs(db: ReturnType<typeof drizzle>, cronFromDb: CronJobFromDb[], currentCronJobs: CronJobConfig[]): Promise<void>;
|
|
15
15
|
export declare function processCronJobs(cronJobs: CronJobConfig[], cronFromDb: CronJobFromDb[]): {
|
|
16
16
|
newJobs: CronJobConfig[];
|
|
17
17
|
jobsToExecute: CronJobConfig[];
|
|
@@ -24,7 +24,7 @@ export declare function processCronJobs(cronJobs: CronJobConfig[], cronFromDb: C
|
|
|
24
24
|
job: CronJobConfig;
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
|
-
export declare function updateCronJobs(db:
|
|
27
|
+
export declare function updateCronJobs(db: ReturnType<typeof drizzle>, jobsToUpdate: {
|
|
28
28
|
changes: {
|
|
29
29
|
description?: boolean;
|
|
30
30
|
schedule?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-cron-jobs.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/helpers/process-cron-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"process-cron-jobs.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/helpers/process-cron-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAsB,MAAM,yBAAyB,CAAC;AAK3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA6BD,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,EAC9B,UAAU,EAAE,aAAa,EAAE,EAC3B,eAAe,EAAE,aAAa,EAAE,iBAoBjC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,aAAa,EAAE,EACzB,UAAU,EAAE,aAAa,EAAE;;;;iBAKhB;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;SAAE;qBACzC,aAAa;aACrB,aAAa;;EA6BrB;AAED,wBAAsB,cAAc,CAClC,EAAE,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,EAC9B,YAAY,EAAE;IACZ,OAAO,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACvD,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,aAAa,CAAC;CACpB,EAAE,iBAyBJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { ClientButton } from "./button-client.js";
|
|
4
|
-
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg
|
|
4
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer overflow-hidden active:scale-[0.98] select-none", {
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
7
|
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
@@ -83,7 +83,7 @@ function CommandSeparator({ className, ...props }) {
|
|
|
83
83
|
}
|
|
84
84
|
function CommandItem({ className, ...props }) {
|
|
85
85
|
return /*#__PURE__*/ _jsx(CommandPrimitive.Item, {
|
|
86
|
-
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg
|
|
86
|
+
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
87
87
|
"data-slot": "command-item",
|
|
88
88
|
...props
|
|
89
89
|
});
|
|
@@ -41,7 +41,7 @@ function ContextMenuRadioGroup({ ...props }) {
|
|
|
41
41
|
}
|
|
42
42
|
function ContextMenuSubTrigger({ className, inset, children, ...props }) {
|
|
43
43
|
return /*#__PURE__*/ _jsxs(ContextMenuPrimitive.SubTrigger, {
|
|
44
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8 [&_svg
|
|
44
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
45
45
|
"data-inset": inset,
|
|
46
46
|
"data-slot": "context-menu-sub-trigger",
|
|
47
47
|
...props,
|
|
@@ -71,7 +71,7 @@ function ContextMenuContent({ className, ...props }) {
|
|
|
71
71
|
}
|
|
72
72
|
function ContextMenuItem({ className, inset, variant = "default", ...props }) {
|
|
73
73
|
return /*#__PURE__*/ _jsx(ContextMenuPrimitive.Item, {
|
|
74
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg
|
|
74
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
75
75
|
"data-inset": inset,
|
|
76
76
|
"data-slot": "context-menu-item",
|
|
77
77
|
"data-variant": variant,
|
|
@@ -81,7 +81,7 @@ function ContextMenuItem({ className, inset, variant = "default", ...props }) {
|
|
|
81
81
|
function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
82
82
|
return /*#__PURE__*/ _jsxs(ContextMenuPrimitive.CheckboxItem, {
|
|
83
83
|
checked: checked,
|
|
84
|
-
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
84
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
85
85
|
"data-slot": "context-menu-checkbox-item",
|
|
86
86
|
...props,
|
|
87
87
|
children: [
|
|
@@ -99,7 +99,7 @@ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
|
99
99
|
}
|
|
100
100
|
function ContextMenuRadioItem({ className, children, ...props }) {
|
|
101
101
|
return /*#__PURE__*/ _jsxs(ContextMenuPrimitive.RadioItem, {
|
|
102
|
-
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
102
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
103
103
|
"data-slot": "context-menu-radio-item",
|
|
104
104
|
...props,
|
|
105
105
|
children: [
|
|
@@ -136,7 +136,7 @@ function DialogContent({ className, children, showCloseButton = true, ...props }
|
|
|
136
136
|
children: [
|
|
137
137
|
children,
|
|
138
138
|
showCloseButton && /*#__PURE__*/ _jsxs(DialogPrimitive.Close, {
|
|
139
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg
|
|
139
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
140
140
|
"data-slot": "dialog-close",
|
|
141
141
|
onClick: (e)=>{
|
|
142
142
|
if (isDirty) {
|
|
@@ -39,7 +39,7 @@ function DropdownMenuGroup({ ...props }) {
|
|
|
39
39
|
}
|
|
40
40
|
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
41
41
|
return /*#__PURE__*/ _jsx(DropdownMenuPrimitive.Item, {
|
|
42
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg
|
|
42
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
43
43
|
"data-inset": inset,
|
|
44
44
|
"data-slot": "dropdown-menu-item",
|
|
45
45
|
"data-variant": variant,
|
|
@@ -49,7 +49,7 @@ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
|
49
49
|
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
50
50
|
return /*#__PURE__*/ _jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
51
51
|
checked: checked,
|
|
52
|
-
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
52
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
53
53
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
54
54
|
...props,
|
|
55
55
|
children: [
|
|
@@ -73,7 +73,7 @@ function DropdownMenuRadioGroup({ ...props }) {
|
|
|
73
73
|
}
|
|
74
74
|
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
75
75
|
return /*#__PURE__*/ _jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
76
|
-
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
76
|
+
className: cn("focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
77
77
|
"data-slot": "dropdown-menu-radio-item",
|
|
78
78
|
...props,
|
|
79
79
|
children: [
|
|
@@ -55,7 +55,7 @@ function MenubarContent({ className, align = "start", alignOffset = -4, sideOffs
|
|
|
55
55
|
}
|
|
56
56
|
function MenubarItem({ className, inset, variant = "default", ...props }) {
|
|
57
57
|
return /*#__PURE__*/ _jsx(MenubarPrimitive.Item, {
|
|
58
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg
|
|
58
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
59
59
|
"data-inset": inset,
|
|
60
60
|
"data-slot": "menubar-item",
|
|
61
61
|
"data-variant": variant,
|
|
@@ -65,7 +65,7 @@ function MenubarItem({ className, inset, variant = "default", ...props }) {
|
|
|
65
65
|
function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
66
66
|
return /*#__PURE__*/ _jsxs(MenubarPrimitive.CheckboxItem, {
|
|
67
67
|
checked: checked,
|
|
68
|
-
className: cn("focus:bg-accent focus:text-accent-foreground rounded-xs outline-hidden relative flex cursor-default select-none items-center gap-2 py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
68
|
+
className: cn("focus:bg-accent focus:text-accent-foreground rounded-xs outline-hidden relative flex cursor-default select-none items-center gap-2 py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
69
69
|
"data-slot": "menubar-checkbox-item",
|
|
70
70
|
...props,
|
|
71
71
|
children: [
|
|
@@ -83,7 +83,7 @@ function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
|
83
83
|
}
|
|
84
84
|
function MenubarRadioItem({ className, children, ...props }) {
|
|
85
85
|
return /*#__PURE__*/ _jsxs(MenubarPrimitive.RadioItem, {
|
|
86
|
-
className: cn("focus:bg-accent focus:text-accent-foreground rounded-xs outline-hidden relative flex cursor-default select-none items-center gap-2 py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
86
|
+
className: cn("focus:bg-accent focus:text-accent-foreground rounded-xs outline-hidden relative flex cursor-default select-none items-center gap-2 py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
87
87
|
"data-slot": "menubar-radio-item",
|
|
88
88
|
...props,
|
|
89
89
|
children: [
|
|
@@ -64,7 +64,7 @@ function NavigationMenuViewport({ className, ...props }) {
|
|
|
64
64
|
}
|
|
65
65
|
function NavigationMenuLink({ className, ...props }) {
|
|
66
66
|
return /*#__PURE__*/ _jsx(NavigationMenuPrimitive.Link, {
|
|
67
|
-
className: cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg
|
|
67
|
+
className: cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg]:size-4", className),
|
|
68
68
|
"data-slot": "navigation-menu-link",
|
|
69
69
|
...props
|
|
70
70
|
});
|
|
@@ -23,7 +23,7 @@ function SelectValue({ ...props }) {
|
|
|
23
23
|
}
|
|
24
24
|
function SelectTrigger({ className, size = "default", children, ...props }) {
|
|
25
25
|
return /*#__PURE__*/ _jsxs(SelectPrimitive.Trigger, {
|
|
26
|
-
className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg
|
|
26
|
+
className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
27
27
|
"data-size": size,
|
|
28
28
|
"data-slot": "select-trigger",
|
|
29
29
|
...props,
|
|
@@ -65,7 +65,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
65
65
|
}
|
|
66
66
|
function SelectItem({ className, children, ...props }) {
|
|
67
67
|
return /*#__PURE__*/ _jsxs(SelectPrimitive.Item, {
|
|
68
|
-
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg
|
|
68
|
+
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
69
69
|
"data-slot": "select-item",
|
|
70
70
|
...props,
|
|
71
71
|
children: [
|
|
@@ -18,7 +18,7 @@ function TabsList({ className, ...props }) {
|
|
|
18
18
|
}
|
|
19
19
|
function TabsTrigger({ className, ...props }) {
|
|
20
20
|
return /*#__PURE__*/ _jsx(TabsPrimitive.Trigger, {
|
|
21
|
-
className: cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg
|
|
21
|
+
className: cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className),
|
|
22
22
|
"data-slot": "tabs-trigger",
|
|
23
23
|
...props
|
|
24
24
|
});
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
|
-
const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg
|
|
6
|
+
const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap cursor-pointer", {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
9
|
default: "bg-transparent",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { drizzle } from "drizzle-orm/postgres-js";
|
|
2
2
|
import type { ThemeProvider } from "next-themes";
|
|
3
3
|
import type { IRateLimiterOptions } from "rate-limiter-flexible";
|
|
4
4
|
import type { CronAdapter } from "./api/lib/cron";
|
|
@@ -40,7 +40,7 @@ export interface VitNodeApiConfig {
|
|
|
40
40
|
type: "cloudflare_turnstile" | "recaptcha_v3";
|
|
41
41
|
};
|
|
42
42
|
cronAdapter?: CronAdapter;
|
|
43
|
-
dbProvider:
|
|
43
|
+
dbProvider: ReturnType<typeof drizzle>;
|
|
44
44
|
email?: {
|
|
45
45
|
adapter?: EmailApiPlugin;
|
|
46
46
|
logo?: DefaultTemplateEmailProps["templateProps"]["logo"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitnode.config.d.ts","sourceRoot":"","sources":["../../src/vitnode.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"vitnode.config.d.ts","sourceRoot":"","sources":["../../src/vitnode.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAsB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa,CAC5B,UAAU,SAAS,YAAY,EAAE,GAAG,YAAY,EAAE;IAElD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE;QACJ,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;QAC1C,YAAY,CAAC,EA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