@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
|
@@ -35,7 +35,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
|
|
|
35
35
|
isActive: isActive,
|
|
36
36
|
tooltip: title,
|
|
37
37
|
children: /*#__PURE__*/ _jsx(Link, {
|
|
38
|
-
className: cn("relative", isActive && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
|
|
39
38
|
href: href,
|
|
40
39
|
onClick: ()=>{
|
|
41
40
|
if (isMobile) {
|
|
@@ -58,7 +57,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
|
|
|
58
57
|
/*#__PURE__*/ _jsx(CollapsibleTrigger, {
|
|
59
58
|
asChild: true,
|
|
60
59
|
children: /*#__PURE__*/ _jsxs(SidebarMenuButton, {
|
|
61
|
-
className: cn("relative", (isActive || hasActiveChild) && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
|
|
62
60
|
isActive: isActive || hasActiveChild,
|
|
63
61
|
tooltip: title,
|
|
64
62
|
children: [
|
|
@@ -79,7 +77,6 @@ export const ItemNavAdmin = ({ href, title, icon, items = [], isOpenInNewTab })=
|
|
|
79
77
|
asChild: true,
|
|
80
78
|
isActive: isChildActive,
|
|
81
79
|
children: /*#__PURE__*/ _jsx(Link, {
|
|
82
|
-
className: cn("relative", isChildActive && "before:bg-primary before:absolute before:bottom-1 before:left-0 before:top-1 before:h-auto before:w-1 before:rounded-r-sm"),
|
|
83
80
|
href: item.href,
|
|
84
81
|
onClick: ()=>{
|
|
85
82
|
if (isMobile) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/layouts/sidebar/nav/nav.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAU,gBAEnC;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,
|
|
1
|
+
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/layouts/sidebar/nav/nav.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAU,gBAEnC;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,uDAqDA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { LayoutDashboardIcon, UsersRoundIcon } from "lucide-react";
|
|
2
|
+
import { LayoutDashboardIcon, UsersRoundIcon, WrenchIcon } from "lucide-react";
|
|
3
3
|
import { getTranslations } from "next-intl/server";
|
|
4
4
|
import { SidebarGroup, SidebarGroupLabel, SidebarMenu } from "../../../../../components/ui/sidebar.js";
|
|
5
5
|
import { ItemNavAdmin } from "./item.js";
|
|
@@ -29,6 +29,17 @@ export const NavSidebarAdmin = async ({ pluginNav })=>{
|
|
|
29
29
|
href: "/admin/core/test"
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
href: "/admin/core/advanced",
|
|
35
|
+
title: t("advanced.title"),
|
|
36
|
+
icon: /*#__PURE__*/ _jsx(WrenchIcon, {}),
|
|
37
|
+
items: [
|
|
38
|
+
{
|
|
39
|
+
title: t("advanced.cron"),
|
|
40
|
+
href: "/admin/core/advanced/cron"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
32
43
|
}
|
|
33
44
|
]
|
|
34
45
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-bar.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/layouts/user-bar/user-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-bar.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/layouts/user-bar/user-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAY1E,eAAO,MAAM,YAAY,GAAI,WAE1B,IAAI,CACL,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,EAC3D,MAAM,CACP,4CAkBA,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type SearchParamsDataTable } from "../../../../../../components/table/data-table";
|
|
2
|
+
export declare const CronTableView: ({ searchParams, }: {
|
|
3
|
+
searchParams: Promise<SearchParamsDataTable>;
|
|
4
|
+
}) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
//# sourceMappingURL=cron-table-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron-table-view.d.ts","sourceRoot":"","sources":["../../../../../../../../src/views/admin/views/core/advanced/cron/cron-table-view.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AAKvC,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC9C,qDA8EA,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getTranslations } from "next-intl/server";
|
|
3
|
+
import { cronAdminModule } from "../../../../../../api/modules/admin/advanced/cron/cron.admin.module.js";
|
|
4
|
+
import { DateFormat } from "../../../../../../components/date-format.js";
|
|
5
|
+
import { DataTable } from "../../../../../../components/table/data-table.js";
|
|
6
|
+
import { fetcher } from "../../../../../../lib/fetcher.js";
|
|
7
|
+
import { RunActionCronTable } from "./run-action/run-action.js";
|
|
8
|
+
export const CronTableView = async ({ searchParams })=>{
|
|
9
|
+
const query = await searchParams;
|
|
10
|
+
const res = await fetcher(cronAdminModule, {
|
|
11
|
+
path: "/",
|
|
12
|
+
method: "get",
|
|
13
|
+
module: "cron",
|
|
14
|
+
prefixPath: "/admin/advanced",
|
|
15
|
+
args: {
|
|
16
|
+
query
|
|
17
|
+
},
|
|
18
|
+
withPagination: true
|
|
19
|
+
});
|
|
20
|
+
const [data, t] = await Promise.all([
|
|
21
|
+
res.json(),
|
|
22
|
+
getTranslations("admin.advanced.cron")
|
|
23
|
+
]);
|
|
24
|
+
return /*#__PURE__*/ _jsx(DataTable, {
|
|
25
|
+
columns: [
|
|
26
|
+
{
|
|
27
|
+
id: "name",
|
|
28
|
+
label: t("list.name"),
|
|
29
|
+
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
30
|
+
className: "flex max-w-sm flex-col",
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ _jsx("span", {
|
|
33
|
+
children: row.name
|
|
34
|
+
}),
|
|
35
|
+
/*#__PURE__*/ _jsx("p", {
|
|
36
|
+
className: "text-muted-foreground text-sm",
|
|
37
|
+
children: row.description
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "pluginId",
|
|
44
|
+
label: t("list.pluginId")
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "module",
|
|
48
|
+
label: t("list.module")
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "schedule",
|
|
52
|
+
label: t("list.schedule")
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "lastRun",
|
|
56
|
+
label: t("list.lastRun.title"),
|
|
57
|
+
cell: ({ row })=>row.lastRun ? /*#__PURE__*/ _jsx(DateFormat, {
|
|
58
|
+
date: row.lastRun
|
|
59
|
+
}) : /*#__PURE__*/ _jsx("span", {
|
|
60
|
+
className: "text-muted-foreground italic",
|
|
61
|
+
children: t("list.lastRun.never")
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "nextRun",
|
|
66
|
+
label: t("list.nextRun.title"),
|
|
67
|
+
cell: ({ row })=>row.nextRun ? /*#__PURE__*/ _jsx(DateFormat, {
|
|
68
|
+
date: row.nextRun,
|
|
69
|
+
showFullDate: true
|
|
70
|
+
}) : /*#__PURE__*/ _jsx("span", {
|
|
71
|
+
className: "text-muted-foreground italic",
|
|
72
|
+
children: t("list.nextRun.never")
|
|
73
|
+
})
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: "actions",
|
|
77
|
+
label: "",
|
|
78
|
+
cell: ({ row })=>/*#__PURE__*/ _jsx(RunActionCronTable, {
|
|
79
|
+
id: row.id
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
edges: data.edges,
|
|
84
|
+
order: {
|
|
85
|
+
columns: [
|
|
86
|
+
"lastRun",
|
|
87
|
+
"createdAt",
|
|
88
|
+
"nextRun"
|
|
89
|
+
],
|
|
90
|
+
defaultOrder: {
|
|
91
|
+
column: "lastRun",
|
|
92
|
+
order: "desc"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
pageInfo: data.pageInfo
|
|
96
|
+
});
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/advanced/cron/run-action/mutation-api.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAU,IAAI,MAAM;;cAkB3C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use server";
|
|
2
|
+
import { revalidatePath } from "next/cache";
|
|
3
|
+
import { cronAdminModule } from "../../../../../../../api/modules/admin/advanced/cron/cron.admin.module.js";
|
|
4
|
+
import { fetcher } from "../../../../../../../lib/fetcher.js";
|
|
5
|
+
export const mutationApi = async (id)=>{
|
|
6
|
+
const res = await fetcher(cronAdminModule, {
|
|
7
|
+
path: "/{id}",
|
|
8
|
+
method: "post",
|
|
9
|
+
module: "cron",
|
|
10
|
+
prefixPath: "/admin/advanced",
|
|
11
|
+
args: {
|
|
12
|
+
params: {
|
|
13
|
+
id: id.toString()
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
if (!res.ok) {
|
|
18
|
+
return {
|
|
19
|
+
error: "Failed to run cron job"
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
revalidatePath("[locale]/admin/(auth)/(plugins)/(vitnode-core)/core/advanced/cron");
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/advanced/cron/run-action/run-action.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,kBAAkB,GAAI,QAAQ;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,4CAgCxD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { PlayIcon } from "lucide-react";
|
|
4
|
+
import { useTranslations } from "next-intl";
|
|
5
|
+
import { useActionState } from "react";
|
|
6
|
+
import { toast } from "sonner";
|
|
7
|
+
import { Button } from "../../../../../../../components/ui/button.js";
|
|
8
|
+
import { TooltipWithContent } from "../../../../../../../components/ui/tooltip.js";
|
|
9
|
+
import { mutationApi } from "./mutation-api.js";
|
|
10
|
+
export const RunActionCronTable = ({ id })=>{
|
|
11
|
+
const t = useTranslations("admin.advanced.cron.list.actions.runNow");
|
|
12
|
+
const tError = useTranslations("core.global.errors");
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
+
const [_, formAction, isPending] = useActionState(async ()=>{
|
|
15
|
+
const mutation = await mutationApi(id);
|
|
16
|
+
if (mutation?.error) {
|
|
17
|
+
toast.error(tError("title"), {
|
|
18
|
+
description: tError("internal_server_error")
|
|
19
|
+
});
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
toast.success(t("success"));
|
|
23
|
+
}, null);
|
|
24
|
+
return /*#__PURE__*/ _jsx("form", {
|
|
25
|
+
action: formAction,
|
|
26
|
+
children: /*#__PURE__*/ _jsx(TooltipWithContent, {
|
|
27
|
+
text: t("label"),
|
|
28
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
29
|
+
"aria-label": t("label"),
|
|
30
|
+
isLoading: isPending,
|
|
31
|
+
size: "icon",
|
|
32
|
+
type: "submit",
|
|
33
|
+
variant: "ghost",
|
|
34
|
+
children: /*#__PURE__*/ _jsx(PlayIcon, {})
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/content.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKhE,eAAO,MAAM,2BAA2B,GAAI,mGAYzC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,4CAiLhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"more.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/more.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"more.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/views/admin/views/core/debug/system-logs/actions/more/more.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,2BAA2B,CAAC,4CAiChE,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { SearchIcon } from "lucide-react";
|
|
4
|
-
import dynamic from "next/dynamic";
|
|
5
4
|
import { useTranslations } from "next-intl";
|
|
5
|
+
import dynamic from "next/dynamic";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Button } from "../../../../../../../../components/ui/button.js";
|
|
8
8
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "../../../../../../../../components/ui/dialog.js";
|
|
9
9
|
import { Loader } from "../../../../../../../../components/ui/loader.js";
|
|
10
|
-
import {
|
|
10
|
+
import { TooltipWithContent } from "../../../../../../../../components/ui/tooltip.js";
|
|
11
11
|
const ContentMoreActionSystemLogs = dynamic(async ()=>import("./content.js").then((module)=>({
|
|
12
12
|
default: module.ContentMoreActionSystemLogs
|
|
13
13
|
})));
|
|
@@ -15,25 +15,16 @@ export const MoreActionSystemLogs = (props)=>{
|
|
|
15
15
|
const t = useTranslations("admin.debug.logs.more");
|
|
16
16
|
return /*#__PURE__*/ _jsxs(Dialog, {
|
|
17
17
|
children: [
|
|
18
|
-
/*#__PURE__*/ _jsx(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
variant: "ghost",
|
|
29
|
-
children: /*#__PURE__*/ _jsx(SearchIcon, {})
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
}),
|
|
33
|
-
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
34
|
-
children: t("title")
|
|
35
|
-
})
|
|
36
|
-
]
|
|
18
|
+
/*#__PURE__*/ _jsx(TooltipWithContent, {
|
|
19
|
+
text: t("title"),
|
|
20
|
+
children: /*#__PURE__*/ _jsx(DialogTrigger, {
|
|
21
|
+
asChild: true,
|
|
22
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
23
|
+
"aria-label": t("title"),
|
|
24
|
+
size: "icon",
|
|
25
|
+
variant: "ghost",
|
|
26
|
+
children: /*#__PURE__*/ _jsx(SearchIcon, {})
|
|
27
|
+
})
|
|
37
28
|
})
|
|
38
29
|
}),
|
|
39
30
|
/*#__PURE__*/ _jsxs(DialogContent, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/views/core/test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../../src/views/admin/views/core/test.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,QAAQ,+CA6JpB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { AutoForm } from "../../../../components/form/auto-form.js";
|
|
5
5
|
import { AutoFormCheckbox } from "../../../../components/form/fields/checkbox.js";
|
|
@@ -10,6 +10,8 @@ import { AutoFormSelect } from "../../../../components/form/fields/select.js";
|
|
|
10
10
|
import { AutoFormSwitch } from "../../../../components/form/fields/switch.js";
|
|
11
11
|
import { AutoFormTextarea } from "../../../../components/form/fields/textarea.js";
|
|
12
12
|
import { Card } from "../../../../components/ui/card.js";
|
|
13
|
+
import { Editor } from "../../../../components/ui/editor.js";
|
|
14
|
+
import { EditorContent } from "../../../../components/ui/editor-content.js";
|
|
13
15
|
export const TestView = ()=>{
|
|
14
16
|
const formSchema = z.object({
|
|
15
17
|
provider: z.string().min(1, {
|
|
@@ -39,113 +41,121 @@ export const TestView = ()=>{
|
|
|
39
41
|
});
|
|
40
42
|
return /*#__PURE__*/ _jsx("div", {
|
|
41
43
|
className: "p-4",
|
|
42
|
-
children: /*#__PURE__*/
|
|
44
|
+
children: /*#__PURE__*/ _jsxs(Card, {
|
|
43
45
|
className: "p-6",
|
|
44
|
-
children:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
46
|
+
children: [
|
|
47
|
+
/*#__PURE__*/ _jsx(Editor, {
|
|
48
|
+
value: "<p>Hello World! 🌎️</p>"
|
|
49
|
+
}),
|
|
50
|
+
/*#__PURE__*/ _jsx(EditorContent, {
|
|
51
|
+
content: "<h2>Test header v2</h2><p>Hello World! 🌎️das d alfjnasjf kas djksa fkja sfj AFKJ afj AFJKNAJSKGNSAKFLMSAKLDNASFJNKJnjkdasnfjnas fjknsa fjknsafkjn askjfnkajsgnasjkfnskjanf kjans fjknasjkf naskjf naskjnf kjasn kfjans fjkas kfjnas jknfkasjn fkajsnf jnasfjkangaskjfnajsdnlaskmcdasjfnjskafnsajknfcksajdnasjkfnjkasn cfjksanfjckasnjcnaskjcnaksjcnaksjcnakjcnasjkn</p>"
|
|
52
|
+
}),
|
|
53
|
+
/*#__PURE__*/ _jsx(AutoForm, {
|
|
54
|
+
fields: [
|
|
55
|
+
{
|
|
56
|
+
id: "provider",
|
|
57
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormInput, {
|
|
58
|
+
description: "This is the provider for your application. It should be a valid provider name.",
|
|
59
|
+
label: "Provider",
|
|
60
|
+
...props
|
|
61
|
+
})
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "client_secret",
|
|
65
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormTextarea, {
|
|
66
|
+
description: "This is the client secret for your application. It should be kept secret and not shared with anyone.",
|
|
67
|
+
label: "Client Secret",
|
|
68
|
+
...props
|
|
69
|
+
})
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "terms",
|
|
73
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormCheckbox, {
|
|
74
|
+
description: "By checking this box, you agree to the terms and conditions.",
|
|
75
|
+
label: "I agree to the terms and conditions",
|
|
76
|
+
...props
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "options",
|
|
81
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormRadioGroup, {
|
|
82
|
+
description: "By checking this box, you agree to the terms and conditions.",
|
|
83
|
+
label: "I agree to the terms and conditions",
|
|
84
|
+
labels: [
|
|
85
|
+
{
|
|
86
|
+
value: "option1",
|
|
87
|
+
label: "Option 1 with a very long label that should be truncated"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: "option2",
|
|
91
|
+
label: "Option 2"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: "option3",
|
|
95
|
+
label: "Option 3"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
...props
|
|
99
|
+
})
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "options_long",
|
|
103
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormSelect, {
|
|
104
|
+
description: "By checking this box, you agree to the terms and conditions.",
|
|
105
|
+
label: "I agree to the terms and conditions",
|
|
106
|
+
labels: [
|
|
107
|
+
{
|
|
108
|
+
value: "option1",
|
|
109
|
+
label: "Option 1 with a very long label that should be truncated"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: "option2",
|
|
113
|
+
label: "Option 2"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
value: "option3",
|
|
117
|
+
label: "Option 3"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
placeholder: "Select an option from the list",
|
|
121
|
+
...props
|
|
122
|
+
})
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "switch",
|
|
126
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormSwitch, {
|
|
127
|
+
...props,
|
|
128
|
+
description: "By checking this box, you agree to the terms and conditions.",
|
|
129
|
+
label: "I agree to the terms and conditions"
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "type",
|
|
134
|
+
component: (props)=>/*#__PURE__*/ _jsx(AutoFormCombobox, {
|
|
135
|
+
description: "By checking this box, you agree to the terms and conditions.",
|
|
136
|
+
label: "Type",
|
|
137
|
+
labels: [
|
|
138
|
+
{
|
|
139
|
+
value: "option-one",
|
|
140
|
+
label: "Option One"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: "option-two",
|
|
144
|
+
label: "Option Two"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
...props
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
formSchema: formSchema,
|
|
152
|
+
onSubmit: async (values)=>{
|
|
153
|
+
// eslint-disable-next-line no-console
|
|
154
|
+
console.log("Form submitted", values);
|
|
155
|
+
await new Promise((resolve)=>setTimeout(resolve, 3000));
|
|
140
156
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
onSubmit: async (values)=>{
|
|
144
|
-
// biome-ignore lint/suspicious/noConsole: <needed>
|
|
145
|
-
console.log("Form submitted", values);
|
|
146
|
-
await new Promise((resolve)=>setTimeout(resolve, 3000));
|
|
147
|
-
}
|
|
148
|
-
})
|
|
157
|
+
})
|
|
158
|
+
]
|
|
149
159
|
})
|
|
150
160
|
});
|
|
151
161
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/change-password-form/use-form.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"use-form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/change-password-form/use-form.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAKjD,eAAO,MAAM,OAAO,GAAI,oBAGrB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC;;;;qBAUlB,CAAC,CAAC,KAAK;;sBAAmB;CAyBzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/password-reset/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AA8C5E,eAAO,MAAM,iBAAiB,GAAI,cAE/B;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC3D,4CAuCA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/mutation-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-in/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GACtB,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;cA6BF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/components/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQ9C,eAAO,MAAM,aAAa,GAAI,
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/components/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQ9C,eAAO,MAAM,aAAa,GAAI,2FAO3B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,CAAC,4CA+EjD,CAAC"}
|
|
@@ -6,7 +6,8 @@ import { AutoFormLabel } from "../../../../components/form/common/label.js";
|
|
|
6
6
|
import { FormControl, FormItem, FormMessage } from "../../../../components/ui/form.js";
|
|
7
7
|
import { Input } from "../../../../components/ui/input.js";
|
|
8
8
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../../components/ui/tooltip.js";
|
|
9
|
-
export const PasswordInput = ({ label,
|
|
9
|
+
export const PasswordInput = ({ label, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
description: _, field, otherProps: { maxLength, minLength, pattern }, ...props })=>{
|
|
10
11
|
const t = useTranslations("core.auth.sign_up");
|
|
11
12
|
const [openTooltip, setOpenTooltip] = React.useState(false);
|
|
12
13
|
const value = field.value ?? "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAc5E,eAAO,MAAM,UAAU,GAAI,uBAGxB;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,EAAE,OAAO,CAAC;CAClB,4CAuFA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sign-up/form/mutation-api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAMhF,eAAO,MAAM,WAAW,GAAU,4BAG/B,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;EAuB5D,CAAC"}
|