@vitnode/core 1.2.0-canary.53 → 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 +0 -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 +4 -4
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/adapters/cron/node-cron.adapter.d.ts +3 -0
- package/dist/src/api/adapters/cron/node-cron.adapter.d.ts.map +1 -0
- package/dist/src/api/adapters/cron/node-cron.adapter.js +11 -0
- 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 +22 -9
- package/dist/src/api/lib/cron.d.ts +18 -0
- package/dist/src/api/lib/cron.d.ts.map +1 -0
- package/dist/src/api/lib/cron.js +22 -0
- package/dist/src/api/lib/logger-middleware.js +1 -1
- package/dist/src/api/lib/module.d.ts +4 -1
- package/dist/src/api/lib/module.d.ts.map +1 -1
- package/dist/src/api/lib/module.js +3 -2
- package/dist/src/api/lib/plugin.d.ts +2 -0
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.js +9 -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 +3 -0
- package/dist/src/api/middlewares/cron-auth.middleware.d.ts.map +1 -0
- package/dist/src/api/middlewares/cron-auth.middleware.js +19 -0
- package/dist/src/api/middlewares/global.middleware.d.ts +8 -2
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +33 -23
- 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 +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 +1 -1
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +163 -1
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +6 -3
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +164 -0
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.js +11 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts +164 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.js +12 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts +98 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/get.route.js +66 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts +70 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/cron/routes/run.route.js +95 -0
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +1 -1
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +1 -1
- package/dist/src/api/modules/admin/routes/session.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +3 -3
- package/dist/src/api/modules/admin/users/routes/users.route.js +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
- package/dist/src/api/modules/cron/cron/clean.cron.d.ts +2 -0
- package/dist/src/api/modules/cron/cron/clean.cron.d.ts.map +1 -0
- package/dist/src/api/modules/cron/cron/clean.cron.js +24 -0
- package/dist/src/api/modules/cron/cron.module.d.ts +26 -0
- package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -0
- package/dist/src/api/modules/cron/cron.module.js +14 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +36 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -0
- package/dist/src/api/modules/cron/helpers/process-cron-jobs.js +72 -0
- package/dist/src/api/modules/cron/routes/cron.route.d.ts +27 -0
- package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -0
- package/dist/src/api/modules/cron/routes/cron.route.js +95 -0
- package/dist/src/api/modules/middleware/middleware.module.js +1 -1
- package/dist/src/api/modules/middleware/route.js +1 -1
- package/dist/src/api/modules/users/routes/change-password.route.js +1 -1
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +1 -1
- package/dist/src/api/modules/users/routes/session.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-in.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-out.route.js +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +1 -1
- package/dist/src/api/modules/users/routes/test.route.js +1 -1
- package/dist/src/api/modules/users/sso/routes/callback.route.js +1 -1
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +1 -1
- package/dist/src/api/modules/users/sso/sso.module.js +1 -1
- package/dist/src/api/modules/users/users.module.js +1 -1
- package/dist/src/api/plugin.d.ts.map +1 -1
- package/dist/src/api/plugin.js +4 -2
- package/dist/src/app_admin/core/advanced/cron/page.d.ts +11 -0
- package/dist/src/app_admin/core/advanced/cron/page.d.ts.map +1 -0
- package/dist/src/app_admin/core/advanced/cron/page.js +42 -0
- 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-swietcher.d.ts → language-switcher.d.ts} +1 -1
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
- 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 +4 -0
- package/dist/src/components/tiptap/extension.d.ts.map +1 -0
- package/dist/src/components/tiptap/extension.js +33 -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 +2 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/bold-action.js +39 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/headings-action.js +93 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/italic-action.js +38 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/list-action.js +61 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +59 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/underline-action.js +38 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts +2 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/undo-redo-actions.js +63 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts +4 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/actions/utils/tooltip-shortcut.js +11 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts +5 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/tiptap-toolbar.js +55 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts +9 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.d.ts.map +1 -0
- package/dist/src/components/tiptap/toolbar/use-toolbar-editor.js +5 -0
- 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-client.d.ts.map +1 -1
- package/dist/src/components/ui/button-client.js +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/button.js +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.d.ts +4 -0
- package/dist/src/components/ui/editor-content.d.ts.map +1 -0
- package/dist/src/components/ui/editor-content.js +10 -0
- package/dist/src/components/ui/editor.d.ts +6 -0
- package/dist/src/components/ui/editor.d.ts.map +1 -0
- package/dist/src/components/ui/editor.js +35 -0
- 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 +14 -15
- 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/table.js +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 +5 -2
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +18 -2
- package/dist/src/database/cron.d.ts +171 -0
- package/dist/src/database/cron.d.ts.map +1 -0
- package/dist/src/database/cron.js +22 -0
- package/dist/src/database/users.d.ts +2 -2
- package/dist/src/database/users.js +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 +2 -0
- package/dist/src/lib/api/get-next-cron-run-date.d.ts.map +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.js +14 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.d.ts +2 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.d.ts.map +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.test.js +55 -0
- package/dist/src/lib/api/should-cron-job-run.d.ts +2 -0
- package/dist/src/lib/api/should-cron-job-run.d.ts.map +1 -0
- package/dist/src/lib/api/should-cron-job-run.js +16 -0
- package/dist/src/lib/api/should-cron-job-run.test.d.ts +2 -0
- package/dist/src/lib/api/should-cron-job-run.test.d.ts.map +1 -0
- package/dist/src/lib/api/should-cron-job-run.test.js +213 -0
- package/dist/src/lib/config.d.ts +1 -0
- package/dist/src/lib/config.d.ts.map +1 -1
- package/dist/src/lib/config.js +7 -5
- package/dist/src/lib/ctrl-or-command-character.d.ts +2 -0
- package/dist/src/lib/ctrl-or-command-character.d.ts.map +1 -0
- package/dist/src/lib/ctrl-or-command-character.js +5 -0
- 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 +2 -2
- 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 +5 -2
- 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 -3
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +12 -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 +5 -0
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/cron-table-view.js +97 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts +4 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/mutation-api.js +23 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts +4 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/cron/run-action/run-action.js +38 -0
- 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.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +12 -21
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +116 -106
- 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/header.js +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
- package/dist/src/vitnode.config.d.ts +2 -0
- 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 +37 -27
- package/src/app_admin/core/advanced/cron/page.tsx +42 -0
- 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 +51 -0
- package/src/tiptap.css +28 -0
- package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +0 -1
- /package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +0 -0
|
@@ -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",
|
|
@@ -40,42 +40,44 @@
|
|
|
40
40
|
"@hono/zod-openapi": "^1.1.0",
|
|
41
41
|
"@hono/zod-validator": "^0.7.2",
|
|
42
42
|
"@hookform/resolvers": "^5.2.1",
|
|
43
|
-
"@react-email/components": "^0.5.
|
|
43
|
+
"@react-email/components": "^0.5.2",
|
|
44
44
|
"@swc/cli": "0.6.0",
|
|
45
|
-
"@swc/core": "^1.13.
|
|
45
|
+
"@swc/core": "^1.13.5",
|
|
46
46
|
"@testing-library/dom": "^10.4.1",
|
|
47
47
|
"@testing-library/react": "^16.3.0",
|
|
48
|
-
"@types/node": "^24.3.
|
|
48
|
+
"@types/node": "^24.3.1",
|
|
49
49
|
"@types/nodemailer": "^7.0.1",
|
|
50
|
-
"@types/react": "^19.1.
|
|
51
|
-
"@types/react-dom": "^19.1.
|
|
52
|
-
"@vitejs/plugin-react": "^5.0.
|
|
50
|
+
"@types/react": "^19.1.12",
|
|
51
|
+
"@types/react-dom": "^19.1.9",
|
|
52
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
53
53
|
"@vitest/coverage-v8": "^3.2.4",
|
|
54
54
|
"chokidar": "^4.0.3",
|
|
55
|
-
"concurrently": "^9.2.
|
|
56
|
-
"dotenv": "^17.2.
|
|
55
|
+
"concurrently": "^9.2.1",
|
|
56
|
+
"dotenv": "^17.2.2",
|
|
57
57
|
"drizzle-kit": "^0.31.4",
|
|
58
|
-
"drizzle-orm": "^0.44.
|
|
59
|
-
"
|
|
58
|
+
"drizzle-orm": "^0.44.5",
|
|
59
|
+
"eslint": "^9.36.0",
|
|
60
|
+
"hono": "^4.9.6",
|
|
60
61
|
"jsdom": "^26.1.0",
|
|
61
|
-
"lucide-react": "^0.
|
|
62
|
-
"next": "^15.5.
|
|
63
|
-
"next-intl": "^4.3.
|
|
62
|
+
"lucide-react": "^0.542.0",
|
|
63
|
+
"next": "^15.5.2",
|
|
64
|
+
"next-intl": "^4.3.6",
|
|
65
|
+
"node-cron": "^4.2.1",
|
|
64
66
|
"react": "^19.1.1",
|
|
65
67
|
"react-dom": "^19.1.1",
|
|
66
68
|
"react-email": "^4.2.8",
|
|
67
69
|
"react-hook-form": "^7.62.0",
|
|
68
70
|
"sonner": "^2.0.7",
|
|
69
|
-
"tailwindcss": "^4.1.
|
|
71
|
+
"tailwindcss": "^4.1.13",
|
|
70
72
|
"tsc-alias": "^1.8.16",
|
|
71
73
|
"tsup": "^8.5.0",
|
|
72
|
-
"tsx": "^4.20.
|
|
73
|
-
"tw-animate-css": "^1.3.
|
|
74
|
+
"tsx": "^4.20.5",
|
|
75
|
+
"tw-animate-css": "^1.3.8",
|
|
74
76
|
"typescript": "^5.9.2",
|
|
75
77
|
"vite-tsconfig-paths": "^5.1.4",
|
|
76
78
|
"vitest": "^3.2.4",
|
|
77
|
-
"zod": "^4.
|
|
78
|
-
"@vitnode/config": "1.2.0-canary.
|
|
79
|
+
"zod": "^4.1.5",
|
|
80
|
+
"@vitnode/config": "1.2.0-canary.55"
|
|
79
81
|
},
|
|
80
82
|
"bin": {
|
|
81
83
|
"vitnode": "./dist/scripts/scripts.js"
|
|
@@ -92,29 +94,35 @@
|
|
|
92
94
|
"default": "./dist/src/*.js"
|
|
93
95
|
},
|
|
94
96
|
"./config/next.config": "./config/next.config.ts",
|
|
95
|
-
"./locales/en.json": "./src/locales/en.json"
|
|
97
|
+
"./locales/en.json": "./src/locales/en.json",
|
|
98
|
+
"./styles/tiptap.css": "./src/tiptap.css"
|
|
96
99
|
},
|
|
97
100
|
"type": "module",
|
|
98
101
|
"dependencies": {
|
|
99
102
|
"@dnd-kit/core": "^6.3.1",
|
|
100
103
|
"@hono/swagger-ui": "^0.5.2",
|
|
101
104
|
"@react-email/preview-server": "^4.2.8",
|
|
102
|
-
"@tanstack/react-query": "^5.
|
|
105
|
+
"@tanstack/react-query": "^5.87.1",
|
|
106
|
+
"@tiptap/extension-text-align": "^3.4.1",
|
|
107
|
+
"@tiptap/pm": "^3.4.1",
|
|
108
|
+
"@tiptap/react": "^3.4.1",
|
|
109
|
+
"@tiptap/starter-kit": "^3.4.1",
|
|
103
110
|
"class-variance-authority": "^0.7.1",
|
|
104
111
|
"clsx": "^2.1.1",
|
|
105
112
|
"cmdk": "^1.1.1",
|
|
113
|
+
"cron-parser": "^5.3.1",
|
|
106
114
|
"input-otp": "^1.4.2",
|
|
107
115
|
"motion": "^12.23.12",
|
|
108
116
|
"next-themes": "^0.4.6",
|
|
109
|
-
"nodemailer": "^7.0.
|
|
117
|
+
"nodemailer": "^7.0.6",
|
|
110
118
|
"postgres": "^3.4.7",
|
|
111
119
|
"radix-ui": "^1.4.3",
|
|
112
|
-
"rate-limiter-flexible": "^7.
|
|
120
|
+
"rate-limiter-flexible": "^7.3.0",
|
|
113
121
|
"react-scan": "^0.4.3",
|
|
114
|
-
"resend": "^6.0.
|
|
122
|
+
"resend": "^6.0.2",
|
|
115
123
|
"tailwind-merge": "^3.3.1",
|
|
116
|
-
"use-debounce": "^10.0.
|
|
117
|
-
"use-intl": "^4.3.
|
|
124
|
+
"use-debounce": "^10.0.6",
|
|
125
|
+
"use-intl": "^4.3.6",
|
|
118
126
|
"vaul": "^1.1.2"
|
|
119
127
|
},
|
|
120
128
|
"scripts": {
|
|
@@ -125,6 +133,8 @@
|
|
|
125
133
|
"dev:email": "email dev --dir src/emails",
|
|
126
134
|
"test": "vitest run",
|
|
127
135
|
"test:watch": "vitest",
|
|
128
|
-
"test:coverage": "vitest run --coverage"
|
|
136
|
+
"test:coverage": "vitest run --coverage",
|
|
137
|
+
"lint": "eslint .",
|
|
138
|
+
"lint:fix": "eslint . --fix"
|
|
129
139
|
}
|
|
130
140
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
import dynamic from "next/dynamic";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
6
|
+
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
7
|
+
import { HeaderContent } from "@/components/ui/header-content";
|
|
8
|
+
|
|
9
|
+
const CronTableView = dynamic(async () =>
|
|
10
|
+
import("@/views/admin/views/core/advanced/cron/cron-table-view").then(
|
|
11
|
+
module => ({
|
|
12
|
+
default: module.CronTableView,
|
|
13
|
+
}),
|
|
14
|
+
),
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export const generateMetadata = async () => {
|
|
18
|
+
const t = await getTranslations("admin.advanced.cron");
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
title: t("title"),
|
|
22
|
+
description: t("desc"),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default async function Page(
|
|
27
|
+
props: React.ComponentProps<typeof CronTableView>,
|
|
28
|
+
) {
|
|
29
|
+
const t = await getTranslations("admin.advanced.cron");
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<I18nProvider namespaces={["admin.advanced.cron"]}>
|
|
33
|
+
<div className="p-4">
|
|
34
|
+
<HeaderContent desc={t("desc")} h1={t("title")} />
|
|
35
|
+
|
|
36
|
+
<React.Suspense fallback={<DataTableSkeleton columns={6} />}>
|
|
37
|
+
<CronTableView {...props} />
|
|
38
|
+
</React.Suspense>
|
|
39
|
+
</div>
|
|
40
|
+
</I18nProvider>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -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
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"core": {
|
|
3
3
|
"global": {
|
|
4
|
+
"editor": {
|
|
5
|
+
"undo": "Undo",
|
|
6
|
+
"redo": "Redo",
|
|
7
|
+
"paragraph": "Paragraph",
|
|
8
|
+
"heading": "Heading {level}",
|
|
9
|
+
"bold": "Bold",
|
|
10
|
+
"italic": "Italic",
|
|
11
|
+
"underline": "Underline",
|
|
12
|
+
"ordered_list": "Ordered List",
|
|
13
|
+
"bullet_list": "Bullet List",
|
|
14
|
+
"text_format_more": {
|
|
15
|
+
"label": "More text formats",
|
|
16
|
+
"strike": "Strike"
|
|
17
|
+
},
|
|
18
|
+
"alignments": {
|
|
19
|
+
"left": "Left align",
|
|
20
|
+
"center": "Center align",
|
|
21
|
+
"right": "Right align",
|
|
22
|
+
"justify": "Justify align"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
4
25
|
"theme_switcher": "Toggle Theme",
|
|
5
26
|
"language_switcher": "Switch Language",
|
|
6
27
|
"toggle_sidebar": "Toggle Sidebar",
|
|
@@ -192,6 +213,36 @@
|
|
|
192
213
|
"home_page": "Home Page",
|
|
193
214
|
"debug": "Debug Panel",
|
|
194
215
|
"log_out": "Log Out"
|
|
216
|
+
},
|
|
217
|
+
"advanced": {
|
|
218
|
+
"title": "Advanced",
|
|
219
|
+
"cron": "Cron Jobs"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"advanced": {
|
|
224
|
+
"cron": {
|
|
225
|
+
"title": "Cron Jobs",
|
|
226
|
+
"desc": "Manage and monitor scheduled tasks.",
|
|
227
|
+
"list": {
|
|
228
|
+
"name": "Name",
|
|
229
|
+
"pluginId": "Plugin ID",
|
|
230
|
+
"module": "Module",
|
|
231
|
+
"schedule": "Schedule",
|
|
232
|
+
"lastRun": {
|
|
233
|
+
"title": "Last Run",
|
|
234
|
+
"never": "Never"
|
|
235
|
+
},
|
|
236
|
+
"nextRun": {
|
|
237
|
+
"title": "Next Run",
|
|
238
|
+
"never": "Never"
|
|
239
|
+
},
|
|
240
|
+
"actions": {
|
|
241
|
+
"runNow": {
|
|
242
|
+
"label": "Run Job Now",
|
|
243
|
+
"success": "Cron job executed successfully."
|
|
244
|
+
}
|
|
245
|
+
}
|
|
195
246
|
}
|
|
196
247
|
}
|
|
197
248
|
},
|
package/src/tiptap.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
.tiptap {
|
|
4
|
+
h1 {
|
|
5
|
+
@apply text-4xl font-extrabold tracking-tight text-balance;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
h2 {
|
|
9
|
+
@apply text-3xl font-semibold tracking-tight;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h3 {
|
|
13
|
+
@apply text-2xl font-semibold tracking-tight;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
h4 {
|
|
17
|
+
@apply text-xl font-semibold tracking-tight;
|
|
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
|
+
}
|
|
28
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
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;AAUrD,eAAO,MAAM,gBAAgB,GAAI,aAAa;IAAE,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,4CAwCxE,CAAC"}
|
|
File without changes
|