@vitnode/core 1.2.0-canary.52 → 1.2.0-canary.54
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/config/next.config.ts +3 -3
- package/dist/scripts/get-config.d.ts +2 -2
- 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 +3 -3
- 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/email/nodemailer.d.ts +1 -1
- package/dist/src/api/adapters/email/nodemailer.js +3 -3
- package/dist/src/api/adapters/email/resend.d.ts +1 -1
- package/dist/src/api/adapters/email/resend.js +2 -2
- package/dist/src/api/adapters/sso/discord.d.ts +1 -1
- package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/discord.js +21 -21
- package/dist/src/api/adapters/sso/facebook.d.ts +1 -1
- package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/facebook.js +23 -23
- package/dist/src/api/adapters/sso/google.d.ts +1 -1
- package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/google.js +21 -21
- package/dist/src/api/config.d.ts +3 -3
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +30 -18
- package/dist/src/api/lib/check-plugin-id.js +8 -8
- 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.d.ts +1 -1
- package/dist/src/api/lib/logger-middleware.js +9 -9
- package/dist/src/api/lib/module.d.ts +6 -3
- 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 +4 -2
- 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 +2 -2
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/route.js +1 -1
- package/dist/src/api/lib/with-pagination.d.ts +7 -7
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/lib/with-pagination.js +37 -24
- package/dist/src/api/middlewares/captcha.middleware.d.ts +1 -1
- package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/captcha.middleware.js +14 -13
- 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 +18 -12
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +46 -34
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +3 -3
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.js +4 -4
- package/dist/src/api/models/device.d.ts +1 -1
- package/dist/src/api/models/device.d.ts.map +1 -1
- package/dist/src/api/models/device.js +13 -13
- package/dist/src/api/models/email.d.ts +15 -15
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +11 -10
- package/dist/src/api/models/password.js +9 -9
- 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 +19 -19
- 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 +17 -17
- package/dist/src/api/models/sso.d.ts +1 -1
- package/dist/src/api/models/sso.d.ts.map +1 -1
- package/dist/src/api/models/sso.js +22 -25
- package/dist/src/api/models/user/get-user-by-id.d.ts +1 -1
- package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
- package/dist/src/api/models/user/get-user-by-id.js +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.js +1 -1
- package/dist/src/api/models/user/sign-up.d.ts +2 -2
- package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +11 -12
- 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 +166 -4
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +7 -4
- 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.d.ts +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +17 -17
- package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/admin/routes/session.route.js +8 -8
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -2
- package/dist/src/api/modules/admin/users/routes/list.route.js +13 -13
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +5 -5
- package/dist/src/api/modules/admin/users/routes/users.route.js +16 -16
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +2 -2
- 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.d.ts +1 -1
- package/dist/src/api/modules/middleware/middleware.module.js +2 -2
- package/dist/src/api/modules/middleware/route.d.ts +2 -2
- package/dist/src/api/modules/middleware/route.js +13 -13
- package/dist/src/api/modules/users/routes/change-password.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/change-password.route.js +14 -14
- package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +18 -18
- package/dist/src/api/modules/users/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/session.route.js +7 -7
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-in.route.js +11 -11
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/sign-out.route.js +8 -8
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-up.route.js +15 -15
- package/dist/src/api/modules/users/routes/test.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/test.route.js +10 -10
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/callback.route.js +9 -9
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +7 -7
- package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
- package/dist/src/api/modules/users/sso/sso.module.js +2 -2
- package/dist/src/api/modules/users/users.module.d.ts +12 -12
- package/dist/src/api/modules/users/users.module.js +2 -2
- package/dist/src/api/plugin.d.ts.map +1 -1
- package/dist/src/api/plugin.js +4 -2
- package/dist/src/app/login/page.d.ts +1 -1
- package/dist/src/app/login/page.js +2 -2
- package/dist/src/app/login/reset-password/page.d.ts +2 -2
- package/dist/src/app/login/reset-password/page.js +2 -2
- package/dist/src/app/register/page.d.ts +1 -1
- package/dist/src/app/register/page.js +2 -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.d.ts +1 -1
- package/dist/src/app_admin/core/debug/page.js +8 -8
- package/dist/src/app_admin/core/users/page.d.ts +2 -2
- package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/users/page.js +7 -7
- package/dist/src/components/avatar.d.ts +1 -1
- package/dist/src/components/avatar.js +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +5 -5
- package/dist/src/components/confirm-action/content.d.ts.map +1 -1
- package/dist/src/components/confirm-action/content.js +3 -4
- package/dist/src/components/date-format.js +8 -8
- package/dist/src/components/form/auto-form.d.ts +16 -16
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +13 -12
- package/dist/src/components/form/common/desc.js +1 -1
- package/dist/src/components/form/common/label.d.ts +1 -1
- package/dist/src/components/form/common/label.js +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts +2 -2
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +3 -3
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.js +29 -23
- package/dist/src/components/form/fields/combobox.d.ts +3 -3
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +6 -7
- package/dist/src/components/form/fields/input.d.ts +2 -2
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +2 -2
- package/dist/src/components/form/fields/radio-group.d.ts +3 -3
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +0 -1
- package/dist/src/components/form/fields/select.d.ts +3 -3
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +2 -3
- package/dist/src/components/form/fields/switch.d.ts +2 -2
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.d.ts +3 -3
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +1 -2
- package/dist/src/components/i18n-provider.d.ts +2 -2
- package/dist/src/components/i18n-provider.js +3 -3
- package/dist/src/components/logo-vitnode.d.ts.map +1 -1
- package/dist/src/components/logo-vitnode.js +8 -2
- package/dist/src/components/switchers/langs/{language-swietcher.d.ts → language-switcher.d.ts} +2 -2
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -0
- package/dist/src/components/switchers/langs/{language-swietcher.js → language-switcher.js} +3 -3
- package/dist/src/components/switchers/themes/theme-switcher.js +4 -4
- package/dist/src/components/table/content.d.ts +1 -1
- package/dist/src/components/table/content.d.ts.map +1 -1
- package/dist/src/components/table/content.js +5 -5
- package/dist/src/components/table/data-table.d.ts +7 -7
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/data-table.js +22 -15
- package/dist/src/components/table/order-table-head.d.ts +4 -4
- package/dist/src/components/table/order-table-head.d.ts.map +1 -1
- package/dist/src/components/table/order-table-head.js +20 -9
- package/dist/src/components/table/pagination.js +19 -19
- 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 +26 -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 +94 -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 +60 -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 +35 -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 +2 -2
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.js +4 -5
- package/dist/src/components/ui/alert-dialog.d.ts +7 -7
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +12 -12
- package/dist/src/components/ui/alert.d.ts +5 -5
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +6 -7
- package/dist/src/components/ui/badge.d.ts +3 -3
- package/dist/src/components/ui/badge.d.ts.map +1 -1
- package/dist/src/components/ui/badge.js +7 -8
- package/dist/src/components/ui/button-client.d.ts +1 -1
- package/dist/src/components/ui/button-client.d.ts.map +1 -1
- package/dist/src/components/ui/button-client.js +10 -10
- package/dist/src/components/ui/button.d.ts +8 -8
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +14 -15
- package/dist/src/components/ui/card.d.ts +8 -8
- package/dist/src/components/ui/card.js +7 -7
- package/dist/src/components/ui/checkbox.d.ts +2 -2
- package/dist/src/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/components/ui/checkbox.js +2 -3
- package/dist/src/components/ui/collapsible.d.ts +1 -1
- package/dist/src/components/ui/collapsible.js +1 -1
- package/dist/src/components/ui/command.d.ts +4 -4
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/command.js +9 -10
- package/dist/src/components/ui/context-menu.d.ts +4 -4
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.js +7 -8
- package/dist/src/components/ui/dialog.d.ts +6 -6
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +16 -16
- package/dist/src/components/ui/drawer.d.ts +4 -4
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.js +7 -8
- package/dist/src/components/ui/dropdown-menu.d.ts +4 -4
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.js +8 -9
- 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 +10 -10
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +15 -15
- package/dist/src/components/ui/header-content.js +1 -1
- package/dist/src/components/ui/hover-card.d.ts +2 -2
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.js +3 -4
- package/dist/src/components/ui/input-otp.d.ts +5 -5
- package/dist/src/components/ui/input-otp.d.ts.map +1 -1
- package/dist/src/components/ui/input-otp.js +6 -7
- package/dist/src/components/ui/input.d.ts +2 -2
- package/dist/src/components/ui/input.d.ts.map +1 -1
- package/dist/src/components/ui/input.js +1 -2
- package/dist/src/components/ui/label.d.ts +2 -2
- package/dist/src/components/ui/label.d.ts.map +1 -1
- package/dist/src/components/ui/label.js +2 -3
- package/dist/src/components/ui/loader.js +3 -3
- package/dist/src/components/ui/menubar.d.ts +4 -4
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.js +11 -12
- package/dist/src/components/ui/navigation-menu.d.ts +2 -2
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.js +10 -11
- package/dist/src/components/ui/popover.d.ts +2 -2
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +3 -4
- package/dist/src/components/ui/progress.d.ts +2 -2
- package/dist/src/components/ui/progress.d.ts.map +1 -1
- package/dist/src/components/ui/progress.js +2 -3
- package/dist/src/components/ui/radio-group.d.ts +2 -2
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.js +3 -4
- package/dist/src/components/ui/select.d.ts +3 -3
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +9 -10
- package/dist/src/components/ui/separator.d.ts +2 -2
- package/dist/src/components/ui/separator.d.ts.map +1 -1
- package/dist/src/components/ui/separator.js +3 -4
- package/dist/src/components/ui/sheet.d.ts +5 -5
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +8 -9
- package/dist/src/components/ui/sidebar.d.ts +31 -31
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.js +78 -80
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/skeleton.js +1 -1
- package/dist/src/components/ui/slider.d.ts +2 -2
- package/dist/src/components/ui/slider.d.ts.map +1 -1
- package/dist/src/components/ui/slider.js +16 -8
- package/dist/src/components/ui/sonner.d.ts +1 -1
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/sonner.js +6 -6
- package/dist/src/components/ui/switch.d.ts +2 -2
- package/dist/src/components/ui/switch.d.ts.map +1 -1
- package/dist/src/components/ui/switch.js +3 -4
- package/dist/src/components/ui/table.d.ts +9 -9
- package/dist/src/components/ui/table.d.ts.map +1 -1
- package/dist/src/components/ui/table.js +8 -9
- package/dist/src/components/ui/tabs.d.ts +2 -2
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +4 -5
- package/dist/src/components/ui/textarea.d.ts +2 -2
- package/dist/src/components/ui/textarea.d.ts.map +1 -1
- package/dist/src/components/ui/textarea.js +1 -2
- package/dist/src/components/ui/toggle-group.d.ts +4 -4
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +6 -6
- package/dist/src/components/ui/toggle.d.ts +3 -3
- package/dist/src/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.js +8 -9
- package/dist/src/components/ui/tooltip.d.ts +6 -3
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +20 -5
- package/dist/src/config.js +2 -2
- package/dist/src/database/admins.js +10 -10
- 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/languages.js +7 -7
- package/dist/src/database/logs.js +9 -9
- package/dist/src/database/moderators.js +5 -5
- package/dist/src/database/roles.js +1 -1
- package/dist/src/database/sessions.js +6 -6
- package/dist/src/database/users.d.ts +2 -2
- package/dist/src/database/users.js +14 -14
- package/dist/src/drizzle.config.d.ts +2 -2
- package/dist/src/drizzle.config.d.ts.map +1 -1
- package/dist/src/drizzle.config.js +19 -12
- package/dist/src/emails/default-template.d.ts +3 -3
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +39 -38
- package/dist/src/emails/reset-password.d.ts +1 -1
- package/dist/src/emails/reset-password.d.ts.map +1 -1
- package/dist/src/emails/reset-password.js +51 -51
- package/dist/src/emails/ui/button.d.ts +2 -2
- package/dist/src/emails/ui/button.js +13 -13
- package/dist/src/emails/ui/card.d.ts +1 -1
- package/dist/src/emails/ui/card.js +6 -6
- package/dist/src/hooks/use-before-unload.js +3 -3
- package/dist/src/hooks/use-captcha.d.ts +2 -2
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +29 -37
- package/dist/src/hooks/use-mobile.d.ts.map +1 -1
- package/dist/src/hooks/use-mobile.js +3 -4
- package/dist/src/lib/api/get-middleware-api.js +4 -4
- 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/get-session-admin-api.js +5 -5
- package/dist/src/lib/api/get-session-api.js +4 -4
- 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/colors.js +28 -19
- package/dist/src/lib/colors.test.js +60 -60
- 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 +8 -6
- 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 +9 -0
- package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.js +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +27 -27
- package/dist/src/lib/fetcher/core.d.ts +5 -5
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +11 -10
- package/dist/src/lib/fetcher/helpers-server.d.ts +1 -1
- package/dist/src/lib/fetcher/helpers-server.js +1 -1
- package/dist/src/lib/fetcher/helpers.test.js +17 -17
- package/dist/src/lib/fetcher/types.d.ts +26 -26
- package/dist/src/lib/fetcher/types.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.d.ts +4 -4
- package/dist/src/lib/fetcher-client.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.js +3 -3
- package/dist/src/lib/fetcher.d.ts +5 -5
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/fetcher.js +4 -4
- package/dist/src/lib/helpers/auto-form.d.ts +3 -3
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +16 -15
- package/dist/src/lib/helpers/auto-form.test.js +129 -129
- package/dist/src/lib/navigation.d.ts +3 -3
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/lib/plugin.d.ts +3 -3
- package/dist/src/lib/special-characters.js +1 -1
- package/dist/src/lib/special-characters.test.js +36 -36
- package/dist/src/lib/utils.d.ts +1 -1
- package/dist/src/tests/setup.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +5 -9
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +8 -12
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +23 -12
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -2
- package/dist/src/views/admin/layouts/sidebar/sign-out.js +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.js +5 -5
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
- package/dist/src/views/admin/sign-in/sign-in-admin-view.js +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 +37 -0
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +3 -3
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +10 -10
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +2 -2
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
- 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/content.js +15 -15
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +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 +16 -25
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.js +7 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.js +3 -3
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +25 -25
- package/dist/src/views/admin/views/core/test.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/test.js +134 -124
- package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/users-admin-view.js +13 -14
- package/dist/src/views/auth/password-reset/change-password-form/form.js +9 -9
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/form/form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/form/form.js +15 -15
- package/dist/src/views/auth/password-reset/form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/password-reset-view.js +4 -4
- package/dist/src/views/auth/sign-in/form/form.js +9 -9
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/mutation-api.js +10 -10
- package/dist/src/views/auth/sign-in/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/use-form.js +11 -11
- package/dist/src/views/auth/sign-in/sign-in-view.js +5 -5
- package/dist/src/views/auth/sign-up/components/password-input.d.ts +3 -3
- 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 +9 -10
- package/dist/src/views/auth/sign-up/email-confirmation-view.js +4 -4
- package/dist/src/views/auth/sign-up/form/form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +18 -18
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +2 -2
- 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 +6 -6
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/use-form.js +21 -21
- package/dist/src/views/auth/sign-up/sign-up-view.js +5 -5
- package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
- package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/wrapper.js +5 -8
- package/dist/src/views/auth/sso/buttons/client.js +4 -4
- package/dist/src/views/auth/sso/buttons/mutation-api.js +5 -5
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +2 -2
- package/dist/src/views/auth/sso/callback/callback-sso-view.js +6 -6
- package/dist/src/views/auth/sso/callback/client/client.d.ts +1 -1
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/client.js +9 -9
- package/dist/src/views/auth/sso/callback/client/mutation-api.js +7 -7
- package/dist/src/views/error/back-button.js +1 -1
- package/dist/src/views/error/error-view.js +4 -4
- package/dist/src/views/error/global-error-view.d.ts +3 -3
- package/dist/src/views/error/global-error-view.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.js +36 -44
- package/dist/src/views/layouts/provider.d.ts +4 -4
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.js +3 -3
- package/dist/src/views/layouts/root-layout.d.ts +3 -3
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +1 -2
- package/dist/src/views/layouts/theme/header/header.d.ts +2 -2
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.js +2 -2
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.js +4 -4
- package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +8 -8
- package/dist/src/views/layouts/theme/header/user/user.js +4 -4
- package/dist/src/views/layouts/theme/layout.d.ts +2 -2
- package/dist/src/views/layouts/theme/layout.js +1 -1
- package/dist/src/vitnode.config.d.ts +18 -16
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -29
- package/src/app/login/page.tsx +5 -5
- package/src/app/login/reset-password/page.tsx +5 -5
- package/src/app/login/sso/[providerId]/page.tsx +1 -1
- package/src/app/register/page.tsx +5 -5
- package/src/app_admin/core/advanced/cron/page.tsx +41 -0
- package/src/app_admin/core/debug/page.tsx +14 -14
- package/src/app_admin/core/page.tsx +1 -1
- package/src/app_admin/core/test/page.tsx +1 -1
- package/src/app_admin/core/users/page.tsx +12 -13
- package/src/locales/en.json +43 -0
- package/src/tiptap.css +20 -0
- package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +0 -1
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.54",
|
|
4
4
|
"description": "Core package for VitNode, providing essential functionalities and configurations.",
|
|
5
5
|
"author": "VitNode Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,43 +40,43 @@
|
|
|
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
|
-
"
|
|
60
|
-
"hono": "^4.9.2",
|
|
58
|
+
"drizzle-orm": "^0.44.5",
|
|
59
|
+
"hono": "^4.9.6",
|
|
61
60
|
"jsdom": "^26.1.0",
|
|
62
|
-
"lucide-react": "^0.
|
|
63
|
-
"next": "^15.5.
|
|
64
|
-
"next-intl": "^4.3.
|
|
61
|
+
"lucide-react": "^0.542.0",
|
|
62
|
+
"next": "^15.5.2",
|
|
63
|
+
"next-intl": "^4.3.6",
|
|
64
|
+
"node-cron": "^4.2.1",
|
|
65
65
|
"react": "^19.1.1",
|
|
66
66
|
"react-dom": "^19.1.1",
|
|
67
67
|
"react-email": "^4.2.8",
|
|
68
68
|
"react-hook-form": "^7.62.0",
|
|
69
69
|
"sonner": "^2.0.7",
|
|
70
|
-
"tailwindcss": "^4.1.
|
|
70
|
+
"tailwindcss": "^4.1.13",
|
|
71
71
|
"tsc-alias": "^1.8.16",
|
|
72
72
|
"tsup": "^8.5.0",
|
|
73
|
-
"tsx": "^4.20.
|
|
74
|
-
"tw-animate-css": "^1.3.
|
|
73
|
+
"tsx": "^4.20.5",
|
|
74
|
+
"tw-animate-css": "^1.3.8",
|
|
75
75
|
"typescript": "^5.9.2",
|
|
76
76
|
"vite-tsconfig-paths": "^5.1.4",
|
|
77
77
|
"vitest": "^3.2.4",
|
|
78
|
-
"zod": "^4.
|
|
79
|
-
"@vitnode/
|
|
78
|
+
"zod": "^4.1.5",
|
|
79
|
+
"@vitnode/config": "1.2.0-canary.54"
|
|
80
80
|
},
|
|
81
81
|
"bin": {
|
|
82
82
|
"vitnode": "./dist/scripts/scripts.js"
|
|
@@ -93,29 +93,34 @@
|
|
|
93
93
|
"default": "./dist/src/*.js"
|
|
94
94
|
},
|
|
95
95
|
"./config/next.config": "./config/next.config.ts",
|
|
96
|
-
"./locales/en.json": "./src/locales/en.json"
|
|
96
|
+
"./locales/en.json": "./src/locales/en.json",
|
|
97
|
+
"./styles/tiptap.css": "./src/tiptap.css"
|
|
97
98
|
},
|
|
98
99
|
"type": "module",
|
|
99
100
|
"dependencies": {
|
|
100
101
|
"@dnd-kit/core": "^6.3.1",
|
|
101
102
|
"@hono/swagger-ui": "^0.5.2",
|
|
102
103
|
"@react-email/preview-server": "^4.2.8",
|
|
103
|
-
"@tanstack/react-query": "^5.
|
|
104
|
+
"@tanstack/react-query": "^5.87.1",
|
|
105
|
+
"@tiptap/pm": "^3.4.1",
|
|
106
|
+
"@tiptap/react": "^3.4.1",
|
|
107
|
+
"@tiptap/starter-kit": "^3.4.1",
|
|
104
108
|
"class-variance-authority": "^0.7.1",
|
|
105
109
|
"clsx": "^2.1.1",
|
|
106
110
|
"cmdk": "^1.1.1",
|
|
111
|
+
"cron-parser": "^5.3.1",
|
|
107
112
|
"input-otp": "^1.4.2",
|
|
108
113
|
"motion": "^12.23.12",
|
|
109
114
|
"next-themes": "^0.4.6",
|
|
110
|
-
"nodemailer": "^7.0.
|
|
115
|
+
"nodemailer": "^7.0.6",
|
|
111
116
|
"postgres": "^3.4.7",
|
|
112
117
|
"radix-ui": "^1.4.3",
|
|
113
|
-
"rate-limiter-flexible": "^7.
|
|
118
|
+
"rate-limiter-flexible": "^7.3.0",
|
|
114
119
|
"react-scan": "^0.4.3",
|
|
115
|
-
"resend": "^6.0.
|
|
120
|
+
"resend": "^6.0.2",
|
|
116
121
|
"tailwind-merge": "^3.3.1",
|
|
117
|
-
"use-debounce": "^10.0.
|
|
118
|
-
"use-intl": "^4.3.
|
|
122
|
+
"use-debounce": "^10.0.6",
|
|
123
|
+
"use-intl": "^4.3.6",
|
|
119
124
|
"vaul": "^1.1.2"
|
|
120
125
|
},
|
|
121
126
|
"scripts": {
|
|
@@ -124,8 +129,6 @@
|
|
|
124
129
|
"build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
|
|
125
130
|
"dev": "concurrently \"tsc -w --preserveWatchOutput\" \"swc src -d dist --config-file .swcrc -w\" \"tsc-alias -w\" \"node dist/scripts/scripts.js plugin --w\"",
|
|
126
131
|
"dev:email": "email dev --dir src/emails",
|
|
127
|
-
"lint": "eslint .",
|
|
128
|
-
"lint:fix": "eslint . --fix",
|
|
129
132
|
"test": "vitest run",
|
|
130
133
|
"test:watch": "vitest",
|
|
131
134
|
"test:coverage": "vitest run --coverage"
|
package/src/app/login/page.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Metadata } from
|
|
1
|
+
import type { Metadata } from "next/dist/types";
|
|
2
2
|
|
|
3
|
-
import { getTranslations } from
|
|
3
|
+
import { getTranslations } from "next-intl/server";
|
|
4
4
|
|
|
5
|
-
import { SignInView } from
|
|
5
|
+
import { SignInView } from "../../views/auth/sign-in/sign-in-view";
|
|
6
6
|
|
|
7
7
|
export const generateMetadata = async ({
|
|
8
8
|
params,
|
|
@@ -10,10 +10,10 @@ export const generateMetadata = async ({
|
|
|
10
10
|
params: Promise<{ locale: string }>;
|
|
11
11
|
}): Promise<Metadata> => {
|
|
12
12
|
const { locale } = await params;
|
|
13
|
-
const t = await getTranslations({ locale, namespace:
|
|
13
|
+
const t = await getTranslations({ locale, namespace: "core.global" });
|
|
14
14
|
|
|
15
15
|
return {
|
|
16
|
-
title: t(
|
|
16
|
+
title: t("login"),
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Metadata } from
|
|
1
|
+
import type { Metadata } from "next/dist/types";
|
|
2
2
|
|
|
3
|
-
import { getTranslations } from
|
|
3
|
+
import { getTranslations } from "next-intl/server";
|
|
4
4
|
|
|
5
|
-
import { PasswordResetView } from
|
|
5
|
+
import { PasswordResetView } from "@/views/auth/password-reset/password-reset-view";
|
|
6
6
|
|
|
7
7
|
export const generateMetadata = async ({
|
|
8
8
|
params,
|
|
@@ -12,11 +12,11 @@ export const generateMetadata = async ({
|
|
|
12
12
|
const { locale } = await params;
|
|
13
13
|
const t = await getTranslations({
|
|
14
14
|
locale,
|
|
15
|
-
namespace:
|
|
15
|
+
namespace: "core.auth.reset_password",
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
return {
|
|
19
|
-
title: t(
|
|
19
|
+
title: t("title"),
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Metadata } from
|
|
1
|
+
import type { Metadata } from "next/dist/types";
|
|
2
2
|
|
|
3
|
-
import { getTranslations } from
|
|
3
|
+
import { getTranslations } from "next-intl/server";
|
|
4
4
|
|
|
5
|
-
import { SignUpView } from
|
|
5
|
+
import { SignUpView } from "../../views/auth/sign-up/sign-up-view";
|
|
6
6
|
|
|
7
7
|
export const generateMetadata = async ({
|
|
8
8
|
params,
|
|
@@ -10,10 +10,10 @@ export const generateMetadata = async ({
|
|
|
10
10
|
params: Promise<{ locale: string }>;
|
|
11
11
|
}): Promise<Metadata> => {
|
|
12
12
|
const { locale } = await params;
|
|
13
|
-
const t = await getTranslations({ locale, namespace:
|
|
13
|
+
const t = await getTranslations({ locale, namespace: "core.global" });
|
|
14
14
|
|
|
15
15
|
return {
|
|
16
|
-
title: t(
|
|
16
|
+
title: t("register"),
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import dynamic from "next/dynamic";
|
|
2
|
+
import { getTranslations } from "next-intl/server";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
5
|
+
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
6
|
+
import { HeaderContent } from "@/components/ui/header-content";
|
|
7
|
+
|
|
8
|
+
const CronTableView = dynamic(async () =>
|
|
9
|
+
import("@/views/admin/views/core/advanced/cron/cron-table-view").then(
|
|
10
|
+
module => ({
|
|
11
|
+
default: module.CronTableView,
|
|
12
|
+
}),
|
|
13
|
+
),
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export const generateMetadata = async () => {
|
|
17
|
+
const t = await getTranslations("admin.advanced.cron");
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
title: t("title"),
|
|
21
|
+
description: t("desc"),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default async function Page(
|
|
26
|
+
props: React.ComponentProps<typeof CronTableView>,
|
|
27
|
+
) {
|
|
28
|
+
const t = await getTranslations("admin.advanced.cron");
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<I18nProvider namespaces={["admin.advanced.cron"]}>
|
|
32
|
+
<div className="p-4">
|
|
33
|
+
<HeaderContent h1={t("title")} desc={t("desc")} />
|
|
34
|
+
|
|
35
|
+
<React.Suspense fallback={<DataTableSkeleton columns={6} />}>
|
|
36
|
+
<CronTableView {...props} />
|
|
37
|
+
</React.Suspense>
|
|
38
|
+
</div>
|
|
39
|
+
</I18nProvider>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import React from
|
|
1
|
+
import dynamic from "next/dynamic";
|
|
2
|
+
import { getTranslations } from "next-intl/server";
|
|
3
|
+
import React from "react";
|
|
4
4
|
|
|
5
|
-
import { I18nProvider } from
|
|
6
|
-
import { DataTableSkeleton } from
|
|
7
|
-
import { HeaderContent } from
|
|
8
|
-
import { ClearCacheAction } from
|
|
5
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
6
|
+
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
7
|
+
import { HeaderContent } from "@/components/ui/header-content";
|
|
8
|
+
import { ClearCacheAction } from "@/views/admin/views/core/debug/actions/clear-cache/clear-cache";
|
|
9
9
|
|
|
10
10
|
const SystemLogsView = dynamic(async () =>
|
|
11
|
-
import(
|
|
11
|
+
import("@/views/admin/views/core/debug/system-logs/system-logs-view").then(
|
|
12
12
|
module => ({
|
|
13
13
|
default: module.SystemLogsView,
|
|
14
14
|
}),
|
|
@@ -16,27 +16,27 @@ const SystemLogsView = dynamic(async () =>
|
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
export const generateMetadata = async () => {
|
|
19
|
-
const t = await getTranslations(
|
|
19
|
+
const t = await getTranslations("admin.debug");
|
|
20
20
|
|
|
21
21
|
return {
|
|
22
|
-
title: t(
|
|
23
|
-
description: t(
|
|
22
|
+
title: t("title"),
|
|
23
|
+
description: t("desc"),
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export default async function Page(
|
|
28
28
|
props: React.ComponentProps<typeof SystemLogsView>,
|
|
29
29
|
) {
|
|
30
|
-
const t = await getTranslations(
|
|
30
|
+
const t = await getTranslations("admin.debug");
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<I18nProvider namespaces="admin.debug">
|
|
34
34
|
<div className="p-4">
|
|
35
|
-
<HeaderContent desc={t(
|
|
35
|
+
<HeaderContent desc={t("desc")} h1={t("title")}>
|
|
36
36
|
<ClearCacheAction />
|
|
37
37
|
</HeaderContent>
|
|
38
38
|
|
|
39
|
-
<HeaderContent h2={t(
|
|
39
|
+
<HeaderContent h2={t("logs.title")} />
|
|
40
40
|
<React.Suspense fallback={<DataTableSkeleton columns={4} />}>
|
|
41
41
|
<SystemLogsView {...props} />
|
|
42
42
|
</React.Suspense>
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import type { Metadata } from
|
|
1
|
+
import type { Metadata } from "next/dist/types";
|
|
2
|
+
import dynamic from "next/dynamic";
|
|
3
|
+
import { getTranslations } from "next-intl/server";
|
|
4
|
+
import React from "react";
|
|
2
5
|
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { DataTableSkeleton } from '@/components/table/data-table';
|
|
8
|
-
import { HeaderContent } from '@/components/ui/header-content';
|
|
6
|
+
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
7
|
+
import { HeaderContent } from "@/components/ui/header-content";
|
|
9
8
|
|
|
10
9
|
const UsersAdminView = dynamic(async () =>
|
|
11
|
-
import(
|
|
10
|
+
import("@/views/admin/views/core/users/users-admin-view").then(module => ({
|
|
12
11
|
default: module.UsersAdminView,
|
|
13
12
|
})),
|
|
14
13
|
);
|
|
15
14
|
|
|
16
15
|
export const generateMetadata = async (): Promise<Metadata> => {
|
|
17
|
-
const t = await getTranslations(
|
|
16
|
+
const t = await getTranslations("admin.global.nav.users");
|
|
18
17
|
|
|
19
18
|
return {
|
|
20
|
-
title: t(
|
|
19
|
+
title: t("list"),
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
22
|
|
|
@@ -25,13 +24,13 @@ export default async function Page(
|
|
|
25
24
|
props: React.ComponentProps<typeof UsersAdminView>,
|
|
26
25
|
) {
|
|
27
26
|
const [t, tNav] = await Promise.all([
|
|
28
|
-
getTranslations(
|
|
29
|
-
getTranslations(
|
|
27
|
+
getTranslations("admin.user.list"),
|
|
28
|
+
getTranslations("admin.global.nav.users"),
|
|
30
29
|
]);
|
|
31
30
|
|
|
32
31
|
return (
|
|
33
32
|
<div className="p-4">
|
|
34
|
-
<HeaderContent desc={t(
|
|
33
|
+
<HeaderContent desc={t("desc")} h1={tNav("list")} />
|
|
35
34
|
|
|
36
35
|
<React.Suspense fallback={<DataTableSkeleton columns={2} />}>
|
|
37
36
|
<UsersAdminView {...props} />
|
package/src/locales/en.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
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
|
+
"text_format_more": {
|
|
13
|
+
"label": "More text formats",
|
|
14
|
+
"strike": "Strike"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
4
17
|
"theme_switcher": "Toggle Theme",
|
|
5
18
|
"language_switcher": "Switch Language",
|
|
6
19
|
"toggle_sidebar": "Toggle Sidebar",
|
|
@@ -192,6 +205,36 @@
|
|
|
192
205
|
"home_page": "Home Page",
|
|
193
206
|
"debug": "Debug Panel",
|
|
194
207
|
"log_out": "Log Out"
|
|
208
|
+
},
|
|
209
|
+
"advanced": {
|
|
210
|
+
"title": "Advanced",
|
|
211
|
+
"cron": "Cron Jobs"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"advanced": {
|
|
216
|
+
"cron": {
|
|
217
|
+
"title": "Cron Jobs",
|
|
218
|
+
"desc": "Manage and monitor scheduled tasks.",
|
|
219
|
+
"list": {
|
|
220
|
+
"name": "Name",
|
|
221
|
+
"pluginId": "Plugin ID",
|
|
222
|
+
"module": "Module",
|
|
223
|
+
"schedule": "Schedule",
|
|
224
|
+
"lastRun": {
|
|
225
|
+
"title": "Last Run",
|
|
226
|
+
"never": "Never"
|
|
227
|
+
},
|
|
228
|
+
"nextRun": {
|
|
229
|
+
"title": "Next Run",
|
|
230
|
+
"never": "Never"
|
|
231
|
+
},
|
|
232
|
+
"actions": {
|
|
233
|
+
"runNow": {
|
|
234
|
+
"label": "Run Job Now",
|
|
235
|
+
"success": "Cron job executed successfully."
|
|
236
|
+
}
|
|
237
|
+
}
|
|
195
238
|
}
|
|
196
239
|
}
|
|
197
240
|
},
|
package/src/tiptap.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/noUnknownAtRules: tailwindcss */
|
|
2
|
+
@import "tailwindcss";
|
|
3
|
+
|
|
4
|
+
.tiptap {
|
|
5
|
+
h1 {
|
|
6
|
+
@apply text-4xl font-extrabold tracking-tight text-balance;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h2 {
|
|
10
|
+
@apply text-3xl font-semibold tracking-tight;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h3 {
|
|
14
|
+
@apply text-2xl font-semibold tracking-tight;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h4 {
|
|
18
|
+
@apply text-xl font-semibold tracking-tight;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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;AAYrD,eAAO,MAAM,gBAAgB,GAAI,aAAa;IAAE,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,4CAwCxE,CAAC"}
|