@vitnode/core 1.2.0-canary.22 → 1.2.0-canary.24
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/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/scripts.js +2 -9
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/{plugins → adapters}/email/nodemailer.d.ts +1 -1
- package/dist/src/api/adapters/email/nodemailer.d.ts.map +1 -0
- package/dist/src/api/{plugins → adapters}/email/nodemailer.js +1 -1
- package/dist/src/api/{plugins → adapters}/email/resend.d.ts +1 -1
- package/dist/src/api/adapters/email/resend.d.ts.map +1 -0
- package/dist/src/api/{plugins → adapters}/email/resend.js +1 -1
- package/dist/src/api/adapters/sso/discord.d.ts.map +1 -0
- package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -0
- package/dist/src/api/adapters/sso/google.d.ts.map +1 -0
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +6 -5
- package/dist/src/api/lib/logger-middleware.d.ts +8 -0
- package/dist/src/api/lib/logger-middleware.d.ts.map +1 -0
- package/dist/src/api/lib/logger-middleware.js +30 -0
- package/dist/src/api/lib/route.d.ts +1 -1
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/route.js +1 -1
- package/dist/src/api/middlewares/{global/global.d.ts → global.middleware.d.ts} +10 -8
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -0
- package/dist/src/api/middlewares/global.middleware.js +86 -0
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +4 -0
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -0
- package/dist/src/api/middlewares/rate-limiter.middleware.js +26 -0
- package/dist/src/api/models/device.d.ts +4 -1
- package/dist/src/api/models/device.d.ts.map +1 -1
- package/dist/src/api/models/device.js +21 -14
- package/dist/src/api/models/email.d.ts +1 -2
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +9 -16
- package/dist/src/api/models/password.d.ts.map +1 -1
- package/dist/src/api/models/password.js +8 -1
- package/dist/src/api/models/session-admin.d.ts +1 -1
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session-admin.js +40 -16
- package/dist/src/api/models/session.d.ts +1 -1
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/session.js +28 -12
- package/dist/src/api/models/sso.js +1 -1
- package/dist/src/api/models/user/sign-up.d.ts +1 -1
- package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +2 -3
- package/dist/src/api/models/user.d.ts +1 -1
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +161 -8
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +3 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +159 -0
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +10 -0
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +160 -0
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +70 -0
- package/dist/src/api/modules/admin/routes/session.route.d.ts +1 -5
- package/dist/src/api/modules/admin/routes/session.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/routes/session.route.js +0 -4
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +1 -1
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
- package/dist/src/api/modules/middleware/middleware.module.d.ts +1 -1
- package/dist/src/api/modules/middleware/route.d.ts +1 -1
- package/dist/src/api/modules/middleware/route.d.ts.map +1 -1
- package/dist/src/api/modules/middleware/route.js +2 -4
- package/dist/src/api/modules/users/routes/session.route.d.ts +1 -1
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +1 -1
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +1 -1
- package/dist/src/api/modules/users/routes/test.route.d.ts +1 -1
- package/dist/src/api/modules/users/routes/test.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/test.route.js +8 -0
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +1 -1
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +1 -1
- package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
- package/dist/src/api/modules/users/users.module.d.ts +7 -7
- package/dist/src/app_admin/core/debug/page.d.ts +11 -0
- package/dist/src/app_admin/core/debug/page.d.ts.map +1 -0
- package/dist/src/app_admin/core/debug/page.js +44 -0
- package/dist/src/app_admin/core/users/page.d.ts +4 -1
- package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/users/page.js +4 -2
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +15 -0
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts.map +1 -0
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +41 -0
- package/dist/src/components/confirm-action/content.d.ts +7 -0
- package/dist/src/components/confirm-action/content.d.ts.map +1 -0
- package/dist/src/components/confirm-action/content.js +31 -0
- package/dist/src/components/date-format.d.ts +2 -1
- package/dist/src/components/date-format.d.ts.map +1 -1
- package/dist/src/components/date-format.js +4 -1
- package/dist/src/components/form/auto-form.js +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +21 -0
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -0
- package/dist/src/components/form/fields/combobox-async.js +115 -0
- package/dist/src/components/form/fields/combobox.d.ts +2 -1
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +4 -5
- package/dist/src/components/switchers/langs/language-swietcher.d.ts +5 -0
- package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +1 -0
- package/dist/src/components/switchers/langs/language-swietcher.js +45 -0
- package/dist/src/components/switchers/themes/theme-switcher.d.ts.map +1 -0
- package/dist/src/components/switchers/{theme-switcher.js → themes/theme-switcher.js} +1 -1
- package/dist/src/components/table/content.js +1 -1
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/data-table.js +2 -7
- package/dist/src/components/table/pagination.js +3 -3
- package/dist/src/components/ui/alert-dialog.d.ts +7 -2
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +41 -7
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/database/logs.d.ts +116 -0
- package/dist/src/database/logs.d.ts.map +1 -0
- package/dist/src/database/logs.js +18 -0
- package/dist/src/database/sessions.d.ts +19 -0
- package/dist/src/database/sessions.d.ts.map +1 -1
- package/dist/src/database/sessions.js +3 -0
- package/dist/src/lib/fetcher/core.d.ts +16 -0
- package/dist/src/lib/fetcher/core.d.ts.map +1 -0
- package/dist/src/lib/fetcher/core.js +39 -0
- package/dist/src/lib/fetcher/helpers-server.d.ts +3 -0
- package/dist/src/lib/fetcher/helpers-server.d.ts.map +1 -0
- package/dist/src/lib/fetcher/helpers-server.js +18 -0
- package/dist/src/lib/fetcher/helpers.d.ts +0 -1
- package/dist/src/lib/fetcher/helpers.d.ts.map +1 -1
- package/dist/src/lib/fetcher/helpers.js +0 -17
- package/dist/src/lib/fetcher-client.d.ts +9 -0
- package/dist/src/lib/fetcher-client.d.ts.map +1 -0
- package/dist/src/lib/fetcher-client.js +12 -0
- package/dist/src/lib/fetcher.d.ts +3 -1
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/fetcher.js +15 -33
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +28 -16
- package/dist/src/lib/helpers/auto-form.test.js +49 -0
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +5 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +24 -3
- package/dist/src/views/admin/layouts/user-bar/client.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.js +26 -18
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +1 -1
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts +2 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +35 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.d.ts +2 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +5 -0
- package/dist/src/views/admin/views/core/debug/debug-admin-view.d.ts +4 -0
- package/dist/src/views/admin/views/core/debug/debug-admin-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/debug/debug-admin-view.js +110 -0
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +108 -103
- package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts +1 -1
- package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts.map +1 -1
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +5 -2
- package/dist/src/views/layouts/theme/header/header.d.ts +4 -1
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.js +30 -23
- package/dist/src/views/layouts/theme/layout.d.ts +3 -1
- package/dist/src/views/layouts/theme/layout.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/layout.js +4 -3
- package/dist/src/vitnode.config.d.ts +11 -5
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +40 -22
- package/src/app_admin/core/debug/page.tsx +43 -0
- package/src/app_admin/core/users/page.tsx +7 -2
- package/src/locales/en.json +37 -1
- package/src/vitnode.config.ts +16 -6
- package/dist/src/api/lib/get-user-ip.d.ts +0 -3
- package/dist/src/api/lib/get-user-ip.d.ts.map +0 -1
- package/dist/src/api/lib/get-user-ip.js +0 -8
- package/dist/src/api/middlewares/global/global.d.ts.map +0 -1
- package/dist/src/api/middlewares/global/global.js +0 -47
- package/dist/src/api/plugins/email/nodemailer.d.ts.map +0 -1
- package/dist/src/api/plugins/email/resend.d.ts.map +0 -1
- package/dist/src/api/plugins/sso/discord.d.ts.map +0 -1
- package/dist/src/api/plugins/sso/facebook.d.ts.map +0 -1
- package/dist/src/api/plugins/sso/google.d.ts.map +0 -1
- package/dist/src/components/switchers/theme-switcher.d.ts.map +0 -1
- /package/dist/src/api/{plugins → adapters}/sso/discord.d.ts +0 -0
- /package/dist/src/api/{plugins → adapters}/sso/discord.js +0 -0
- /package/dist/src/api/{plugins → adapters}/sso/facebook.d.ts +0 -0
- /package/dist/src/api/{plugins → adapters}/sso/facebook.js +0 -0
- /package/dist/src/api/{plugins → adapters}/sso/google.d.ts +0 -0
- /package/dist/src/api/{plugins → adapters}/sso/google.js +0 -0
- /package/dist/src/components/switchers/{theme-switcher.d.ts → themes/theme-switcher.d.ts} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from '../../../components/ui/button';
|
|
4
|
+
import type { ItemAutoFormComponentProps } from './item';
|
|
5
|
+
export declare function AutoFormComboboxAsync<T extends z.ZodTypeAny>({ label, field, description, shape: _s, placeholder, className, id, searchPlaceholder, fetchData, ...props }: ItemAutoFormComponentProps<T> & Omit<React.ComponentProps<typeof Button>, 'role' | 'variant'> & {
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
fetchData: (params: {
|
|
8
|
+
search: string;
|
|
9
|
+
}) => Promise<{
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[]> | {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
id: string;
|
|
17
|
+
label?: React.ReactNode;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=combobox-async.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox-async.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox-async.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAMzD,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EAC5D,KAAK,EACL,KAAK,EACL,WAAW,EAEX,KAAK,EAAE,EAAE,EACT,WAAW,EACX,SAAS,EACT,EAAE,EACF,iBAAiB,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAC9B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IAC9D,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAClC,OAAO,CACL;QACE,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CACJ,GACD;QACE,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACR,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,2CA+FF"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { Check, ChevronsUpDown } from "lucide-react";
|
|
4
|
+
import { useTranslations } from "next-intl";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { useDebouncedCallback } from "use-debounce";
|
|
7
|
+
import { Button } from "../../ui/button.js";
|
|
8
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../ui/command.js";
|
|
9
|
+
import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.js";
|
|
11
|
+
import { cn } from "../../../lib/utils.js";
|
|
12
|
+
import { Skeleton } from "../../ui/skeleton.js";
|
|
13
|
+
import { AutoFormDesc } from "../common/desc.js";
|
|
14
|
+
import { AutoFormLabel } from "../common/label.js";
|
|
15
|
+
export function AutoFormComboboxAsync({ label, field, description, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
+
shape: _s, placeholder, className, id, searchPlaceholder, fetchData, ...props }) {
|
|
17
|
+
const t = useTranslations('core.global');
|
|
18
|
+
const [search, setSearch] = React.useState('');
|
|
19
|
+
const { data, isLoading } = useQuery({
|
|
20
|
+
queryKey: [
|
|
21
|
+
id,
|
|
22
|
+
{
|
|
23
|
+
search
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
queryFn: async ()=>{
|
|
27
|
+
return await fetchData({
|
|
28
|
+
search
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const handleChangeSearch = useDebouncedCallback((value)=>{
|
|
33
|
+
setSearch(value);
|
|
34
|
+
}, 500);
|
|
35
|
+
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
36
|
+
className: "flex flex-col",
|
|
37
|
+
children: [
|
|
38
|
+
label && /*#__PURE__*/ _jsx(AutoFormLabel, {
|
|
39
|
+
children: label
|
|
40
|
+
}),
|
|
41
|
+
/*#__PURE__*/ _jsxs(Popover, {
|
|
42
|
+
children: [
|
|
43
|
+
/*#__PURE__*/ _jsx(PopoverTrigger, {
|
|
44
|
+
asChild: true,
|
|
45
|
+
children: /*#__PURE__*/ _jsx(FormControl, {
|
|
46
|
+
children: /*#__PURE__*/ _jsxs(Button, {
|
|
47
|
+
className: cn('w-[200px] justify-between bg-transparent', !field.value && 'text-muted-foreground', className),
|
|
48
|
+
role: "combobox",
|
|
49
|
+
variant: "outline",
|
|
50
|
+
...props,
|
|
51
|
+
children: [
|
|
52
|
+
field.value && field.value.label ? field.value.label : placeholder ?? t('select_option'),
|
|
53
|
+
/*#__PURE__*/ _jsx(ChevronsUpDown, {
|
|
54
|
+
className: "ml-2 h-4 w-4 shrink-0 opacity-50"
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx(PopoverContent, {
|
|
61
|
+
className: "w-[200px] p-0",
|
|
62
|
+
children: /*#__PURE__*/ _jsxs(Command, {
|
|
63
|
+
shouldFilter: false,
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ _jsx(CommandInput, {
|
|
66
|
+
onChangeCapture: (e)=>{
|
|
67
|
+
handleChangeSearch(e.currentTarget.value);
|
|
68
|
+
},
|
|
69
|
+
placeholder: searchPlaceholder ?? t('search_placeholder')
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ _jsx(CommandList, {
|
|
72
|
+
children: isLoading ? /*#__PURE__*/ _jsxs("div", {
|
|
73
|
+
className: "space-y-2 p-2",
|
|
74
|
+
children: [
|
|
75
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
76
|
+
className: "h-6 rounded-sm"
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
79
|
+
className: "h-6 rounded-sm"
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
}) : /*#__PURE__*/ _jsx(_Fragment, {
|
|
83
|
+
children: data?.length === 0 ? /*#__PURE__*/ _jsx(CommandEmpty, {
|
|
84
|
+
children: t('results_not_found')
|
|
85
|
+
}) : /*#__PURE__*/ _jsx(CommandGroup, {
|
|
86
|
+
children: (data ?? []).map(({ label, value })=>/*#__PURE__*/ _jsxs(CommandItem, {
|
|
87
|
+
onSelect: ()=>{
|
|
88
|
+
field.onChange({
|
|
89
|
+
label,
|
|
90
|
+
value
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
value: label,
|
|
94
|
+
children: [
|
|
95
|
+
label,
|
|
96
|
+
/*#__PURE__*/ _jsx(Check, {
|
|
97
|
+
className: cn('ml-auto', value === field.value?.value ? 'opacity-100' : 'opacity-0')
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}, value))
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
description && /*#__PURE__*/ _jsx(AutoFormDesc, {
|
|
110
|
+
children: description
|
|
111
|
+
}),
|
|
112
|
+
/*#__PURE__*/ _jsx(FormMessage, {})
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
@@ -2,7 +2,7 @@ import type { z } from 'zod';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Button } from '../../../components/ui/button';
|
|
4
4
|
import type { ItemAutoFormComponentProps } from './item';
|
|
5
|
-
export declare function AutoFormCombobox<T extends z.ZodTypeAny>({ label, field, description, shape, placeholder
|
|
5
|
+
export declare function AutoFormCombobox<T extends z.ZodTypeAny>({ label, field, description, shape, placeholder, className, labels, searchPlaceholder, ...props }: ItemAutoFormComponentProps<T> & Omit<React.ComponentProps<typeof Button>, 'role' | 'variant'> & {
|
|
6
6
|
description?: React.ReactNode;
|
|
7
7
|
label?: React.ReactNode;
|
|
8
8
|
labels?: {
|
|
@@ -10,5 +10,6 @@ export declare function AutoFormCombobox<T extends z.ZodTypeAny>({ label, field,
|
|
|
10
10
|
value: string;
|
|
11
11
|
}[];
|
|
12
12
|
placeholder?: string;
|
|
13
|
+
searchPlaceholder?: string;
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAkBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAKzD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EACvD,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAkBhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAKzD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EACvD,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,EACL,WAAW,EACX,SAAS,EACT,MAAW,EACX,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAC9B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG;IAC9D,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,2CA0EF"}
|
|
@@ -10,8 +10,7 @@ import { getBaseSchema } from "../../../lib/helpers/auto-form.js";
|
|
|
10
10
|
import { cn } from "../../../lib/utils.js";
|
|
11
11
|
import { AutoFormDesc } from "../common/desc.js";
|
|
12
12
|
import { AutoFormLabel } from "../common/label.js";
|
|
13
|
-
export function AutoFormCombobox({ label, field, description, shape,
|
|
14
|
-
placeholder: _, className, labels = [], ...props }) {
|
|
13
|
+
export function AutoFormCombobox({ label, field, description, shape, placeholder, className, labels = [], searchPlaceholder, ...props }) {
|
|
15
14
|
const t = useTranslations('core.global');
|
|
16
15
|
const baseValues = getBaseSchema(shape, true)._def.values;
|
|
17
16
|
const values = baseValues.map((value)=>{
|
|
@@ -38,7 +37,7 @@ placeholder: _, className, labels = [], ...props }) {
|
|
|
38
37
|
variant: "outline",
|
|
39
38
|
...props,
|
|
40
39
|
children: [
|
|
41
|
-
field.value ? values.find(({ value })=>value === field.value)?.label : t('select_option'),
|
|
40
|
+
field.value ? values.find(({ value })=>value === field.value)?.label : placeholder ?? t('select_option'),
|
|
42
41
|
/*#__PURE__*/ _jsx(ChevronsUpDown, {
|
|
43
42
|
className: "ml-2 h-4 w-4 shrink-0 opacity-50"
|
|
44
43
|
})
|
|
@@ -51,12 +50,12 @@ placeholder: _, className, labels = [], ...props }) {
|
|
|
51
50
|
children: /*#__PURE__*/ _jsxs(Command, {
|
|
52
51
|
children: [
|
|
53
52
|
/*#__PURE__*/ _jsx(CommandInput, {
|
|
54
|
-
placeholder:
|
|
53
|
+
placeholder: searchPlaceholder ?? t('search_placeholder')
|
|
55
54
|
}),
|
|
56
55
|
/*#__PURE__*/ _jsxs(CommandList, {
|
|
57
56
|
children: [
|
|
58
57
|
/*#__PURE__*/ _jsx(CommandEmpty, {
|
|
59
|
-
children:
|
|
58
|
+
children: t('results_not_found')
|
|
60
59
|
}),
|
|
61
60
|
/*#__PURE__*/ _jsx(CommandGroup, {
|
|
62
61
|
children: values.map(({ label, value })=>/*#__PURE__*/ _jsxs(CommandItem, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-swietcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/switchers/langs/language-swietcher.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAYrD,eAAO,MAAM,gBAAgB,GAAI,aAAa;IAAE,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,4CAuCxE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { CheckIcon, LanguagesIcon } from "lucide-react";
|
|
4
|
+
import { useLocale } from "next-intl";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { usePathname, useRouter } from "../../../lib/navigation.js";
|
|
7
|
+
import { Button } from "../../ui/button.js";
|
|
8
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../ui/dropdown-menu.js";
|
|
9
|
+
export const LanguageSwitcher = ({ locales })=>{
|
|
10
|
+
const currentLocale = useLocale();
|
|
11
|
+
const [isPending, startTransition] = React.useTransition();
|
|
12
|
+
const { replace } = useRouter();
|
|
13
|
+
const pathname = usePathname();
|
|
14
|
+
return /*#__PURE__*/ _jsxs(DropdownMenu, {
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ _jsx(DropdownMenuTrigger, {
|
|
17
|
+
asChild: true,
|
|
18
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
19
|
+
className: "relative",
|
|
20
|
+
isLoading: isPending,
|
|
21
|
+
size: "icon",
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
children: /*#__PURE__*/ _jsx(LanguagesIcon, {})
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
/*#__PURE__*/ _jsx(DropdownMenuContent, {
|
|
27
|
+
children: locales.map((locale)=>/*#__PURE__*/ _jsxs(DropdownMenuItem, {
|
|
28
|
+
onClick: ()=>{
|
|
29
|
+
startTransition(()=>{
|
|
30
|
+
replace(pathname, {
|
|
31
|
+
locale: locale.code
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
locale.name,
|
|
37
|
+
locale.code === currentLocale && /*#__PURE__*/ _jsx(CheckIcon, {
|
|
38
|
+
className: "ml-auto"
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}, locale.code))
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/switchers/themes/theme-switcher.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,+CAiBzB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Moon, Sun } from "lucide-react";
|
|
4
4
|
import { useTheme } from "next-themes";
|
|
5
|
-
import { Button } from "
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
6
|
export const ThemeSwitcher = ()=>{
|
|
7
7
|
const { setTheme, resolvedTheme } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ _jsxs(Button, {
|
|
@@ -18,7 +18,7 @@ export function ContentDataTable({ columns, edges, pageInfo, order, customNotFou
|
|
|
18
18
|
...props,
|
|
19
19
|
children: [
|
|
20
20
|
/*#__PURE__*/ _jsx(TableHeader, {
|
|
21
|
-
className: "bg-
|
|
21
|
+
className: "bg-card",
|
|
22
22
|
children: /*#__PURE__*/ _jsx(TableRow, {
|
|
23
23
|
children: columns.map((column)=>/*#__PURE__*/ _jsx(TableHead, {
|
|
24
24
|
className: cn(column.className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,EACL,KAAK,EAKN,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,OAAO;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,4CAgCjE,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,SAAS,aAAa,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,SAAS,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,GAAG;IACjD,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE;YAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAAC,GAAG,EAAE,CAAC,CAAA;SAAE,KAAK,KAAK,CAAC,SAAS,CAAC;QAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1C,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;QACtB,YAAY,EAAE;YACZ,MAAM,EAAE,MAAM,CAAC,CAAC;YAChB,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;CACH,
|
|
1
|
+
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,EACL,KAAK,EAKN,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,OAAO;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,4CAgCjE,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,SAAS,aAAa,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,SAAS,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,GAAG;IACjD,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE;YAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAAC,GAAG,EAAE,CAAC,CAAA;SAAE,KAAK,KAAK,CAAC,SAAS,CAAC;QAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1C,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;QACtB,YAAY,EAAE;YACZ,MAAM,EAAE,MAAM,CAAC,CAAC;YAChB,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;CACH,2CAOJ"}
|
|
@@ -58,12 +58,7 @@ export function DataTable(props) {
|
|
|
58
58
|
code: 500
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
return /*#__PURE__*/ _jsx(
|
|
62
|
-
|
|
63
|
-
columns: props.columns.length
|
|
64
|
-
}),
|
|
65
|
-
children: /*#__PURE__*/ _jsx(ContentDataTable, {
|
|
66
|
-
...props
|
|
67
|
-
})
|
|
61
|
+
return /*#__PURE__*/ _jsx(ContentDataTable, {
|
|
62
|
+
...props
|
|
68
63
|
});
|
|
69
64
|
}
|
|
@@ -49,7 +49,7 @@ export const PaginationDataTable = ({ pageInfo: { hasNextPage, hasPreviousPage,
|
|
|
49
49
|
isPending ? /*#__PURE__*/ _jsx(Skeleton, {
|
|
50
50
|
className: "h-9 w-[4.5rem]"
|
|
51
51
|
}) : /*#__PURE__*/ _jsx(SelectTrigger, {
|
|
52
|
-
className: "h-8 w-[4.5rem]",
|
|
52
|
+
className: "bg-card h-8 w-[4.5rem]",
|
|
53
53
|
children: /*#__PURE__*/ _jsx(SelectValue, {})
|
|
54
54
|
}),
|
|
55
55
|
/*#__PURE__*/ _jsx(SelectContent, {
|
|
@@ -68,7 +68,7 @@ export const PaginationDataTable = ({ pageInfo: { hasNextPage, hasPreviousPage,
|
|
|
68
68
|
className: "size-8"
|
|
69
69
|
}) : /*#__PURE__*/ _jsx(Button, {
|
|
70
70
|
"aria-label": t('go_to_prev_page'),
|
|
71
|
-
className: "size-8",
|
|
71
|
+
className: "bg-card size-8",
|
|
72
72
|
disabled: !hasPreviousPage,
|
|
73
73
|
onClick: ()=>{
|
|
74
74
|
startTransition(()=>{
|
|
@@ -93,7 +93,7 @@ export const PaginationDataTable = ({ pageInfo: { hasNextPage, hasPreviousPage,
|
|
|
93
93
|
className: "size-8"
|
|
94
94
|
}) : /*#__PURE__*/ _jsx(Button, {
|
|
95
95
|
"aria-label": t('go_to_next_page'),
|
|
96
|
-
className: "size-8",
|
|
96
|
+
className: "bg-card size-8",
|
|
97
97
|
disabled: !hasNextPage || isPending,
|
|
98
98
|
onClick: ()=>{
|
|
99
99
|
startTransition(()=>{
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare
|
|
3
|
+
export declare const useAlertDialog: () => {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen?: (value: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare function AlertDialog({ onOpenChange, open: openProp, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
8
|
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
12
|
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
13
|
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function AlertDialogFooterSkeleton({ className, ...props }: Omit<React.ComponentProps<'div'>, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
17
|
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
19
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogFooterSkeleton, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
15
20
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,eAAO,MAAM,cAAc;UAPnB,OAAO;cACH,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAMoC,CAAC;AAEzE,iBAAS,WAAW,CAAC,EACnB,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAkBxD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAI3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAI1D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAW3D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAc3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ7B;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7B;AAED,iBAAS,yBAAyB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,2CAc/C;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,2CAQzD;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC,2CAQ/D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -4,10 +4,29 @@ import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { buttonVariants } from "./button.js";
|
|
6
6
|
import { cn } from "../../lib/utils.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { Skeleton } from "./skeleton.js";
|
|
8
|
+
const AlertDialogContext = /*#__PURE__*/ React.createContext({
|
|
9
|
+
open: false,
|
|
10
|
+
setOpen: ()=>{}
|
|
11
|
+
});
|
|
12
|
+
export const useAlertDialog = ()=>React.useContext(AlertDialogContext);
|
|
13
|
+
function AlertDialog({ onOpenChange, open: openProp, ...props }) {
|
|
14
|
+
const [open, setOpen] = React.useState(false);
|
|
15
|
+
const handleOpenChange = (newOpen)=>{
|
|
16
|
+
onOpenChange?.(newOpen);
|
|
17
|
+
setOpen(newOpen);
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/ _jsx(AlertDialogContext, {
|
|
20
|
+
value: {
|
|
21
|
+
open,
|
|
22
|
+
setOpen
|
|
23
|
+
},
|
|
24
|
+
children: /*#__PURE__*/ _jsx(AlertDialogPrimitive.Root, {
|
|
25
|
+
"data-slot": "alert-dialog",
|
|
26
|
+
onOpenChange: handleOpenChange,
|
|
27
|
+
open: openProp ?? open,
|
|
28
|
+
...props
|
|
29
|
+
})
|
|
11
30
|
});
|
|
12
31
|
}
|
|
13
32
|
function AlertDialogTrigger({ ...props }) {
|
|
@@ -34,7 +53,7 @@ function AlertDialogContent({ className, ...props }) {
|
|
|
34
53
|
children: [
|
|
35
54
|
/*#__PURE__*/ _jsx(AlertDialogOverlay, {}),
|
|
36
55
|
/*#__PURE__*/ _jsx(AlertDialogPrimitive.Content, {
|
|
37
|
-
className: cn('bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', className),
|
|
56
|
+
className: cn('dark:bg-background bg-card data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', className),
|
|
38
57
|
"data-slot": "alert-dialog-content",
|
|
39
58
|
...props
|
|
40
59
|
})
|
|
@@ -55,6 +74,21 @@ function AlertDialogFooter({ className, ...props }) {
|
|
|
55
74
|
...props
|
|
56
75
|
});
|
|
57
76
|
}
|
|
77
|
+
function AlertDialogFooterSkeleton({ className, ...props }) {
|
|
78
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
79
|
+
className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className),
|
|
80
|
+
"data-slot": "alert-dialog-footer",
|
|
81
|
+
...props,
|
|
82
|
+
children: [
|
|
83
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
84
|
+
className: "h-9 sm:w-24"
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
87
|
+
className: "h-9 sm:w-24"
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
58
92
|
function AlertDialogTitle({ className, ...props }) {
|
|
59
93
|
return /*#__PURE__*/ _jsx(AlertDialogPrimitive.Title, {
|
|
60
94
|
className: cn('text-lg font-semibold', className),
|
|
@@ -78,9 +112,9 @@ function AlertDialogAction({ className, ...props }) {
|
|
|
78
112
|
function AlertDialogCancel({ className, ...props }) {
|
|
79
113
|
return /*#__PURE__*/ _jsx(AlertDialogPrimitive.Cancel, {
|
|
80
114
|
className: cn(buttonVariants({
|
|
81
|
-
variant: '
|
|
115
|
+
variant: 'ghost'
|
|
82
116
|
}), className),
|
|
83
117
|
...props
|
|
84
118
|
});
|
|
85
119
|
}
|
|
86
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
120
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogFooterSkeleton, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,eAAO,MAAM,SAAS;cAZV,OAAO;UACX,OAAO;iBACA,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;cAC3B,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;oCACF,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAQI,CAAC;AAE/D,iBAAS,MAAM,CAAC,EACd,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CA2DnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAmBpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAWtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,eAAO,MAAM,SAAS;cAZV,OAAO;UACX,OAAO;iBACA,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;cAC3B,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;oCACF,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAQI,CAAC;AAE/D,iBAAS,MAAM,CAAC,EACd,YAAY,EACZ,IAAI,EAAE,QAAQ,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CA2DnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAmBpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAWtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CA+CA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQ1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC"}
|
|
@@ -114,7 +114,7 @@ function DialogContent({ className, children, showCloseButton = true, ...props }
|
|
|
114
114
|
children: [
|
|
115
115
|
/*#__PURE__*/ _jsx(DialogOverlay, {}),
|
|
116
116
|
/*#__PURE__*/ _jsxs(DialogPrimitive.Content, {
|
|
117
|
-
className: cn('bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', className),
|
|
117
|
+
className: cn('dark:bg-background bg-card data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', 'max-h-screen overflow-y-scroll', className),
|
|
118
118
|
"data-slot": "dialog-content",
|
|
119
119
|
onInteractOutside: (e)=>{
|
|
120
120
|
// Prevent dismissing the dialog when clicking on a toast
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const coreLogsType: import("drizzle-orm/pg-core").PgEnum<["warn", "error", "debug"]>;
|
|
2
|
+
export type CoreLogsType = (typeof coreLogsType.enumValues)[number];
|
|
3
|
+
export declare const core_logs: Omit<import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
+
name: "core_logs";
|
|
5
|
+
schema: undefined;
|
|
6
|
+
columns: {
|
|
7
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
8
|
+
name: "id";
|
|
9
|
+
tableName: "core_logs";
|
|
10
|
+
dataType: "number";
|
|
11
|
+
columnType: "PgSerial";
|
|
12
|
+
data: number;
|
|
13
|
+
driverParam: number;
|
|
14
|
+
notNull: true;
|
|
15
|
+
hasDefault: true;
|
|
16
|
+
isPrimaryKey: true;
|
|
17
|
+
isAutoincrement: false;
|
|
18
|
+
hasRuntimeDefault: false;
|
|
19
|
+
enumValues: undefined;
|
|
20
|
+
baseColumn: never;
|
|
21
|
+
identity: undefined;
|
|
22
|
+
generated: undefined;
|
|
23
|
+
}, {}, {}>;
|
|
24
|
+
pluginId: import("drizzle-orm/pg-core").PgColumn<{
|
|
25
|
+
name: "pluginId";
|
|
26
|
+
tableName: "core_logs";
|
|
27
|
+
dataType: "string";
|
|
28
|
+
columnType: "PgVarchar";
|
|
29
|
+
data: string;
|
|
30
|
+
driverParam: string;
|
|
31
|
+
notNull: true;
|
|
32
|
+
hasDefault: false;
|
|
33
|
+
isPrimaryKey: false;
|
|
34
|
+
isAutoincrement: false;
|
|
35
|
+
hasRuntimeDefault: false;
|
|
36
|
+
enumValues: [string, ...string[]];
|
|
37
|
+
baseColumn: never;
|
|
38
|
+
identity: undefined;
|
|
39
|
+
generated: undefined;
|
|
40
|
+
}, {}, {
|
|
41
|
+
length: 255;
|
|
42
|
+
}>;
|
|
43
|
+
type: import("drizzle-orm/pg-core").PgColumn<{
|
|
44
|
+
name: "type";
|
|
45
|
+
tableName: "core_logs";
|
|
46
|
+
dataType: "string";
|
|
47
|
+
columnType: "PgEnumColumn";
|
|
48
|
+
data: "warn" | "error" | "debug";
|
|
49
|
+
driverParam: string;
|
|
50
|
+
notNull: true;
|
|
51
|
+
hasDefault: false;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
55
|
+
enumValues: ["warn", "error", "debug"];
|
|
56
|
+
baseColumn: never;
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {}>;
|
|
60
|
+
content: import("drizzle-orm/pg-core").PgColumn<{
|
|
61
|
+
name: "content";
|
|
62
|
+
tableName: "core_logs";
|
|
63
|
+
dataType: "string";
|
|
64
|
+
columnType: "PgText";
|
|
65
|
+
data: string;
|
|
66
|
+
driverParam: string;
|
|
67
|
+
notNull: true;
|
|
68
|
+
hasDefault: false;
|
|
69
|
+
isPrimaryKey: false;
|
|
70
|
+
isAutoincrement: false;
|
|
71
|
+
hasRuntimeDefault: false;
|
|
72
|
+
enumValues: [string, ...string[]];
|
|
73
|
+
baseColumn: never;
|
|
74
|
+
identity: undefined;
|
|
75
|
+
generated: undefined;
|
|
76
|
+
}, {}, {}>;
|
|
77
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
78
|
+
name: "createdAt";
|
|
79
|
+
tableName: "core_logs";
|
|
80
|
+
dataType: "date";
|
|
81
|
+
columnType: "PgTimestamp";
|
|
82
|
+
data: Date;
|
|
83
|
+
driverParam: string;
|
|
84
|
+
notNull: true;
|
|
85
|
+
hasDefault: true;
|
|
86
|
+
isPrimaryKey: false;
|
|
87
|
+
isAutoincrement: false;
|
|
88
|
+
hasRuntimeDefault: false;
|
|
89
|
+
enumValues: undefined;
|
|
90
|
+
baseColumn: never;
|
|
91
|
+
identity: undefined;
|
|
92
|
+
generated: undefined;
|
|
93
|
+
}, {}, {}>;
|
|
94
|
+
ipAddress: import("drizzle-orm/pg-core").PgColumn<{
|
|
95
|
+
name: "ipAddress";
|
|
96
|
+
tableName: "core_logs";
|
|
97
|
+
dataType: "string";
|
|
98
|
+
columnType: "PgVarchar";
|
|
99
|
+
data: string;
|
|
100
|
+
driverParam: string;
|
|
101
|
+
notNull: true;
|
|
102
|
+
hasDefault: false;
|
|
103
|
+
isPrimaryKey: false;
|
|
104
|
+
isAutoincrement: false;
|
|
105
|
+
hasRuntimeDefault: false;
|
|
106
|
+
enumValues: [string, ...string[]];
|
|
107
|
+
baseColumn: never;
|
|
108
|
+
identity: undefined;
|
|
109
|
+
generated: undefined;
|
|
110
|
+
}, {}, {
|
|
111
|
+
length: 45;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
dialect: "pg";
|
|
115
|
+
}>, "enableRLS">;
|
|
116
|
+
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/database/logs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kEAAqD,CAAC;AAE/E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAOP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { pgEnum, pgTable } from "drizzle-orm/pg-core";
|
|
2
|
+
export const coreLogsType = pgEnum('coreLogsType', [
|
|
3
|
+
'warn',
|
|
4
|
+
'error',
|
|
5
|
+
'debug'
|
|
6
|
+
]);
|
|
7
|
+
export const core_logs = pgTable('core_logs', (t)=>({
|
|
8
|
+
id: t.serial().primaryKey(),
|
|
9
|
+
pluginId: t.varchar({
|
|
10
|
+
length: 255
|
|
11
|
+
}).notNull(),
|
|
12
|
+
type: coreLogsType().notNull(),
|
|
13
|
+
content: t.text().notNull(),
|
|
14
|
+
createdAt: t.timestamp().notNull().defaultNow(),
|
|
15
|
+
ipAddress: t.varchar({
|
|
16
|
+
length: 45
|
|
17
|
+
}).notNull()
|
|
18
|
+
})).enableRLS();
|
|
@@ -134,6 +134,25 @@ export declare const core_sessions_known_devices: Omit<import("drizzle-orm/pg-co
|
|
|
134
134
|
identity: undefined;
|
|
135
135
|
generated: undefined;
|
|
136
136
|
}, {}, {}>;
|
|
137
|
+
publicId: import("drizzle-orm/pg-core").PgColumn<{
|
|
138
|
+
name: "publicId";
|
|
139
|
+
tableName: "core_sessions_known_devices";
|
|
140
|
+
dataType: "string";
|
|
141
|
+
columnType: "PgVarchar";
|
|
142
|
+
data: string;
|
|
143
|
+
driverParam: string;
|
|
144
|
+
notNull: true;
|
|
145
|
+
hasDefault: false;
|
|
146
|
+
isPrimaryKey: false;
|
|
147
|
+
isAutoincrement: false;
|
|
148
|
+
hasRuntimeDefault: false;
|
|
149
|
+
enumValues: [string, ...string[]];
|
|
150
|
+
baseColumn: never;
|
|
151
|
+
identity: undefined;
|
|
152
|
+
generated: undefined;
|
|
153
|
+
}, {}, {
|
|
154
|
+
length: 32;
|
|
155
|
+
}>;
|
|
137
156
|
ipAddress: import("drizzle-orm/pg-core").PgColumn<{
|
|
138
157
|
name: "ipAddress";
|
|
139
158
|
tableName: "core_sessions_known_devices";
|