@vitnode/core 1.2.0-canary.54 → 1.2.0-canary.55
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/get-config.d.ts.map +1 -1
- package/dist/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/prepare-database.d.ts.map +1 -1
- package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
- package/dist/scripts/scripts.js +1 -1
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/adapters/cron/node-cron.adapter.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/google.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/cron.d.ts +4 -4
- package/dist/src/api/lib/cron.d.ts.map +1 -1
- package/dist/src/api/lib/logger-middleware.js +1 -1
- package/dist/src/api/lib/module.d.ts +2 -2
- package/dist/src/api/lib/module.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.d.ts +1 -1
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/with-pagination.d.ts +1 -1
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/middlewares/cron-auth.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.d.ts +6 -6
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +0 -1
- package/dist/src/api/models/device.d.ts.map +1 -1
- package/dist/src/api/models/device.js +1 -1
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +1 -2
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/sso.d.ts.map +1 -1
- package/dist/src/api/models/sso.js +1 -1
- package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +1 -0
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -1
- package/dist/src/api/modules/cron/cron/clean.cron.d.ts.map +1 -1
- package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -1
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +10 -10
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -1
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.js +3 -3
- package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -1
- package/dist/src/api/modules/cron/routes/cron.route.js +1 -1
- package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/advanced/cron/page.js +3 -3
- package/dist/src/app_admin/core/debug/page.js +1 -1
- package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/users/page.js +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +1 -1
- package/dist/src/components/confirm-action/content.d.ts.map +1 -1
- package/dist/src/components/confirm-action/content.js +1 -0
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +0 -1
- package/dist/src/components/form/fields/checkbox.d.ts +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.d.ts +1 -1
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/switch.js +1 -1
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -1
- package/dist/src/components/table/content.d.ts.map +1 -1
- package/dist/src/components/table/data-table.d.ts +1 -1
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/order-table-head.d.ts.map +1 -1
- package/dist/src/components/table/pagination.js +1 -1
- package/dist/src/components/tiptap/extension.d.ts.map +1 -1
- package/dist/src/components/tiptap/extension.js +7 -0
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.js +91 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.js +45 -46
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/list-action.js +14 -13
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +5 -5
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +6 -6
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +38 -18
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.d.ts +1 -1
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/badge.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts.map +1 -1
- package/dist/src/components/ui/button.d.ts +2 -2
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/checkbox.d.ts +1 -1
- package/dist/src/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/components/ui/command.d.ts +1 -1
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.d.ts +1 -1
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/editor-content.js +1 -1
- package/dist/src/components/ui/editor.d.ts.map +1 -1
- package/dist/src/components/ui/editor.js +1 -1
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.d.ts +1 -1
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/label.d.ts +1 -1
- package/dist/src/components/ui/label.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.d.ts +1 -1
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.d.ts +1 -1
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/popover.d.ts +1 -1
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/progress.d.ts +1 -1
- package/dist/src/components/ui/progress.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.d.ts +1 -1
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/scroll-area.d.ts +6 -0
- package/dist/src/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/src/components/ui/scroll-area.js +33 -0
- package/dist/src/components/ui/select.d.ts +1 -1
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/separator.d.ts +1 -1
- package/dist/src/components/ui/separator.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.d.ts +1 -1
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.js +0 -1
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/switch.d.ts +1 -1
- package/dist/src/components/ui/switch.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.d.ts +1 -1
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.d.ts +1 -1
- package/dist/src/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.js +1 -1
- package/dist/src/components/ui/tooltip.d.ts +1 -1
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/drizzle.config.d.ts.map +1 -1
- package/dist/src/drizzle.config.js +1 -1
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +20 -21
- package/dist/src/hooks/use-captcha.d.ts +20 -0
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +19 -18
- package/dist/src/hooks/use-mobile.d.ts.map +1 -1
- package/dist/src/hooks/use-mobile.js +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.d.ts.map +1 -1
- package/dist/src/lib/api/get-next-cron-run-date.js +2 -2
- package/dist/src/lib/api/should-cron-job-run.d.ts.map +1 -1
- package/dist/src/lib/api/should-cron-job-run.js +2 -2
- package/dist/src/lib/config.js +1 -1
- package/dist/src/lib/ctrl-or-command-character.d.ts +1 -1
- package/dist/src/lib/ctrl-or-command-character.d.ts.map +1 -1
- package/dist/src/lib/ctrl-or-command-character.js +2 -6
- package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +1 -2
- package/dist/src/lib/fetcher-client.d.ts.map +1 -1
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +0 -1
- package/dist/src/lib/navigation.d.ts +1 -1
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/lib/tiptap/toolbar/actions/bold-action.d.ts +1 -0
- package/dist/src/lib/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
- package/dist/src/lib/tiptap/toolbar/actions/bold-action.js +0 -0
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +4 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +4 -4
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.js +4 -3
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +1 -1
- package/dist/src/views/admin/views/core/test.js +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/components/password-input.js +2 -1
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/wrapper.js +6 -3
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.js +2 -1
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
- package/dist/src/vitnode.config.d.ts +1 -1
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +17 -0
- package/package.json +7 -3
- package/src/app_admin/core/advanced/cron/page.tsx +3 -2
- package/src/app_admin/core/debug/page.tsx +1 -1
- package/src/app_admin/core/users/page.tsx +2 -1
- package/src/locales/en.json +8 -0
- package/src/tiptap.css +9 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import eslintVitNode from "@vitnode/config/eslint";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname } from "node:path";
|
|
4
|
+
|
|
5
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
...eslintVitNode,
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parserOptions: {
|
|
12
|
+
project: "./tsconfig.json",
|
|
13
|
+
tsconfigRootDir: __dirname,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitnode/core",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.55",
|
|
4
4
|
"description": "Core package for VitNode, providing essential functionalities and configurations.",
|
|
5
5
|
"author": "VitNode Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"dotenv": "^17.2.2",
|
|
57
57
|
"drizzle-kit": "^0.31.4",
|
|
58
58
|
"drizzle-orm": "^0.44.5",
|
|
59
|
+
"eslint": "^9.36.0",
|
|
59
60
|
"hono": "^4.9.6",
|
|
60
61
|
"jsdom": "^26.1.0",
|
|
61
62
|
"lucide-react": "^0.542.0",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"vite-tsconfig-paths": "^5.1.4",
|
|
77
78
|
"vitest": "^3.2.4",
|
|
78
79
|
"zod": "^4.1.5",
|
|
79
|
-
"@vitnode/config": "1.2.0-canary.
|
|
80
|
+
"@vitnode/config": "1.2.0-canary.55"
|
|
80
81
|
},
|
|
81
82
|
"bin": {
|
|
82
83
|
"vitnode": "./dist/scripts/scripts.js"
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
"@hono/swagger-ui": "^0.5.2",
|
|
103
104
|
"@react-email/preview-server": "^4.2.8",
|
|
104
105
|
"@tanstack/react-query": "^5.87.1",
|
|
106
|
+
"@tiptap/extension-text-align": "^3.4.1",
|
|
105
107
|
"@tiptap/pm": "^3.4.1",
|
|
106
108
|
"@tiptap/react": "^3.4.1",
|
|
107
109
|
"@tiptap/starter-kit": "^3.4.1",
|
|
@@ -131,6 +133,8 @@
|
|
|
131
133
|
"dev:email": "email dev --dir src/emails",
|
|
132
134
|
"test": "vitest run",
|
|
133
135
|
"test:watch": "vitest",
|
|
134
|
-
"test:coverage": "vitest run --coverage"
|
|
136
|
+
"test:coverage": "vitest run --coverage",
|
|
137
|
+
"lint": "eslint .",
|
|
138
|
+
"lint:fix": "eslint . --fix"
|
|
135
139
|
}
|
|
136
140
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import dynamic from "next/dynamic";
|
|
2
1
|
import { getTranslations } from "next-intl/server";
|
|
2
|
+
import dynamic from "next/dynamic";
|
|
3
3
|
import React from "react";
|
|
4
|
+
|
|
4
5
|
import { I18nProvider } from "@/components/i18n-provider";
|
|
5
6
|
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
6
7
|
import { HeaderContent } from "@/components/ui/header-content";
|
|
@@ -30,7 +31,7 @@ export default async function Page(
|
|
|
30
31
|
return (
|
|
31
32
|
<I18nProvider namespaces={["admin.advanced.cron"]}>
|
|
32
33
|
<div className="p-4">
|
|
33
|
-
<HeaderContent
|
|
34
|
+
<HeaderContent desc={t("desc")} h1={t("title")} />
|
|
34
35
|
|
|
35
36
|
<React.Suspense fallback={<DataTableSkeleton columns={6} />}>
|
|
36
37
|
<CronTableView {...props} />
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "next/dist/types";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { getTranslations } from "next-intl/server";
|
|
4
|
+
import dynamic from "next/dynamic";
|
|
4
5
|
import React from "react";
|
|
5
6
|
|
|
6
7
|
import { DataTableSkeleton } from "@/components/table/data-table";
|
package/src/locales/en.json
CHANGED
|
@@ -9,9 +9,17 @@
|
|
|
9
9
|
"bold": "Bold",
|
|
10
10
|
"italic": "Italic",
|
|
11
11
|
"underline": "Underline",
|
|
12
|
+
"ordered_list": "Ordered List",
|
|
13
|
+
"bullet_list": "Bullet List",
|
|
12
14
|
"text_format_more": {
|
|
13
15
|
"label": "More text formats",
|
|
14
16
|
"strike": "Strike"
|
|
17
|
+
},
|
|
18
|
+
"alignments": {
|
|
19
|
+
"left": "Left align",
|
|
20
|
+
"center": "Center align",
|
|
21
|
+
"right": "Right align",
|
|
22
|
+
"justify": "Justify align"
|
|
15
23
|
}
|
|
16
24
|
},
|
|
17
25
|
"theme_switcher": "Toggle Theme",
|
package/src/tiptap.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** biome-ignore-all lint/suspicious/noUnknownAtRules: tailwindcss */
|
|
2
1
|
@import "tailwindcss";
|
|
3
2
|
|
|
4
3
|
.tiptap {
|
|
@@ -17,4 +16,13 @@
|
|
|
17
16
|
h4 {
|
|
18
17
|
@apply text-xl font-semibold tracking-tight;
|
|
19
18
|
}
|
|
19
|
+
|
|
20
|
+
ul,
|
|
21
|
+
ol {
|
|
22
|
+
@apply my-4 ml-6 space-y-2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
p {
|
|
26
|
+
@apply [&:not(:first-child)]:mt-2;
|
|
27
|
+
}
|
|
20
28
|
}
|