@tulip-systems/core 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/client.mjs +7 -7
- package/dist/components/common/icons.d.mts +52 -52
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/common/status.d.mts.map +1 -1
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +7 -7
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.mjs +1 -1
- package/dist/components/editor/lib/constants.d.mts +27 -27
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.mjs +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/breadcrumbs.client.mjs +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/header.client.d.mts.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.mjs +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-error-pages.d.mts +23 -0
- package/dist/components/layouts/admin-error-pages.d.mts.map +1 -0
- package/dist/components/layouts/admin-error-pages.mjs +60 -0
- package/dist/components/layouts/admin-error-pages.mjs.map +1 -0
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.d.mts +35 -10
- package/dist/components/layouts/error-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.mjs +36 -40
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/error-sections.d.mts +29 -0
- package/dist/components/layouts/error-sections.d.mts.map +1 -0
- package/dist/components/layouts/error-sections.mjs +47 -0
- package/dist/components/layouts/error-sections.mjs.map +1 -0
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/list-layout.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/root-error-pages.d.mts +10 -0
- package/dist/components/layouts/root-error-pages.d.mts.map +1 -0
- package/dist/components/layouts/root-error-pages.mjs +17 -0
- package/dist/components/layouts/root-error-pages.mjs.map +1 -0
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/root-loading.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.mjs +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-list.d.mts.map +1 -1
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/lists/data-stack.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs +2 -2
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
- package/dist/components/navigation/admin-sidebar-paths.client.mjs +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/accordion.d.mts.map +1 -1
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert-dialog.d.mts.map +1 -1
- package/dist/components/ui/alert.d.mts +6 -6
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/badge.d.mts +4 -4
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/breadcrumb.d.mts.map +1 -1
- package/dist/components/ui/button.d.mts +5 -5
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.mjs +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.mjs +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.mjs +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sidebar.client.d.mts +26 -26
- package/dist/components/ui/sidebar.client.mjs +2 -2
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/time-input.client.d.mts +2 -2
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle.d.mts +4 -4
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components.d.mts +5 -4
- package/dist/components.mjs +18 -17
- package/dist/lib/hooks/use-action.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib.mjs +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.mjs +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.mjs +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/handler/client.client.d.mts +147 -147
- package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +131 -131
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.mjs +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.mjs +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +3 -3
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.mjs +2 -2
- package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.mjs +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.mjs +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/lib/variants.d.mts +2 -2
- package/dist/modules/router/lib/query-client.server.d.mts +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.mjs +3 -3
- package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
- package/dist/modules/storage/lib/router.server.d.mts +2311 -2311
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +15 -15
- package/dist/modules/storage/lib/service.server.mjs +1 -1
- package/dist/modules/storage/lib/validators.d.mts +80 -80
- package/package.json +1 -1
- package/src/components/entry.ts +3 -2
- package/src/components/layouts/admin-error-pages.tsx +109 -0
- package/src/components/layouts/empty-page.tsx +0 -17
- package/src/components/layouts/error-page.tsx +58 -44
- package/src/components/layouts/error-sections.tsx +52 -0
- package/src/components/layouts/root-error-pages.tsx +12 -0
- package/src/modules/data-tables/lib/converters/search.ts +2 -2
- package/dist/components/layouts/not-allowed-page.d.mts +0 -22
- package/dist/components/layouts/not-allowed-page.d.mts.map +0 -1
- package/dist/components/layouts/not-allowed-page.mjs +0 -25
- package/dist/components/layouts/not-allowed-page.mjs.map +0 -1
- package/dist/components/layouts/not-found-page.d.mts +0 -8
- package/dist/components/layouts/not-found-page.d.mts.map +0 -1
- package/dist/components/layouts/not-found-page.mjs +0 -20
- package/dist/components/layouts/not-found-page.mjs.map +0 -1
- package/dist/components/layouts/not-found-section.mjs +0 -30
- package/dist/components/layouts/not-found-section.mjs.map +0 -1
- package/src/components/layouts/not-allowed-page.tsx +0 -44
- package/src/components/layouts/not-found-page.tsx +0 -17
- package/src/components/layouts/not-found-section.tsx +0 -26
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/layouts/admin-error-pages.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Admin Not Found Page
|
|
6
|
+
*/
|
|
7
|
+
declare function AdminNotFoundPage(): react_jsx_runtime49.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Admin Not Allowed Page
|
|
10
|
+
*/
|
|
11
|
+
declare function AdminNotAllowedPage(): react_jsx_runtime49.JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* ErrorPage
|
|
14
|
+
* - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
15
|
+
* - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
|
|
16
|
+
* - Else show the ErrorPage
|
|
17
|
+
*/
|
|
18
|
+
declare function AdminErrorPage(props: {
|
|
19
|
+
error: Error;
|
|
20
|
+
}): react_jsx_runtime49.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
|
|
23
|
+
//# sourceMappingURL=admin-error-pages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-error-pages.d.mts","names":[],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":[],"mappings":";;;;;;AAcgB,iBAAA,iBAAA,CAAA,CAAiB,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA;AAmBjC;AAsBA;;iBAtBgB,mBAAA,CAAA,GAAmB,mBAAA,CAAA,GAAA,CAAA;;;;;;;iBAsBnB,cAAA;SAA+B;IAAO,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ServerError } from "../../modules/router/lib/error.server.mjs";
|
|
2
|
+
import { Header } from "../header/header.client.mjs";
|
|
3
|
+
import { Topbar, TopbarTitle } from "../header/top-bar.client.mjs";
|
|
4
|
+
import { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection } from "./error-sections.mjs";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/layouts/admin-error-pages.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Admin Not Found Page
|
|
10
|
+
*/
|
|
11
|
+
function AdminNotFoundPage() {
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "404" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: "p-content",
|
|
14
|
+
children: /* @__PURE__ */ jsx(NotFoundSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
15
|
+
})] });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Admin Not Allowed Page
|
|
19
|
+
*/
|
|
20
|
+
function AdminNotAllowedPage() {
|
|
21
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Unauthorized" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: "p-content",
|
|
23
|
+
children: /* @__PURE__ */ jsx(NotAllowedSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
24
|
+
})] });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* ErrorPage
|
|
28
|
+
* - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
29
|
+
* - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
|
|
30
|
+
* - Else show the ErrorPage
|
|
31
|
+
*/
|
|
32
|
+
function AdminErrorPage(props) {
|
|
33
|
+
const serverErrorCode = props.error instanceof ServerError ? props.error.code : void 0;
|
|
34
|
+
/**
|
|
35
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
36
|
+
*/
|
|
37
|
+
if (serverErrorCode === "UNAUTHORIZED") return /* @__PURE__ */ jsx(AdminNotAllowedPage, {});
|
|
38
|
+
/**
|
|
39
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
40
|
+
*/
|
|
41
|
+
if (serverErrorCode === "NOT_FOUND") return /* @__PURE__ */ jsx(AdminNotFoundPage, {});
|
|
42
|
+
/**
|
|
43
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
44
|
+
*/
|
|
45
|
+
if (serverErrorCode === "INTERNAL_SERVER_ERROR") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Server Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: "p-content",
|
|
47
|
+
children: /* @__PURE__ */ jsx(ServerErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
48
|
+
})] });
|
|
49
|
+
/**
|
|
50
|
+
* Else show the ErrorPage
|
|
51
|
+
*/
|
|
52
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: "p-content",
|
|
54
|
+
children: /* @__PURE__ */ jsx(DefaultErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
55
|
+
})] });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
|
|
60
|
+
//# sourceMappingURL=admin-error-pages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-error-pages.mjs","names":["serverErrorCode: CommonORPCErrorCode"],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":["import { ServerError } from \"@/modules/router/lib/error.server\";\nimport { CommonORPCErrorCode } from \"@orpc/client\";\nimport { Header } from \"../header/header.client\";\nimport { Topbar, TopbarTitle } from \"../header/top-bar.client\";\nimport {\n DefaultErrorSection,\n NotAllowedSection,\n NotFoundSection,\n ServerErrorSection,\n} from \"./error-sections\";\n\n/**\n * Admin Not Found Page\n */\nexport function AdminNotFoundPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"404\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotFoundSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * Admin Not Allowed Page\n */\nexport function AdminNotAllowedPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Unauthorized\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotAllowedSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * ErrorPage\n * - If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n * - If the error is a ServerError and the code is \"NOT_FOUND\", show the NotFoundSection\n * - Else show the ErrorPage\n */\nexport function AdminErrorPage(props: { error: Error }) {\n const serverErrorCode: CommonORPCErrorCode =\n props.error instanceof ServerError ? props.error.code : undefined;\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"UNAUTHORIZED\") {\n return <AdminNotAllowedPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"NOT_FOUND\") {\n return <AdminNotFoundPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"INTERNAL_SERVER_ERROR\") {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Server Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <ServerErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n }\n\n /**\n * Else show the ErrorPage\n */\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <DefaultErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AAcA,SAAgB,oBAAoB;AAClC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,OAAO,CAAC,GAAI,GACzC,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,WAAU,oFAAoF;GAC3G,IACL;;;;;AAOP,SAAgB,sBAAsB;AACpC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,qBAAkB,WAAU,oFAAoF;GAC7G,IACL;;;;;;;;AAUP,SAAgB,eAAe,OAAyB;CACtD,MAAMA,kBACJ,MAAM,iBAAiB,cAAc,MAAM,MAAM,OAAO;;;;AAK1D,KAAI,oBAAoB,eACtB,QAAO,oBAAC,wBAAsB;;;;AAMhC,KAAI,oBAAoB,YACtB,QAAO,oBAAC,sBAAoB;;;;AAM9B,KAAI,oBAAoB,wBACtB,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,sBAAmB,WAAU,oFAAoF;GAC9G,IACL;;;;AAOP,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,SAAS,CAAC,GAAI,GAC3C,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,uBAAoB,WAAU,oFAAoF;GAC/G,IACL"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/admin-layout.d.ts
|
|
5
|
-
declare function AdminLayout(props: PropsWithChildren):
|
|
5
|
+
declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime29.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AdminLayout };
|
|
8
8
|
//# sourceMappingURL=admin-layout.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,
|
|
1
|
+
{"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/admin-loading.d.ts
|
|
5
|
-
declare function AdminLoadingLayout(props: PropsWithChildren):
|
|
5
|
+
declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime52.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AdminLoadingLayout };
|
|
8
8
|
//# sourceMappingURL=admin-loading.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-loading.d.mts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,kBAAA,QAA0B,oBAAiB,
|
|
1
|
+
{"version":3,"file":"admin-loading.d.mts","names":[],"sources":["../../../src/components/layouts/admin-loading.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,kBAAA,QAA0B,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, HTMLAttributes } from "react";
|
|
3
3
|
import { Route } from "next";
|
|
4
4
|
|
|
@@ -15,17 +15,17 @@ declare function EmptyPage({
|
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: ComponentProps<"div">):
|
|
18
|
+
}: ComponentProps<"div">): react_jsx_runtime53.JSX.Element;
|
|
19
19
|
declare function EmptyPageTitle({
|
|
20
20
|
className,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: ComponentProps<"h2">):
|
|
23
|
+
}: ComponentProps<"h2">): react_jsx_runtime53.JSX.Element;
|
|
24
24
|
declare function EmptyPageDescription({
|
|
25
25
|
className,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: ComponentProps<"p">):
|
|
28
|
+
}: ComponentProps<"p">): react_jsx_runtime53.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle };
|
|
31
31
|
//# sourceMappingURL=empty-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-page.d.mts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAgC,IAAA,EAIlC,KAJkC;IAAf,KAAA,EAAA,MAAA;EAInB,CAAA;CAAK;AAKC,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAoC,cAApC,CAAA,KAAA,CAAA,CAAA,EAAyD,
|
|
1
|
+
{"version":3,"file":"empty-page.d.mts","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,cAAA,GAAiB,eAAe;;;EAAhC,YAAA,CAAA,EAAA;IAAgC,IAAA,EAIlC,KAJkC;IAAf,KAAA,EAAA,MAAA;EAInB,CAAA;CAAK;AAKC,iBAAA,SAAA,CAAS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAAoC,cAApC,CAAA,KAAA,CAAA,CAAA,EAAyD,mBAAA,CAAA,GAAA,CAAA,OAAzD;AAAG,iBAcZ,cAAA,CAdY;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAcsC,cAdtC,CAAA,IAAA,CAAA,CAAA,EAc0D,mBAAA,CAAA,GAAA,CAAA,OAd1D;AAAW,iBAsBvB,oBAAA,CAtBuB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAsBiC,cAtBjC,CAAA,GAAA,CAAA,CAAA,EAsBoD,mBAAA,CAAA,GAAA,CAAA,OAtBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n
|
|
1
|
+
{"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,WAAW,GACT,kHACA,UACD;EACD,GAAI;EAEH;GACG;;AAIV,SAAgB,eAAe,EAAE,WAAW,UAAU,GAAG,SAA+B;AACtF,QACE,oBAAC;EAAG,WAAW,GAAG,oCAAoC,UAAU;EAAE,GAAI;EACnE;GACE;;AAIT,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,8CAA8C,UAAU;EAAE,GAAI;EAC5E;GACC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as lucide_react0 from "lucide-react";
|
|
2
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
3
|
+
import * as react104 from "react";
|
|
2
4
|
import { ComponentProps } from "react";
|
|
3
5
|
|
|
4
6
|
//#region src/components/layouts/error-page.d.ts
|
|
@@ -7,17 +9,40 @@ import { ComponentProps } from "react";
|
|
|
7
9
|
*/
|
|
8
10
|
declare function ErrorPage({
|
|
9
11
|
className,
|
|
12
|
+
children,
|
|
10
13
|
...props
|
|
11
|
-
}: ComponentProps<"div">):
|
|
14
|
+
}: ComponentProps<"div">): react_jsx_runtime56.JSX.Element;
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
* ErrorPageCode
|
|
17
|
+
*/
|
|
18
|
+
declare function ErrorPageCode({
|
|
19
|
+
className,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}: ComponentProps<"h2">): react_jsx_runtime56.JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* ErrorPageIcon
|
|
17
25
|
*/
|
|
18
|
-
declare
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
declare const errorPageIcons: {
|
|
27
|
+
serverError: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
|
|
28
|
+
notAllowed: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
|
|
29
|
+
default: react104.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react104.RefAttributes<SVGSVGElement>>;
|
|
30
|
+
};
|
|
31
|
+
declare function ErrorPageIcon({
|
|
32
|
+
variant,
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: ComponentProps<"svg"> & {
|
|
36
|
+
variant?: keyof typeof errorPageIcons;
|
|
37
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* ErrorPageDescription
|
|
40
|
+
*/
|
|
41
|
+
declare function ErrorPageDescription({
|
|
42
|
+
className,
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}: ComponentProps<"p">): react_jsx_runtime56.JSX.Element;
|
|
21
46
|
//#endregion
|
|
22
|
-
export {
|
|
47
|
+
export { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon };
|
|
23
48
|
//# sourceMappingURL=error-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-page.d.mts","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-page.d.mts","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;iBAOgB,SAAA;;;;GAA6C,wBAAqB,mBAAA,CAAA,GAAA,CAAA;;AAAlF;;AAAuC,iBAiBvB,aAAA,CAjBuB;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAiB0B,cAjB1B,CAAA,IAAA,CAAA,CAAA,EAiB8C,mBAAA,CAAA,GAAA,CAAA,OAjB9C;;;;AAiBvC,cAWM,cAXuB,EAAA;EAAG,WAAA,oCAAA,KAAA,CAgB/B,aAAA,CAAA,WAAA,EAhB+B,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;EAAW,UAAA,oCAAA,KAAA,4BAAA,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;EAAsB,OAAA,oCAAA,KAAA,4BAAA,KAAA,CAAA,yBAAA,cAAA,CAAA,CAAA;CAAoB;AAAA,iBAkBrE,aAAA,CAlBqE;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAsBlF,cAtBkF,CAAA,KAAA,CAAA,GAAA;EAW/E,OAAA,CAAA,EAAA,MAAA,OAW8C,cANnD;CAAA,CAAA,EAMmE,mBAAA,CAAA,GAAA,CAAA,OANnE;;;;iBAee,oBAAA;;;;GAAwD,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,58 +1,54 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils/cn.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { NotFoundSection } from "./not-found-section.mjs";
|
|
5
|
-
import { BugIcon } from "lucide-react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BugIcon, ServerCrashIcon, ShieldBanIcon } from "lucide-react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
4
|
|
|
8
5
|
//#region src/components/layouts/error-page.tsx
|
|
9
6
|
/**
|
|
10
7
|
* ErrorPage
|
|
11
8
|
*/
|
|
12
|
-
function ErrorPage({ className, ...props }) {
|
|
9
|
+
function ErrorPage({ className, children, ...props }) {
|
|
13
10
|
return /* @__PURE__ */ jsx("div", {
|
|
14
11
|
...props,
|
|
15
|
-
className: cn("
|
|
16
|
-
children
|
|
17
|
-
className: "flex flex-col items-center gap-12 text-center",
|
|
18
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
19
|
-
className: "text-destructive flex flex-col items-center gap-2",
|
|
20
|
-
children: [/* @__PURE__ */ jsx(BugIcon, { className: "size-20 xl:size-32" }), /* @__PURE__ */ jsx("h1", {
|
|
21
|
-
className: "text-2xl font-bold lg:text-3xl",
|
|
22
|
-
children: "Oeps, er is iets fout gegaan."
|
|
23
|
-
})]
|
|
24
|
-
})
|
|
25
|
-
})
|
|
12
|
+
className: cn("min-h-120 flex h-full w-full flex-col items-center justify-center gap-y-3 border border-dashed text-center", className),
|
|
13
|
+
children
|
|
26
14
|
});
|
|
27
15
|
}
|
|
28
16
|
/**
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
* ErrorPageCode
|
|
18
|
+
*/
|
|
19
|
+
function ErrorPageCode({ className, children, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx("h2", {
|
|
21
|
+
className: cn("text-9xl font-bold leading-none", className),
|
|
22
|
+
...props,
|
|
23
|
+
children
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* ErrorPageIcon
|
|
33
28
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
const errorPageIcons = {
|
|
30
|
+
serverError: ServerCrashIcon,
|
|
31
|
+
notAllowed: ShieldBanIcon,
|
|
32
|
+
default: BugIcon
|
|
33
|
+
};
|
|
34
|
+
function ErrorPageIcon({ variant = "default", className, ...props }) {
|
|
35
|
+
const Icon = errorPageIcons[variant];
|
|
36
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
37
|
+
className: cn("size-16 xl:size-24", className),
|
|
38
|
+
...props
|
|
42
39
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* ErrorPageDescription
|
|
43
|
+
*/
|
|
44
|
+
function ErrorPageDescription({ className, children, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("p", {
|
|
46
|
+
className: cn("text-2xl font-bold lg:text-3xl", className),
|
|
47
|
+
...props,
|
|
48
|
+
children
|
|
49
49
|
});
|
|
50
|
-
/**
|
|
51
|
-
* Else show the ErrorPage
|
|
52
|
-
*/
|
|
53
|
-
return /* @__PURE__ */ jsx(ErrorPage, {});
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
//#endregion
|
|
57
|
-
export {
|
|
53
|
+
export { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon };
|
|
58
54
|
//# sourceMappingURL=error-page.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-page.mjs","names":[
|
|
1
|
+
{"version":3,"file":"error-page.mjs","names":[],"sources":["../../../src/components/layouts/error-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { BugIcon, ServerCrashIcon, ShieldBanIcon } from \"lucide-react\";\nimport { ComponentProps } from \"react\";\n\n/**\n * ErrorPage\n */\nexport function ErrorPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n {...props}\n className={cn(\n \"min-h-120 flex h-full w-full flex-col items-center justify-center gap-y-3 border border-dashed text-center\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\n/**\n * ErrorPageCode\n */\nexport function ErrorPageCode({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-9xl font-bold leading-none\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\n/**\n * ErrorPageIcon\n */\nconst errorPageIcons = {\n serverError: ServerCrashIcon,\n notAllowed: ShieldBanIcon,\n default: BugIcon,\n // 404: BombIcon,\n};\n\nexport function ErrorPageIcon({\n variant = \"default\",\n className,\n ...props\n}: ComponentProps<\"svg\"> & { variant?: keyof typeof errorPageIcons }) {\n const Icon = errorPageIcons[variant];\n\n return <Icon className={cn(\"size-16 xl:size-24\", className)} {...props} />;\n}\n\n/**\n * ErrorPageDescription\n */\nexport function ErrorPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-2xl font-bold lg:text-3xl\", className)} {...props}>\n {children}\n </p>\n );\n}\n\n// export function ErrorPage({ className, ...props }: ComponentProps<\"div\">) {\n// return (\n// <div {...props} className={cn(\"relative z-0 grid w-full place-items-center\", className)}>\n// <div className=\"flex flex-col items-center gap-12 text-center\">\n// <span className=\"text-destructive flex flex-col items-center gap-2\">\n// <BugIcon className=\"size-20 xl:size-32\" />\n// <h1 className=\"text-2xl font-bold lg:text-3xl\">Oeps, er is iets fout gegaan.</h1>\n// </span>\n// </div>\n// </div>\n// );\n// }\n"],"mappings":";;;;;;;;AAOA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GACT,8GACA,UACD;EAEA;GACG;;;;;AAOV,SAAgB,cAAc,EAAE,WAAW,UAAU,GAAG,SAA+B;AACrF,QACE,oBAAC;EAAG,WAAW,GAAG,mCAAmC,UAAU;EAAE,GAAI;EAClE;GACE;;;;;AAOT,MAAM,iBAAiB;CACrB,aAAa;CACb,YAAY;CACZ,SAAS;CAEV;AAED,SAAgB,cAAc,EAC5B,UAAU,WACV,WACA,GAAG,SACiE;CACpE,MAAM,OAAO,eAAe;AAE5B,QAAO,oBAAC;EAAK,WAAW,GAAG,sBAAsB,UAAU;EAAE,GAAI;GAAS;;;;;AAM5E,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,kCAAkC,UAAU;EAAE,GAAI;EAChE;GACC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/layouts/error-sections.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* DefaultErrorSection
|
|
7
|
+
*/
|
|
8
|
+
declare function DefaultErrorSection({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* ServerErrorSection
|
|
14
|
+
*/
|
|
15
|
+
declare function ServerErrorSection({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* NotFoundSection
|
|
21
|
+
*/
|
|
22
|
+
declare function NotFoundSection(props: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Not Allowed Section
|
|
25
|
+
*/
|
|
26
|
+
declare function NotAllowedSection(props: ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection };
|
|
29
|
+
//# sourceMappingURL=error-sections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-sections.d.mts","names":[],"sources":["../../../src/components/layouts/error-sections.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOgB,iBAAA,mBAAA,CAAmB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA0B,cAA1B,CAAA,KAAA,CAAA,CAAA,EAA+C,mBAAA,CAAA,GAAA,CAAA,OAA/C;;;;AAA+C,iBAalE,kBAAA,CAbkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAatB,cAbsB,CAAA,KAAA,CAAA,CAAA,EAaD,mBAAA,CAAA,GAAA,CAAA,OAbC;AAalF;;;AAAiF,iBAYjE,eAAA,CAZiE,KAAA,EAY1C,cAZ0C,CAAA,KAAA,CAAA,CAAA,EAYrB,mBAAA,CAAA,GAAA,CAAA,OAZqB;;AAYjF;AAYA;iBAAgB,iBAAA,QAAyB,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils/cn.mjs";
|
|
2
|
+
import { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon } from "./error-page.mjs";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/layouts/error-sections.tsx
|
|
6
|
+
/**
|
|
7
|
+
* DefaultErrorSection
|
|
8
|
+
*/
|
|
9
|
+
function DefaultErrorSection({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsxs(ErrorPage, {
|
|
11
|
+
...props,
|
|
12
|
+
className: cn("text-destructive", className),
|
|
13
|
+
children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "default" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, er is iets fout gegaan" })]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* ServerErrorSection
|
|
18
|
+
*/
|
|
19
|
+
function ServerErrorSection({ className, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(ErrorPage, {
|
|
21
|
+
...props,
|
|
22
|
+
className: cn("text-destructive", className),
|
|
23
|
+
children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "serverError" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, er is iets fout gegaan met de server" })]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* NotFoundSection
|
|
28
|
+
*/
|
|
29
|
+
function NotFoundSection(props) {
|
|
30
|
+
return /* @__PURE__ */ jsxs(ErrorPage, {
|
|
31
|
+
...props,
|
|
32
|
+
children: [/* @__PURE__ */ jsx(ErrorPageCode, { children: "404" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Oeps, deze pagina is niet gevonden." })]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Not Allowed Section
|
|
37
|
+
*/
|
|
38
|
+
function NotAllowedSection(props) {
|
|
39
|
+
return /* @__PURE__ */ jsxs(ErrorPage, {
|
|
40
|
+
...props,
|
|
41
|
+
children: [/* @__PURE__ */ jsx(ErrorPageIcon, { variant: "notAllowed" }), /* @__PURE__ */ jsx(ErrorPageDescription, { children: "Je hebt geen toegang tot deze pagina." })]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection };
|
|
47
|
+
//# sourceMappingURL=error-sections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-sections.mjs","names":[],"sources":["../../../src/components/layouts/error-sections.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { ComponentProps } from \"react\";\nimport { ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon } from \"./error-page\";\n\n/**\n * DefaultErrorSection\n */\nexport function DefaultErrorSection({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props} className={cn(\"text-destructive\", className)}>\n {/* <BugIcon className=\"size-16 xl:size-24\" /> */}\n <ErrorPageIcon variant=\"default\" />\n <ErrorPageDescription>Oeps, er is iets fout gegaan</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * ServerErrorSection\n */\nexport function ServerErrorSection({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props} className={cn(\"text-destructive\", className)}>\n <ErrorPageIcon variant=\"serverError\" />\n <ErrorPageDescription>Oeps, er is iets fout gegaan met de server</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * NotFoundSection\n */\nexport function NotFoundSection(props: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props}>\n <ErrorPageCode>404</ErrorPageCode>\n <ErrorPageDescription>Oeps, deze pagina is niet gevonden.</ErrorPageDescription>\n </ErrorPage>\n );\n}\n\n/**\n * Not Allowed Section\n */\nexport function NotAllowedSection(props: ComponentProps<\"div\">) {\n return (\n <ErrorPage {...props}>\n <ErrorPageIcon variant=\"notAllowed\" />\n <ErrorPageDescription>Je hebt geen toegang tot deze pagina.</ErrorPageDescription>\n </ErrorPage>\n );\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,oBAAoB,EAAE,WAAW,GAAG,SAAgC;AAClF,QACE,qBAAC;EAAU,GAAI;EAAO,WAAW,GAAG,oBAAoB,UAAU;aAEhE,oBAAC,iBAAc,SAAQ,YAAY,EACnC,oBAAC,kCAAqB,iCAAmD;GAC/D;;;;;AAOhB,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAgC;AACjF,QACE,qBAAC;EAAU,GAAI;EAAO,WAAW,GAAG,oBAAoB,UAAU;aAChE,oBAAC,iBAAc,SAAQ,gBAAgB,EACvC,oBAAC,kCAAqB,+CAAiE;GAC7E;;;;;AAOhB,SAAgB,gBAAgB,OAA8B;AAC5D,QACE,qBAAC;EAAU,GAAI;aACb,oBAAC,2BAAc,QAAmB,EAClC,oBAAC,kCAAqB,wCAA0D;GACtE;;;;;AAOhB,SAAgB,kBAAkB,OAA8B;AAC9D,QACE,qBAAC;EAAU,GAAI;aACb,oBAAC,iBAAc,SAAQ,eAAe,EACtC,oBAAC,kCAAqB,0CAA4D;GACxE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/list-layout.d.ts
|
|
@@ -6,7 +6,7 @@ declare function ListLayout({
|
|
|
6
6
|
className,
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<"div">):
|
|
9
|
+
}: ComponentProps<"div">): react_jsx_runtime64.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { ListLayout };
|
|
12
12
|
//# sourceMappingURL=list-layout.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-layout.d.mts","names":[],"sources":["../../../src/components/layouts/list-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,UAAA;;;;GAA8C,wBAAqB,
|
|
1
|
+
{"version":3,"file":"list-layout.d.mts","names":[],"sources":["../../../src/components/layouts/list-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,UAAA;;;;GAA8C,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime283 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/providers.client.d.ts
|
|
5
5
|
declare function Providers({
|
|
6
6
|
children
|
|
7
|
-
}: PropsWithChildren):
|
|
7
|
+
}: PropsWithChildren): react_jsx_runtime283.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Providers };
|
|
10
10
|
//# sourceMappingURL=providers.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.client.d.mts","names":[],"sources":["../../../src/components/layouts/providers.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAWgB,SAAA;;GAAwB,oBAAiB,
|
|
1
|
+
{"version":3,"file":"providers.client.d.mts","names":[],"sources":["../../../src/components/layouts/providers.client.tsx"],"sourcesContent":[],"mappings":";;;;iBAWgB,SAAA;;GAAwB,oBAAiB,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/layouts/root-error-pages.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Admin Not Found Page
|
|
6
|
+
*/
|
|
7
|
+
declare function RootNotFoundPage(): react_jsx_runtime65.JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { RootNotFoundPage };
|
|
10
|
+
//# sourceMappingURL=root-error-pages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-error-pages.d.mts","names":[],"sources":["../../../src/components/layouts/root-error-pages.tsx"],"sourcesContent":[],"mappings":";;;;;;AAKgB,iBAAA,gBAAA,CAAA,CAAgB,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NotFoundSection } from "./error-sections.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/layouts/root-error-pages.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Admin Not Found Page
|
|
7
|
+
*/
|
|
8
|
+
function RootNotFoundPage() {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: "relative z-0 grid h-dvh w-full place-items-center",
|
|
11
|
+
children: /* @__PURE__ */ jsx(NotFoundSection, { className: "h-full" })
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { RootNotFoundPage };
|
|
17
|
+
//# sourceMappingURL=root-error-pages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-error-pages.mjs","names":[],"sources":["../../../src/components/layouts/root-error-pages.tsx"],"sourcesContent":["import { NotFoundSection } from \"./error-sections\";\n\n/**\n * Admin Not Found Page\n */\nexport function RootNotFoundPage() {\n return (\n <div className=\"relative z-0 grid h-dvh w-full place-items-center\">\n <NotFoundSection className=\"h-full\" />\n </div>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,mBAAmB;AACjC,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,WAAU,WAAW;GAClC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TulipConfig } from "../../modules/config/lib/config.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
import { PropsWithChildren } from "react";
|
|
4
4
|
import "server-cli-only";
|
|
5
5
|
|
|
@@ -31,7 +31,7 @@ declare const generateRootLayoutMetadata: (config: TulipConfig) => {
|
|
|
31
31
|
*/
|
|
32
32
|
declare function RootLayout({
|
|
33
33
|
children
|
|
34
|
-
}: PropsWithChildren):
|
|
34
|
+
}: PropsWithChildren): react_jsx_runtime28.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RootLayout, generateRootLayoutMetadata };
|
|
37
37
|
//# sourceMappingURL=root-layout.server.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-layout.server.d.mts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAWa,cAAA,0BAAsC,EAAA,CAAA,MAAA,EAAA,WAAW,EAAA,GAAA;EA6B9C,QAAA,EAAA;IAAa,KAAA,EAAA,GAAA;IAAY,WAAA,EAAA,MAAA;IAAiB,WAAA,EAAA;MAAA,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,
|
|
1
|
+
{"version":3,"file":"root-layout.server.d.mts","names":[],"sources":["../../../src/components/layouts/root-layout.server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAWa,cAAA,0BAAsC,EAAA,CAAA,MAAA,EAAA,WAAW,EAAA,GAAA;EA6B9C,QAAA,EAAA;IAAa,KAAA,EAAA,GAAA;IAAY,WAAA,EAAA,MAAA;IAAiB,WAAA,EAAA;MAAA,OAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;iBAA1C,UAAA;;GAAyB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/layouts/root-loading.d.ts
|
|
4
|
-
declare function RootLoading():
|
|
4
|
+
declare function RootLoading(): react_jsx_runtime66.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { RootLoading };
|
|
7
7
|
//# sourceMappingURL=root-loading.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-loading.d.mts","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,WAAA,CAAA,GAAW,
|
|
1
|
+
{"version":3,"file":"root-loading.d.mts","names":[],"sources":["../../../src/components/layouts/root-loading.tsx"],"sourcesContent":[],"mappings":";;;iBAEgB,WAAA,CAAA,GAAW,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Permission } from "../../modules/auth/lib/permissions.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
3
3
|
import { Route } from "next";
|
|
4
4
|
|
|
5
5
|
//#region src/components/layouts/tab-layout.d.ts
|
|
@@ -17,7 +17,7 @@ type TabLayoutProps = {
|
|
|
17
17
|
declare function TabLayout({
|
|
18
18
|
tabs,
|
|
19
19
|
children
|
|
20
|
-
}: TabLayoutProps):
|
|
20
|
+
}: TabLayoutProps): react_jsx_runtime67.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tab, TabLayout, TabLayoutProps };
|
|
23
23
|
//# sourceMappingURL=tab-layout.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-layout.d.mts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAEP,IAAA,CAAA,EAEC,KAAA,CAAM,SAFP;EAEC,UAAM,CAAA,EACA,UADA;CACA;AAAU,KAGb,cAAA,GAHa;EAGb,IAAA,EACJ,GADI,EAAA;EAKI,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAM,iBAAlB,SAAA,CAAkB;EAAA,IAAA;EAAA;AAAA,CAAA,EAAY,cAAZ,CAAA,EAA0B,
|
|
1
|
+
{"version":3,"file":"tab-layout.d.mts","names":[],"sources":["../../../src/components/layouts/tab-layout.tsx"],"sourcesContent":[],"mappings":";;;;;KAUY,GAAA;;QAEJ;EAFI,OAAG,EAAA,MAAA;EAEP,IAAA,CAAA,EAEC,KAAA,CAAM,SAFP;EAEC,UAAM,CAAA,EACA,UADA;CACA;AAAU,KAGb,cAAA,GAHa;EAGb,IAAA,EACJ,GADI,EAAA;EAKI,QAAA,EAHJ,KAAA,CAAM,SAGO;CAAG;AAAM,iBAAlB,SAAA,CAAkB;EAAA,IAAA;EAAA;AAAA,CAAA,EAAY,cAAZ,CAAA,EAA0B,mBAAA,CAAA,GAAA,CAAA,OAA1B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { Allowed } from "../../modules/auth/components/allowed.client.mjs";
|
|
3
4
|
import { ListLayout } from "./list-layout.mjs";
|
|
4
5
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs.mjs";
|
|
5
|
-
import { Allowed } from "../../modules/auth/components/allowed.client.mjs";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useRouter, useSelectedLayoutSegment } from "next/navigation";
|