@igstack/app-catalog-frontend-core 0.0.1
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/LICENSE +21 -0
- package/dist/esm/App.d.ts +12 -0
- package/dist/esm/App.js +12 -0
- package/dist/esm/App.js.map +1 -0
- package/dist/esm/__tests__/setupTests.d.ts +0 -0
- package/dist/esm/api/infra/createQueryClient.d.ts +9 -0
- package/dist/esm/api/infra/createQueryClient.js +25 -0
- package/dist/esm/api/infra/createQueryClient.js.map +1 -0
- package/dist/esm/api/infra/trpc.d.ts +1624 -0
- package/dist/esm/api/infra/trpc.js +8 -0
- package/dist/esm/api/infra/trpc.js.map +1 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.d.ts +10 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js +18 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/createCachingFetcher.d.ts +23 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js +93 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js.map +1 -0
- package/dist/esm/appPropsFactory.d.ts +2 -0
- package/dist/esm/appPropsFactory.js +34 -0
- package/dist/esm/appPropsFactory.js.map +1 -0
- package/dist/esm/assets/app-catalog.svg.js +6 -0
- package/dist/esm/assets/app-catalog.svg.js.map +1 -0
- package/dist/esm/components/IconPickerDialog.d.ts +8 -0
- package/dist/esm/components/IconPickerDialog.js +98 -0
- package/dist/esm/components/IconPickerDialog.js.map +1 -0
- package/dist/esm/components/IconPickerField.d.ts +9 -0
- package/dist/esm/components/IconPickerField.js +76 -0
- package/dist/esm/components/IconPickerField.js.map +1 -0
- package/dist/esm/components/ThemeSwitcher.d.ts +1 -0
- package/dist/esm/components/ThemeSwitcher.js +25 -0
- package/dist/esm/components/ThemeSwitcher.js.map +1 -0
- package/dist/esm/components/theme-provider.d.ts +2 -0
- package/dist/esm/components/theme-provider.js +10 -0
- package/dist/esm/components/theme-provider.js.map +1 -0
- package/dist/esm/errors/AuthorizationError.d.ts +19 -0
- package/dist/esm/errors/AuthorizationError.js +20 -0
- package/dist/esm/errors/AuthorizationError.js.map +1 -0
- package/dist/esm/errors/index.d.ts +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/utils.d.ts +2 -0
- package/dist/esm/lib/utils.js +9 -0
- package/dist/esm/lib/utils.js.map +1 -0
- package/dist/esm/main.d.ts +0 -0
- package/dist/esm/modules/admin-base/components/AdminChat.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js +82 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.d.ts +5 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js +83 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js +37 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js.map +1 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.d.ts +8 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js +27 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js.map +1 -0
- package/dist/esm/modules/admin-base/index.d.ts +5 -0
- package/dist/esm/modules/admin-base/types/adminTypes.d.ts +10 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js +196 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js.map +1 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js +57 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js.map +1 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.d.ts +15 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js +155 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js.map +1 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.d.ts +11 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js +14 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js.map +1 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.d.ts +5 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js +20 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.d.ts +15 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js +47 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js.map +1 -0
- package/dist/esm/modules/appCatalog/index.d.ts +10 -0
- package/dist/esm/modules/appCatalog/routeLoader.d.ts +3 -0
- package/dist/esm/modules/appCatalog/routeLoader.js +7 -0
- package/dist/esm/modules/appCatalog/routeLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/components/AccessRequestSection.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/AccessRequestSection.js +257 -0
- package/dist/esm/modules/appCatalog/ui/components/AccessRequestSection.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/ApproverDisplay.d.ts +30 -0
- package/dist/esm/modules/appCatalog/ui/components/GroupingColumn.d.ts +11 -0
- package/dist/esm/modules/appCatalog/ui/components/GroupingTabs.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.d.ts +10 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.js +35 -0
- package/dist/esm/modules/appCatalog/ui/components/ScreenshotGallery.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogFiltersCard.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.d.ts +8 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js +325 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogTable.d.ts +5 -0
- package/dist/esm/modules/appCatalog/ui/grid/appCatalogUtils.d.ts +2 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.d.ts +10 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.js +36 -0
- package/dist/esm/modules/appCatalog/ui/hooks/useKeyboardNavigation.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js +28 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js +112 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js.map +1 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.js +323 -0
- package/dist/esm/modules/approvalMethod/AccessRequestFormFields.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.d.ts +14 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js +227 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js +124 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js.map +1 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.d.ts +381 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js +26 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js.map +1 -0
- package/dist/esm/modules/auth/AuthContext.d.ts +38 -0
- package/dist/esm/modules/auth/AuthContext.js +88 -0
- package/dist/esm/modules/auth/AuthContext.js.map +1 -0
- package/dist/esm/modules/auth/AuthModalContext.d.ts +19 -0
- package/dist/esm/modules/auth/AuthModalContext.js +33 -0
- package/dist/esm/modules/auth/AuthModalContext.js.map +1 -0
- package/dist/esm/modules/auth/ProtectedContent.d.ts +19 -0
- package/dist/esm/modules/auth/authClient.d.ts +704 -0
- package/dist/esm/modules/auth/authClient.js +8 -0
- package/dist/esm/modules/auth/authClient.js.map +1 -0
- package/dist/esm/modules/auth/authUtils.d.ts +6 -0
- package/dist/esm/modules/auth/authUtils.js +25 -0
- package/dist/esm/modules/auth/authUtils.js.map +1 -0
- package/dist/esm/modules/auth/index.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginModal.d.ts +6 -0
- package/dist/esm/modules/auth/ui/LoginModal.js +22 -0
- package/dist/esm/modules/auth/ui/LoginModal.js.map +1 -0
- package/dist/esm/modules/auth/ui/LoginPage.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginPage.js +50 -0
- package/dist/esm/modules/auth/ui/LoginPage.js.map +1 -0
- package/dist/esm/modules/auth/useAuthActions.d.ts +17 -0
- package/dist/esm/modules/auth/useAuthActions.js +62 -0
- package/dist/esm/modules/auth/useAuthActions.js.map +1 -0
- package/dist/esm/modules/config/GlobalConfigContext.d.ts +14 -0
- package/dist/esm/modules/config/GlobalConfigContext.js +21 -0
- package/dist/esm/modules/config/GlobalConfigContext.js.map +1 -0
- package/dist/esm/modules/config/HealthStateContext.d.ts +16 -0
- package/dist/esm/modules/gallery/Gallery.d.ts +12 -0
- package/dist/esm/modules/gallery/Gallery.js +246 -0
- package/dist/esm/modules/gallery/Gallery.js.map +1 -0
- package/dist/esm/modules/icons/IconManagementPage.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.js +177 -0
- package/dist/esm/modules/icons/IconManagementPage.js.map +1 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.d.ts +19 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js +29 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.d.ts +4 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js +9 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/types.d.ts +24 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +60 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js +3055 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +593 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +302 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js +34 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js +94 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js +72 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js +44 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js +95 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js +107 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js +5 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js +1963 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js +284 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js +1855 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +56 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js +1894 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +17 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js +45 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js +44 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js +30 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js +632 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js +500 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js +244 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js +75 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js +73 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js +274 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js +100 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js +80 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js +52 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js +1247 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js +363 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js +407 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlTypes.d.ts +11 -0
- package/dist/esm/routeTree.gen.d.ts +263 -0
- package/dist/esm/routeTree.gen.js +117 -0
- package/dist/esm/routeTree.gen.js.map +1 -0
- package/dist/esm/routes/__root.d.ts +2 -0
- package/dist/esm/routes/__root.js +22 -0
- package/dist/esm/routes/__root.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index.d.ts +5 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js +25 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/index.d.ts +7 -0
- package/dist/esm/routes/_layout/index.js +28 -0
- package/dist/esm/routes/_layout/index.js.map +1 -0
- package/dist/esm/routes/_layout/login.d.ts +1 -0
- package/dist/esm/routes/_layout/login.js +16 -0
- package/dist/esm/routes/_layout/login.js.map +1 -0
- package/dist/esm/routes/_layout.d.ts +1 -0
- package/dist/esm/routes/_layout.js +12 -0
- package/dist/esm/routes/_layout.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/$id.d.ts +5 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js +67 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js +321 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js +12 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog.js +14 -0
- package/dist/esm/routes/admin/app-for-catalog.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog2.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog2.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods/index.d.ts +32 -0
- package/dist/esm/routes/admin/approval-methods/index.js +24 -0
- package/dist/esm/routes/admin/approval-methods/index.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods/index2.js +100 -0
- package/dist/esm/routes/admin/approval-methods/index2.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods.d.ts +1 -0
- package/dist/esm/routes/admin/approval-methods.js +14 -0
- package/dist/esm/routes/admin/approval-methods.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods2.js +7 -0
- package/dist/esm/routes/admin/approval-methods2.js.map +1 -0
- package/dist/esm/routes/admin/chat.d.ts +1 -0
- package/dist/esm/routes/admin/chat.js +14 -0
- package/dist/esm/routes/admin/chat.js.map +1 -0
- package/dist/esm/routes/admin/chat2.js +9 -0
- package/dist/esm/routes/admin/chat2.js.map +1 -0
- package/dist/esm/routes/admin/icons.d.ts +1 -0
- package/dist/esm/routes/admin/icons.js +14 -0
- package/dist/esm/routes/admin/icons.js.map +1 -0
- package/dist/esm/routes/admin/icons2.js +12 -0
- package/dist/esm/routes/admin/icons2.js.map +1 -0
- package/dist/esm/routes/admin/index.d.ts +1 -0
- package/dist/esm/routes/admin/index.js +9 -0
- package/dist/esm/routes/admin/index.js.map +1 -0
- package/dist/esm/routes/admin/index2.js +9 -0
- package/dist/esm/routes/admin/index2.js.map +1 -0
- package/dist/esm/routes/admin.d.ts +1 -0
- package/dist/esm/routes/admin.js +37 -0
- package/dist/esm/routes/admin.js.map +1 -0
- package/dist/esm/routes/admin2.js +18 -0
- package/dist/esm/routes/admin2.js.map +1 -0
- package/dist/esm/routes/auth.callback.d.ts +4 -0
- package/dist/esm/routes/auth.callback.js +56 -0
- package/dist/esm/routes/auth.callback.js.map +1 -0
- package/dist/esm/types/slateTypes.d.ts +28 -0
- package/dist/esm/types/table.d.ts +7 -0
- package/dist/esm/types/tanstackQuery.d.ts +13 -0
- package/dist/esm/types/types.d.ts +25 -0
- package/dist/esm/types/userBehaviourTypes.d.ts +76 -0
- package/dist/esm/types/utilityTypes.d.ts +1 -0
- package/dist/esm/ui/accordion.d.ts +7 -0
- package/dist/esm/ui/accordion.js +65 -0
- package/dist/esm/ui/accordion.js.map +1 -0
- package/dist/esm/ui/alert-dialog.d.ts +14 -0
- package/dist/esm/ui/alert-dialog.js +141 -0
- package/dist/esm/ui/alert-dialog.js.map +1 -0
- package/dist/esm/ui/autocomplete.d.ts +29 -0
- package/dist/esm/ui/badge.d.ts +9 -0
- package/dist/esm/ui/badge.js +27 -0
- package/dist/esm/ui/badge.js.map +1 -0
- package/dist/esm/ui/breadcrumb.d.ts +11 -0
- package/dist/esm/ui/breadcrumb.js +84 -0
- package/dist/esm/ui/breadcrumb.js.map +1 -0
- package/dist/esm/ui/button-group.d.ts +11 -0
- package/dist/esm/ui/button.d.ts +13 -0
- package/dist/esm/ui/button.js +53 -0
- package/dist/esm/ui/button.js.map +1 -0
- package/dist/esm/ui/card.d.ts +9 -0
- package/dist/esm/ui/card.js +66 -0
- package/dist/esm/ui/card.js.map +1 -0
- package/dist/esm/ui/checkbox.d.ts +4 -0
- package/dist/esm/ui/collapsible.d.ts +5 -0
- package/dist/esm/ui/command.d.ts +20 -0
- package/dist/esm/ui/command.js +131 -0
- package/dist/esm/ui/command.js.map +1 -0
- package/dist/esm/ui/components/ActionCard.d.ts +9 -0
- package/dist/esm/ui/components/AppIcon.d.ts +7 -0
- package/dist/esm/ui/components/Breadcrumbs.d.ts +19 -0
- package/dist/esm/ui/components/Breadcrumbs.js +36 -0
- package/dist/esm/ui/components/Breadcrumbs.js.map +1 -0
- package/dist/esm/ui/components/commandInput/EhBaseSelector.d.ts +2 -0
- package/dist/esm/ui/components/commandInput/types.d.ts +13 -0
- package/dist/esm/ui/components/error/BaseErrorPage.d.ts +10 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js +16 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.d.ts +3 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +73 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.d.ts +5 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js +54 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/RootErrorPage.d.ts +5 -0
- package/dist/esm/ui/components/error/RootErrorPage.js +15 -0
- package/dist/esm/ui/components/error/RootErrorPage.js.map +1 -0
- package/dist/esm/ui/components/footer/Footer.d.ts +1 -0
- package/dist/esm/ui/components/header/Header.d.ts +5 -0
- package/dist/esm/ui/components/header/Header.js +103 -0
- package/dist/esm/ui/components/header/Header.js.map +1 -0
- package/dist/esm/ui/components/widgetPanel/AddWidgetCard.d.ts +5 -0
- package/dist/esm/ui/components/widgetPanel/WidgetGrid.d.ts +6 -0
- package/dist/esm/ui/components/widgets/CredentialsWidget.d.ts +11 -0
- package/dist/esm/ui/components/widgets/VersionWidget.d.ts +7 -0
- package/dist/esm/ui/crud-list/CrudList.d.ts +2 -0
- package/dist/esm/ui/crud-list/CrudList.js +189 -0
- package/dist/esm/ui/crud-list/CrudList.js.map +1 -0
- package/dist/esm/ui/crud-list/index.d.ts +2 -0
- package/dist/esm/ui/crud-list/types.d.ts +35 -0
- package/dist/esm/ui/dialog.d.ts +15 -0
- package/dist/esm/ui/dialog.js +111 -0
- package/dist/esm/ui/dialog.js.map +1 -0
- package/dist/esm/ui/dropdown-menu.d.ts +25 -0
- package/dist/esm/ui/dropdown-menu.js +79 -0
- package/dist/esm/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/ui/editable-list/EditableListField.d.ts +2 -0
- package/dist/esm/ui/editable-list/EditableListField.js +130 -0
- package/dist/esm/ui/editable-list/EditableListField.js.map +1 -0
- package/dist/esm/ui/editable-list/index.d.ts +2 -0
- package/dist/esm/ui/editable-list/types.d.ts +17 -0
- package/dist/esm/ui/empty.d.ts +11 -0
- package/dist/esm/ui/empty.js +103 -0
- package/dist/esm/ui/empty.js.map +1 -0
- package/dist/esm/ui/error/NotFoundError.d.ts +1 -0
- package/dist/esm/ui/error/NotFoundError.js +17 -0
- package/dist/esm/ui/error/NotFoundError.js.map +1 -0
- package/dist/esm/ui/form.d.ts +56 -0
- package/dist/esm/ui/form.js +134 -0
- package/dist/esm/ui/form.js.map +1 -0
- package/dist/esm/ui/input-group.d.ts +16 -0
- package/dist/esm/ui/input.d.ts +3 -0
- package/dist/esm/ui/input.js +22 -0
- package/dist/esm/ui/input.js.map +1 -0
- package/dist/esm/ui/item.d.ts +23 -0
- package/dist/esm/ui/label.d.ts +4 -0
- package/dist/esm/ui/label.js +23 -0
- package/dist/esm/ui/label.js.map +1 -0
- package/dist/esm/ui/layout/Footer.d.ts +1 -0
- package/dist/esm/ui/layout/LoadingScreen.d.ts +6 -0
- package/dist/esm/ui/layout/LoadingScreen.js +54 -0
- package/dist/esm/ui/layout/LoadingScreen.js.map +1 -0
- package/dist/esm/ui/layout/MainLayout.d.ts +7 -0
- package/dist/esm/ui/layout/MainLayout.js +17 -0
- package/dist/esm/ui/layout/MainLayout.js.map +1 -0
- package/dist/esm/ui/layout/SideColumn.d.ts +1 -0
- package/dist/esm/ui/layout/TopLevelProviders.d.ts +10 -0
- package/dist/esm/ui/layout/TopLevelProviders.js +46 -0
- package/dist/esm/ui/layout/TopLevelProviders.js.map +1 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.d.ts +10 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js +24 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js.map +1 -0
- package/dist/esm/ui/link.d.ts +13 -0
- package/dist/esm/ui/link.js +28 -0
- package/dist/esm/ui/link.js.map +1 -0
- package/dist/esm/ui/linkExternal.d.ts +8 -0
- package/dist/esm/ui/linkExternal.js +26 -0
- package/dist/esm/ui/linkExternal.js.map +1 -0
- package/dist/esm/ui/main/JumpTabContent.d.ts +1 -0
- package/dist/esm/ui/main/Tabs.d.ts +4 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.d.ts +9 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js +116 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js.map +1 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.d.ts +6 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js +99 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js.map +1 -0
- package/dist/esm/ui/markdown-editor/index.d.ts +2 -0
- package/dist/esm/ui/popover.d.ts +7 -0
- package/dist/esm/ui/popover.js +40 -0
- package/dist/esm/ui/popover.js.map +1 -0
- package/dist/esm/ui/radio-group.d.ts +5 -0
- package/dist/esm/ui/resizable.d.ts +7 -0
- package/dist/esm/ui/resizable.js +47 -0
- package/dist/esm/ui/resizable.js.map +1 -0
- package/dist/esm/ui/scroll-area.d.ts +5 -0
- package/dist/esm/ui/scroll-area.js +62 -0
- package/dist/esm/ui/scroll-area.js.map +1 -0
- package/dist/esm/ui/search-input-with-shortcut.d.ts +25 -0
- package/dist/esm/ui/select.d.ts +15 -0
- package/dist/esm/ui/select.js +138 -0
- package/dist/esm/ui/select.js.map +1 -0
- package/dist/esm/ui/separator.d.ts +4 -0
- package/dist/esm/ui/shortcut-button.d.ts +24 -0
- package/dist/esm/ui/skeleton.d.ts +2 -0
- package/dist/esm/ui/skeleton.js +16 -0
- package/dist/esm/ui/skeleton.js.map +1 -0
- package/dist/esm/ui/spinner.d.ts +2 -0
- package/dist/esm/ui/spinner.js +18 -0
- package/dist/esm/ui/spinner.js.map +1 -0
- package/dist/esm/ui/table.d.ts +10 -0
- package/dist/esm/ui/table.js +87 -0
- package/dist/esm/ui/table.js.map +1 -0
- package/dist/esm/ui/tabs.d.ts +7 -0
- package/dist/esm/ui/textarea.d.ts +3 -0
- package/dist/esm/ui/textarea.js +19 -0
- package/dist/esm/ui/textarea.js.map +1 -0
- package/dist/esm/ui/tooltip.d.ts +7 -0
- package/dist/esm/userDb/AcDb.d.ts +14 -0
- package/dist/esm/userDb/AcDb.js +28 -0
- package/dist/esm/userDb/AcDb.js.map +1 -0
- package/dist/esm/userDb/DbContext.d.ts +9 -0
- package/dist/esm/userDb/DbContext.js +18 -0
- package/dist/esm/userDb/DbContext.js.map +1 -0
- package/dist/esm/util/createEhRouter.d.ts +7 -0
- package/dist/esm/util/createEhRouter.js +19 -0
- package/dist/esm/util/createEhRouter.js.map +1 -0
- package/dist/esm/util/error-utils.d.ts +6 -0
- package/dist/esm/util/error-utils.js +28 -0
- package/dist/esm/util/error-utils.js.map +1 -0
- package/dist/esm/util/highlightMatches.d.ts +2 -0
- package/dist/esm/util/reactQueryUtils.d.ts +10 -0
- package/dist/esm/util/reactQueryUtils.js +17 -0
- package/dist/esm/util/reactQueryUtils.js.map +1 -0
- package/dist/esm/util/slug-utils.d.ts +12 -0
- package/dist/index.css +225 -0
- package/dist/public/app-catalog-16x16.png +0 -0
- package/dist/public/app-catalog-192x192.png +0 -0
- package/dist/public/app-catalog-32x32.png +0 -0
- package/dist/public/app-catalog-48x48.png +0 -0
- package/dist/public/app-catalog-512x512.png +0 -0
- package/dist/public/app-catalog-square.svg +160 -0
- package/dist/public/app-catalog.png +0 -0
- package/dist/public/app-catalog.svg +198 -0
- package/dist/public/apple-touch-180x180.png +0 -0
- package/dist/public/favicon-app-catalog.ico +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/robots.txt +2 -0
- package/package.json +159 -0
- package/public/app-catalog-16x16.png +0 -0
- package/public/app-catalog-192x192.png +0 -0
- package/public/app-catalog-32x32.png +0 -0
- package/public/app-catalog-48x48.png +0 -0
- package/public/app-catalog-512x512.png +0 -0
- package/public/app-catalog-square.svg +160 -0
- package/public/app-catalog.png +0 -0
- package/public/app-catalog.svg +198 -0
- package/public/apple-touch-180x180.png +0 -0
- package/public/favicon-app-catalog.ico +0 -0
- package/public/favicon.ico +0 -0
- package/public/robots.txt +2 -0
- package/src/App.tsx +28 -0
- package/src/__tests__/setupTests.tsx +0 -0
- package/src/api/infra/createQueryClient.ts +29 -0
- package/src/api/infra/trpc.ts +6 -0
- package/src/api/unsorted/appCatalogFetcher.ts +32 -0
- package/src/api/unsorted/createCachingFetcher.ts +159 -0
- package/src/appPropsFactory.ts +37 -0
- package/src/assets/app-catalog.svg +198 -0
- package/src/components/IconPickerDialog.tsx +136 -0
- package/src/components/IconPickerField.tsx +88 -0
- package/src/components/ThemeSwitcher.tsx +22 -0
- package/src/components/theme-provider.tsx +8 -0
- package/src/errors/AuthorizationError.ts +32 -0
- package/src/errors/index.ts +1 -0
- package/src/index.css +225 -0
- package/src/index.tsx +3 -0
- package/src/lib/utils.ts +7 -0
- package/src/main.tsx +57 -0
- package/src/modules/admin-base/components/AdminChat.tsx +122 -0
- package/src/modules/admin-base/components/AdminLayout.tsx +111 -0
- package/src/modules/admin-base/components/AdminWelcome.tsx +52 -0
- package/src/modules/admin-base/context/AdminConfigContext.tsx +36 -0
- package/src/modules/admin-base/index.ts +16 -0
- package/src/modules/admin-base/types/adminTypes.ts +11 -0
- package/src/modules/appCatalog/AppCatalogAdminPage.tsx +274 -0
- package/src/modules/appCatalog/ScreenshotItem.tsx +59 -0
- package/src/modules/appCatalog/ScreenshotManager.tsx +193 -0
- package/src/modules/appCatalog/api/ApiQueryMagazineAppCatalog.ts +12 -0
- package/src/modules/appCatalog/catalogRouteLoader.ts +28 -0
- package/src/modules/appCatalog/context/AppCatalogContext.tsx +52 -0
- package/src/modules/appCatalog/index.ts +16 -0
- package/src/modules/appCatalog/routeLoader.ts +9 -0
- package/src/modules/appCatalog/ui/components/AccessRequestSection.tsx +370 -0
- package/src/modules/appCatalog/ui/components/AppDetailModal.tsx +355 -0
- package/src/modules/appCatalog/ui/components/ApproverDisplay.tsx +260 -0
- package/src/modules/appCatalog/ui/components/GroupingColumn.tsx +65 -0
- package/src/modules/appCatalog/ui/components/GroupingTabs.tsx +41 -0
- package/src/modules/appCatalog/ui/components/ScreenshotGallery.tsx +51 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogGrid.tsx +487 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogTable.tsx +89 -0
- package/src/modules/appCatalog/ui/grid/appCatalogUtils.ts +5 -0
- package/src/modules/appCatalog/ui/hooks/useKeyboardNavigation.ts +54 -0
- package/src/modules/appCatalog/ui/layout/AppCatalogLayout.tsx +57 -0
- package/src/modules/appCatalog/ui/pages/AppCatalogPage.tsx +142 -0
- package/src/modules/approvalMethod/AccessRequestFormFields.tsx +393 -0
- package/src/modules/approvalMethod/ApprovalMethodForm.tsx +323 -0
- package/src/modules/approvalMethod/ApprovalMethodSelector.tsx +150 -0
- package/src/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.ts +34 -0
- package/src/modules/auth/AuthContext.tsx +130 -0
- package/src/modules/auth/AuthModalContext.tsx +49 -0
- package/src/modules/auth/ProtectedContent.tsx +55 -0
- package/src/modules/auth/authClient.ts +9 -0
- package/src/modules/auth/authUtils.ts +41 -0
- package/src/modules/auth/index.ts +6 -0
- package/src/modules/auth/ui/LoginModal.tsx +36 -0
- package/src/modules/auth/ui/LoginPage.tsx +62 -0
- package/src/modules/auth/useAuthActions.ts +85 -0
- package/src/modules/config/GlobalConfigContext.tsx +42 -0
- package/src/modules/config/HealthStateContext.tsx +47 -0
- package/src/modules/gallery/Gallery.tsx +317 -0
- package/src/modules/icons/IconManagementPage.tsx +245 -0
- package/src/modules/pluginCore/PluginManagerContext.tsx +78 -0
- package/src/modules/pluginCore/makePluginManagerContext.ts +13 -0
- package/src/modules/pluginCore/types.ts +27 -0
- package/src/plugins/builtin/pageUrl/pageUrlTypes.ts +16 -0
- package/src/routeTree.gen.ts +361 -0
- package/src/routes/__root.tsx +23 -0
- package/src/routes/_layout/catalog.apps.index.tsx +28 -0
- package/src/routes/_layout/index.tsx +31 -0
- package/src/routes/_layout/login.tsx +20 -0
- package/src/routes/_layout.tsx +9 -0
- package/src/routes/admin/app-for-catalog/$id.tsx +571 -0
- package/src/routes/admin/app-for-catalog/index.tsx +19 -0
- package/src/routes/admin/app-for-catalog.tsx +12 -0
- package/src/routes/admin/approval-methods/index.tsx +161 -0
- package/src/routes/admin/approval-methods.tsx +10 -0
- package/src/routes/admin/chat.tsx +13 -0
- package/src/routes/admin/icons.tsx +22 -0
- package/src/routes/admin/index.tsx +9 -0
- package/src/routes/admin.tsx +60 -0
- package/src/routes/auth.callback.tsx +74 -0
- package/src/types/slateTypes.ts +22 -0
- package/src/types/table.ts +9 -0
- package/src/types/tanstackQuery.ts +16 -0
- package/src/types/types.ts +30 -0
- package/src/types/userBehaviourTypes.ts +100 -0
- package/src/types/utilityTypes.ts +1 -0
- package/src/types/vite-env.d.ts +2 -0
- package/src/ui/accordion.tsx +64 -0
- package/src/ui/alert-dialog.tsx +155 -0
- package/src/ui/autocomplete.tsx +272 -0
- package/src/ui/badge.tsx +38 -0
- package/src/ui/breadcrumb.tsx +106 -0
- package/src/ui/button-group.tsx +85 -0
- package/src/ui/button.tsx +66 -0
- package/src/ui/card.tsx +92 -0
- package/src/ui/checkbox.tsx +30 -0
- package/src/ui/collapsible.tsx +45 -0
- package/src/ui/command.tsx +196 -0
- package/src/ui/components/ActionCard.tsx +30 -0
- package/src/ui/components/AppIcon.tsx +48 -0
- package/src/ui/components/Breadcrumbs.tsx +97 -0
- package/src/ui/components/commandInput/EhBaseSelector.tsx +17 -0
- package/src/ui/components/commandInput/types.ts +22 -0
- package/src/ui/components/error/BaseErrorPage.tsx +26 -0
- package/src/ui/components/error/DefaultErrorComponent.tsx +107 -0
- package/src/ui/components/error/ForbiddenErrorPage.tsx +89 -0
- package/src/ui/components/error/RootErrorPage.tsx +23 -0
- package/src/ui/components/footer/Footer.tsx +51 -0
- package/src/ui/components/header/Header.tsx +135 -0
- package/src/ui/components/widgetPanel/AddWidgetCard.tsx +17 -0
- package/src/ui/components/widgetPanel/WidgetGrid.tsx +18 -0
- package/src/ui/components/widgets/CredentialsWidget.tsx +55 -0
- package/src/ui/components/widgets/VersionWidget.tsx +29 -0
- package/src/ui/crud-list/CrudList.tsx +274 -0
- package/src/ui/crud-list/index.ts +2 -0
- package/src/ui/crud-list/types.ts +44 -0
- package/src/ui/dialog.tsx +141 -0
- package/src/ui/dropdown-menu.tsx +255 -0
- package/src/ui/editable-list/EditableListField.tsx +188 -0
- package/src/ui/editable-list/index.ts +2 -0
- package/src/ui/editable-list/types.ts +18 -0
- package/src/ui/empty.tsx +105 -0
- package/src/ui/error/NotFoundError.tsx +16 -0
- package/src/ui/form.tsx +188 -0
- package/src/ui/input-group.tsx +167 -0
- package/src/ui/input.tsx +21 -0
- package/src/ui/item.tsx +194 -0
- package/src/ui/label.tsx +22 -0
- package/src/ui/layout/Footer.tsx +16 -0
- package/src/ui/layout/LoadingScreen.tsx +67 -0
- package/src/ui/layout/MainLayout.tsx +28 -0
- package/src/ui/layout/SideColumn.tsx +3 -0
- package/src/ui/layout/TopLevelProviders.tsx +63 -0
- package/src/ui/layout/TopLevelProvidersForErrors.tsx +34 -0
- package/src/ui/link.tsx +33 -0
- package/src/ui/linkExternal.tsx +26 -0
- package/src/ui/main/JumpTabContent.tsx +12 -0
- package/src/ui/main/Tabs.tsx +29 -0
- package/src/ui/markdown-editor/MarkdownEditor.tsx +132 -0
- package/src/ui/markdown-editor/MarkdownToolbar.tsx +90 -0
- package/src/ui/markdown-editor/index.ts +2 -0
- package/src/ui/popover.tsx +48 -0
- package/src/ui/radio-group.tsx +43 -0
- package/src/ui/resizable.tsx +51 -0
- package/src/ui/scroll-area.tsx +58 -0
- package/src/ui/search-input-with-shortcut.tsx +54 -0
- package/src/ui/select.tsx +185 -0
- package/src/ui/separator.tsx +26 -0
- package/src/ui/shortcut-button.tsx +84 -0
- package/src/ui/skeleton.tsx +13 -0
- package/src/ui/spinner.tsx +16 -0
- package/src/ui/table.tsx +114 -0
- package/src/ui/tabs.tsx +64 -0
- package/src/ui/textarea.tsx +18 -0
- package/src/ui/tooltip.tsx +60 -0
- package/src/userDb/AcDb.ts +29 -0
- package/src/userDb/DbContext.tsx +22 -0
- package/src/util/createEhRouter.tsx +22 -0
- package/src/util/error-utils.ts +31 -0
- package/src/util/highlightMatches.tsx +29 -0
- package/src/util/reactQueryUtils.ts +20 -0
- package/src/util/slug-utils.ts +17 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ErrorComponentProps } from '@tanstack/react-router'
|
|
2
|
+
import { BugIcon, RefreshCcwIcon } from 'lucide-react'
|
|
3
|
+
import { useState } from 'react'
|
|
4
|
+
import { Button } from '~/ui/button'
|
|
5
|
+
import {
|
|
6
|
+
Empty,
|
|
7
|
+
EmptyContent,
|
|
8
|
+
EmptyDescription,
|
|
9
|
+
EmptyHeader,
|
|
10
|
+
EmptyMedia,
|
|
11
|
+
EmptyTitle,
|
|
12
|
+
} from '~/ui/empty'
|
|
13
|
+
import { useDb } from '~/userDb/DbContext'
|
|
14
|
+
import { isDexieError, isDexieMigrationError } from '~/util/error-utils'
|
|
15
|
+
import { BaseErrorPage } from './BaseErrorPage'
|
|
16
|
+
|
|
17
|
+
export function Treatment({ error, reset }: ErrorComponentProps) {
|
|
18
|
+
const db = useDb()
|
|
19
|
+
const [isResetting, setIsResetting] = useState(false)
|
|
20
|
+
|
|
21
|
+
async function dexieResetDb() {
|
|
22
|
+
setIsResetting(true)
|
|
23
|
+
try {
|
|
24
|
+
await db.resetDatabase()
|
|
25
|
+
console.log('Database deleted and recreated successfully')
|
|
26
|
+
// Reload the page after successful reset
|
|
27
|
+
window.location.reload()
|
|
28
|
+
} catch (resetError) {
|
|
29
|
+
console.error('Failed to reset database:', resetError)
|
|
30
|
+
// Still reload the page even if reset fails, as it might help
|
|
31
|
+
window.location.reload()
|
|
32
|
+
} finally {
|
|
33
|
+
setIsResetting(false)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (isDexieError(error)) {
|
|
38
|
+
const isMigrationError = isDexieMigrationError(error)
|
|
39
|
+
const buttonText = isMigrationError
|
|
40
|
+
? isResetting
|
|
41
|
+
? 'Clearing database...'
|
|
42
|
+
: 'Clear database and reload'
|
|
43
|
+
: isResetting
|
|
44
|
+
? 'Resetting...'
|
|
45
|
+
: 'Try reset local settings'
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<Button
|
|
49
|
+
variant="outline"
|
|
50
|
+
size="sm"
|
|
51
|
+
onClick={() => dexieResetDb()}
|
|
52
|
+
disabled={isResetting}
|
|
53
|
+
>
|
|
54
|
+
<RefreshCcwIcon className={isResetting ? 'animate-spin' : ''} />
|
|
55
|
+
{buttonText}
|
|
56
|
+
</Button>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<div className="flex gap-2">
|
|
62
|
+
<Button variant="outline" size="sm" onClick={() => reset()}>
|
|
63
|
+
<RefreshCcwIcon />
|
|
64
|
+
Try reset error
|
|
65
|
+
</Button>
|
|
66
|
+
{/* <Button
|
|
67
|
+
variant="outline"
|
|
68
|
+
size="sm"
|
|
69
|
+
onClick={() => window.location.reload()}
|
|
70
|
+
>
|
|
71
|
+
<RefreshCcwIcon />
|
|
72
|
+
Try refresh page
|
|
73
|
+
</Button> */}
|
|
74
|
+
</div>
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DefaultErrorComponent({ error, reset }: ErrorComponentProps) {
|
|
79
|
+
return (
|
|
80
|
+
<BaseErrorPage>
|
|
81
|
+
<Empty role="alert">
|
|
82
|
+
<EmptyHeader>
|
|
83
|
+
<EmptyMedia variant="icon">
|
|
84
|
+
<BugIcon />
|
|
85
|
+
</EmptyMedia>
|
|
86
|
+
<EmptyTitle>Ooops!</EmptyTitle>
|
|
87
|
+
<EmptyDescription>
|
|
88
|
+
Error inside app-catalog occured: {<i>{error.message}</i>}
|
|
89
|
+
</EmptyDescription>
|
|
90
|
+
</EmptyHeader>
|
|
91
|
+
<EmptyContent>
|
|
92
|
+
<Treatment error={error} reset={reset} />
|
|
93
|
+
|
|
94
|
+
<div
|
|
95
|
+
className={
|
|
96
|
+
'mt-8 text-center max-w-[90vw] max-h-[80vh] overflow-auto'
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
<pre className={'text-left mt-8 text-sm'}>
|
|
100
|
+
{<i>{error.stack}</i>}
|
|
101
|
+
</pre>
|
|
102
|
+
</div>
|
|
103
|
+
</EmptyContent>
|
|
104
|
+
</Empty>
|
|
105
|
+
</BaseErrorPage>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Link } from '@tanstack/react-router'
|
|
2
|
+
import { Home, Mail, ShieldAlert } from 'lucide-react'
|
|
3
|
+
import type { AuthorizationError } from '~/errors/AuthorizationError'
|
|
4
|
+
import { Button } from '~/ui/button'
|
|
5
|
+
import {
|
|
6
|
+
Empty,
|
|
7
|
+
EmptyContent,
|
|
8
|
+
EmptyDescription,
|
|
9
|
+
EmptyHeader,
|
|
10
|
+
EmptyMedia,
|
|
11
|
+
EmptyTitle,
|
|
12
|
+
} from '~/ui/empty'
|
|
13
|
+
import { BaseErrorPage } from './BaseErrorPage'
|
|
14
|
+
|
|
15
|
+
export interface ForbiddenErrorPageProps {
|
|
16
|
+
error: AuthorizationError
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function ForbiddenErrorPage({ error }: ForbiddenErrorPageProps) {
|
|
20
|
+
const hasRoleInfo =
|
|
21
|
+
error.requiredRoles !== undefined && error.requiredRoles.length > 0
|
|
22
|
+
const hasPermissionInfo =
|
|
23
|
+
error.requiredPermissions !== undefined &&
|
|
24
|
+
error.requiredPermissions.length > 0
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<BaseErrorPage>
|
|
28
|
+
<Empty role="alert">
|
|
29
|
+
<EmptyHeader>
|
|
30
|
+
<EmptyMedia variant="icon">
|
|
31
|
+
<ShieldAlert className="text-destructive" />
|
|
32
|
+
</EmptyMedia>
|
|
33
|
+
<EmptyTitle>Access Denied</EmptyTitle>
|
|
34
|
+
<EmptyDescription>
|
|
35
|
+
{error.message}
|
|
36
|
+
{error.resource && (
|
|
37
|
+
<>
|
|
38
|
+
<br />
|
|
39
|
+
<span className="text-sm text-muted-foreground">
|
|
40
|
+
Resource: {error.resource}
|
|
41
|
+
</span>
|
|
42
|
+
</>
|
|
43
|
+
)}
|
|
44
|
+
</EmptyDescription>
|
|
45
|
+
</EmptyHeader>
|
|
46
|
+
|
|
47
|
+
<EmptyContent>
|
|
48
|
+
{(hasRoleInfo || hasPermissionInfo) && (
|
|
49
|
+
<div className="mb-6 p-4 bg-muted/50 rounded-lg text-left max-w-md mx-auto">
|
|
50
|
+
<p className="text-sm font-medium mb-2">Required Access:</p>
|
|
51
|
+
{hasRoleInfo && (
|
|
52
|
+
<div className="text-sm text-muted-foreground mb-2">
|
|
53
|
+
<span className="font-medium">Roles: </span>
|
|
54
|
+
{error.requiredRoles.join(', ')}
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
57
|
+
{hasPermissionInfo && (
|
|
58
|
+
<div className="text-sm text-muted-foreground">
|
|
59
|
+
<span className="font-medium">Permissions: </span>
|
|
60
|
+
{error.requiredPermissions.join(', ')}
|
|
61
|
+
</div>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
)}
|
|
65
|
+
|
|
66
|
+
<div className="flex gap-3 justify-center">
|
|
67
|
+
<Button asChild>
|
|
68
|
+
<Link to="/">
|
|
69
|
+
<Home className="w-4 h-4 mr-2" />
|
|
70
|
+
Go Home
|
|
71
|
+
</Link>
|
|
72
|
+
</Button>
|
|
73
|
+
<Button variant="outline" asChild>
|
|
74
|
+
<a href="mailto:support@example.com">
|
|
75
|
+
<Mail className="w-4 h-4 mr-2" />
|
|
76
|
+
Contact Support
|
|
77
|
+
</a>
|
|
78
|
+
</Button>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<p className="mt-6 text-sm text-muted-foreground max-w-md mx-auto">
|
|
82
|
+
If you believe you should have access to this resource, please
|
|
83
|
+
contact your administrator or support team.
|
|
84
|
+
</p>
|
|
85
|
+
</EmptyContent>
|
|
86
|
+
</Empty>
|
|
87
|
+
</BaseErrorPage>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefaultErrorComponent } from './DefaultErrorComponent'
|
|
2
|
+
import { ForbiddenErrorPage } from './ForbiddenErrorPage'
|
|
3
|
+
import type { ErrorComponentProps } from '@tanstack/react-router'
|
|
4
|
+
import { AuthorizationError } from '~/errors/AuthorizationError'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Smart error component that routes to appropriate error UI based on error type
|
|
8
|
+
*/
|
|
9
|
+
export function RootErrorPage(props: ErrorComponentProps) {
|
|
10
|
+
const { error } = props
|
|
11
|
+
|
|
12
|
+
// Handle authorization errors with custom 403 page
|
|
13
|
+
if (AuthorizationError.isAuthorizationError(error)) {
|
|
14
|
+
return <ForbiddenErrorPage error={error} />
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Handle other errors with default error component
|
|
18
|
+
return (
|
|
19
|
+
<div className="p-5">
|
|
20
|
+
<DefaultErrorComponent {...props} />
|
|
21
|
+
</div>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ExternalLink } from 'lucide-react'
|
|
2
|
+
|
|
3
|
+
export function Footer() {
|
|
4
|
+
return (
|
|
5
|
+
<footer className="mt-auto border-t border-border bg-background/50 backdrop-blur-sm">
|
|
6
|
+
<div className="max-w-7xl mx-auto px-6 py-4">
|
|
7
|
+
<div className="flex items-center justify-center text-sm text-muted-foreground">
|
|
8
|
+
<span>Built with</span>
|
|
9
|
+
<a
|
|
10
|
+
href="https://ui.shadcn.com/docs/components"
|
|
11
|
+
target="_blank"
|
|
12
|
+
rel="noopener noreferrer"
|
|
13
|
+
className="ml-1 inline-flex items-center gap-1 text-primary hover:text-primary/80 transition-colors font-medium"
|
|
14
|
+
>
|
|
15
|
+
shadcn/ui
|
|
16
|
+
<ExternalLink className="h-3 w-3" />
|
|
17
|
+
</a>
|
|
18
|
+
<span className="mx-2">•</span>
|
|
19
|
+
<a
|
|
20
|
+
href="https://lucide.dev/icons/expand"
|
|
21
|
+
target="_blank"
|
|
22
|
+
rel="noopener noreferrer"
|
|
23
|
+
className="inline-flex items-center gap-1 text-primary hover:text-primary/80 transition-colors font-medium"
|
|
24
|
+
>
|
|
25
|
+
Lucide Icons
|
|
26
|
+
<ExternalLink className="h-3 w-3" />
|
|
27
|
+
</a>
|
|
28
|
+
</div>
|
|
29
|
+
{import.meta.env.DEV && (
|
|
30
|
+
<div className="grid grid-cols-4 w-[700px] gap-1 text-sm ">
|
|
31
|
+
<div className="p-1 bg-accent">bg-accent</div>
|
|
32
|
+
<div className="p-1 bg-background">bg-background</div>
|
|
33
|
+
<div className="p-1 bg-highlight">bg-highglight</div>
|
|
34
|
+
<div className="p-1 bg-card">bg-card</div>
|
|
35
|
+
<div className="p-1 bg-popover">bg-poprover</div>
|
|
36
|
+
<div className="p-1 bg-secondary">bg-secondary</div>
|
|
37
|
+
<div className="p-1 bg-muted">bg-muted</div>
|
|
38
|
+
<div className="p-1 bg-chart-1">bg-chart-1</div>
|
|
39
|
+
<div className="p-1 bg-chart-2">bg-chart-2</div>
|
|
40
|
+
<div className="p-1 bg-sidebar">bg-sidebar</div>
|
|
41
|
+
<div className="p-1 bg-input">bg-input</div>
|
|
42
|
+
<div className="p-1 bg-border">bg-border</div>
|
|
43
|
+
<div className="p-1 bg-sidebar-primary">bg-sidebar-primary</div>
|
|
44
|
+
<div className="p-1 bg-sidebar-accent">bg-sidebar-accent</div>
|
|
45
|
+
<div className="p-1 bg-sidebar-border">bg-sidebar-border</div>
|
|
46
|
+
</div>
|
|
47
|
+
)}
|
|
48
|
+
</div>
|
|
49
|
+
</footer>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Link, useNavigate } from '@tanstack/react-router'
|
|
2
|
+
import { LogOut, Settings } from 'lucide-react'
|
|
3
|
+
import type React from 'react'
|
|
4
|
+
import AppCatalogLogo from '~/assets/app-catalog.svg?react'
|
|
5
|
+
import { ThemeSwitcher } from '~/components/ThemeSwitcher'
|
|
6
|
+
import {
|
|
7
|
+
useAuth,
|
|
8
|
+
useAuthActions,
|
|
9
|
+
useIsAuthenticated,
|
|
10
|
+
useUser,
|
|
11
|
+
} from '~/modules/auth'
|
|
12
|
+
import { useAuthModal } from '~/modules/auth/AuthModalContext'
|
|
13
|
+
import { Button } from '~/ui/button'
|
|
14
|
+
import {
|
|
15
|
+
DropdownMenu,
|
|
16
|
+
DropdownMenuContent,
|
|
17
|
+
DropdownMenuItem,
|
|
18
|
+
DropdownMenuSeparator,
|
|
19
|
+
DropdownMenuTrigger,
|
|
20
|
+
} from '~/ui/dropdown-menu'
|
|
21
|
+
import { Skeleton } from '~/ui/skeleton'
|
|
22
|
+
|
|
23
|
+
export interface HeaderProps {
|
|
24
|
+
middle?: React.ReactNode
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function Header({ middle }: HeaderProps) {
|
|
28
|
+
const { isLoading } = useAuth()
|
|
29
|
+
const isAuthenticated = useIsAuthenticated()
|
|
30
|
+
const user = useUser()
|
|
31
|
+
const { logout } = useAuthActions()
|
|
32
|
+
const navigate = useNavigate()
|
|
33
|
+
const { open: openLoginModal } = useAuthModal()
|
|
34
|
+
|
|
35
|
+
const handleLogout = async () => {
|
|
36
|
+
try {
|
|
37
|
+
await logout()
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error('Logout failed:', error)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const handleAdminClick = () => {
|
|
44
|
+
navigate({ to: '/admin' })
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const handleLoginClick = () => {
|
|
48
|
+
// Preserve the current URL for redirect after login
|
|
49
|
+
const currentUrl = window.location.pathname + window.location.search
|
|
50
|
+
openLoginModal(currentUrl)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div className="flex items-center mb-4 justify-between gap-2">
|
|
55
|
+
<div className="flex items-center gap-4">
|
|
56
|
+
<Link to="/">
|
|
57
|
+
<div className="flex items-center gap-2">
|
|
58
|
+
<AppCatalogLogo className="h-16 w-16" />
|
|
59
|
+
<span className="text-lg font-bold hidden md:block">
|
|
60
|
+
App Catalog
|
|
61
|
+
</span>
|
|
62
|
+
</div>
|
|
63
|
+
</Link>
|
|
64
|
+
</div>
|
|
65
|
+
{middle && <div className="sm:min-w-75">{middle}</div>}
|
|
66
|
+
<div className="flex items-center gap-3">
|
|
67
|
+
<ThemeSwitcher />
|
|
68
|
+
{isLoading ? (
|
|
69
|
+
<Skeleton className="w-8 h-8 rounded-full" />
|
|
70
|
+
) : !isAuthenticated ? (
|
|
71
|
+
<button
|
|
72
|
+
type="button"
|
|
73
|
+
onClick={handleLoginClick}
|
|
74
|
+
className="text-sm font-medium text-muted-foreground hover:text-foreground cursor-pointer"
|
|
75
|
+
>
|
|
76
|
+
Login
|
|
77
|
+
</button>
|
|
78
|
+
) : user?.name ? (
|
|
79
|
+
<DropdownMenu>
|
|
80
|
+
<DropdownMenuTrigger asChild>
|
|
81
|
+
<Button
|
|
82
|
+
variant="ghost"
|
|
83
|
+
size="sm"
|
|
84
|
+
className="w-8 h-8 rounded-full p-0 hover:bg-accent hover:text-accent-foreground cursor-pointer"
|
|
85
|
+
>
|
|
86
|
+
{user.image ? (
|
|
87
|
+
<img
|
|
88
|
+
src={user.image}
|
|
89
|
+
alt={user.name}
|
|
90
|
+
className="w-full h-full rounded-full object-cover"
|
|
91
|
+
/>
|
|
92
|
+
) : (
|
|
93
|
+
<div className="flex items-center justify-center w-full h-full rounded-full bg-primary text-primary-foreground text-xs font-semibold">
|
|
94
|
+
{user.name.charAt(0).toUpperCase()}
|
|
95
|
+
</div>
|
|
96
|
+
)}
|
|
97
|
+
</Button>
|
|
98
|
+
</DropdownMenuTrigger>
|
|
99
|
+
<DropdownMenuContent align="end" className="w-56">
|
|
100
|
+
<div className="px-2 py-3 flex items-center gap-3">
|
|
101
|
+
{user.image ? (
|
|
102
|
+
<img
|
|
103
|
+
src={user.image}
|
|
104
|
+
alt={user.name}
|
|
105
|
+
className="w-10 h-10 rounded-full object-cover shrink-0"
|
|
106
|
+
/>
|
|
107
|
+
) : (
|
|
108
|
+
<div className="flex items-center justify-center w-10 h-10 rounded-full bg-primary text-primary-foreground text-sm font-semibold shrink-0">
|
|
109
|
+
{user.name.charAt(0).toUpperCase()}
|
|
110
|
+
</div>
|
|
111
|
+
)}
|
|
112
|
+
<div className="flex flex-col min-w-0">
|
|
113
|
+
<p className="text-xs text-muted-foreground truncate">
|
|
114
|
+
@{user.email?.split('@')[0] || 'user'}
|
|
115
|
+
</p>
|
|
116
|
+
<p className="text-sm font-medium truncate">{user.name}</p>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<DropdownMenuSeparator />
|
|
120
|
+
<DropdownMenuItem onClick={handleAdminClick}>
|
|
121
|
+
<Settings className="h-4 w-4 mr-2" />
|
|
122
|
+
<span>Admin</span>
|
|
123
|
+
</DropdownMenuItem>
|
|
124
|
+
<DropdownMenuSeparator />
|
|
125
|
+
<DropdownMenuItem onClick={handleLogout}>
|
|
126
|
+
<LogOut className="h-4 w-4 mr-2" />
|
|
127
|
+
<span>Sign out</span>
|
|
128
|
+
</DropdownMenuItem>
|
|
129
|
+
</DropdownMenuContent>
|
|
130
|
+
</DropdownMenu>
|
|
131
|
+
) : null}
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
)
|
|
135
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Plus } from 'lucide-react'
|
|
2
|
+
|
|
3
|
+
interface AddWidgetCardProps {
|
|
4
|
+
onClick?: () => void
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function AddWidgetCard({ onClick }: AddWidgetCardProps) {
|
|
8
|
+
return (
|
|
9
|
+
<div
|
|
10
|
+
className="border-2 border-dashed border-muted h-32 rounded-md flex flex-col items-center justify-center cursor-pointer text-muted-foreground hover:text-foreground"
|
|
11
|
+
onClick={onClick}
|
|
12
|
+
>
|
|
13
|
+
<Plus className="h-5 w-5 mb-1" />
|
|
14
|
+
<span className="text-xs">Add widget…</span>
|
|
15
|
+
</div>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CredentialsWidget } from '../widgets/CredentialsWidget'
|
|
2
|
+
import { VersionWidget } from '../widgets/VersionWidget'
|
|
3
|
+
import { AddWidgetCard } from './AddWidgetCard'
|
|
4
|
+
|
|
5
|
+
interface WidgetGridProps {
|
|
6
|
+
widgets: ReadonlyArray<string>
|
|
7
|
+
onAddWidget?: () => void
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function WidgetGrid({ widgets, onAddWidget }: WidgetGridProps) {
|
|
11
|
+
return (
|
|
12
|
+
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 gap-4">
|
|
13
|
+
{widgets.includes('creds') && <CredentialsWidget />}
|
|
14
|
+
{widgets.includes('version') && <VersionWidget />}
|
|
15
|
+
<AddWidgetCard onClick={onAddWidget} />
|
|
16
|
+
</div>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Copy, KeyRound } from 'lucide-react'
|
|
2
|
+
import { Badge } from '~/ui/badge'
|
|
3
|
+
import { Button } from '~/ui/button'
|
|
4
|
+
import { Card, CardContent, CardHeader, CardTitle } from '~/ui/card'
|
|
5
|
+
|
|
6
|
+
interface Credential {
|
|
7
|
+
slug: string
|
|
8
|
+
desc: string
|
|
9
|
+
user: string
|
|
10
|
+
pwd: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface CredentialsWidgetProps {
|
|
14
|
+
credentials?: Array<Credential>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const defaultCredentials: Array<Credential> = [
|
|
18
|
+
{ slug: 'SC', desc: 'San‑Carlos', user: 'test@company.com', pwd: 'password' },
|
|
19
|
+
{ slug: 'AU', desc: 'Austin', user: 'austin@company.com', pwd: 'password' },
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
export function CredentialsWidget({
|
|
23
|
+
credentials = defaultCredentials,
|
|
24
|
+
}: CredentialsWidgetProps) {
|
|
25
|
+
const copy = (text: string) => navigator.clipboard.writeText(text)
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<Card className="h-32">
|
|
29
|
+
<CardHeader className="py-2">
|
|
30
|
+
<CardTitle className="text-sm">Credentials</CardTitle>
|
|
31
|
+
</CardHeader>
|
|
32
|
+
<CardContent className="space-y-1 px-3 pb-3">
|
|
33
|
+
{credentials.map((cred) => (
|
|
34
|
+
<div
|
|
35
|
+
key={cred.slug}
|
|
36
|
+
className="flex items-center justify-between text-xs"
|
|
37
|
+
>
|
|
38
|
+
<Badge variant="secondary" className="mr-1 px-1.5 py-0.5">
|
|
39
|
+
{cred.slug}
|
|
40
|
+
</Badge>
|
|
41
|
+
<span className="truncate flex-1" title={cred.desc}>
|
|
42
|
+
{cred.desc}
|
|
43
|
+
</span>
|
|
44
|
+
<Button variant="ghost" size="icon" onClick={() => copy(cred.user)}>
|
|
45
|
+
<Copy className="h-3 w-3" />
|
|
46
|
+
</Button>
|
|
47
|
+
<Button variant="ghost" size="icon" onClick={() => copy(cred.pwd)}>
|
|
48
|
+
<KeyRound className="h-3 w-3" />
|
|
49
|
+
</Button>
|
|
50
|
+
</div>
|
|
51
|
+
))}
|
|
52
|
+
</CardContent>
|
|
53
|
+
</Card>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ArrowUpRight } from 'lucide-react'
|
|
2
|
+
import { Card, CardContent, CardHeader, CardTitle } from '~/ui/card'
|
|
3
|
+
|
|
4
|
+
interface VersionWidgetProps {
|
|
5
|
+
version?: string
|
|
6
|
+
diffCommits?: number
|
|
7
|
+
diffDays?: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function VersionWidget({
|
|
11
|
+
version = 'v1.13.0',
|
|
12
|
+
diffCommits = 2,
|
|
13
|
+
diffDays = 5,
|
|
14
|
+
}: VersionWidgetProps) {
|
|
15
|
+
return (
|
|
16
|
+
<Card className="h-32">
|
|
17
|
+
<CardHeader className="py-2">
|
|
18
|
+
<CardTitle className="text-sm">Version</CardTitle>
|
|
19
|
+
</CardHeader>
|
|
20
|
+
<CardContent className="flex flex-col justify-between h-full px-3 pb-3">
|
|
21
|
+
<p className="text-lg font-semibold">{version}</p>
|
|
22
|
+
<p className="text-xs flex items-center text-muted-foreground">
|
|
23
|
+
<ArrowUpRight className="h-4 w-4 mr-1 text-green-600" />+{diffCommits}{' '}
|
|
24
|
+
commits • {diffDays}d ahead
|
|
25
|
+
</p>
|
|
26
|
+
</CardContent>
|
|
27
|
+
</Card>
|
|
28
|
+
)
|
|
29
|
+
}
|