@vitnode/core 1.2.0-canary.74 → 1.2.0-canary.75
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 +4 -0
- package/dist/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/prepare-database.d.ts.map +1 -1
- package/dist/scripts/scripts.js +10 -39
- package/dist/scripts/shared/file-utils.d.ts +1 -0
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/scripts/shared/file-utils.test.d.ts +2 -0
- package/dist/scripts/shared/file-utils.test.d.ts.map +1 -0
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +1 -1
- package/dist/src/api/lib/cache-client.d.ts +4 -0
- package/dist/src/api/lib/cache-client.d.ts.map +1 -0
- package/dist/src/api/lib/cache-client.js +1 -0
- package/dist/src/api/lib/cache.d.ts +32 -0
- package/dist/src/api/lib/cache.d.ts.map +1 -0
- package/dist/src/api/lib/cache.js +1 -0
- package/dist/src/api/lib/cache.test.d.ts +2 -0
- package/dist/src/api/lib/cache.test.d.ts.map +1 -0
- package/dist/src/api/lib/cache.test.js +1 -0
- package/dist/src/api/lib/check-staff-permission.d.ts +20 -0
- package/dist/src/api/lib/check-staff-permission.d.ts.map +1 -0
- package/dist/src/api/lib/check-staff-permission.js +1 -0
- 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 +1 -1
- package/dist/src/api/lib/permission-staff.d.ts +35 -0
- package/dist/src/api/lib/permission-staff.d.ts.map +1 -0
- package/dist/src/api/lib/permission-staff.js +1 -0
- package/dist/src/api/lib/plugin.d.ts +8 -3
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/plugin.js +1 -1
- package/dist/src/api/lib/queue.d.ts +14 -0
- package/dist/src/api/lib/queue.d.ts.map +1 -0
- package/dist/src/api/lib/queue.js +1 -0
- package/dist/src/api/lib/resolve-role-names.d.ts +7 -0
- package/dist/src/api/lib/resolve-role-names.d.ts.map +1 -0
- package/dist/src/api/lib/resolve-role-names.js +1 -0
- package/dist/src/api/lib/route.d.ts +7 -1
- 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/staff-permission.d.ts +4 -0
- package/dist/src/api/lib/staff-permission.d.ts.map +1 -0
- package/dist/src/api/lib/staff-permission.js +1 -0
- package/dist/src/api/middlewares/global.middleware.d.ts +18 -5
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +2 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.js +1 -1
- package/dist/src/api/models/email.d.ts +11 -1
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +1 -1
- package/dist/src/api/models/email.test.d.ts +2 -0
- package/dist/src/api/models/email.test.d.ts.map +1 -0
- package/dist/src/api/models/email.test.js +1 -0
- package/dist/src/api/models/queue.d.ts +17 -0
- package/dist/src/api/models/queue.d.ts.map +1 -0
- package/dist/src/api/models/queue.js +1 -0
- package/dist/src/api/models/queue.test.d.ts +2 -0
- package/dist/src/api/models/queue.test.d.ts.map +1 -0
- package/dist/src/api/models/queue.test.js +1 -0
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session-admin.js +1 -1
- package/dist/src/api/models/session-cache.d.ts +8 -0
- package/dist/src/api/models/session-cache.d.ts.map +1 -0
- package/dist/src/api/models/session-cache.js +1 -0
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/session.js +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +694 -8
- package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.js +1 -1
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +64 -2
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/advanced/advanced.admin.module.js +1 -1
- package/dist/src/api/modules/admin/advanced/queue/queue.admin.module.d.ts +64 -0
- package/dist/src/api/modules/admin/advanced/queue/queue.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/queue/queue.admin.module.js +1 -0
- package/dist/src/api/modules/admin/advanced/queue/routes/get.route.d.ts +65 -0
- package/dist/src/api/modules/admin/advanced/queue/routes/get.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/advanced/queue/routes/get.route.js +1 -0
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +122 -2
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +1 -1
- package/dist/src/api/modules/admin/debug/routes/integrations.route.d.ts +49 -0
- package/dist/src/api/modules/admin/debug/routes/integrations.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/debug/routes/integrations.route.js +1 -0
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +1 -1
- package/dist/src/api/modules/admin/debug/routes/queue.route.d.ts +42 -0
- package/dist/src/api/modules/admin/debug/routes/queue.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/debug/routes/queue.route.js +1 -0
- package/dist/src/api/modules/admin/debug/routes/send-test-email.route.d.ts +43 -0
- package/dist/src/api/modules/admin/debug/routes/send-test-email.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/debug/routes/send-test-email.route.js +1 -0
- package/dist/src/api/modules/admin/routes/session.route.d.ts +8 -0
- package/dist/src/api/modules/admin/routes/session.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/routes/session.route.js +1 -1
- package/dist/src/api/modules/admin/staff/lib/resolve-staff-edges.d.ts +38 -0
- package/dist/src/api/modules/admin/staff/lib/resolve-staff-edges.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/lib/resolve-staff-edges.js +1 -0
- package/dist/src/api/modules/admin/staff/lib/schema.d.ts +107 -0
- package/dist/src/api/modules/admin/staff/lib/schema.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/lib/schema.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/admins.route.d.ts +76 -0
- package/dist/src/api/modules/admin/staff/routes/admins.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/admins.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/create.route.d.ts +52 -0
- package/dist/src/api/modules/admin/staff/routes/create.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/create.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/delete.route.d.ts +36 -0
- package/dist/src/api/modules/admin/staff/routes/delete.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/delete.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/moderators.route.d.ts +76 -0
- package/dist/src/api/modules/admin/staff/routes/moderators.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/moderators.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/permission-catalog.route.d.ts +32 -0
- package/dist/src/api/modules/admin/staff/routes/permission-catalog.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/permission-catalog.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/show-permissions.route.d.ts +75 -0
- package/dist/src/api/modules/admin/staff/routes/show-permissions.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/show-permissions.route.js +1 -0
- package/dist/src/api/modules/admin/staff/routes/update-permissions.route.d.ts +62 -0
- package/dist/src/api/modules/admin/staff/routes/update-permissions.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/routes/update-permissions.route.js +1 -0
- package/dist/src/api/modules/admin/staff/staff.admin.module.d.ts +392 -0
- package/dist/src/api/modules/admin/staff/staff.admin.module.d.ts.map +1 -0
- package/dist/src/api/modules/admin/staff/staff.admin.module.js +1 -0
- package/dist/src/api/modules/admin/users/lib/assert-edit-user-permission.d.ts +4 -0
- package/dist/src/api/modules/admin/users/lib/assert-edit-user-permission.d.ts.map +1 -0
- package/dist/src/api/modules/admin/users/lib/assert-edit-user-permission.js +1 -0
- package/dist/src/api/modules/admin/users/routes/create.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/create.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +16 -0
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/list.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/show.route.d.ts +19 -2
- package/dist/src/api/modules/admin/users/routes/show.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/show.route.js +1 -1
- package/dist/src/api/modules/admin/users/routes/update.route.d.ts +83 -0
- package/dist/src/api/modules/admin/users/routes/update.route.d.ts.map +1 -0
- package/dist/src/api/modules/admin/users/routes/update.route.js +1 -0
- package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts +2 -2
- package/dist/src/api/modules/admin/users/routes/verify-email.route.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/routes/verify-email.route.js +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +110 -4
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts.map +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
- package/dist/src/api/modules/queue/cron/process-queue.cron.d.ts +2 -0
- package/dist/src/api/modules/queue/cron/process-queue.cron.d.ts.map +1 -0
- package/dist/src/api/modules/queue/cron/process-queue.cron.js +1 -0
- package/dist/src/api/modules/queue/helpers/process-queue-tasks.d.ts +4 -0
- package/dist/src/api/modules/queue/helpers/process-queue-tasks.d.ts.map +1 -0
- package/dist/src/api/modules/queue/helpers/process-queue-tasks.js +1 -0
- package/dist/src/api/modules/queue/queue.module.d.ts +2 -0
- package/dist/src/api/modules/queue/queue.module.d.ts.map +1 -0
- package/dist/src/api/modules/queue/queue.module.js +1 -0
- package/dist/src/api/modules/queue/tasks/send-email.task.d.ts +10 -0
- package/dist/src/api/modules/queue/tasks/send-email.task.d.ts.map +1 -0
- package/dist/src/api/modules/queue/tasks/send-email.task.js +1 -0
- package/dist/src/api/modules/users/routes/permissions.route.d.ts +26 -0
- package/dist/src/api/modules/users/routes/permissions.route.d.ts.map +1 -0
- package/dist/src/api/modules/users/routes/permissions.route.js +1 -0
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +1 -1
- package/dist/src/api/modules/users/routes/session.route.d.ts +1 -0
- package/dist/src/api/modules/users/routes/session.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/session.route.js +1 -1
- package/dist/src/api/modules/users/users.module.d.ts +24 -0
- package/dist/src/api/modules/users/users.module.d.ts.map +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 +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts.map +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +1 -1
- package/dist/src/components/form/auto-form.js +1 -1
- package/dist/src/components/form/fields/array.d.ts.map +1 -1
- package/dist/src/components/form/fields/checkbox.js +1 -1
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +1 -1
- package/dist/src/components/form/fields/switch.js +1 -1
- package/dist/src/components/staff-permission/provider.d.ts +13 -0
- package/dist/src/components/staff-permission/provider.d.ts.map +1 -0
- package/dist/src/components/staff-permission/provider.js +1 -0
- package/dist/src/components/switchers/langs/language-switcher.d.ts.map +1 -1
- package/dist/src/components/switchers/langs/language-switcher.js +1 -1
- package/dist/src/components/switchers/themes/theme-switcher.js +1 -1
- package/dist/src/components/table/filters.d.ts.map +1 -1
- package/dist/src/components/table/filters.js +1 -1
- package/dist/src/components/table/pagination.d.ts.map +1 -1
- package/dist/src/components/table/pagination.js +1 -1
- package/dist/src/components/theme-provider.d.ts +26 -0
- package/dist/src/components/theme-provider.d.ts.map +1 -0
- package/dist/src/components/theme-provider.js +1 -0
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/alignment-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/headings-action.js +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.d.ts.map +1 -1
- package/dist/src/components/tiptap/toolbar/actions/text-format-more/text-format-more.js +1 -1
- package/dist/src/components/ui/accordion.d.ts +3 -3
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.js +1 -1
- package/dist/src/components/ui/alert-dialog.d.ts +10 -10
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +1 -1
- package/dist/src/components/ui/alert.d.ts +2 -2
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +1 -1
- package/dist/src/components/ui/aspect-ratio.d.ts +4 -2
- package/dist/src/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/src/components/ui/aspect-ratio.js +1 -1
- package/dist/src/components/ui/avatar.d.ts +2 -2
- package/dist/src/components/ui/avatar.d.ts.map +1 -1
- package/dist/src/components/ui/avatar.js +1 -1
- package/dist/src/components/ui/badge.d.ts +3 -5
- package/dist/src/components/ui/badge.d.ts.map +1 -1
- package/dist/src/components/ui/badge.js +1 -1
- package/dist/src/components/ui/breadcrumb.d.ts +3 -4
- package/dist/src/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/src/components/ui/breadcrumb.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/button-group.d.ts +2 -3
- package/dist/src/components/ui/button-group.d.ts.map +1 -1
- package/dist/src/components/ui/button-group.js +1 -1
- package/dist/src/components/ui/button.d.ts +5 -5
- 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/card.d.ts +1 -1
- package/dist/src/components/ui/card.d.ts.map +1 -1
- package/dist/src/components/ui/card.js +1 -1
- package/dist/src/components/ui/carousel.d.ts +1 -1
- package/dist/src/components/ui/carousel.d.ts.map +1 -1
- package/dist/src/components/ui/carousel.js +1 -1
- package/dist/src/components/ui/chart.d.ts +1 -1
- package/dist/src/components/ui/chart.d.ts.map +1 -1
- package/dist/src/components/ui/chart.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/collapsible.d.ts +5 -4
- package/dist/src/components/ui/collapsible.d.ts.map +1 -1
- package/dist/src/components/ui/collapsible.js +1 -1
- package/dist/src/components/ui/combobox.d.ts +1 -1
- package/dist/src/components/ui/combobox.d.ts.map +1 -1
- package/dist/src/components/ui/combobox.js +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/command.js +1 -1
- package/dist/src/components/ui/context-menu.d.ts +7 -9
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.js +1 -1
- package/dist/src/components/ui/dialog.d.ts +12 -9
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/components/ui/direction.d.ts +5 -5
- package/dist/src/components/ui/direction.d.ts.map +1 -1
- package/dist/src/components/ui/direction.js +1 -1
- package/dist/src/components/ui/drawer.d.ts +1 -1
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.js +1 -1
- package/dist/src/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.js +1 -1
- package/dist/src/components/ui/empty.d.ts.map +1 -1
- package/dist/src/components/ui/empty.js +1 -1
- package/dist/src/components/ui/field.js +1 -1
- package/dist/src/components/ui/form.d.ts +1 -2
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +1 -1
- package/dist/src/components/ui/hover-card.d.ts +5 -5
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.js +1 -1
- package/dist/src/components/ui/input-group.d.ts +4 -2
- package/dist/src/components/ui/input-group.d.ts.map +1 -1
- package/dist/src/components/ui/input-group.js +1 -1
- package/dist/src/components/ui/input-otp.d.ts +1 -1
- package/dist/src/components/ui/input-otp.d.ts.map +1 -1
- package/dist/src/components/ui/input-otp.js +1 -1
- package/dist/src/components/ui/input.d.ts +1 -1
- package/dist/src/components/ui/input.d.ts.map +1 -1
- package/dist/src/components/ui/input.js +1 -1
- package/dist/src/components/ui/item.d.ts +4 -5
- package/dist/src/components/ui/item.d.ts.map +1 -1
- package/dist/src/components/ui/item.js +1 -1
- package/dist/src/components/ui/label.d.ts +2 -3
- package/dist/src/components/ui/label.d.ts.map +1 -1
- package/dist/src/components/ui/label.js +1 -1
- package/dist/src/components/ui/menubar.d.ts +18 -17
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.js +1 -1
- package/dist/src/components/ui/native-select.d.ts +1 -1
- package/dist/src/components/ui/native-select.d.ts.map +1 -1
- package/dist/src/components/ui/native-select.js +1 -1
- package/dist/src/components/ui/navigation-menu.d.ts +9 -11
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.js +1 -1
- package/dist/src/components/ui/pagination.d.ts +1 -1
- package/dist/src/components/ui/pagination.d.ts.map +1 -1
- package/dist/src/components/ui/pagination.js +1 -1
- package/dist/src/components/ui/popover.d.ts +6 -7
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/radio-group.d.ts +5 -4
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.js +1 -1
- package/dist/src/components/ui/scroll-area.d.ts +3 -3
- package/dist/src/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/src/components/ui/scroll-area.js +1 -1
- package/dist/src/components/ui/select.d.ts +6 -6
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +1 -1
- package/dist/src/components/ui/separator.d.ts +3 -3
- package/dist/src/components/ui/separator.d.ts.map +1 -1
- package/dist/src/components/ui/separator.js +1 -1
- package/dist/src/components/ui/sheet.d.ts +8 -8
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +1 -1
- package/dist/src/components/ui/sidebar.d.ts +9 -15
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.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 +1 -1
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/sonner.js +1 -1
- package/dist/src/components/ui/spinner.d.ts.map +1 -1
- package/dist/src/components/ui/spinner.js +1 -1
- 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 +1 -1
- package/dist/src/components/ui/table.d.ts +1 -1
- package/dist/src/components/ui/table.d.ts.map +1 -1
- package/dist/src/components/ui/table.js +1 -1
- package/dist/src/components/ui/tabs.d.ts +4 -4
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +1 -1
- package/dist/src/components/ui/textarea.d.ts +1 -1
- package/dist/src/components/ui/textarea.d.ts.map +1 -1
- package/dist/src/components/ui/textarea.js +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +1 -1
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +1 -1
- package/dist/src/components/ui/tooltip.d.ts +1 -1
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/database/admins.d.ts +20 -0
- package/dist/src/database/admins.d.ts.map +1 -1
- package/dist/src/database/admins.js +1 -1
- package/dist/src/database/languages.d.ts.map +1 -1
- package/dist/src/database/languages.js +1 -1
- package/dist/src/database/logs.d.ts +1 -1
- package/dist/src/database/moderators.d.ts +20 -0
- package/dist/src/database/moderators.d.ts.map +1 -1
- package/dist/src/database/moderators.js +1 -1
- package/dist/src/database/queue.d.ts +273 -0
- package/dist/src/database/queue.d.ts.map +1 -0
- package/dist/src/database/queue.js +1 -0
- package/dist/src/database/users.d.ts +63 -0
- package/dist/src/database/users.d.ts.map +1 -1
- package/dist/src/database/users.js +1 -1
- package/dist/src/emails/default-template.d.ts +1 -1
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +1 -1
- package/dist/src/emails/reset-password.js +1 -1
- package/dist/src/emails/test-email.d.ts +26 -0
- package/dist/src/emails/test-email.d.ts.map +1 -0
- package/dist/src/emails/test-email.js +1 -0
- package/dist/src/emails/ui/button.d.ts +2 -2
- package/dist/src/emails/ui/button.d.ts.map +1 -1
- package/dist/src/emails/ui/button.js +1 -1
- package/dist/src/emails/ui/card.d.ts +1 -1
- package/dist/src/emails/ui/card.d.ts.map +1 -1
- package/dist/src/emails/ui/card.js +1 -1
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +1 -1
- package/dist/src/hooks/use-mobile.js +1 -1
- package/dist/src/lib/api/get-moderator-permissions-api.d.ts +4 -0
- package/dist/src/lib/api/get-moderator-permissions-api.d.ts.map +1 -0
- package/dist/src/lib/api/get-moderator-permissions-api.js +1 -0
- package/dist/src/lib/api/get-next-cron-run-date.js +1 -1
- package/dist/src/lib/api/get-queue-backoff-date.d.ts +2 -0
- package/dist/src/lib/api/get-queue-backoff-date.d.ts.map +1 -0
- package/dist/src/lib/api/get-queue-backoff-date.js +1 -0
- package/dist/src/lib/api/get-queue-backoff-date.test.d.ts +2 -0
- package/dist/src/lib/api/get-queue-backoff-date.test.d.ts.map +1 -0
- package/dist/src/lib/api/get-queue-backoff-date.test.js +1 -0
- package/dist/src/lib/api/get-session-admin-api.d.ts +12 -0
- package/dist/src/lib/api/get-session-admin-api.d.ts.map +1 -1
- package/dist/src/lib/api/get-session-admin-api.js +1 -1
- package/dist/src/lib/api/get-session-api.d.ts +1 -0
- package/dist/src/lib/api/get-session-api.d.ts.map +1 -1
- package/dist/src/lib/api/resolve-queue-task-outcome.d.ts +14 -0
- package/dist/src/lib/api/resolve-queue-task-outcome.d.ts.map +1 -0
- package/dist/src/lib/api/resolve-queue-task-outcome.js +1 -0
- package/dist/src/lib/api/resolve-queue-task-outcome.test.d.ts +2 -0
- package/dist/src/lib/api/resolve-queue-task-outcome.test.d.ts.map +1 -0
- package/dist/src/lib/api/resolve-queue-task-outcome.test.js +1 -0
- package/dist/src/lib/api/should-cron-job-run.js +1 -1
- 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 +1 -1
- package/dist/src/lib/fetcher/types.d.ts.map +1 -1
- package/dist/src/lib/navigation.d.ts +5 -5
- package/dist/src/lib/plugin.d.ts +3 -0
- package/dist/src/lib/plugin.d.ts.map +1 -1
- package/dist/src/lib/utils.d.ts +1 -0
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +1 -1
- package/dist/src/routes/admin/core/advanced/queue/page.d.ts +13 -0
- package/dist/src/routes/admin/core/advanced/queue/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/advanced/queue/page.js +1 -0
- package/dist/src/routes/admin/core/debug/page.d.ts.map +1 -1
- package/dist/src/routes/admin/core/debug/page.js +1 -1
- package/dist/src/routes/admin/core/staff/admins/create/page.d.ts +3 -0
- package/dist/src/routes/admin/core/staff/admins/create/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/admins/create/page.js +1 -0
- package/dist/src/routes/admin/core/staff/admins/edit/[id]/page.d.ts +7 -0
- package/dist/src/routes/admin/core/staff/admins/edit/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/admins/edit/[id]/page.js +1 -0
- package/dist/src/routes/admin/core/staff/admins/page.d.ts +4 -0
- package/dist/src/routes/admin/core/staff/admins/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/admins/page.js +1 -0
- package/dist/src/routes/admin/core/staff/moderators/create/page.d.ts +3 -0
- package/dist/src/routes/admin/core/staff/moderators/create/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/moderators/create/page.js +1 -0
- package/dist/src/routes/admin/core/staff/moderators/edit/[id]/page.d.ts +7 -0
- package/dist/src/routes/admin/core/staff/moderators/edit/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/moderators/edit/[id]/page.js +1 -0
- package/dist/src/routes/admin/core/staff/moderators/page.d.ts +4 -0
- package/dist/src/routes/admin/core/staff/moderators/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/staff/moderators/page.js +1 -0
- package/dist/src/routes/admin/core/system/integrations/page.d.ts +7 -0
- package/dist/src/routes/admin/core/system/integrations/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/system/integrations/page.js +1 -0
- package/dist/src/routes/admin/core/users/{[nameCode] → [id]}/page.d.ts +2 -2
- package/dist/src/routes/admin/core/users/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/admin/core/users/[id]/page.js +1 -0
- package/dist/src/routes/admin/core/users/page.d.ts.map +1 -1
- package/dist/src/routes/admin/core/users/page.js +1 -1
- package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts +1 -5
- package/dist/src/routes/breadcrumb/admin/[...all]/page.d.ts.map +1 -1
- package/dist/src/routes/breadcrumb/admin/[...all]/page.js +1 -1
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/create/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/create/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/create/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/{users/[nameCode] → staff/admins/edit/[id]}/page.d.ts +1 -1
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/edit/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/edit/[id]/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/admins/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/create/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/create/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/create/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/edit/[id]/page.d.ts +6 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/edit/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/edit/[id]/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/page.d.ts +2 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/staff/moderators/page.js +1 -0
- package/dist/src/routes/breadcrumb/admin/core/users/[id]/page.d.ts +6 -0
- package/dist/src/routes/breadcrumb/admin/core/users/[id]/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/admin/core/users/{[nameCode] → [id]}/page.js +1 -1
- package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts +1 -5
- package/dist/src/routes/breadcrumb/main/[...rest]/page.d.ts.map +1 -1
- package/dist/src/routes/breadcrumb/main/[...rest]/page.js +1 -1
- package/dist/src/routes/breadcrumb/main/settings/overview/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/settings/overview/page.js +1 -0
- package/dist/src/routes/breadcrumb/main/settings/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/{register → settings}/page.js +1 -1
- package/dist/src/routes/breadcrumb/main/settings/security/page.d.ts.map +1 -0
- package/dist/src/routes/breadcrumb/main/settings/security/page.js +1 -0
- package/dist/src/routes/main/settings/layout.d.ts +5 -0
- package/dist/src/routes/main/settings/layout.d.ts.map +1 -0
- package/dist/src/routes/main/settings/layout.js +1 -0
- package/dist/src/routes/main/settings/overview/page.d.ts +5 -0
- package/dist/src/routes/main/settings/overview/page.d.ts.map +1 -0
- package/dist/src/routes/main/settings/overview/page.js +1 -0
- package/dist/src/routes/main/settings/page.d.ts +5 -0
- package/dist/src/routes/main/settings/page.d.ts.map +1 -0
- package/dist/src/routes/main/settings/page.js +1 -0
- package/dist/src/routes/main/settings/security/page.d.ts +5 -0
- package/dist/src/routes/main/settings/security/page.d.ts.map +1 -0
- package/dist/src/routes/main/settings/security/page.js +1 -0
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +1 -1
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-admin.d.ts +6 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-admin.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-admin.js +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-create-admin.d.ts +5 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-create-admin.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-create-admin.js +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-edit-admin.d.ts +6 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-edit-admin.d.ts.map +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-staff-edit-admin.js +1 -0
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts +2 -2
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/breadcrumb/breadcrumb-user-admin.js +1 -1
- package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/breadcrumb/resolve-breadcrumb.js +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/get-admin-nav.js +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.js +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
- package/dist/src/views/admin/views/core/advanced/queue/badges/status-badge.d.ts +5 -0
- package/dist/src/views/admin/views/core/advanced/queue/badges/status-badge.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/queue/badges/status-badge.js +1 -0
- package/dist/src/views/admin/views/core/advanced/queue/queue-table-view.d.ts +7 -0
- package/dist/src/views/admin/views/core/advanced/queue/queue-table-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/advanced/queue/queue-table-view.js +1 -0
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +1 -1
- package/dist/src/views/admin/views/core/debug/queue/queue-view.d.ts +2 -0
- package/dist/src/views/admin/views/core/debug/queue/queue-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/debug/queue/queue-view.js +1 -0
- 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 +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.d.ts +1 -1
- package/dist/src/views/admin/views/core/staff/create/create-staff-permissions-view.d.ts +5 -0
- package/dist/src/views/admin/views/core/staff/create/create-staff-permissions-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/create/create-staff-permissions-view.js +1 -0
- package/dist/src/views/admin/views/core/staff/create/form.d.ts +6 -0
- package/dist/src/views/admin/views/core/staff/create/form.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/create/form.js +1 -0
- package/dist/src/views/admin/views/core/staff/create/mutation-api.d.ts +14 -0
- package/dist/src/views/admin/views/core/staff/create/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/create/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/staff/create/search.action.d.ts +8 -0
- package/dist/src/views/admin/views/core/staff/create/search.action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/create/search.action.js +1 -0
- package/dist/src/views/admin/views/core/staff/edit/edit-staff-permissions-view.d.ts +8 -0
- package/dist/src/views/admin/views/core/staff/edit/edit-staff-permissions-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/edit/edit-staff-permissions-view.js +1 -0
- package/dist/src/views/admin/views/core/staff/edit/form.d.ts +29 -0
- package/dist/src/views/admin/views/core/staff/edit/form.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/edit/form.js +1 -0
- package/dist/src/views/admin/views/core/staff/edit/mutation-api.d.ts +13 -0
- package/dist/src/views/admin/views/core/staff/edit/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/edit/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/staff/selectable-card.d.ts +11 -0
- package/dist/src/views/admin/views/core/staff/selectable-card.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/selectable-card.js +1 -0
- package/dist/src/views/admin/views/core/staff/table/actions/delete-action.d.ts +11 -0
- package/dist/src/views/admin/views/core/staff/table/actions/delete-action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/table/actions/delete-action.js +1 -0
- package/dist/src/views/admin/views/core/staff/table/actions/staff-row-actions.d.ts +10 -0
- package/dist/src/views/admin/views/core/staff/table/actions/staff-row-actions.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/table/actions/staff-row-actions.js +1 -0
- package/dist/src/views/admin/views/core/staff/table/staff-table.d.ts +7 -0
- package/dist/src/views/admin/views/core/staff/table/staff-table.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/table/staff-table.js +1 -0
- package/dist/src/views/admin/views/core/staff/table/staff-user-format.d.ts +18 -0
- package/dist/src/views/admin/views/core/staff/table/staff-user-format.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/table/staff-user-format.js +1 -0
- package/dist/src/views/admin/views/core/staff/views/admins/admins-staff-view.d.ts +4 -0
- package/dist/src/views/admin/views/core/staff/views/admins/admins-staff-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/views/admins/admins-staff-view.js +1 -0
- package/dist/src/views/admin/views/core/staff/views/moderators/moderators-staff-view.d.ts +4 -0
- package/dist/src/views/admin/views/core/staff/views/moderators/moderators-staff-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/staff/views/moderators/moderators-staff-view.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/integration-card.d.ts +15 -0
- package/dist/src/views/admin/views/core/system/integrations/integration-card.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/integration-card.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/integrations-view.d.ts +3 -0
- package/dist/src/views/admin/views/core/system/integrations/integrations-view.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/integrations-view.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/content.d.ts +2 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/content.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/content.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/mutation-api.d.ts +12 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/send-test-email.d.ts +3 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/send-test-email.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/send-test-email.js +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/use-form.d.ts +15 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/use-form.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/system/integrations/send-test-email/use-form.js +1 -0
- package/dist/src/views/admin/views/core/users/actions/create/create.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/actions/create/create.js +1 -1
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts +1 -1
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/actions/verify-email/mutation-api.js +1 -1
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts +2 -2
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/actions/verify-email/verify-email.js +1 -1
- package/dist/src/views/admin/views/core/users/actions.d.ts +3 -3
- package/dist/src/views/admin/views/core/users/actions.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/actions.js +1 -1
- package/dist/src/views/admin/views/core/users/show/edit-buttons.d.ts +4 -0
- package/dist/src/views/admin/views/core/users/show/edit-buttons.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/edit-buttons.js +1 -0
- package/dist/src/views/admin/views/core/users/show/edit-field.d.ts +13 -0
- package/dist/src/views/admin/views/core/users/show/edit-field.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/edit-field.js +1 -0
- package/dist/src/views/admin/views/core/users/show/edit-name-code.d.ts +5 -0
- package/dist/src/views/admin/views/core/users/show/edit-name-code.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/edit-name-code.js +1 -0
- package/dist/src/views/admin/views/core/users/show/mutation-api.d.ts +19 -0
- package/dist/src/views/admin/views/core/users/show/mutation-api.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/mutation-api.js +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/edit-roles.d.ts +8 -0
- package/dist/src/views/admin/views/core/users/show/roles/edit-roles.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/edit-roles.js +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/roles.d.ts +8 -0
- package/dist/src/views/admin/views/core/users/show/roles/roles.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/roles.js +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/search-roles.action.d.ts +10 -0
- package/dist/src/views/admin/views/core/users/show/roles/search-roles.action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/search-roles.action.js +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/update-roles.action.d.ts +13 -0
- package/dist/src/views/admin/views/core/users/show/roles/update-roles.action.d.ts.map +1 -0
- package/dist/src/views/admin/views/core/users/show/roles/update-roles.action.js +1 -0
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts +2 -2
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/show/show-user-admin-view.js +1 -1
- 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 +1 -1
- package/dist/src/views/auth/settings/layout.d.ts +4 -0
- package/dist/src/views/auth/settings/layout.d.ts.map +1 -0
- package/dist/src/views/auth/settings/layout.js +1 -0
- package/dist/src/views/auth/settings/nav.d.ts +2 -0
- package/dist/src/views/auth/settings/nav.d.ts.map +1 -0
- package/dist/src/views/auth/settings/nav.js +1 -0
- package/dist/src/views/auth/settings/overview/overview.d.ts +2 -0
- package/dist/src/views/auth/settings/overview/overview.d.ts.map +1 -0
- package/dist/src/views/auth/settings/overview/overview.js +1 -0
- package/dist/src/views/auth/settings/security/security.d.ts +2 -0
- package/dist/src/views/auth/settings/security/security.d.ts.map +1 -0
- package/dist/src/views/auth/settings/security/security.js +1 -0
- package/dist/src/views/auth/settings/shell.d.ts +4 -0
- package/dist/src/views/auth/settings/shell.d.ts.map +1 -0
- package/dist/src/views/auth/settings/shell.js +1 -0
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/client.js +1 -1
- package/dist/src/views/breadcrumb/breadcrumb-main.js +1 -1
- package/dist/src/views/breadcrumb/breadcrumb-render.js +1 -1
- package/dist/src/views/error/global-error-view.js +1 -1
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.js +1 -1
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/auth.js +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 +1 -1
- package/dist/src/vitnode.config.d.ts +7 -3
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/ws/handle.d.ts.map +1 -1
- package/dist/src/ws/handle.js +1 -1
- package/dist/src/ws/manager.d.ts.map +1 -1
- package/dist/src/ws/manager.js +1 -1
- package/dist/src/ws/provider.d.ts.map +1 -1
- package/dist/src/ws/provider.js +1 -1
- package/dist/src/ws/registry.d.ts +5 -0
- package/dist/src/ws/registry.d.ts.map +1 -1
- package/dist/src/ws/registry.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest.config.d.ts.map +1 -1
- package/package.json +24 -26
- package/src/locales/en.json +279 -4
- package/src/routes/admin/core/advanced/queue/page.tsx +51 -0
- package/src/routes/admin/core/debug/page.tsx +25 -4
- package/src/routes/admin/core/staff/admins/create/page.tsx +17 -0
- package/src/routes/admin/core/staff/admins/edit/[id]/page.tsx +23 -0
- package/src/routes/admin/core/staff/admins/page.tsx +14 -0
- package/src/routes/admin/core/staff/moderators/create/page.tsx +17 -0
- package/src/routes/admin/core/staff/moderators/edit/[id]/page.tsx +23 -0
- package/src/routes/admin/core/staff/moderators/page.tsx +14 -0
- package/src/routes/admin/core/system/integrations/page.tsx +43 -0
- package/src/routes/admin/core/users/{[nameCode] → [id]}/page.tsx +7 -7
- package/src/routes/admin/core/users/page.tsx +10 -2
- package/src/routes/breadcrumb/admin/[...all]/page.tsx +2 -16
- package/src/routes/breadcrumb/admin/core/staff/admins/create/page.tsx +5 -0
- package/src/routes/breadcrumb/admin/core/staff/admins/edit/[id]/page.tsx +11 -0
- package/src/routes/breadcrumb/admin/core/staff/admins/page.tsx +5 -0
- package/src/routes/breadcrumb/admin/core/staff/moderators/create/page.tsx +5 -0
- package/src/routes/breadcrumb/admin/core/staff/moderators/edit/[id]/page.tsx +11 -0
- package/src/routes/breadcrumb/admin/core/staff/moderators/page.tsx +5 -0
- package/src/routes/breadcrumb/admin/core/users/[id]/page.tsx +11 -0
- package/src/routes/breadcrumb/main/[...rest]/page.tsx +2 -16
- package/src/routes/breadcrumb/main/settings/overview/page.tsx +17 -0
- package/src/routes/breadcrumb/main/{register → settings}/page.tsx +3 -3
- package/src/routes/breadcrumb/main/settings/security/page.tsx +17 -0
- package/src/routes/main/settings/layout.tsx +16 -0
- package/src/routes/main/settings/overview/page.tsx +15 -0
- package/src/routes/main/settings/page.tsx +15 -0
- package/src/routes/main/settings/security/page.tsx +15 -0
- package/dist/scripts/get-config.js +0 -66
- package/dist/scripts/plugin.js +0 -206
- package/dist/scripts/prepare-database.js +0 -177
- package/dist/scripts/prepare-plugins-files.js +0 -152
- package/dist/scripts/run-interactive-shell-command.js +0 -21
- package/dist/scripts/shared/file-utils.js +0 -203
- package/dist/src/locales/en.json +0 -372
- package/dist/src/routes/admin/core/users/[nameCode]/page.d.ts.map +0 -1
- package/dist/src/routes/admin/core/users/[nameCode]/page.js +0 -1
- package/dist/src/routes/breadcrumb/admin/core/users/[nameCode]/page.d.ts.map +0 -1
- package/dist/src/routes/breadcrumb/main/login/page.d.ts.map +0 -1
- package/dist/src/routes/breadcrumb/main/login/page.js +0 -1
- package/dist/src/routes/breadcrumb/main/login/reset-password/page.d.ts.map +0 -1
- package/dist/src/routes/breadcrumb/main/login/reset-password/page.js +0 -1
- package/dist/src/routes/breadcrumb/main/register/page.d.ts.map +0 -1
- package/dist/tsup.config.js +0 -17
- package/dist/vitest.config.js +0 -48
- package/src/routes/breadcrumb/admin/core/users/[nameCode]/page.tsx +0 -12
- package/src/routes/breadcrumb/main/login/page.tsx +0 -11
- package/src/routes/breadcrumb/main/login/reset-password/page.tsx +0 -20
- /package/dist/src/routes/breadcrumb/main/{login → settings/overview}/page.d.ts +0 -0
- /package/dist/src/routes/breadcrumb/main/{login/reset-password → settings}/page.d.ts +0 -0
- /package/dist/src/routes/breadcrumb/main/{register → settings/security}/page.d.ts +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
4
|
+
import { Loader } from "@/components/ui/loader";
|
|
5
|
+
import { EditStaffPermissionsView } from "@/views/admin/views/core/staff/edit/edit-staff-permissions-view";
|
|
6
|
+
|
|
7
|
+
export default async function Page({
|
|
8
|
+
params,
|
|
9
|
+
}: {
|
|
10
|
+
params: Promise<{ id: string }>;
|
|
11
|
+
}) {
|
|
12
|
+
const { id } = await params;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<I18nProvider namespaces="admin.staff">
|
|
16
|
+
<div className="mx-auto max-w-4xl p-4">
|
|
17
|
+
<React.Suspense fallback={<Loader />}>
|
|
18
|
+
<EditStaffPermissionsView id={id} type="moderator" />
|
|
19
|
+
</React.Suspense>
|
|
20
|
+
</div>
|
|
21
|
+
</I18nProvider>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
4
|
+
import { ModeratorsStaffAdminView } from "@/views/admin/views/core/staff/views/moderators/moderators-staff-view";
|
|
5
|
+
|
|
6
|
+
export default function Page(
|
|
7
|
+
props: React.ComponentProps<typeof ModeratorsStaffAdminView>,
|
|
8
|
+
) {
|
|
9
|
+
return (
|
|
10
|
+
<I18nProvider namespaces="admin.staff">
|
|
11
|
+
<ModeratorsStaffAdminView {...props} />
|
|
12
|
+
</I18nProvider>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
import { notFound } from "next/navigation";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
import { I18nProvider } from "@/components/i18n-provider";
|
|
6
|
+
import { HeaderContent } from "@/components/ui/header-content";
|
|
7
|
+
import { checkAdminPermissionApi } from "@/lib/api/get-session-admin-api";
|
|
8
|
+
import {
|
|
9
|
+
IntegrationsView,
|
|
10
|
+
IntegrationsViewSkeleton,
|
|
11
|
+
} from "@/views/admin/views/core/system/integrations/integrations-view";
|
|
12
|
+
|
|
13
|
+
export const generateMetadata = async () => {
|
|
14
|
+
const t = await getTranslations("admin.system.integrations");
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
title: t("title"),
|
|
18
|
+
description: t("desc"),
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default async function Page() {
|
|
23
|
+
const [t, canView] = await Promise.all([
|
|
24
|
+
getTranslations("admin.system.integrations"),
|
|
25
|
+
checkAdminPermissionApi({ module: "system", permission: "can_view" }),
|
|
26
|
+
]);
|
|
27
|
+
|
|
28
|
+
if (!canView) {
|
|
29
|
+
notFound();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<I18nProvider namespaces="admin.system.integrations">
|
|
34
|
+
<div className="p-4">
|
|
35
|
+
<HeaderContent desc={t("desc")} h1={t("title")} />
|
|
36
|
+
|
|
37
|
+
<React.Suspense fallback={<IntegrationsViewSkeleton />}>
|
|
38
|
+
<IntegrationsView />
|
|
39
|
+
</React.Suspense>
|
|
40
|
+
</div>
|
|
41
|
+
</I18nProvider>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -20,16 +20,16 @@ const ShowUserAdminView = dynamic(async () =>
|
|
|
20
20
|
export const generateMetadata = async ({
|
|
21
21
|
params,
|
|
22
22
|
}: {
|
|
23
|
-
params: Promise<{
|
|
23
|
+
params: Promise<{ id: string }>;
|
|
24
24
|
}): Promise<Metadata> => {
|
|
25
|
-
const {
|
|
25
|
+
const { id } = await params;
|
|
26
26
|
const t = await getTranslations("admin.user.show");
|
|
27
27
|
const res = await fetcher(adminModule, {
|
|
28
|
-
path: "/{
|
|
28
|
+
path: "/{id}",
|
|
29
29
|
method: "get",
|
|
30
30
|
module: "admin/users",
|
|
31
31
|
args: {
|
|
32
|
-
params: {
|
|
32
|
+
params: { id },
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -49,15 +49,15 @@ export const generateMetadata = async ({
|
|
|
49
49
|
export default async function Page({
|
|
50
50
|
params,
|
|
51
51
|
}: {
|
|
52
|
-
params: Promise<{
|
|
52
|
+
params: Promise<{ id: string }>;
|
|
53
53
|
}) {
|
|
54
|
-
const {
|
|
54
|
+
const { id } = await params;
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<I18nProvider namespaces="admin.user">
|
|
58
58
|
<div className="p-4">
|
|
59
59
|
<React.Suspense fallback={<Loader />}>
|
|
60
|
-
<ShowUserAdminView
|
|
60
|
+
<ShowUserAdminView id={id} />
|
|
61
61
|
</React.Suspense>
|
|
62
62
|
</div>
|
|
63
63
|
</I18nProvider>
|
|
@@ -2,11 +2,13 @@ import type { Metadata } from "next/dist/types";
|
|
|
2
2
|
|
|
3
3
|
import { getTranslations } from "next-intl/server";
|
|
4
4
|
import dynamic from "next/dynamic";
|
|
5
|
+
import { notFound } from "next/navigation";
|
|
5
6
|
import React from "react";
|
|
6
7
|
|
|
7
8
|
import { I18nProvider } from "@/components/i18n-provider";
|
|
8
9
|
import { DataTableSkeleton } from "@/components/table/data-table";
|
|
9
10
|
import { HeaderContent } from "@/components/ui/header-content";
|
|
11
|
+
import { checkAdminPermissionApi } from "@/lib/api/get-session-admin-api";
|
|
10
12
|
import { CreateUserAdmin } from "@/views/admin/views/core/users/actions/create/create";
|
|
11
13
|
|
|
12
14
|
const UsersAdminView = dynamic(async () =>
|
|
@@ -26,16 +28,22 @@ export const generateMetadata = async (): Promise<Metadata> => {
|
|
|
26
28
|
export default async function Page(
|
|
27
29
|
props: React.ComponentProps<typeof UsersAdminView>,
|
|
28
30
|
) {
|
|
29
|
-
const [t, tNav] = await Promise.all([
|
|
31
|
+
const [t, tNav, canView, canCreate] = await Promise.all([
|
|
30
32
|
getTranslations("admin.user.list"),
|
|
31
33
|
getTranslations("admin.global.nav.users"),
|
|
34
|
+
checkAdminPermissionApi({ module: "users", permission: "can_view" }),
|
|
35
|
+
checkAdminPermissionApi({ module: "users", permission: "can_create" }),
|
|
32
36
|
]);
|
|
33
37
|
|
|
38
|
+
if (!canView) {
|
|
39
|
+
notFound();
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
return (
|
|
35
43
|
<I18nProvider namespaces="admin.user">
|
|
36
44
|
<div className="p-4">
|
|
37
45
|
<HeaderContent desc={t("desc")} h1={tNav("list")}>
|
|
38
|
-
<CreateUserAdmin />
|
|
46
|
+
{canCreate && <CreateUserAdmin />}
|
|
39
47
|
</HeaderContent>
|
|
40
48
|
|
|
41
49
|
<React.Suspense fallback={<DataTableSkeleton columns={2} />}>
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Generic catch-all breadcrumb for every authenticated admin route (core +
|
|
4
|
-
// plugins). More specific slot folders (e.g. core/users/[nameCode]) override it.
|
|
5
|
-
//
|
|
6
|
-
// NOTE: must live at the `@breadcrumb` slot ROOT (not under a `(plugins)` route
|
|
7
|
-
// group) — a parallel-route slot only matches `children` sharing its route-group
|
|
8
|
-
// structure, so a nested catch-all would miss pages from other plugin groups.
|
|
9
|
-
export default async function BreadcrumbSlot({
|
|
10
|
-
params,
|
|
11
|
-
}: {
|
|
12
|
-
params: Promise<{ all?: string[] }>;
|
|
13
|
-
}) {
|
|
14
|
-
const { all } = await params;
|
|
15
|
-
|
|
16
|
-
return <BreadcrumbAdmin segments={all ?? []} />;
|
|
1
|
+
export default function BreadcrumbSlot() {
|
|
2
|
+
return null;
|
|
17
3
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BreadcrumbStaffEditAdmin } from "@/views/admin/layouts/breadcrumb/breadcrumb-staff-edit-admin";
|
|
2
|
+
|
|
3
|
+
export default async function BreadcrumbSlot({
|
|
4
|
+
params,
|
|
5
|
+
}: {
|
|
6
|
+
params: Promise<{ id: string }>;
|
|
7
|
+
}) {
|
|
8
|
+
const { id } = await params;
|
|
9
|
+
|
|
10
|
+
return <BreadcrumbStaffEditAdmin id={id} type="admin" />;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BreadcrumbStaffEditAdmin } from "@/views/admin/layouts/breadcrumb/breadcrumb-staff-edit-admin";
|
|
2
|
+
|
|
3
|
+
export default async function BreadcrumbSlot({
|
|
4
|
+
params,
|
|
5
|
+
}: {
|
|
6
|
+
params: Promise<{ id: string }>;
|
|
7
|
+
}) {
|
|
8
|
+
const { id } = await params;
|
|
9
|
+
|
|
10
|
+
return <BreadcrumbStaffEditAdmin id={id} type="moderator" />;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BreadcrumbUserAdmin } from "@/views/admin/layouts/breadcrumb/breadcrumb-user-admin";
|
|
2
|
+
|
|
3
|
+
export default async function BreadcrumbSlot({
|
|
4
|
+
params,
|
|
5
|
+
}: {
|
|
6
|
+
params: Promise<{ id: string }>;
|
|
7
|
+
}) {
|
|
8
|
+
const { id } = await params;
|
|
9
|
+
|
|
10
|
+
return <BreadcrumbUserAdmin id={id} />;
|
|
11
|
+
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Generic catch-all breadcrumb for public pages: humanizes URL segments.
|
|
4
|
-
// Specific slot folders (login, register, …) override it with translated labels.
|
|
5
|
-
//
|
|
6
|
-
// NOTE: must live at the `@breadcrumb` slot ROOT (not under a `(plugins)` route
|
|
7
|
-
// group) — a parallel-route slot only matches `children` sharing its route-group
|
|
8
|
-
// structure, so a nested catch-all would miss pages outside that group.
|
|
9
|
-
export default async function BreadcrumbSlot({
|
|
10
|
-
params,
|
|
11
|
-
}: {
|
|
12
|
-
params: Promise<{ rest?: string[] }>;
|
|
13
|
-
}) {
|
|
14
|
-
const { rest } = await params;
|
|
15
|
-
|
|
16
|
-
return <BreadcrumbMain segments={rest ?? []} />;
|
|
1
|
+
export default function BreadcrumbSlot() {
|
|
2
|
+
return null;
|
|
17
3
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
|
|
3
|
+
import { BreadcrumbMain } from "@/views/breadcrumb/breadcrumb-main";
|
|
4
|
+
|
|
5
|
+
export default async function BreadcrumbSlot() {
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<BreadcrumbMain
|
|
10
|
+
labels={{
|
|
11
|
+
"/settings": t("title"),
|
|
12
|
+
"/settings/overview": t("nav.overview"),
|
|
13
|
+
}}
|
|
14
|
+
segments={["settings", "overview"]}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -3,12 +3,12 @@ import { getTranslations } from "next-intl/server";
|
|
|
3
3
|
import { BreadcrumbMain } from "@/views/breadcrumb/breadcrumb-main";
|
|
4
4
|
|
|
5
5
|
export default async function BreadcrumbSlot() {
|
|
6
|
-
const t = await getTranslations("core.
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
9
|
<BreadcrumbMain
|
|
10
|
-
labels={{ "/
|
|
11
|
-
segments={["
|
|
10
|
+
labels={{ "/settings": t("title") }}
|
|
11
|
+
segments={["settings"]}
|
|
12
12
|
/>
|
|
13
13
|
);
|
|
14
14
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
|
|
3
|
+
import { BreadcrumbMain } from "@/views/breadcrumb/breadcrumb-main";
|
|
4
|
+
|
|
5
|
+
export default async function BreadcrumbSlot() {
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<BreadcrumbMain
|
|
10
|
+
labels={{
|
|
11
|
+
"/settings": t("title"),
|
|
12
|
+
"/settings/security": t("nav.security"),
|
|
13
|
+
}}
|
|
14
|
+
segments={["settings", "security"]}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Metadata } from "next/dist/types";
|
|
2
|
+
|
|
3
|
+
import { LayoutSettings } from "@/views/auth/settings/layout";
|
|
4
|
+
|
|
5
|
+
export const metadata: Metadata = {
|
|
6
|
+
robots: {
|
|
7
|
+
index: false,
|
|
8
|
+
follow: false,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default function Layout(
|
|
13
|
+
props: React.ComponentProps<typeof LayoutSettings>,
|
|
14
|
+
) {
|
|
15
|
+
return <LayoutSettings {...props} />;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
|
|
3
|
+
import { OverviewSettings } from "@/views/auth/settings/overview/overview";
|
|
4
|
+
|
|
5
|
+
export const generateMetadata = async () => {
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
title: `${t("nav.overview")} - ${t("title")}`,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default function Page() {
|
|
14
|
+
return <OverviewSettings />;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
|
|
3
|
+
import { OverviewSettings } from "@/views/auth/settings/overview/overview";
|
|
4
|
+
|
|
5
|
+
export const generateMetadata = async () => {
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
title: `${t("nav.overview")} - ${t("title")}`,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default function Page() {
|
|
14
|
+
return <OverviewSettings />;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getTranslations } from "next-intl/server";
|
|
2
|
+
|
|
3
|
+
import { SecuritySettings } from "@/views/auth/settings/security/security";
|
|
4
|
+
|
|
5
|
+
export const generateMetadata = async () => {
|
|
6
|
+
const t = await getTranslations("core.auth.settings");
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
title: `${t("nav.security")} - ${t("title")}`,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default function Page() {
|
|
14
|
+
return <SecuritySettings />;
|
|
15
|
+
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { createJiti } from "jiti";
|
|
2
|
-
import { existsSync, readdirSync, statSync } from "node:fs";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
const findConfigFile = (baseDir, filename, maxDepth = 4) => {
|
|
5
|
-
const searchRecursively = (dir, depth) => {
|
|
6
|
-
if (depth > maxDepth)
|
|
7
|
-
return null;
|
|
8
|
-
try {
|
|
9
|
-
const configPath = join(dir, "src", filename);
|
|
10
|
-
if (existsSync(configPath)) {
|
|
11
|
-
return configPath;
|
|
12
|
-
}
|
|
13
|
-
const items = readdirSync(dir);
|
|
14
|
-
for (const item of items) {
|
|
15
|
-
if (item === "node_modules" ||
|
|
16
|
-
item.startsWith(".") ||
|
|
17
|
-
item === "dist" ||
|
|
18
|
-
item === "build" ||
|
|
19
|
-
item === "out") {
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
const itemPath = join(dir, item);
|
|
23
|
-
try {
|
|
24
|
-
if (statSync(itemPath).isDirectory()) {
|
|
25
|
-
const found = searchRecursively(itemPath, depth + 1);
|
|
26
|
-
if (found)
|
|
27
|
-
return found;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
return searchRecursively(baseDir, 0);
|
|
39
|
-
};
|
|
40
|
-
export const getConfig = async ({ type = "config", }) => {
|
|
41
|
-
const cwd = process.cwd();
|
|
42
|
-
const filename = `vitnode.${type}.ts`;
|
|
43
|
-
const configPath = findConfigFile(cwd, filename);
|
|
44
|
-
if (!configPath) {
|
|
45
|
-
console.error(`Config file not found: ${filename}`);
|
|
46
|
-
console.error(`Searched recursively in ${cwd} (excluding node_modules, .*, dist, build, out)`);
|
|
47
|
-
process.exit(1);
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
const configVarName = type === "config" ? "vitNodeConfig" : "vitNodeApiConfig";
|
|
51
|
-
const jiti = createJiti(import.meta.url, {
|
|
52
|
-
interopDefault: true,
|
|
53
|
-
});
|
|
54
|
-
const loaded = (await jiti.import(configPath));
|
|
55
|
-
const config = loaded[configVarName];
|
|
56
|
-
if (!config) {
|
|
57
|
-
console.error(`Export "${configVarName}" not found in ${configPath}`);
|
|
58
|
-
process.exit(1);
|
|
59
|
-
}
|
|
60
|
-
return config;
|
|
61
|
-
}
|
|
62
|
-
catch (error) {
|
|
63
|
-
console.error("Failed to load config:", error);
|
|
64
|
-
process.exit(1);
|
|
65
|
-
}
|
|
66
|
-
};
|
package/dist/scripts/plugin.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import chokidar from "chokidar";
|
|
2
|
-
import { existsSync, mkdirSync, readdirSync, readFileSync, unlinkSync, } from "node:fs";
|
|
3
|
-
import { basename, join, relative } from "node:path";
|
|
4
|
-
import { buildInitialRouteMap, copyFile, findLocaleRoot, findRepoRoot, getAllFiles, isDirectoryEmpty, routeKey, } from "./shared/file-utils.js";
|
|
5
|
-
const detectAppType = (appPath) => {
|
|
6
|
-
const hasWebConfig = existsSync(join(appPath, "src", "vitnode.config.ts"));
|
|
7
|
-
const hasApiConfig = existsSync(join(appPath, "src", "vitnode.api.config.ts"));
|
|
8
|
-
if (hasApiConfig && !hasWebConfig)
|
|
9
|
-
return "api";
|
|
10
|
-
if (hasWebConfig)
|
|
11
|
-
return "web";
|
|
12
|
-
return null;
|
|
13
|
-
};
|
|
14
|
-
const collectSources = (pluginDir, repoRoot, pluginName, pluginPathName) => {
|
|
15
|
-
const sources = [];
|
|
16
|
-
const appsDir = join(repoRoot, "apps");
|
|
17
|
-
const isMonorepo = existsSync(appsDir);
|
|
18
|
-
if (isMonorepo) {
|
|
19
|
-
const appDirs = existsSync(appsDir)
|
|
20
|
-
? readdirSync(appsDir, { withFileTypes: true })
|
|
21
|
-
.filter(dirent => dirent.isDirectory())
|
|
22
|
-
.map(dirent => dirent.name)
|
|
23
|
-
: [];
|
|
24
|
-
for (const appName of appDirs) {
|
|
25
|
-
const appPath = join(repoRoot, "apps", appName);
|
|
26
|
-
const appType = detectAppType(appPath);
|
|
27
|
-
if (appType === "web") {
|
|
28
|
-
sources.push({
|
|
29
|
-
sourceDir: join(pluginDir, "src", "routes", "admin"),
|
|
30
|
-
destinationDir: join(appPath, "src", "app", "[locale]", "admin", "(auth)", join("(plugins)", `(${pluginPathName})`)),
|
|
31
|
-
}, {
|
|
32
|
-
sourceDir: join(pluginDir, "src", "routes", "main"),
|
|
33
|
-
destinationDir: join(appPath, "src", "app", "[locale]", "(main)", join("(plugins)", `(${pluginPathName})`)),
|
|
34
|
-
}, {
|
|
35
|
-
sourceDir: join(pluginDir, "src", "routes", "blank"),
|
|
36
|
-
destinationDir: join(appPath, "src", "app", "[locale]", "(blank)", join("(plugins)", `(${pluginPathName})`)),
|
|
37
|
-
}, {
|
|
38
|
-
sourceDir: join(pluginDir, "src", "locales"),
|
|
39
|
-
destinationDir: join(appPath, "src", "locales", pluginName),
|
|
40
|
-
}, {
|
|
41
|
-
sourceDir: join(pluginDir, "src", "routes", "breadcrumb", "admin"),
|
|
42
|
-
destinationDir: join(appPath, "src", "app", "[locale]", "admin", "(auth)", "@breadcrumb"),
|
|
43
|
-
}, {
|
|
44
|
-
sourceDir: join(pluginDir, "src", "routes", "breadcrumb", "main"),
|
|
45
|
-
destinationDir: join(appPath, "src", "app", "[locale]", "(main)", "@breadcrumb"),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
else if (appType === "api") {
|
|
49
|
-
sources.push({
|
|
50
|
-
sourceDir: join(pluginDir, "src", "locales"),
|
|
51
|
-
destinationDir: join(appPath, "src", "locales", pluginName),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
const cwd = process.cwd();
|
|
58
|
-
const projectType = detectAppType(cwd);
|
|
59
|
-
if (projectType === "web") {
|
|
60
|
-
sources.push({
|
|
61
|
-
sourceDir: join(pluginDir, "src", "routes", "admin"),
|
|
62
|
-
destinationDir: join(cwd, "src", "app", "[locale]", "admin", "(auth)", join("(plugins)", `(${pluginPathName})`)),
|
|
63
|
-
}, {
|
|
64
|
-
sourceDir: join(pluginDir, "src", "routes", "main"),
|
|
65
|
-
destinationDir: join(cwd, "src", "app", "[locale]", "(main)", join("(plugins)", `(${pluginPathName})`)),
|
|
66
|
-
}, {
|
|
67
|
-
sourceDir: join(pluginDir, "src", "routes", "blank"),
|
|
68
|
-
destinationDir: join(cwd, "src", "app", "[locale]", "(blank)", join("(plugins)", `(${pluginPathName})`)),
|
|
69
|
-
}, {
|
|
70
|
-
sourceDir: join(pluginDir, "src", "locales"),
|
|
71
|
-
destinationDir: join(cwd, "src", "locales", pluginName),
|
|
72
|
-
}, {
|
|
73
|
-
sourceDir: join(pluginDir, "src", "routes", "breadcrumb", "admin"),
|
|
74
|
-
destinationDir: join(cwd, "src", "app", "[locale]", "admin", "(auth)", "@breadcrumb"),
|
|
75
|
-
}, {
|
|
76
|
-
sourceDir: join(pluginDir, "src", "routes", "breadcrumb", "main"),
|
|
77
|
-
destinationDir: join(cwd, "src", "app", "[locale]", "(main)", "@breadcrumb"),
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
else if (projectType === "api") {
|
|
81
|
-
sources.push({
|
|
82
|
-
sourceDir: join(pluginDir, "src", "locales"),
|
|
83
|
-
destinationDir: join(cwd, "src", "locales", pluginName),
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return sources;
|
|
88
|
-
};
|
|
89
|
-
const ensureDestinationDirs = (sources) => {
|
|
90
|
-
for (const { sourceDir, destinationDir } of sources) {
|
|
91
|
-
if (existsSync(sourceDir) &&
|
|
92
|
-
!isDirectoryEmpty(sourceDir) &&
|
|
93
|
-
!existsSync(destinationDir)) {
|
|
94
|
-
mkdirSync(destinationDir, { recursive: true });
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const createFileOps = (pluginName, routeMap, localeRoot, repoRoot) => {
|
|
99
|
-
const copyFileWrapper = (srcPath, destPath) => {
|
|
100
|
-
copyFile(srcPath, destPath, pluginName, routeMap, localeRoot, repoRoot);
|
|
101
|
-
};
|
|
102
|
-
const removeFile = (filePath) => {
|
|
103
|
-
try {
|
|
104
|
-
if (existsSync(filePath)) {
|
|
105
|
-
unlinkSync(filePath);
|
|
106
|
-
console.log(`\x1b[33mRemoved:\x1b[0m ${filePath}`);
|
|
107
|
-
if (/^page\.(tsx|ts|jsx|js)$/i.test(basename(filePath))) {
|
|
108
|
-
const key = routeKey(filePath, localeRoot);
|
|
109
|
-
if (routeMap.get(key) === filePath) {
|
|
110
|
-
routeMap.delete(key);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
console.error(`\x1b[31mError removing file:\x1b[0m ${filePath}`, error);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
return { copyFileWrapper, removeFile };
|
|
120
|
-
};
|
|
121
|
-
const cleanupDeletedFiles = (sourceDir, destinationDir, removeFileFn) => {
|
|
122
|
-
if (!existsSync(destinationDir))
|
|
123
|
-
return;
|
|
124
|
-
const isLocaleDir = destinationDir.includes(join("src", "locales"));
|
|
125
|
-
if (isLocaleDir)
|
|
126
|
-
return;
|
|
127
|
-
const destFiles = getAllFiles(destinationDir);
|
|
128
|
-
for (const destFile of destFiles) {
|
|
129
|
-
const relativePath = relative(destinationDir, destFile);
|
|
130
|
-
const sourceFile = join(sourceDir, relativePath);
|
|
131
|
-
if (!existsSync(sourceFile)) {
|
|
132
|
-
removeFileFn(destFile);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
const makeGetDestinationPaths = (sources) => {
|
|
137
|
-
return (srcPath) => {
|
|
138
|
-
const candidates = sources.filter(({ sourceDir }) => {
|
|
139
|
-
const normalizedSrcPath = srcPath.replace(/\\/g, "/");
|
|
140
|
-
const normalizedSourceDir = sourceDir.replace(/\\/g, "/");
|
|
141
|
-
return (normalizedSrcPath === normalizedSourceDir ||
|
|
142
|
-
normalizedSrcPath.startsWith(`${normalizedSourceDir}/`));
|
|
143
|
-
});
|
|
144
|
-
if (candidates.length === 0) {
|
|
145
|
-
throw new Error(`No matching source directory for: ${srcPath}`);
|
|
146
|
-
}
|
|
147
|
-
return candidates.map(sourceConfig => {
|
|
148
|
-
const relativePath = relative(sourceConfig.sourceDir, srcPath);
|
|
149
|
-
return join(sourceConfig.destinationDir, relativePath);
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
const setupWatcher = (sourceDirs, getDestinationPaths, copyFileWrapper, removeFile) => {
|
|
154
|
-
const watcher = chokidar.watch(sourceDirs, {
|
|
155
|
-
ignoreInitial: false,
|
|
156
|
-
persistent: true,
|
|
157
|
-
});
|
|
158
|
-
watcher
|
|
159
|
-
.on("add", filePath => {
|
|
160
|
-
const destPaths = getDestinationPaths(filePath);
|
|
161
|
-
destPaths.forEach(destPath => copyFileWrapper(filePath, destPath));
|
|
162
|
-
})
|
|
163
|
-
.on("change", filePath => {
|
|
164
|
-
const destPaths = getDestinationPaths(filePath);
|
|
165
|
-
destPaths.forEach(destPath => copyFileWrapper(filePath, destPath));
|
|
166
|
-
})
|
|
167
|
-
.on("unlink", filePath => {
|
|
168
|
-
const destPaths = getDestinationPaths(filePath);
|
|
169
|
-
destPaths.forEach(destPath => removeFile(destPath));
|
|
170
|
-
})
|
|
171
|
-
.on("error", error => {
|
|
172
|
-
console.error("\x1b[31mWatcher error:\x1b[0m", error);
|
|
173
|
-
});
|
|
174
|
-
return watcher;
|
|
175
|
-
};
|
|
176
|
-
export const processPlugin = ({ initMessage }) => {
|
|
177
|
-
const pluginDir = process.cwd();
|
|
178
|
-
const repoRoot = findRepoRoot(pluginDir);
|
|
179
|
-
const localeRoot = findLocaleRoot(repoRoot);
|
|
180
|
-
const routeMap = buildInitialRouteMap(localeRoot);
|
|
181
|
-
let pluginName = basename(pluginDir);
|
|
182
|
-
try {
|
|
183
|
-
const packageJsonPath = join(pluginDir, "package.json");
|
|
184
|
-
if (existsSync(packageJsonPath)) {
|
|
185
|
-
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
186
|
-
pluginName = packageJson.name ?? "";
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
catch (error) {
|
|
190
|
-
console.error("\x1b[31mError reading package.json:\x1b[0m", error);
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
const pluginPathName = pluginName.replace(/\//g, "-").replace(/@/g, "");
|
|
194
|
-
const sources = collectSources(pluginDir, repoRoot, pluginName, pluginPathName);
|
|
195
|
-
ensureDestinationDirs(sources);
|
|
196
|
-
const { copyFileWrapper, removeFile } = createFileOps(pluginName, routeMap, localeRoot, repoRoot);
|
|
197
|
-
for (const { sourceDir, destinationDir } of sources) {
|
|
198
|
-
cleanupDeletedFiles(sourceDir, destinationDir, removeFile);
|
|
199
|
-
}
|
|
200
|
-
console.log(`${initMessage} \x1b[34mWatching for changes in plugins...\x1b[0m`);
|
|
201
|
-
const sourceDirs = sources
|
|
202
|
-
.map(s => s.sourceDir)
|
|
203
|
-
.filter(dir => existsSync(dir));
|
|
204
|
-
const getDestinationPaths = makeGetDestinationPaths(sources);
|
|
205
|
-
setupWatcher(sourceDirs, getDestinationPaths, copyFileWrapper, removeFile);
|
|
206
|
-
};
|