@vitnode/core 1.2.0-canary.52 → 1.2.0-canary.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/next.config.ts +3 -3
- package/dist/scripts/get-config.d.ts +2 -2
- package/dist/scripts/get-config.d.ts.map +1 -1
- package/dist/scripts/plugin.d.ts.map +1 -1
- package/dist/scripts/prepare-database.d.ts.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/email/nodemailer.d.ts +1 -1
- package/dist/src/api/adapters/email/nodemailer.js +3 -3
- package/dist/src/api/adapters/email/resend.d.ts +1 -1
- package/dist/src/api/adapters/email/resend.js +2 -2
- package/dist/src/api/adapters/sso/discord.d.ts +1 -1
- package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/discord.js +21 -21
- package/dist/src/api/adapters/sso/facebook.d.ts +1 -1
- package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/facebook.js +23 -23
- package/dist/src/api/adapters/sso/google.d.ts +1 -1
- package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
- package/dist/src/api/adapters/sso/google.js +21 -21
- package/dist/src/api/config.d.ts +3 -3
- package/dist/src/api/config.d.ts.map +1 -1
- package/dist/src/api/config.js +11 -11
- package/dist/src/api/lib/check-plugin-id.js +8 -8
- package/dist/src/api/lib/logger-middleware.d.ts +1 -1
- package/dist/src/api/lib/logger-middleware.js +9 -9
- package/dist/src/api/lib/module.d.ts +2 -2
- package/dist/src/api/lib/plugin.d.ts +2 -2
- package/dist/src/api/lib/plugin.d.ts.map +1 -1
- package/dist/src/api/lib/route.d.ts +2 -2
- package/dist/src/api/lib/route.d.ts.map +1 -1
- package/dist/src/api/lib/route.js +1 -1
- package/dist/src/api/lib/with-pagination.d.ts +7 -7
- package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
- package/dist/src/api/lib/with-pagination.js +37 -24
- package/dist/src/api/middlewares/captcha.middleware.d.ts +1 -1
- package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/captcha.middleware.js +14 -13
- package/dist/src/api/middlewares/global.middleware.d.ts +12 -12
- package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/global.middleware.js +29 -28
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +3 -3
- package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
- package/dist/src/api/middlewares/rate-limiter.middleware.js +4 -4
- package/dist/src/api/models/device.d.ts +1 -1
- package/dist/src/api/models/device.d.ts.map +1 -1
- package/dist/src/api/models/device.js +13 -13
- package/dist/src/api/models/email.d.ts +15 -15
- package/dist/src/api/models/email.d.ts.map +1 -1
- package/dist/src/api/models/email.js +11 -10
- package/dist/src/api/models/password.js +9 -9
- package/dist/src/api/models/session-admin.d.ts +1 -1
- package/dist/src/api/models/session-admin.d.ts.map +1 -1
- package/dist/src/api/models/session-admin.js +19 -19
- package/dist/src/api/models/session.d.ts +1 -1
- package/dist/src/api/models/session.d.ts.map +1 -1
- package/dist/src/api/models/session.js +17 -17
- package/dist/src/api/models/sso.d.ts +1 -1
- package/dist/src/api/models/sso.d.ts.map +1 -1
- package/dist/src/api/models/sso.js +22 -25
- package/dist/src/api/models/user/get-user-by-id.d.ts +1 -1
- package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
- package/dist/src/api/models/user/get-user-by-id.js +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.js +1 -1
- package/dist/src/api/models/user/sign-up.d.ts +1 -1
- package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +11 -12
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/admin/admin.module.d.ts +3 -3
- package/dist/src/api/modules/admin/admin.module.js +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +1 -1
- package/dist/src/api/modules/admin/debug/debug.admin.module.js +1 -1
- package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
- package/dist/src/api/modules/admin/debug/routes/logs.route.js +16 -16
- package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/admin/routes/session.route.js +7 -7
- package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -2
- package/dist/src/api/modules/admin/users/routes/list.route.js +12 -12
- package/dist/src/api/modules/admin/users/routes/users.route.d.ts +2 -2
- package/dist/src/api/modules/admin/users/routes/users.route.js +15 -15
- package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
- package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
- package/dist/src/api/modules/middleware/middleware.module.d.ts +1 -1
- package/dist/src/api/modules/middleware/middleware.module.js +1 -1
- package/dist/src/api/modules/middleware/route.d.ts +2 -2
- package/dist/src/api/modules/middleware/route.js +12 -12
- package/dist/src/api/modules/users/routes/change-password.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/change-password.route.js +13 -13
- package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/reset-passowrd.route.js +17 -17
- package/dist/src/api/modules/users/routes/session.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/session.route.js +6 -6
- package/dist/src/api/modules/users/routes/sign-in.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-in.route.js +10 -10
- package/dist/src/api/modules/users/routes/sign-out.route.d.ts +2 -2
- package/dist/src/api/modules/users/routes/sign-out.route.js +7 -7
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/sign-up.route.js +14 -14
- package/dist/src/api/modules/users/routes/test.route.d.ts +3 -3
- package/dist/src/api/modules/users/routes/test.route.js +9 -9
- package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/callback.route.js +8 -8
- package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -2
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +6 -6
- package/dist/src/api/modules/users/sso/sso.module.d.ts +2 -2
- package/dist/src/api/modules/users/sso/sso.module.js +1 -1
- package/dist/src/api/modules/users/users.module.d.ts +12 -12
- package/dist/src/api/modules/users/users.module.js +1 -1
- package/dist/src/app/login/page.d.ts +1 -1
- package/dist/src/app/login/page.js +2 -2
- package/dist/src/app/login/reset-password/page.d.ts +2 -2
- package/dist/src/app/login/reset-password/page.js +2 -2
- package/dist/src/app/register/page.d.ts +1 -1
- package/dist/src/app/register/page.js +2 -2
- package/dist/src/app_admin/core/debug/page.d.ts +1 -1
- package/dist/src/app_admin/core/debug/page.js +8 -8
- package/dist/src/app_admin/core/users/page.d.ts +2 -2
- package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
- package/dist/src/app_admin/core/users/page.js +7 -7
- package/dist/src/components/avatar.d.ts +1 -1
- package/dist/src/components/avatar.js +1 -1
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
- package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +5 -5
- package/dist/src/components/confirm-action/content.d.ts.map +1 -1
- package/dist/src/components/confirm-action/content.js +3 -4
- package/dist/src/components/date-format.js +8 -8
- package/dist/src/components/form/auto-form.d.ts +16 -16
- package/dist/src/components/form/auto-form.d.ts.map +1 -1
- package/dist/src/components/form/auto-form.js +13 -12
- package/dist/src/components/form/common/desc.js +1 -1
- package/dist/src/components/form/common/label.d.ts +1 -1
- package/dist/src/components/form/common/label.js +1 -1
- package/dist/src/components/form/fields/checkbox.d.ts +2 -2
- package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.d.ts +3 -3
- package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox-async.js +29 -23
- package/dist/src/components/form/fields/combobox.d.ts +3 -3
- package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
- package/dist/src/components/form/fields/combobox.js +6 -7
- package/dist/src/components/form/fields/input.d.ts +2 -2
- package/dist/src/components/form/fields/input.d.ts.map +1 -1
- package/dist/src/components/form/fields/input.js +2 -2
- package/dist/src/components/form/fields/radio-group.d.ts +3 -3
- package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
- package/dist/src/components/form/fields/radio-group.js +0 -1
- package/dist/src/components/form/fields/select.d.ts +3 -3
- package/dist/src/components/form/fields/select.d.ts.map +1 -1
- package/dist/src/components/form/fields/select.js +2 -3
- package/dist/src/components/form/fields/switch.d.ts +2 -2
- package/dist/src/components/form/fields/switch.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.d.ts +3 -3
- package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
- package/dist/src/components/form/fields/textarea.js +1 -2
- package/dist/src/components/i18n-provider.d.ts +2 -2
- package/dist/src/components/i18n-provider.js +3 -3
- package/dist/src/components/logo-vitnode.d.ts.map +1 -1
- package/dist/src/components/logo-vitnode.js +8 -2
- package/dist/src/components/switchers/langs/language-swietcher.d.ts +1 -1
- package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +1 -1
- package/dist/src/components/switchers/langs/language-swietcher.js +3 -3
- package/dist/src/components/switchers/themes/theme-switcher.js +4 -4
- package/dist/src/components/table/content.d.ts +1 -1
- package/dist/src/components/table/content.d.ts.map +1 -1
- package/dist/src/components/table/content.js +5 -5
- package/dist/src/components/table/data-table.d.ts +7 -7
- package/dist/src/components/table/data-table.d.ts.map +1 -1
- package/dist/src/components/table/data-table.js +22 -15
- package/dist/src/components/table/order-table-head.d.ts +4 -4
- package/dist/src/components/table/order-table-head.d.ts.map +1 -1
- package/dist/src/components/table/order-table-head.js +20 -9
- package/dist/src/components/table/pagination.js +19 -19
- package/dist/src/components/ui/accordion.d.ts +2 -2
- package/dist/src/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/components/ui/accordion.js +4 -5
- package/dist/src/components/ui/alert-dialog.d.ts +7 -7
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/components/ui/alert-dialog.js +12 -12
- package/dist/src/components/ui/alert.d.ts +5 -5
- package/dist/src/components/ui/alert.d.ts.map +1 -1
- package/dist/src/components/ui/alert.js +6 -7
- package/dist/src/components/ui/badge.d.ts +3 -3
- package/dist/src/components/ui/badge.d.ts.map +1 -1
- package/dist/src/components/ui/badge.js +7 -8
- package/dist/src/components/ui/button-client.d.ts +1 -1
- package/dist/src/components/ui/button-client.js +9 -9
- package/dist/src/components/ui/button.d.ts +8 -8
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +13 -14
- package/dist/src/components/ui/card.d.ts +8 -8
- package/dist/src/components/ui/card.js +7 -7
- package/dist/src/components/ui/checkbox.d.ts +2 -2
- package/dist/src/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/components/ui/checkbox.js +2 -3
- package/dist/src/components/ui/collapsible.d.ts +1 -1
- package/dist/src/components/ui/collapsible.js +1 -1
- package/dist/src/components/ui/command.d.ts +4 -4
- package/dist/src/components/ui/command.d.ts.map +1 -1
- package/dist/src/components/ui/command.js +9 -10
- package/dist/src/components/ui/context-menu.d.ts +4 -4
- package/dist/src/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/components/ui/context-menu.js +7 -8
- package/dist/src/components/ui/dialog.d.ts +6 -6
- package/dist/src/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/components/ui/dialog.js +16 -16
- package/dist/src/components/ui/drawer.d.ts +4 -4
- package/dist/src/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/components/ui/drawer.js +7 -8
- package/dist/src/components/ui/dropdown-menu.d.ts +4 -4
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/components/ui/dropdown-menu.js +8 -9
- package/dist/src/components/ui/form.d.ts +10 -10
- package/dist/src/components/ui/form.d.ts.map +1 -1
- package/dist/src/components/ui/form.js +15 -15
- package/dist/src/components/ui/header-content.js +1 -1
- package/dist/src/components/ui/hover-card.d.ts +2 -2
- package/dist/src/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/components/ui/hover-card.js +3 -4
- package/dist/src/components/ui/input-otp.d.ts +5 -5
- package/dist/src/components/ui/input-otp.d.ts.map +1 -1
- package/dist/src/components/ui/input-otp.js +6 -7
- package/dist/src/components/ui/input.d.ts +2 -2
- package/dist/src/components/ui/input.d.ts.map +1 -1
- package/dist/src/components/ui/input.js +1 -2
- package/dist/src/components/ui/label.d.ts +2 -2
- package/dist/src/components/ui/label.d.ts.map +1 -1
- package/dist/src/components/ui/label.js +2 -3
- package/dist/src/components/ui/loader.js +3 -3
- package/dist/src/components/ui/menubar.d.ts +4 -4
- package/dist/src/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/components/ui/menubar.js +11 -12
- package/dist/src/components/ui/navigation-menu.d.ts +2 -2
- package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/src/components/ui/navigation-menu.js +10 -11
- package/dist/src/components/ui/popover.d.ts +2 -2
- package/dist/src/components/ui/popover.d.ts.map +1 -1
- package/dist/src/components/ui/popover.js +3 -4
- package/dist/src/components/ui/progress.d.ts +2 -2
- package/dist/src/components/ui/progress.d.ts.map +1 -1
- package/dist/src/components/ui/progress.js +2 -3
- package/dist/src/components/ui/radio-group.d.ts +2 -2
- package/dist/src/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/components/ui/radio-group.js +3 -4
- package/dist/src/components/ui/select.d.ts +3 -3
- package/dist/src/components/ui/select.d.ts.map +1 -1
- package/dist/src/components/ui/select.js +9 -10
- package/dist/src/components/ui/separator.d.ts +2 -2
- package/dist/src/components/ui/separator.d.ts.map +1 -1
- package/dist/src/components/ui/separator.js +3 -4
- package/dist/src/components/ui/sheet.d.ts +5 -5
- package/dist/src/components/ui/sheet.d.ts.map +1 -1
- package/dist/src/components/ui/sheet.js +8 -9
- package/dist/src/components/ui/sidebar.d.ts +31 -31
- package/dist/src/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/sidebar.js +67 -69
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/skeleton.js +1 -1
- package/dist/src/components/ui/slider.d.ts +2 -2
- package/dist/src/components/ui/slider.d.ts.map +1 -1
- package/dist/src/components/ui/slider.js +16 -8
- package/dist/src/components/ui/sonner.d.ts +1 -1
- package/dist/src/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/components/ui/sonner.js +6 -6
- package/dist/src/components/ui/switch.d.ts +2 -2
- package/dist/src/components/ui/switch.d.ts.map +1 -1
- package/dist/src/components/ui/switch.js +3 -4
- package/dist/src/components/ui/table.d.ts +9 -9
- package/dist/src/components/ui/table.d.ts.map +1 -1
- package/dist/src/components/ui/table.js +8 -9
- package/dist/src/components/ui/tabs.d.ts +2 -2
- package/dist/src/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/components/ui/tabs.js +4 -5
- package/dist/src/components/ui/textarea.d.ts +2 -2
- package/dist/src/components/ui/textarea.d.ts.map +1 -1
- package/dist/src/components/ui/textarea.js +1 -2
- package/dist/src/components/ui/toggle-group.d.ts +4 -4
- package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/components/ui/toggle-group.js +6 -6
- package/dist/src/components/ui/toggle.d.ts +3 -3
- package/dist/src/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/components/ui/toggle.js +8 -9
- package/dist/src/components/ui/tooltip.d.ts +2 -2
- package/dist/src/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/tooltip.js +2 -3
- package/dist/src/config.js +2 -2
- package/dist/src/database/admins.js +10 -10
- package/dist/src/database/languages.js +7 -7
- package/dist/src/database/logs.js +9 -9
- package/dist/src/database/moderators.js +5 -5
- package/dist/src/database/roles.js +1 -1
- package/dist/src/database/sessions.js +6 -6
- package/dist/src/database/users.js +13 -13
- package/dist/src/drizzle.config.d.ts +2 -2
- package/dist/src/drizzle.config.d.ts.map +1 -1
- package/dist/src/drizzle.config.js +19 -12
- package/dist/src/emails/default-template.d.ts +3 -3
- package/dist/src/emails/default-template.d.ts.map +1 -1
- package/dist/src/emails/default-template.js +39 -38
- package/dist/src/emails/reset-password.d.ts +1 -1
- package/dist/src/emails/reset-password.d.ts.map +1 -1
- package/dist/src/emails/reset-password.js +51 -51
- package/dist/src/emails/ui/button.d.ts +2 -2
- package/dist/src/emails/ui/button.js +13 -13
- package/dist/src/emails/ui/card.d.ts +1 -1
- package/dist/src/emails/ui/card.js +6 -6
- package/dist/src/hooks/use-before-unload.js +3 -3
- package/dist/src/hooks/use-captcha.d.ts +2 -2
- package/dist/src/hooks/use-captcha.d.ts.map +1 -1
- package/dist/src/hooks/use-captcha.js +29 -37
- package/dist/src/hooks/use-mobile.d.ts.map +1 -1
- package/dist/src/hooks/use-mobile.js +3 -4
- package/dist/src/lib/api/get-middleware-api.js +4 -4
- package/dist/src/lib/api/get-session-admin-api.js +5 -5
- package/dist/src/lib/api/get-session-api.js +4 -4
- package/dist/src/lib/colors.js +28 -19
- package/dist/src/lib/colors.test.js +60 -60
- package/dist/src/lib/config.js +3 -3
- package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.js +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +27 -27
- package/dist/src/lib/fetcher/core.d.ts +5 -5
- package/dist/src/lib/fetcher/core.d.ts.map +1 -1
- package/dist/src/lib/fetcher/core.js +11 -10
- package/dist/src/lib/fetcher/helpers-server.d.ts +1 -1
- package/dist/src/lib/fetcher/helpers-server.js +1 -1
- package/dist/src/lib/fetcher/helpers.test.js +17 -17
- package/dist/src/lib/fetcher/types.d.ts +26 -26
- package/dist/src/lib/fetcher/types.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.d.ts +4 -4
- package/dist/src/lib/fetcher-client.d.ts.map +1 -1
- package/dist/src/lib/fetcher-client.js +3 -3
- package/dist/src/lib/fetcher.d.ts +5 -5
- package/dist/src/lib/fetcher.d.ts.map +1 -1
- package/dist/src/lib/fetcher.js +4 -4
- package/dist/src/lib/helpers/auto-form.d.ts +3 -3
- package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
- package/dist/src/lib/helpers/auto-form.js +16 -15
- package/dist/src/lib/helpers/auto-form.test.js +129 -129
- package/dist/src/lib/navigation.d.ts +2 -2
- package/dist/src/lib/navigation.d.ts.map +1 -1
- package/dist/src/lib/plugin.d.ts +3 -3
- package/dist/src/lib/special-characters.js +1 -1
- package/dist/src/lib/special-characters.test.js +36 -36
- package/dist/src/lib/utils.d.ts +1 -1
- package/dist/src/tests/setup.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts +1 -1
- package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +4 -8
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +11 -12
- package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +11 -11
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -2
- package/dist/src/views/admin/layouts/sidebar/sign-out.js +1 -1
- package/dist/src/views/admin/layouts/user-bar/client.js +5 -5
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
- package/dist/src/views/admin/sign-in/sign-in-admin-view.js +1 -1
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +3 -3
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +10 -10
- package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +2 -2
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.js +15 -15
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +7 -7
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.js +7 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
- package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.js +3 -3
- package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +25 -25
- package/dist/src/views/admin/views/core/test.js +43 -43
- package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
- package/dist/src/views/admin/views/core/users/users-admin-view.js +13 -14
- package/dist/src/views/auth/password-reset/change-password-form/form.js +9 -9
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/change-password-form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/form/form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/password-reset/form/form.js +15 -15
- package/dist/src/views/auth/password-reset/form/mutation-api.js +5 -5
- package/dist/src/views/auth/password-reset/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/password-reset/form/use-form.js +7 -7
- package/dist/src/views/auth/password-reset/password-reset-view.js +4 -4
- package/dist/src/views/auth/sign-in/form/form.js +9 -9
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-in/form/mutation-api.js +10 -10
- package/dist/src/views/auth/sign-in/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-in/form/use-form.js +11 -11
- package/dist/src/views/auth/sign-in/sign-in-view.js +5 -5
- package/dist/src/views/auth/sign-up/components/password-input.d.ts +3 -3
- package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/components/password-input.js +9 -10
- package/dist/src/views/auth/sign-up/email-confirmation-view.js +4 -4
- package/dist/src/views/auth/sign-up/form/form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/form.js +18 -18
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.js +6 -6
- package/dist/src/views/auth/sign-up/form/use-form.d.ts +2 -2
- package/dist/src/views/auth/sign-up/form/use-form.js +21 -21
- package/dist/src/views/auth/sign-up/sign-up-view.js +5 -5
- package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
- package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/wrapper.js +5 -8
- package/dist/src/views/auth/sso/buttons/client.js +4 -4
- package/dist/src/views/auth/sso/buttons/mutation-api.js +5 -5
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +2 -2
- package/dist/src/views/auth/sso/callback/callback-sso-view.js +6 -6
- package/dist/src/views/auth/sso/callback/client/client.d.ts +1 -1
- package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
- package/dist/src/views/auth/sso/callback/client/client.js +9 -9
- package/dist/src/views/auth/sso/callback/client/mutation-api.js +7 -7
- package/dist/src/views/error/back-button.js +1 -1
- package/dist/src/views/error/error-view.js +4 -4
- package/dist/src/views/error/global-error-view.d.ts +3 -3
- package/dist/src/views/error/global-error-view.d.ts.map +1 -1
- package/dist/src/views/error/global-error-view.js +36 -44
- package/dist/src/views/layouts/provider.d.ts +4 -4
- package/dist/src/views/layouts/provider.d.ts.map +1 -1
- package/dist/src/views/layouts/provider.js +3 -3
- package/dist/src/views/layouts/root-layout.d.ts +3 -3
- package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
- package/dist/src/views/layouts/root-layout.js +1 -2
- package/dist/src/views/layouts/theme/header/header.d.ts +2 -2
- package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/header.js +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
- package/dist/src/views/layouts/theme/header/user/auth/client.js +4 -4
- package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +8 -8
- package/dist/src/views/layouts/theme/header/user/user.js +4 -4
- package/dist/src/views/layouts/theme/layout.d.ts +2 -2
- package/dist/src/views/layouts/theme/layout.js +1 -1
- package/dist/src/vitnode.config.d.ts +16 -16
- package/dist/src/vitnode.config.d.ts.map +1 -1
- package/dist/src/vitnode.config.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -5
- package/src/app/login/page.tsx +5 -5
- package/src/app/login/reset-password/page.tsx +5 -5
- package/src/app/login/sso/[providerId]/page.tsx +1 -1
- package/src/app/register/page.tsx +5 -5
- package/src/app_admin/core/debug/page.tsx +14 -14
- package/src/app_admin/core/page.tsx +1 -1
- package/src/app_admin/core/test/page.tsx +1 -1
- package/src/app_admin/core/users/page.tsx +12 -13
|
@@ -11,7 +11,7 @@ import { Link } from "../../../../../../../../lib/navigation.js";
|
|
|
11
11
|
import { BadgeStatus } from "../../badges/badge-status.js";
|
|
12
12
|
import { BadgeTypeLog } from "../../badges/badge-type-log.js";
|
|
13
13
|
export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, createdAt, type, id, method, path, userAgent, statusCode, user })=>{
|
|
14
|
-
const t = useTranslations(
|
|
14
|
+
const t = useTranslations("admin.debug.logs.more");
|
|
15
15
|
return /*#__PURE__*/ _jsxs("div", {
|
|
16
16
|
className: "space-y-6",
|
|
17
17
|
children: [
|
|
@@ -24,7 +24,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
24
24
|
/*#__PURE__*/ _jsx(HashIcon, {
|
|
25
25
|
className: "size-4"
|
|
26
26
|
}),
|
|
27
|
-
t(
|
|
27
|
+
t("log_overview.title")
|
|
28
28
|
]
|
|
29
29
|
})
|
|
30
30
|
}),
|
|
@@ -40,7 +40,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
40
40
|
/*#__PURE__*/ _jsx(Label, {
|
|
41
41
|
className: "text-muted-foreground text-xs font-medium",
|
|
42
42
|
htmlFor: "log-type",
|
|
43
|
-
children: t(
|
|
43
|
+
children: t("log_overview.log_type")
|
|
44
44
|
}),
|
|
45
45
|
/*#__PURE__*/ _jsx(BadgeTypeLog, {
|
|
46
46
|
type: type
|
|
@@ -52,7 +52,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
52
52
|
children: [
|
|
53
53
|
/*#__PURE__*/ _jsx(Label, {
|
|
54
54
|
className: "text-muted-foreground text-xs font-medium",
|
|
55
|
-
children: t(
|
|
55
|
+
children: t("log_overview.status_code")
|
|
56
56
|
}),
|
|
57
57
|
/*#__PURE__*/ _jsx(BadgeStatus, {
|
|
58
58
|
statusCode: statusCode
|
|
@@ -65,7 +65,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
65
65
|
/*#__PURE__*/ _jsx(Label, {
|
|
66
66
|
className: "text-muted-foreground text-xs font-medium",
|
|
67
67
|
htmlFor: "log-id",
|
|
68
|
-
children: t(
|
|
68
|
+
children: t("log_overview.log_id")
|
|
69
69
|
}),
|
|
70
70
|
/*#__PURE__*/ _jsx(Input, {
|
|
71
71
|
id: "log-id",
|
|
@@ -89,7 +89,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
89
89
|
/*#__PURE__*/ _jsx(CalendarIcon, {
|
|
90
90
|
className: "size-3"
|
|
91
91
|
}),
|
|
92
|
-
t(
|
|
92
|
+
t("log_overview.created_at")
|
|
93
93
|
]
|
|
94
94
|
}),
|
|
95
95
|
/*#__PURE__*/ _jsx("div", {
|
|
@@ -111,7 +111,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
111
111
|
/*#__PURE__*/ _jsx(PlugIcon, {
|
|
112
112
|
className: "size-3"
|
|
113
113
|
}),
|
|
114
|
-
t(
|
|
114
|
+
t("log_overview.plugin")
|
|
115
115
|
]
|
|
116
116
|
}),
|
|
117
117
|
/*#__PURE__*/ _jsx(Input, {
|
|
@@ -131,7 +131,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
131
131
|
/*#__PURE__*/ _jsx(UserIcon, {
|
|
132
132
|
className: "size-3"
|
|
133
133
|
}),
|
|
134
|
-
t(
|
|
134
|
+
t("log_overview.user")
|
|
135
135
|
]
|
|
136
136
|
}),
|
|
137
137
|
/*#__PURE__*/ _jsxs(Link, {
|
|
@@ -162,7 +162,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
162
162
|
/*#__PURE__*/ _jsx(GlobeIcon, {
|
|
163
163
|
className: "size-4"
|
|
164
164
|
}),
|
|
165
|
-
t(
|
|
165
|
+
t("request_information.title")
|
|
166
166
|
]
|
|
167
167
|
})
|
|
168
168
|
}),
|
|
@@ -178,7 +178,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
178
178
|
/*#__PURE__*/ _jsx(Label, {
|
|
179
179
|
className: "text-muted-foreground text-xs font-medium",
|
|
180
180
|
htmlFor: "ip-address",
|
|
181
|
-
children: t(
|
|
181
|
+
children: t("request_information.ip_address")
|
|
182
182
|
}),
|
|
183
183
|
/*#__PURE__*/ _jsx(Input, {
|
|
184
184
|
id: "ip-address",
|
|
@@ -193,7 +193,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
193
193
|
/*#__PURE__*/ _jsx(Label, {
|
|
194
194
|
className: "text-muted-foreground text-xs font-medium",
|
|
195
195
|
htmlFor: "request-method",
|
|
196
|
-
children: t(
|
|
196
|
+
children: t("request_information.request_method")
|
|
197
197
|
}),
|
|
198
198
|
/*#__PURE__*/ _jsx("div", {
|
|
199
199
|
className: "flex",
|
|
@@ -214,7 +214,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
214
214
|
/*#__PURE__*/ _jsx(Label, {
|
|
215
215
|
className: "text-muted-foreground text-xs font-medium",
|
|
216
216
|
htmlFor: "request-url",
|
|
217
|
-
children: t(
|
|
217
|
+
children: t("request_information.request_url")
|
|
218
218
|
}),
|
|
219
219
|
/*#__PURE__*/ _jsx(Input, {
|
|
220
220
|
id: "request-url",
|
|
@@ -229,7 +229,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
229
229
|
/*#__PURE__*/ _jsx(Label, {
|
|
230
230
|
className: "text-muted-foreground text-xs font-medium",
|
|
231
231
|
htmlFor: "user-agent",
|
|
232
|
-
children: t(
|
|
232
|
+
children: t("request_information.user_agent")
|
|
233
233
|
}),
|
|
234
234
|
/*#__PURE__*/ _jsx(Textarea, {
|
|
235
235
|
className: "resize-none font-mono text-sm",
|
|
@@ -252,7 +252,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
252
252
|
/*#__PURE__*/ _jsx(ServerIcon, {
|
|
253
253
|
className: "size-4"
|
|
254
254
|
}),
|
|
255
|
-
t(
|
|
255
|
+
t("log_content.title")
|
|
256
256
|
]
|
|
257
257
|
})
|
|
258
258
|
}),
|
|
@@ -263,7 +263,7 @@ export const ContentMoreActionSystemLogs = ({ content, ipAddress, pluginId, crea
|
|
|
263
263
|
/*#__PURE__*/ _jsx(Label, {
|
|
264
264
|
className: "text-muted-foreground text-xs font-medium",
|
|
265
265
|
htmlFor: "log-content",
|
|
266
|
-
children: t(
|
|
266
|
+
children: t("log_content.full_log")
|
|
267
267
|
}),
|
|
268
268
|
/*#__PURE__*/ _jsx(Textarea, {
|
|
269
269
|
className: "min-h-[120px] font-mono text-sm",
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { useTranslations } from "next-intl";
|
|
5
4
|
import dynamic from "next/dynamic";
|
|
5
|
+
import { useTranslations } from "next-intl";
|
|
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";
|
|
@@ -12,7 +12,7 @@ const ContentMoreActionSystemLogs = dynamic(async ()=>import("./content.js").the
|
|
|
12
12
|
default: module.ContentMoreActionSystemLogs
|
|
13
13
|
})));
|
|
14
14
|
export const MoreActionSystemLogs = (props)=>{
|
|
15
|
-
const t = useTranslations(
|
|
15
|
+
const t = useTranslations("admin.debug.logs.more");
|
|
16
16
|
return /*#__PURE__*/ _jsxs(Dialog, {
|
|
17
17
|
children: [
|
|
18
18
|
/*#__PURE__*/ _jsx(TooltipProvider, {
|
|
@@ -23,7 +23,7 @@ export const MoreActionSystemLogs = (props)=>{
|
|
|
23
23
|
children: /*#__PURE__*/ _jsx(DialogTrigger, {
|
|
24
24
|
asChild: true,
|
|
25
25
|
children: /*#__PURE__*/ _jsx(Button, {
|
|
26
|
-
"aria-label": t(
|
|
26
|
+
"aria-label": t("title"),
|
|
27
27
|
size: "icon",
|
|
28
28
|
variant: "ghost",
|
|
29
29
|
children: /*#__PURE__*/ _jsx(SearchIcon, {})
|
|
@@ -31,7 +31,7 @@ export const MoreActionSystemLogs = (props)=>{
|
|
|
31
31
|
})
|
|
32
32
|
}),
|
|
33
33
|
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
34
|
-
children: t(
|
|
34
|
+
children: t("title")
|
|
35
35
|
})
|
|
36
36
|
]
|
|
37
37
|
})
|
|
@@ -47,11 +47,11 @@ export const MoreActionSystemLogs = (props)=>{
|
|
|
47
47
|
/*#__PURE__*/ _jsx(SearchIcon, {
|
|
48
48
|
className: "size-5"
|
|
49
49
|
}),
|
|
50
|
-
t(
|
|
50
|
+
t("title")
|
|
51
51
|
]
|
|
52
52
|
}),
|
|
53
53
|
/*#__PURE__*/ _jsx(DialogDescription, {
|
|
54
|
-
children: t.rich(
|
|
54
|
+
children: t.rich("desc", {
|
|
55
55
|
logId: ()=>/*#__PURE__*/ _jsxs("span", {
|
|
56
56
|
className: "font-semibold",
|
|
57
57
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-status.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/debug/system-logs/badges/badge-status.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,gBAAgB;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"badge-status.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/views/admin/views/core/debug/system-logs/badges/badge-status.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,gBAAgB;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,4CAUjE,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Badge } from "../../../../../../../components/ui/badge.js";
|
|
3
3
|
export const BadgeStatus = ({ statusCode })=>{
|
|
4
|
+
let variant = "secondary";
|
|
5
|
+
if (statusCode >= 200 && statusCode < 300) {
|
|
6
|
+
variant = "default";
|
|
7
|
+
} else if (statusCode >= 400) {
|
|
8
|
+
variant = "destructive";
|
|
9
|
+
}
|
|
4
10
|
return /*#__PURE__*/ _jsx(Badge, {
|
|
5
|
-
variant:
|
|
11
|
+
variant: variant,
|
|
6
12
|
children: statusCode
|
|
7
13
|
});
|
|
8
14
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ContentMoreActionSystemLogs } from
|
|
1
|
+
import type { ContentMoreActionSystemLogs } from "../actions/more/content";
|
|
2
2
|
export declare const BadgeTypeLog: ({ type, }: Pick<React.ComponentProps<typeof ContentMoreActionSystemLogs>, "type">) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=badge-type-log.d.ts.map
|
|
@@ -3,8 +3,8 @@ import { TriangleAlertIcon, XIcon } from "lucide-react";
|
|
|
3
3
|
import { useTranslations } from "next-intl";
|
|
4
4
|
import { Badge } from "../../../../../../../components/ui/badge.js";
|
|
5
5
|
export const BadgeTypeLog = ({ type })=>{
|
|
6
|
-
const t = useTranslations(
|
|
7
|
-
if (type ===
|
|
6
|
+
const t = useTranslations("admin.debug.logs.types");
|
|
7
|
+
if (type === "warn") {
|
|
8
8
|
return /*#__PURE__*/ _jsxs(Badge, {
|
|
9
9
|
className: "bg-warn/10 border-warn/50 text-warn",
|
|
10
10
|
children: [
|
|
@@ -14,7 +14,7 @@ export const BadgeTypeLog = ({ type })=>{
|
|
|
14
14
|
]
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
if (type ===
|
|
17
|
+
if (type === "error") {
|
|
18
18
|
return /*#__PURE__*/ _jsxs(Badge, {
|
|
19
19
|
className: "bg-destructive/10 border-destructive/50 text-destructive",
|
|
20
20
|
children: [
|
|
@@ -9,10 +9,10 @@ import { BadgeStatus } from "./badges/badge-status.js";
|
|
|
9
9
|
import { BadgeTypeLog } from "./badges/badge-type-log.js";
|
|
10
10
|
export const getSystemLogsData = async (query)=>{
|
|
11
11
|
const res = await fetcher(debugAdminModule, {
|
|
12
|
-
prefixPath:
|
|
13
|
-
path:
|
|
14
|
-
method:
|
|
15
|
-
module:
|
|
12
|
+
prefixPath: "/admin",
|
|
13
|
+
path: "/logs",
|
|
14
|
+
method: "get",
|
|
15
|
+
module: "debug",
|
|
16
16
|
args: {
|
|
17
17
|
query
|
|
18
18
|
},
|
|
@@ -22,56 +22,56 @@ export const getSystemLogsData = async (query)=>{
|
|
|
22
22
|
};
|
|
23
23
|
export const SystemLogsView = async ({ searchParams })=>{
|
|
24
24
|
const [t, query] = await Promise.all([
|
|
25
|
-
getTranslations(
|
|
25
|
+
getTranslations("admin.debug.logs"),
|
|
26
26
|
searchParams
|
|
27
27
|
]);
|
|
28
28
|
const data = await getSystemLogsData(query);
|
|
29
29
|
return /*#__PURE__*/ _jsx(DataTable, {
|
|
30
30
|
columns: [
|
|
31
31
|
{
|
|
32
|
-
id:
|
|
33
|
-
label: t(
|
|
34
|
-
className:
|
|
32
|
+
id: "pluginId",
|
|
33
|
+
label: t("plugin"),
|
|
34
|
+
className: "w-48"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
id:
|
|
38
|
-
label: t(
|
|
37
|
+
id: "type",
|
|
38
|
+
label: t("type"),
|
|
39
39
|
cell: ({ row })=>/*#__PURE__*/ _jsx(BadgeTypeLog, {
|
|
40
40
|
type: row.type
|
|
41
41
|
})
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
id:
|
|
45
|
-
label: t(
|
|
46
|
-
className:
|
|
44
|
+
id: "statusCode",
|
|
45
|
+
label: t("status_code"),
|
|
46
|
+
className: "w-26",
|
|
47
47
|
cell: ({ row })=>/*#__PURE__*/ _jsx(BadgeStatus, {
|
|
48
48
|
statusCode: row.statusCode
|
|
49
49
|
})
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
id:
|
|
53
|
-
label: t(
|
|
52
|
+
id: "createdAt",
|
|
53
|
+
label: t("created_at"),
|
|
54
54
|
cell: ({ row })=>/*#__PURE__*/ _jsx(DateFormat, {
|
|
55
55
|
date: row.createdAt,
|
|
56
56
|
showFullDate: true
|
|
57
57
|
})
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
61
|
-
label: t(
|
|
60
|
+
id: "content",
|
|
61
|
+
label: t("content"),
|
|
62
62
|
cell: ({ row })=>{
|
|
63
63
|
const CHARACTERS = 50;
|
|
64
64
|
const content = row.content;
|
|
65
65
|
const isLong = content.length > CHARACTERS;
|
|
66
|
-
const displayContent = isLong ? content.slice(0, CHARACTERS)
|
|
66
|
+
const displayContent = isLong ? `${content.slice(0, CHARACTERS)}...` : content;
|
|
67
67
|
return /*#__PURE__*/ _jsx("span", {
|
|
68
68
|
children: displayContent
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
id:
|
|
74
|
-
label:
|
|
73
|
+
id: "actions",
|
|
74
|
+
label: "",
|
|
75
75
|
cell: ({ row })=>/*#__PURE__*/ _jsx(MoreActionSystemLogs, {
|
|
76
76
|
...row
|
|
77
77
|
})
|
|
@@ -82,13 +82,13 @@ export const SystemLogsView = async ({ searchParams })=>{
|
|
|
82
82
|
})),
|
|
83
83
|
order: {
|
|
84
84
|
columns: [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
"createdAt",
|
|
86
|
+
"pluginId",
|
|
87
|
+
"type"
|
|
88
88
|
],
|
|
89
89
|
defaultOrder: {
|
|
90
|
-
column:
|
|
91
|
-
order:
|
|
90
|
+
column: "createdAt",
|
|
91
|
+
order: "desc"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
pageInfo: data.pageInfo
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { AutoForm } from "../../../../components/form/auto-form.js";
|
|
@@ -13,28 +13,28 @@ import { Card } from "../../../../components/ui/card.js";
|
|
|
13
13
|
export const TestView = ()=>{
|
|
14
14
|
const formSchema = z.object({
|
|
15
15
|
provider: z.string().min(1, {
|
|
16
|
-
message:
|
|
17
|
-
}).describe(
|
|
16
|
+
message: "Provider is required"
|
|
17
|
+
}).describe("This is the provider for your application. It should be a valid provider name."),
|
|
18
18
|
client_secret: z.string().min(1, {
|
|
19
|
-
message:
|
|
20
|
-
}).describe(
|
|
19
|
+
message: "Client Secret is required"
|
|
20
|
+
}).describe("This is the client secret for your application. It should be kept secret and not shared with anyone."),
|
|
21
21
|
terms: z.boolean().refine((val)=>val, {
|
|
22
|
-
message:
|
|
23
|
-
}).describe(
|
|
22
|
+
message: "You must accept the terms and conditions"
|
|
23
|
+
}).describe("By checking this box, you agree to the terms and conditions."),
|
|
24
24
|
options: z.enum([
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
]).default(
|
|
25
|
+
"option1",
|
|
26
|
+
"option2",
|
|
27
|
+
"option3"
|
|
28
|
+
]).default("option1"),
|
|
29
29
|
options_long: z.enum([
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]).default(
|
|
34
|
-
switch: z.boolean().default(false).describe(
|
|
30
|
+
"option1",
|
|
31
|
+
"option2",
|
|
32
|
+
"option3"
|
|
33
|
+
]).default("option2"),
|
|
34
|
+
switch: z.boolean().default(false).describe("elo"),
|
|
35
35
|
type: z.enum([
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
"option-one",
|
|
37
|
+
"option-two"
|
|
38
38
|
])
|
|
39
39
|
});
|
|
40
40
|
return /*#__PURE__*/ _jsx("div", {
|
|
@@ -44,7 +44,7 @@ export const TestView = ()=>{
|
|
|
44
44
|
children: /*#__PURE__*/ _jsx(AutoForm, {
|
|
45
45
|
fields: [
|
|
46
46
|
{
|
|
47
|
-
id:
|
|
47
|
+
id: "provider",
|
|
48
48
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormInput, {
|
|
49
49
|
description: "This is the provider for your application. It should be a valid provider name.",
|
|
50
50
|
label: "Provider",
|
|
@@ -52,7 +52,7 @@ export const TestView = ()=>{
|
|
|
52
52
|
})
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
id:
|
|
55
|
+
id: "client_secret",
|
|
56
56
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormTextarea, {
|
|
57
57
|
description: "This is the client secret for your application. It should be kept secret and not shared with anyone.",
|
|
58
58
|
label: "Client Secret",
|
|
@@ -60,7 +60,7 @@ export const TestView = ()=>{
|
|
|
60
60
|
})
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
id:
|
|
63
|
+
id: "terms",
|
|
64
64
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormCheckbox, {
|
|
65
65
|
description: "By checking this box, you agree to the terms and conditions.",
|
|
66
66
|
label: "I agree to the terms and conditions",
|
|
@@ -68,44 +68,44 @@ export const TestView = ()=>{
|
|
|
68
68
|
})
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
id:
|
|
71
|
+
id: "options",
|
|
72
72
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormRadioGroup, {
|
|
73
73
|
description: "By checking this box, you agree to the terms and conditions.",
|
|
74
74
|
label: "I agree to the terms and conditions",
|
|
75
75
|
labels: [
|
|
76
76
|
{
|
|
77
|
-
value:
|
|
78
|
-
label:
|
|
77
|
+
value: "option1",
|
|
78
|
+
label: "Option 1 with a very long label that should be truncated"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
value:
|
|
82
|
-
label:
|
|
81
|
+
value: "option2",
|
|
82
|
+
label: "Option 2"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
value:
|
|
86
|
-
label:
|
|
85
|
+
value: "option3",
|
|
86
|
+
label: "Option 3"
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
...props
|
|
90
90
|
})
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
id:
|
|
93
|
+
id: "options_long",
|
|
94
94
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormSelect, {
|
|
95
95
|
description: "By checking this box, you agree to the terms and conditions.",
|
|
96
96
|
label: "I agree to the terms and conditions",
|
|
97
97
|
labels: [
|
|
98
98
|
{
|
|
99
|
-
value:
|
|
100
|
-
label:
|
|
99
|
+
value: "option1",
|
|
100
|
+
label: "Option 1 with a very long label that should be truncated"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
value:
|
|
104
|
-
label:
|
|
103
|
+
value: "option2",
|
|
104
|
+
label: "Option 2"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
value:
|
|
108
|
-
label:
|
|
107
|
+
value: "option3",
|
|
108
|
+
label: "Option 3"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
111
|
placeholder: "Select an option from the list",
|
|
@@ -113,7 +113,7 @@ export const TestView = ()=>{
|
|
|
113
113
|
})
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
id:
|
|
116
|
+
id: "switch",
|
|
117
117
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormSwitch, {
|
|
118
118
|
...props,
|
|
119
119
|
description: "By checking this box, you agree to the terms and conditions.",
|
|
@@ -121,18 +121,18 @@ export const TestView = ()=>{
|
|
|
121
121
|
})
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
id:
|
|
124
|
+
id: "type",
|
|
125
125
|
component: (props)=>/*#__PURE__*/ _jsx(AutoFormCombobox, {
|
|
126
126
|
description: "By checking this box, you agree to the terms and conditions.",
|
|
127
127
|
label: "Type",
|
|
128
128
|
labels: [
|
|
129
129
|
{
|
|
130
|
-
value:
|
|
131
|
-
label:
|
|
130
|
+
value: "option-one",
|
|
131
|
+
label: "Option One"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
value:
|
|
135
|
-
label:
|
|
134
|
+
value: "option-two",
|
|
135
|
+
label: "Option Two"
|
|
136
136
|
}
|
|
137
137
|
],
|
|
138
138
|
...props
|
|
@@ -141,8 +141,8 @@ export const TestView = ()=>{
|
|
|
141
141
|
],
|
|
142
142
|
formSchema: formSchema,
|
|
143
143
|
onSubmit: async (values)=>{
|
|
144
|
-
//
|
|
145
|
-
console.log(
|
|
144
|
+
// biome-ignore lint/suspicious/noConsole: <needed>
|
|
145
|
+
console.log("Form submitted", values);
|
|
146
146
|
await new Promise((resolve)=>setTimeout(resolve, 3000));
|
|
147
147
|
}
|
|
148
148
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-admin-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/views/core/users/users-admin-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users-admin-view.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/admin/views/core/users/users-admin-view.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,GAAU,mBAElC;IACD,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;CACtE,qDA4DA,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MailIcon } from "lucide-react";
|
|
3
3
|
import { getTranslations } from "next-intl/server";
|
|
4
|
-
import React from "react";
|
|
5
4
|
import { adminModule } from "../../../../../api/modules/admin/admin.module.js";
|
|
6
5
|
import { Avatar } from "../../../../../components/avatar.js";
|
|
7
6
|
import { DateFormat } from "../../../../../components/date-format.js";
|
|
@@ -9,12 +8,12 @@ import { DataTable } from "../../../../../components/table/data-table.js";
|
|
|
9
8
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../../../../../components/ui/tooltip.js";
|
|
10
9
|
import { fetcher } from "../../../../../lib/fetcher.js";
|
|
11
10
|
export const UsersAdminView = async ({ searchParams })=>{
|
|
12
|
-
const t = await getTranslations(
|
|
11
|
+
const t = await getTranslations("admin.user.list");
|
|
13
12
|
const query = await searchParams;
|
|
14
13
|
const res = await fetcher(adminModule, {
|
|
15
|
-
path:
|
|
16
|
-
method:
|
|
17
|
-
module:
|
|
14
|
+
path: "/list",
|
|
15
|
+
method: "get",
|
|
16
|
+
module: "admin/users",
|
|
18
17
|
args: {
|
|
19
18
|
query
|
|
20
19
|
},
|
|
@@ -24,8 +23,8 @@ export const UsersAdminView = async ({ searchParams })=>{
|
|
|
24
23
|
return /*#__PURE__*/ _jsx(DataTable, {
|
|
25
24
|
columns: [
|
|
26
25
|
{
|
|
27
|
-
id:
|
|
28
|
-
label: t(
|
|
26
|
+
id: "name",
|
|
27
|
+
label: t("user"),
|
|
29
28
|
cell: ({ row })=>/*#__PURE__*/ _jsxs("div", {
|
|
30
29
|
className: "flex items-center gap-3",
|
|
31
30
|
children: [
|
|
@@ -51,7 +50,7 @@ export const UsersAdminView = async ({ searchParams })=>{
|
|
|
51
50
|
})
|
|
52
51
|
}),
|
|
53
52
|
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
54
|
-
children: t(
|
|
53
|
+
children: t("emailNotVerified")
|
|
55
54
|
})
|
|
56
55
|
]
|
|
57
56
|
})
|
|
@@ -67,8 +66,8 @@ export const UsersAdminView = async ({ searchParams })=>{
|
|
|
67
66
|
})
|
|
68
67
|
},
|
|
69
68
|
{
|
|
70
|
-
id:
|
|
71
|
-
label: t(
|
|
69
|
+
id: "createdAt",
|
|
70
|
+
label: t("createdAt"),
|
|
72
71
|
cell: ({ row })=>/*#__PURE__*/ _jsx(DateFormat, {
|
|
73
72
|
date: row.createdAt
|
|
74
73
|
})
|
|
@@ -77,12 +76,12 @@ export const UsersAdminView = async ({ searchParams })=>{
|
|
|
77
76
|
edges: data.edges,
|
|
78
77
|
order: {
|
|
79
78
|
columns: [
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
"createdAt",
|
|
80
|
+
"name"
|
|
82
81
|
],
|
|
83
82
|
defaultOrder: {
|
|
84
|
-
column:
|
|
85
|
-
order:
|
|
83
|
+
column: "createdAt",
|
|
84
|
+
order: "desc"
|
|
86
85
|
}
|
|
87
86
|
},
|
|
88
87
|
pageInfo: data.pageInfo
|