@vitnode/core 1.2.0-canary.26 → 1.2.0-canary.28
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/scripts.js +2 -2
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +2 -1
- package/dist/src/api/lib/route.d.ts +1 -0
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/route.js +4 -0
- package/dist/src/api/middlewares/captcha.middleware.d.ts +3 -0
- package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -0
- package/dist/src/api/middlewares/captcha.middleware.js +62 -0
- package/dist/src/api/middlewares/global.middleware.d.ts +3 -2
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +4 -3
- package/dist/src/api/models/sso.js +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +4 -4
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +4 -4
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +4 -4
- package/dist/src/api/modules/middleware/middleware.module.d.ts +22 -0
- package/dist/src/api/modules/middleware/middleware.module.d.ts.map +1 -1
- package/dist/src/api/modules/middleware/route.d.ts +65 -0
- package/dist/src/api/modules/middleware/route.d.ts.map +1 -1
- package/dist/src/api/modules/middleware/route.js +22 -10
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +1 -0
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +1 -0
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
- package/dist/src/api/modules/users/users.module.d.ts +5 -4
- package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.d.ts +7 -2
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +13 -3
- package/dist/src/hooks/use-captcha.d.ts +8 -0
- package/dist/src/hooks/use-captcha.d.ts.map +1 -0
- package/dist/src/hooks/use-captcha.js +94 -0
- package/dist/src/lib/api/get-middleware-api.d.ts +4 -0
- package/dist/src/lib/api/get-middleware-api.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.d.ts +2 -1
- package/dist/src/lib/fetcher-client.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.js +7 -2
- package/dist/src/lib/fetcher.d.ts +2 -1
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/fetcher.js +10 -6
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +0 -2
- package/dist/src/views/admin/layouts/sidebar/sidebar.js +0 -1
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +1 -1
- package/dist/src/views/auth/sign-in/form/use-form.d.ts +3 -2
- package/dist/src/views/auth/sign-in/form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts +4 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +2 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +3 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.js +2 -1
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +3 -21
- package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/use-form.js +5 -2
- package/dist/src/views/auth/sign-up/sign-up-view.js +2 -1
- package/dist/src/views/layouts/root-layout.d.ts +1 -3
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +9 -21
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.js +0 -1
- package/dist/src/views/layouts/theme/header/user/user.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/user.js +0 -2
- package/dist/src/vitnode.config.d.ts +6 -1
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/locales/en.json +1 -0
|
@@ -43,7 +43,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
|
|
|
43
43
|
toggleSidebar();
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
prefetch: true,
|
|
47
46
|
rel: isOpenInNewTab ? 'noopener noreferrer' : undefined,
|
|
48
47
|
target: isOpenInNewTab ? '_blank' : undefined,
|
|
49
48
|
children: content
|
|
@@ -88,7 +87,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
|
|
|
88
87
|
toggleSidebar();
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
|
-
prefetch: true,
|
|
92
90
|
rel: item.isOpenInNewTab ? 'noopener noreferrer' : undefined,
|
|
93
91
|
target: item.isOpenInNewTab ? '_blank' : undefined,
|
|
94
92
|
children: item.title
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const getSystemLogsData: (query: Record<string, string | string[] | undefined>) => Promise<{
|
|
2
2
|
edges: {
|
|
3
|
+
method: string;
|
|
3
4
|
ipAddress: string;
|
|
4
5
|
user: {
|
|
5
6
|
id: number;
|
|
@@ -13,7 +14,6 @@ export declare const getSystemLogsData: (query: Record<string, string | string[]
|
|
|
13
14
|
path: string;
|
|
14
15
|
pluginId: string;
|
|
15
16
|
content: string;
|
|
16
|
-
method: string;
|
|
17
17
|
statusCode: number;
|
|
18
18
|
}[];
|
|
19
19
|
pageInfo: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { AutoFormOnSubmit } from '../../../../components/form/auto-form';
|
|
2
3
|
export declare const useFormSignIn: ({ isAdmin }: {
|
|
3
4
|
isAdmin?: boolean;
|
|
4
5
|
}) => {
|
|
5
|
-
onSubmit:
|
|
6
|
+
onSubmit: AutoFormOnSubmit<z.ZodObject<{
|
|
6
7
|
email: z.ZodDefault<z.ZodString>;
|
|
7
8
|
password: z.ZodDefault<z.ZodString>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,7 +12,7 @@ export declare const useFormSignIn: ({ isAdmin }: {
|
|
|
11
12
|
}, {
|
|
12
13
|
email?: string | undefined;
|
|
13
14
|
password?: string | undefined;
|
|
14
|
-
}
|
|
15
|
+
}>>;
|
|
15
16
|
error: "" | "access_denied";
|
|
16
17
|
formSchema: z.ZodObject<{
|
|
17
18
|
email: z.ZodDefault<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/use-form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/use-form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAI9E,eAAO,MAAM,aAAa,GAAI,aAAa;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;CAgC/D,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { routeMiddlewareSchema } from '../../../../api/modules/middleware/route';
|
|
3
|
+
export declare const FormSignUp: ({ isEmail, captcha, }: {
|
|
4
|
+
captcha: z.infer<typeof routeMiddlewareSchema>["captcha"];
|
|
2
5
|
isEmail: boolean;
|
|
3
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
7
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAY5E,eAAO,MAAM,UAAU,GAAI,uBAGxB;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,EAAE,OAAO,CAAC;CAClB,4CAuFA,CAAC"}
|
|
@@ -8,10 +8,11 @@ import { Link } from "../../../../lib/navigation.js";
|
|
|
8
8
|
import { removeSpecialCharacters } from "../../../../lib/special-characters.js";
|
|
9
9
|
import { PasswordInput } from "../../components/password-input.js";
|
|
10
10
|
import { useFormSignUp } from "./use-form.js";
|
|
11
|
-
export const FormSignUp = ({ isEmail })=>{
|
|
11
|
+
export const FormSignUp = ({ isEmail, captcha })=>{
|
|
12
12
|
const t = useTranslations('core.auth.sign_up');
|
|
13
13
|
const { onSubmit, formSchema } = useFormSignUp();
|
|
14
14
|
return /*#__PURE__*/ _jsx(AutoForm, {
|
|
15
|
+
captcha: captcha,
|
|
15
16
|
fields: [
|
|
16
17
|
{
|
|
17
18
|
id: 'name',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { zodSignUpSchema } from '../../../../api/modules/users/routes/sign-up.route';
|
|
3
|
-
export declare const mutationApi: (input: z.infer<typeof zodSignUpSchema>
|
|
3
|
+
export declare const mutationApi: ({ captchaToken, ...input }: z.infer<typeof zodSignUpSchema> & {
|
|
4
|
+
captchaToken: any;
|
|
5
|
+
}) => Promise<{
|
|
4
6
|
error: string;
|
|
5
7
|
data?: undefined;
|
|
6
8
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GAAU,
|
|
1
|
+
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GAAU,4BAG/B,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,YAAY,MAAA;CAAE;;;;;;;;;;EAuBpD,CAAC"}
|
|
@@ -3,12 +3,13 @@ import { revalidatePath } from "next/cache";
|
|
|
3
3
|
import { usersModule } from "../../../../api/modules/users/users.module.js";
|
|
4
4
|
import { fetcher } from "../../../../lib/fetcher.js";
|
|
5
5
|
import { redirect } from "../../../../lib/navigation.js";
|
|
6
|
-
export const mutationApi = async (input)=>{
|
|
6
|
+
export const mutationApi = async ({ captchaToken, ...input })=>{
|
|
7
7
|
const res = await fetcher(usersModule, {
|
|
8
8
|
path: '/sign_up',
|
|
9
9
|
method: 'post',
|
|
10
10
|
module: 'users',
|
|
11
11
|
allowSaveCookies: true,
|
|
12
|
+
captchaToken,
|
|
12
13
|
args: {
|
|
13
14
|
body: input
|
|
14
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { UseFormReturn } from 'react-hook-form';
|
|
2
1
|
import { z } from 'zod';
|
|
2
|
+
import type { AutoFormOnSubmit } from '../../../../components/form/auto-form';
|
|
3
3
|
export declare const useFormSignUp: () => {
|
|
4
|
-
onSubmit:
|
|
4
|
+
onSubmit: AutoFormOnSubmit<z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
email: z.ZodString;
|
|
7
7
|
password: z.ZodString;
|
|
@@ -19,25 +19,7 @@ export declare const useFormSignUp: () => {
|
|
|
19
19
|
password: string;
|
|
20
20
|
terms: boolean;
|
|
21
21
|
newsletter?: boolean | undefined;
|
|
22
|
-
}
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
email: z.ZodString;
|
|
25
|
-
password: z.ZodString;
|
|
26
|
-
terms: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
27
|
-
newsletter: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
name: string;
|
|
30
|
-
email: string;
|
|
31
|
-
password: string;
|
|
32
|
-
terms: boolean;
|
|
33
|
-
newsletter?: boolean | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
name: string;
|
|
36
|
-
email: string;
|
|
37
|
-
password: string;
|
|
38
|
-
terms: boolean;
|
|
39
|
-
newsletter?: boolean | undefined;
|
|
40
|
-
}>>>) => Promise<void>;
|
|
22
|
+
}>>;
|
|
41
23
|
formSchema: z.ZodObject<{
|
|
42
24
|
name: z.ZodString;
|
|
43
25
|
email: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/use-form.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/use-form.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAKpE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EzB,CAAC"}
|
|
@@ -22,8 +22,11 @@ export const useFormSignUp = ()=>{
|
|
|
22
22
|
newsletter: z.boolean().optional()
|
|
23
23
|
});
|
|
24
24
|
const { setShowSendingEmail } = useWrapperSignUp();
|
|
25
|
-
const onSubmit = async (values, form)=>{
|
|
26
|
-
const mutation = await mutationApi(
|
|
25
|
+
const onSubmit = async (values, form, { captchaToken })=>{
|
|
26
|
+
const mutation = await mutationApi({
|
|
27
|
+
...values,
|
|
28
|
+
captchaToken
|
|
29
|
+
});
|
|
27
30
|
if (mutation.data) {
|
|
28
31
|
if (!mutation.data.emailVerified) {
|
|
29
32
|
setShowSendingEmail(mutation.data.email);
|
|
@@ -9,7 +9,7 @@ import { SSOButtons, SSOButtonsSkeleton } from "../sso/buttons/sso-buttons.js";
|
|
|
9
9
|
import { FormSignUp } from "./form/form.js";
|
|
10
10
|
import { WrapperSignUp } from "./wrapper.js";
|
|
11
11
|
export const SignUpView = async ()=>{
|
|
12
|
-
const [t, tGlobal, { isEmail }] = await Promise.all([
|
|
12
|
+
const [t, tGlobal, { isEmail, captcha }] = await Promise.all([
|
|
13
13
|
getTranslations('core.auth.sign_up'),
|
|
14
14
|
getTranslations('core.global'),
|
|
15
15
|
getMiddlewareApi()
|
|
@@ -38,6 +38,7 @@ export const SignUpView = async ()=>{
|
|
|
38
38
|
]
|
|
39
39
|
}),
|
|
40
40
|
/*#__PURE__*/ _jsx(FormSignUp, {
|
|
41
|
+
captcha: captcha,
|
|
41
42
|
isEmail: isEmail
|
|
42
43
|
}),
|
|
43
44
|
/*#__PURE__*/ _jsx(React.Suspense, {
|
|
@@ -8,9 +8,7 @@ export interface RootLayoutProps {
|
|
|
8
8
|
}>;
|
|
9
9
|
}
|
|
10
10
|
export declare const generateMetadataRootLayout: ({ metadata: { title, shortTitle }, }: VitNodeConfig) => Metadata;
|
|
11
|
-
export declare const RootLayout: ({ children,
|
|
12
|
-
className?: string;
|
|
11
|
+
export declare const RootLayout: ({ children, params, config, }: RootLayoutProps & {
|
|
13
12
|
config: VitNodeConfig;
|
|
14
|
-
head?: React.ReactNode;
|
|
15
13
|
}) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
16
14
|
//# sourceMappingURL=root-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-layout.d.ts","sourceRoot":"","sources":["../../../../src/views/layouts/root-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ;AAED,eAAO,MAAM,0BAA0B,GAAI,sCAExC,aAAa,KAAG,QAQlB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,
|
|
1
|
+
{"version":3,"file":"root-layout.d.ts","sourceRoot":"","sources":["../../../../src/views/layouts/root-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ;AAED,eAAO,MAAM,0BAA0B,GAAI,sCAExC,aAAa,KAAG,QAQlB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,+BAI9B,eAAe,GAAG;IACnB,MAAM,EAAE,aAAa,CAAC;CACvB,qDAWA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { setRequestLocale } from "next-intl/server";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { I18nProvider } from "../../components/i18n-provider.js";
|
|
@@ -12,27 +12,15 @@ export const generateMetadataRootLayout = ({ metadata: { title, shortTitle } })=
|
|
|
12
12
|
description: 'Generated by create next app'
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export const RootLayout = async ({ children,
|
|
15
|
+
export const RootLayout = async ({ children, params, config })=>{
|
|
16
16
|
const { locale } = await params;
|
|
17
17
|
setRequestLocale(locale);
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/*#__PURE__*/ _jsx("body", {
|
|
26
|
-
className: className,
|
|
27
|
-
children: /*#__PURE__*/ _jsx(I18nProvider, {
|
|
28
|
-
namespaces: [],
|
|
29
|
-
children: /*#__PURE__*/ _jsx(RootProvider, {
|
|
30
|
-
debug: config.debug,
|
|
31
|
-
theme: config.theme,
|
|
32
|
-
children: children
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
]
|
|
18
|
+
return /*#__PURE__*/ _jsx(I18nProvider, {
|
|
19
|
+
namespaces: [],
|
|
20
|
+
children: /*#__PURE__*/ _jsx(RootProvider, {
|
|
21
|
+
debug: config.debug,
|
|
22
|
+
theme: config.theme,
|
|
23
|
+
children: children
|
|
24
|
+
})
|
|
37
25
|
});
|
|
38
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../src/views/layouts/theme/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAUtD,eAAO,MAAM,YAAY,GAAI,8CAK1B,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAClC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../src/views/layouts/theme/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAUtD,eAAO,MAAM,YAAY,GAAI,8CAK1B,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAClC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,4CAsBA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/layouts/theme/header/user/user.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/layouts/theme/header/user/user.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,wDA4BtB,CAAC"}
|
|
@@ -18,13 +18,11 @@ export const UserHeader = async ()=>{
|
|
|
18
18
|
variant: 'ghost'
|
|
19
19
|
})),
|
|
20
20
|
href: "/login",
|
|
21
|
-
prefetch: true,
|
|
22
21
|
children: t('login')
|
|
23
22
|
}),
|
|
24
23
|
/*#__PURE__*/ _jsx(Link, {
|
|
25
24
|
className: cn(buttonVariants()),
|
|
26
25
|
href: "/register",
|
|
27
|
-
prefetch: true,
|
|
28
26
|
children: t('register')
|
|
29
27
|
})
|
|
30
28
|
]
|
|
@@ -36,7 +36,12 @@ export interface VitNodeApiConfig {
|
|
|
36
36
|
cookieSecure?: boolean;
|
|
37
37
|
deviceCookieExpires?: number;
|
|
38
38
|
deviceCookieName?: string;
|
|
39
|
-
|
|
39
|
+
ssoAdapters?: SSOApiPlugin[];
|
|
40
|
+
};
|
|
41
|
+
captcha?: {
|
|
42
|
+
secretKey: string | undefined;
|
|
43
|
+
siteKey: string | undefined;
|
|
44
|
+
type: 'cloudflare_turnstile' | 'recaptcha_v3';
|
|
40
45
|
};
|
|
41
46
|
dbProvider: PostgresJsDatabase;
|
|
42
47
|
emailAdapter?: EmailApiPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitnode.config.d.ts","sourceRoot":"","sources":["../../src/vitnode.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,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,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;QACN,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE;QACJ,aAA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