@env-hopper/frontend-core 2.0.1-alpha
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/apple-touch-180x180.png +0 -0
- package/dist/disable.well-known/appspecific/com.chrome.devtools.json +6 -0
- package/dist/env-hopper-16x16.png +0 -0
- package/dist/env-hopper-192x192.png +0 -0
- package/dist/env-hopper-32x32.png +0 -0
- package/dist/env-hopper-48x48.png +0 -0
- package/dist/env-hopper-512x512.png +0 -0
- package/dist/env-hopper-square.svg +114 -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__/modules/fuzzyMatchLogic/autoCompleteFilter.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/fixLayout.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/postFiltration.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/testUtils.d.ts +2 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/tokenize.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/resouceJump/findBestMatchByUrl.test.d.ts +1 -0
- package/dist/esm/__tests__/setupTests.d.ts +0 -0
- package/dist/esm/__tests__/util/availabilityMatrixUtils.test.d.ts +1 -0
- package/dist/esm/api/ApiQueryMagazine.d.ts +12 -0
- package/dist/esm/api/ApiQueryMagazine.js +16 -0
- package/dist/esm/api/ApiQueryMagazine.js.map +1 -0
- package/dist/esm/api/data/useQueryBootstrapConfig.d.ts +3 -0
- package/dist/esm/api/data/useQueryBootstrapConfig.js +14 -0
- package/dist/esm/api/data/useQueryBootstrapConfig.js.map +1 -0
- package/dist/esm/api/infra/createQueryClient.d.ts +7 -0
- package/dist/esm/api/infra/createQueryClient.js +23 -0
- package/dist/esm/api/infra/createQueryClient.js.map +1 -0
- package/dist/esm/api/infra/trpc.d.ts +93 -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/indexDataFetcher.d.ts +11 -0
- package/dist/esm/api/unsorted/indexDataFetcher.js +35 -0
- package/dist/esm/api/unsorted/indexDataFetcher.js.map +1 -0
- package/dist/esm/appPropsFactory.d.ts +2 -0
- package/dist/esm/appPropsFactory.js +32 -0
- package/dist/esm/appPropsFactory.js.map +1 -0
- package/dist/esm/assets/env-hopper-logo.svg.js +16 -0
- package/dist/esm/assets/env-hopper-logo.svg.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/components/ui/badge.d.ts +9 -0
- package/dist/esm/components/ui/breadcrumb.d.ts +46 -0
- package/dist/esm/components/ui/button.d.ts +16 -0
- package/dist/esm/components/ui/button.js +52 -0
- package/dist/esm/components/ui/button.js.map +1 -0
- package/dist/esm/components/ui/card.d.ts +38 -0
- package/dist/esm/components/ui/collapsible.d.ts +5 -0
- package/dist/esm/components/ui/dialog.d.ts +21 -0
- package/dist/esm/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/esm/components/ui/input.d.ts +10 -0
- package/dist/esm/components/ui/popover.d.ts +7 -0
- package/dist/esm/components/ui/popover.js +14 -0
- package/dist/esm/components/ui/popover.js.map +1 -0
- package/dist/esm/components/ui/scroll-area.d.ts +5 -0
- package/dist/esm/components/ui/separator.d.ts +4 -0
- package/dist/esm/components/ui/separator.js +27 -0
- package/dist/esm/components/ui/separator.js.map +1 -0
- package/dist/esm/components/ui/tabs.d.ts +7 -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/config/BootstrapConfigContext.d.ts +9 -0
- package/dist/esm/modules/config/BootstrapConfigContext.js +25 -0
- package/dist/esm/modules/config/BootstrapConfigContext.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/environment/ApiQueryMagazineEnvironment.d.ts +12 -0
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js +13 -0
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js.map +1 -0
- package/dist/esm/modules/environment/EnvironmentContext.d.ts +15 -0
- package/dist/esm/modules/environment/EnvironmentContext.js +67 -0
- package/dist/esm/modules/environment/EnvironmentContext.js.map +1 -0
- package/dist/esm/modules/environment/types.d.ts +4 -0
- package/dist/esm/modules/environment/ui/EhEnvSelector.d.ts +9 -0
- package/dist/esm/modules/environment/ui/EhEnvSelector.js +167 -0
- package/dist/esm/modules/environment/ui/EhEnvSelector.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.d.ts +3 -0
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js +43 -0
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.d.ts +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js +12 -0
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.d.ts +2 -0
- package/dist/esm/modules/fuzzyMatchLogic/fixLayout.d.ts +2 -0
- package/dist/esm/modules/fuzzyMatchLogic/postFiltration.d.ts +2 -0
- package/dist/esm/modules/fuzzyMatchLogic/scoring.d.ts +2 -0
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js +23 -0
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/tokenize.d.ts +3 -0
- package/dist/esm/modules/fuzzyMatchLogic/types.d.ts +25 -0
- package/dist/esm/modules/fuzzyMatchLogic/utils.d.ts +2 -0
- package/dist/esm/modules/fuzzyMatchLogic/utils.js +12 -0
- package/dist/esm/modules/fuzzyMatchLogic/utils.js.map +1 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.d.ts +24 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js +62 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.d.ts +7 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js +27 -0
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js.map +1 -0
- package/dist/esm/modules/pluginCore/types.d.ts +36 -0
- package/dist/esm/modules/pluginCore/types.js +7 -0
- package/dist/esm/modules/pluginCore/types.js.map +1 -0
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.d.ts +27 -0
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js +26 -0
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js.map +1 -0
- package/dist/esm/modules/resourceJump/ResourceJumpContext.d.ts +17 -0
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js +88 -0
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js.map +1 -0
- package/dist/esm/modules/resourceJump/buildJumpUrl.d.ts +2 -0
- package/dist/esm/modules/resourceJump/buildJumpUrl.js +32 -0
- package/dist/esm/modules/resourceJump/buildJumpUrl.js.map +1 -0
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.d.ts +17 -0
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js +85 -0
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js.map +1 -0
- package/dist/esm/modules/resourceJump/helpers.d.ts +28 -0
- package/dist/esm/modules/resourceJump/helpers.js +19 -0
- package/dist/esm/modules/resourceJump/helpers.js.map +1 -0
- package/dist/esm/modules/resourceJump/routeLoader.d.ts +11 -0
- package/dist/esm/modules/resourceJump/routeLoader.js +43 -0
- package/dist/esm/modules/resourceJump/routeLoader.js.map +1 -0
- package/dist/esm/modules/resourceJump/types.d.ts +18 -0
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.d.ts +20 -0
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js +209 -0
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/JumpALink.d.ts +14 -0
- package/dist/esm/modules/resourceJump/ui/JumpALink.js +38 -0
- package/dist/esm/modules/resourceJump/ui/JumpALink.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js +66 -0
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js +42 -0
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.d.ts +9 -0
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js +36 -0
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.d.ts +11 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js +44 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.d.ts +7 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js +29 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlTypes.d.ts +11 -0
- package/dist/esm/routeTree.gen.d.ts +142 -0
- package/dist/esm/routeTree.gen.js +77 -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/app/$appSlug/sub/$subValue.d.ts +1 -0
- package/dist/esm/routes/_layout/app/$appSlug.d.ts +1 -0
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js +18 -0
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js.map +1 -0
- package/dist/esm/routes/_layout/app/_appSlug.js +18 -0
- package/dist/esm/routes/_layout/app/_appSlug.js.map +1 -0
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.d.ts +1 -0
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug.d.ts +1 -0
- package/dist/esm/routes/_layout/env/$envSlug/sub/$subValue.d.ts +1 -0
- package/dist/esm/routes/_layout/env/$envSlug.d.ts +1 -0
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js +20 -0
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js.map +1 -0
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js +18 -0
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js.map +1 -0
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js +18 -0
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js.map +1 -0
- package/dist/esm/routes/_layout/env/_envSlug.js +18 -0
- package/dist/esm/routes/_layout/env/_envSlug.js.map +1 -0
- package/dist/esm/routes/_layout/index.d.ts +1 -0
- package/dist/esm/routes/_layout/index.js +18 -0
- package/dist/esm/routes/_layout/index.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/types/ehTypes.d.ts +31 -0
- package/dist/esm/types/slateTypes.d.ts +28 -0
- package/dist/esm/types/tanstackQuery.d.ts +11 -0
- package/dist/esm/types/types.d.ts +16 -0
- package/dist/esm/types/userBehaviourTypes.d.ts +76 -0
- package/dist/esm/types/utilityTypes.d.ts +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/commandInput/EhBaseSelector.d.ts +6 -0
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js +22 -0
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js.map +1 -0
- package/dist/esm/ui/components/commandInput/types.d.ts +13 -0
- package/dist/esm/ui/components/contextDebug.d.ts +2 -0
- package/dist/esm/ui/components/contextDebug.js +12 -0
- package/dist/esm/ui/components/contextDebug.js.map +1 -0
- package/dist/esm/ui/components/controlPanel/BaseDropdownSelector.d.ts +11 -0
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownContent.d.ts +5 -0
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownSelector.d.ts +1 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.d.ts +2 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +13 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -0
- package/dist/esm/ui/components/error/RooutErrorPage.d.ts +2 -0
- package/dist/esm/ui/components/error/RooutErrorPage.js +12 -0
- package/dist/esm/ui/components/error/RooutErrorPage.js.map +1 -0
- package/dist/esm/ui/components/footer/Footer.d.ts +1 -0
- package/dist/esm/ui/components/footer/Footer.js +38 -0
- package/dist/esm/ui/components/footer/Footer.js.map +1 -0
- package/dist/esm/ui/components/header/PlaygroundHeader.d.ts +1 -0
- package/dist/esm/ui/components/header/PlaygroundHeader.js +23 -0
- package/dist/esm/ui/components/header/PlaygroundHeader.js.map +1 -0
- package/dist/esm/ui/components/leftPanel/LeftPanel.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js +52 -0
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js.map +1 -0
- package/dist/esm/ui/components/quickBar/QuickJumpBar.d.ts +5 -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/error/NotFoundError.d.ts +1 -0
- package/dist/esm/ui/error/NotFoundError.js +16 -0
- package/dist/esm/ui/error/NotFoundError.js.map +1 -0
- package/dist/esm/ui/layout/Footer.d.ts +1 -0
- package/dist/esm/ui/layout/Header.d.ts +1 -0
- package/dist/esm/ui/layout/LoadingScreen.d.ts +4 -0
- package/dist/esm/ui/layout/LoadingScreen.js +14 -0
- package/dist/esm/ui/layout/LoadingScreen.js.map +1 -0
- package/dist/esm/ui/layout/MainLayout.d.ts +5 -0
- package/dist/esm/ui/layout/MainLayout.js +18 -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 +5 -0
- package/dist/esm/ui/layout/TopLevelProviders.js +42 -0
- package/dist/esm/ui/layout/TopLevelProviders.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/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/userDb/EhDb.d.ts +12 -0
- package/dist/esm/userDb/EhDb.js +20 -0
- package/dist/esm/userDb/EhDb.js.map +1 -0
- package/dist/esm/util/availabilityMatrixUtils.d.ts +12 -0
- package/dist/esm/util/availabilityMatrixUtils.js +57 -0
- package/dist/esm/util/availabilityMatrixUtils.js.map +1 -0
- package/dist/esm/util/createEhRouter.d.ts +7 -0
- package/dist/esm/util/createEhRouter.js +16 -0
- package/dist/esm/util/createEhRouter.js.map +1 -0
- package/dist/esm/util/highlightMatches.d.ts +2 -0
- package/dist/esm/util/highlightMatches.js +19 -0
- package/dist/esm/util/highlightMatches.js.map +1 -0
- package/dist/esm/util/reactQueryUtils.d.ts +6 -0
- package/dist/esm/util/reactQueryUtils.js +10 -0
- package/dist/esm/util/reactQueryUtils.js.map +1 -0
- package/dist/esm/util/route-utils.d.ts +6 -0
- package/dist/esm/util/route-utils.js +72 -0
- package/dist/esm/util/route-utils.js.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/robots.txt +2 -0
- package/package.json +110 -0
- package/src/App.tsx +28 -0
- package/src/__tests__/modules/fuzzyMatchLogic/autoCompleteFilter.test.ts +185 -0
- package/src/__tests__/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.test.ts +23 -0
- package/src/__tests__/modules/fuzzyMatchLogic/fixLayout.test.ts +11 -0
- package/src/__tests__/modules/fuzzyMatchLogic/postFiltration.test.ts +15 -0
- package/src/__tests__/modules/fuzzyMatchLogic/testUtils.ts +8 -0
- package/src/__tests__/modules/fuzzyMatchLogic/tokenize.test.ts +65 -0
- package/src/__tests__/modules/resouceJump/findBestMatchByUrl.test.ts +234 -0
- package/src/__tests__/setupTests.tsx +0 -0
- package/src/__tests__/util/availabilityMatrixUtils.test.ts +61 -0
- package/src/api/ApiQueryMagazine.ts +15 -0
- package/src/api/data/useQueryBootstrapConfig.ts +17 -0
- package/src/api/infra/createQueryClient.ts +25 -0
- package/src/api/infra/trpc.ts +6 -0
- package/src/api/unsorted/indexDataFetcher.ts +46 -0
- package/src/appPropsFactory.ts +35 -0
- package/src/assets/env-hopper-logo.svg +114 -0
- package/src/components/ThemeSwitcher.tsx +22 -0
- package/src/components/theme-provider.tsx +8 -0
- package/src/components/ui/badge.tsx +37 -0
- package/src/components/ui/breadcrumb.tsx +128 -0
- package/src/components/ui/button.tsx +60 -0
- package/src/components/ui/card.tsx +95 -0
- package/src/components/ui/collapsible.tsx +31 -0
- package/src/components/ui/dialog.tsx +182 -0
- package/src/components/ui/dropdown-menu.tsx +257 -0
- package/src/components/ui/input.tsx +28 -0
- package/src/components/ui/popover.tsx +48 -0
- package/src/components/ui/scroll-area.tsx +58 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/tabs.tsx +65 -0
- package/src/index.css +211 -0
- package/src/index.tsx +3 -0
- package/src/lib/utils.ts +7 -0
- package/src/main.tsx +53 -0
- package/src/modules/config/BootstrapConfigContext.tsx +33 -0
- package/src/modules/config/GlobalConfigContext.tsx +42 -0
- package/src/modules/environment/ApiQueryMagazineEnvironment.ts +12 -0
- package/src/modules/environment/EnvironmentContext.tsx +115 -0
- package/src/modules/environment/types.ts +4 -0
- package/src/modules/environment/ui/EhEnvSelector.tsx +191 -0
- package/src/modules/fuzzyMatchLogic/autoCompleteFilter.ts +186 -0
- package/src/modules/fuzzyMatchLogic/features/prefixFrac.ts +13 -0
- package/src/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.ts +29 -0
- package/src/modules/fuzzyMatchLogic/fixLayout.ts +24 -0
- package/src/modules/fuzzyMatchLogic/postFiltration.ts +35 -0
- package/src/modules/fuzzyMatchLogic/scoring.ts +42 -0
- package/src/modules/fuzzyMatchLogic/tokenize.ts +32 -0
- package/src/modules/fuzzyMatchLogic/types.ts +33 -0
- package/src/modules/fuzzyMatchLogic/utils.ts +18 -0
- package/src/modules/pluginCore/PluginManagerContext.tsx +107 -0
- package/src/modules/pluginCore/makePluginManagerContext.ts +35 -0
- package/src/modules/pluginCore/types.ts +54 -0
- package/src/modules/resourceJump/ApiQueryMagazineResourceJump.ts +31 -0
- package/src/modules/resourceJump/ResourceJumpContext.tsx +142 -0
- package/src/modules/resourceJump/buildJumpUrl.ts +40 -0
- package/src/modules/resourceJump/findBestMatchByUrl.ts +121 -0
- package/src/modules/resourceJump/helpers.ts +117 -0
- package/src/modules/resourceJump/routeLoader.ts +58 -0
- package/src/modules/resourceJump/types.ts +21 -0
- package/src/modules/resourceJump/ui/EhJumpResourceSelector.tsx +259 -0
- package/src/modules/resourceJump/ui/JumpALink.tsx +54 -0
- package/src/modules/resourceJump/ui/JumpMainButton.tsx +97 -0
- package/src/modules/resourceJump/ui/ResouceJumpLayout.tsx +73 -0
- package/src/plugins/builtin/pageUrl/PageUrlPluginContext.tsx +55 -0
- package/src/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.ts +66 -0
- package/src/plugins/builtin/pageUrl/pageUrlJumpPlugin.ts +36 -0
- package/src/plugins/builtin/pageUrl/pageUrlTypes.ts +17 -0
- package/src/routeTree.gen.ts +249 -0
- package/src/routes/__root.tsx +23 -0
- package/src/routes/_layout/app/$appSlug/sub/$subValue.tsx +15 -0
- package/src/routes/_layout/app/$appSlug.tsx +15 -0
- package/src/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.tsx +17 -0
- package/src/routes/_layout/env/$envSlug/app/$appSlug.tsx +15 -0
- package/src/routes/_layout/env/$envSlug/sub/$subValue.tsx +15 -0
- package/src/routes/_layout/env/$envSlug.tsx +15 -0
- package/src/routes/_layout/index.tsx +16 -0
- package/src/routes/_layout.tsx +9 -0
- package/src/types/ehTypes.ts +40 -0
- package/src/types/slateTypes.ts +22 -0
- package/src/types/tanstackQuery.ts +14 -0
- package/src/types/types.ts +20 -0
- package/src/types/userBehaviourTypes.ts +100 -0
- package/src/types/utilityTypes.ts +1 -0
- package/src/types/vite-env.d.ts +1 -0
- package/src/ui/components/ActionCard.tsx +30 -0
- package/src/ui/components/AppIcon.tsx +48 -0
- package/src/ui/components/commandInput/EhBaseSelector.tsx +51 -0
- package/src/ui/components/commandInput/types.ts +22 -0
- package/src/ui/components/contextDebug.tsx +13 -0
- package/src/ui/components/controlPanel/BaseDropdownSelector.tsx +163 -0
- package/src/ui/components/controlPanel/env/EnvDropdownContent.tsx +114 -0
- package/src/ui/components/controlPanel/env/EnvDropdownSelector.tsx +21 -0
- package/src/ui/components/error/DefaultErrorComponent.tsx +38 -0
- package/src/ui/components/error/RooutErrorPage.tsx +10 -0
- package/src/ui/components/footer/Footer.tsx +32 -0
- package/src/ui/components/header/PlaygroundHeader.tsx +26 -0
- package/src/ui/components/leftPanel/LeftPanel.tsx +194 -0
- package/src/ui/components/quickBar/EnvQuickJumpBar.tsx +65 -0
- package/src/ui/components/quickBar/QuickJumpBar.tsx +101 -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/error/NotFoundError.tsx +13 -0
- package/src/ui/layout/Footer.tsx +16 -0
- package/src/ui/layout/Header.tsx +14 -0
- package/src/ui/layout/LoadingScreen.tsx +17 -0
- package/src/ui/layout/MainLayout.tsx +27 -0
- package/src/ui/layout/SideColumn.tsx +3 -0
- package/src/ui/layout/TopLevelProviders.tsx +52 -0
- package/src/ui/main/JumpTabContent.tsx +12 -0
- package/src/ui/main/Tabs.tsx +29 -0
- package/src/userDb/DbContext.tsx +22 -0
- package/src/userDb/EhDb.ts +22 -0
- package/src/util/availabilityMatrixUtils.ts +80 -0
- package/src/util/createEhRouter.ts +20 -0
- package/src/util/highlightMatches.tsx +29 -0
- package/src/util/reactQueryUtils.ts +12 -0
- package/src/util/route-utils.ts +71 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Credential {
|
|
2
|
+
slug: string;
|
|
3
|
+
desc: string;
|
|
4
|
+
user: string;
|
|
5
|
+
pwd: string;
|
|
6
|
+
}
|
|
7
|
+
interface CredentialsWidgetProps {
|
|
8
|
+
credentials?: Array<Credential>;
|
|
9
|
+
}
|
|
10
|
+
export declare function CredentialsWidget({ credentials, }: CredentialsWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NotFoundError(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Link } from "@tanstack/react-router";
|
|
3
|
+
function NotFoundError() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("main", { className: "mt-8 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("h1", { children: "404 Not Found" }),
|
|
6
|
+
/* @__PURE__ */ jsx("p", { children: "Sorry, I don't recognize this URL. Probably this was old link?" }),
|
|
7
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
8
|
+
"Navigate to ",
|
|
9
|
+
/* @__PURE__ */ jsx(Link, { to: "/", children: "Home page" })
|
|
10
|
+
] })
|
|
11
|
+
] });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
NotFoundError
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=NotFoundError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundError.js","sources":["../../../../src/ui/error/NotFoundError.tsx"],"sourcesContent":["import { Link } from '@tanstack/react-router'\n\nexport function NotFoundError() {\n return (\n <main className={'mt-8 text-center'}>\n <h1>404 Not Found</h1>\n <p>Sorry, I don't recognize this URL. Probably this was old link?</p>\n <p>\n Navigate to <Link to={'/'}>Home page</Link>\n </p>\n </main>\n )\n}\n"],"names":[],"mappings":";;AAEO,SAAS,gBAAgB;AAC9B,SACE,qBAAC,QAAA,EAAK,WAAW,oBACf,UAAA;AAAA,IAAA,oBAAC,QAAG,UAAA,gBAAA,CAAa;AAAA,IACjB,oBAAC,OAAE,UAAA,iEAAA,CAA8D;AAAA,yBAChE,KAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACW,oBAAC,MAAA,EAAK,IAAI,KAAK,UAAA,YAAA,CAAS;AAAA,IAAA,EAAA,CACtC;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Footer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Header(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function LoadingScreen({ failureCount }) {
|
|
3
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center w-full h-full", children: [
|
|
4
|
+
/* @__PURE__ */ jsx("div", { children: "Loading..." }),
|
|
5
|
+
failureCount && failureCount > 1 ? /* @__PURE__ */ jsxs("div", { className: "mt-2 text-xs", children: [
|
|
6
|
+
"Attempt ",
|
|
7
|
+
failureCount
|
|
8
|
+
] }) : null
|
|
9
|
+
] }) });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
LoadingScreen
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=LoadingScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingScreen.js","sources":["../../../../src/ui/layout/LoadingScreen.tsx"],"sourcesContent":["export interface LoadingFallbackProps {\n failureCount?: number\n}\n\nexport function LoadingScreen({ failureCount }: LoadingFallbackProps) {\n return (\n <>\n <div className=\"flex flex-col items-center w-full h-full\">\n {/* <span className=\"loading loading-bars loading-lg\"></span> */}\n <div>Loading...</div>\n {failureCount && failureCount > 1 ? (\n <div className={'mt-2 text-xs'}>Attempt {failureCount}</div>\n ) : null}\n </div>\n </>\n )\n}\n"],"names":[],"mappings":";AAIO,SAAS,cAAc,EAAE,gBAAsC;AACpE,SACE,oBAAA,UAAA,EACE,UAAA,qBAAC,OAAA,EAAI,WAAU,4CAEb,UAAA;AAAA,IAAA,oBAAC,SAAI,UAAA,aAAA,CAAU;AAAA,IACd,gBAAgB,eAAe,IAC9B,qBAAC,OAAA,EAAI,WAAW,gBAAgB,UAAA;AAAA,MAAA;AAAA,MAAS;AAAA,IAAA,EAAA,CAAa,IACpD;AAAA,EAAA,EAAA,CACN,EAAA,CACF;AAEJ;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PlaygroundHeader } from "../components/header/PlaygroundHeader.js";
|
|
3
|
+
import ContextDebug from "../components/contextDebug.js";
|
|
4
|
+
import { Footer } from "../components/footer/Footer.js";
|
|
5
|
+
function MainLayout({ children }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex flex-col", children: [
|
|
7
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 flex", children: /* @__PURE__ */ jsx("main", { className: "flex-1 w-full flex justify-center font-sans p-6", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl space-y-6", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(PlaygroundHeader, {}),
|
|
9
|
+
children
|
|
10
|
+
] }) }) }),
|
|
11
|
+
/* @__PURE__ */ jsx(ContextDebug, {}),
|
|
12
|
+
/* @__PURE__ */ jsx(Footer, {})
|
|
13
|
+
] });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
MainLayout
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=MainLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainLayout.js","sources":["../../../../src/ui/layout/MainLayout.tsx"],"sourcesContent":["import React from 'react'\nimport { PlaygroundHeader } from '../components/header/PlaygroundHeader'\n\nimport ContextDebug from '../components/contextDebug'\nimport { Footer } from '../components/footer/Footer'\n\nexport interface MainLayoutProps {\n children: React.ReactNode\n}\n\nexport function MainLayout({ children }: MainLayoutProps) {\n return (\n <div className=\"min-h-screen flex flex-col\">\n <div className=\"flex-1 flex\">\n {/* <LeftPanel className=\"h-screen\" /> */}\n <main className=\"flex-1 w-full flex justify-center font-sans p-6\">\n <div className=\"w-full max-w-4xl lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl space-y-6\">\n <PlaygroundHeader />\n {children}\n </div>\n </main>\n </div>\n <ContextDebug />\n <Footer />\n </div>\n )\n}\n"],"names":[],"mappings":";;;;AAUO,SAAS,WAAW,EAAE,YAA6B;AACxD,SACE,qBAAC,OAAA,EAAI,WAAU,8BACb,UAAA;AAAA,IAAA,oBAAC,OAAA,EAAI,WAAU,eAEb,UAAA,oBAAC,QAAA,EAAK,WAAU,mDACd,UAAA,qBAAC,OAAA,EAAI,WAAU,sEACb,UAAA;AAAA,MAAA,oBAAC,kBAAA,EAAiB;AAAA,MACjB;AAAA,IAAA,EAAA,CACH,GACF,GACF;AAAA,wBACC,cAAA,EAAa;AAAA,wBACb,QAAA,CAAA,CAAO;AAAA,EAAA,GACV;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SideColumn(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, Suspense } from "react";
|
|
3
|
+
import { LoadingScreen } from "./LoadingScreen.js";
|
|
4
|
+
import { useQueryBootstrapConfig } from "../../api/data/useQueryBootstrapConfig.js";
|
|
5
|
+
import { ThemeProvider } from "../../components/theme-provider.js";
|
|
6
|
+
import { PluginManagerContextProvider } from "../../modules/pluginCore/PluginManagerContext.js";
|
|
7
|
+
import { PageUrlPluginContextProvider } from "../../plugins/builtin/pageUrl/PageUrlPluginContext.js";
|
|
8
|
+
import { PageUrlJumpPlugin } from "../../plugins/builtin/pageUrl/pageUrlJumpPlugin.js";
|
|
9
|
+
import { BootstrapConfigProvider } from "../../modules/config/BootstrapConfigContext.js";
|
|
10
|
+
import { GlobalConfigProvider } from "../../modules/config/GlobalConfigContext.js";
|
|
11
|
+
import { makePluginInterfaceForCore } from "../../modules/pluginCore/makePluginManagerContext.js";
|
|
12
|
+
function TopLevelProviders({ children }) {
|
|
13
|
+
const { data, isPending } = useQueryBootstrapConfig();
|
|
14
|
+
const [plugins] = useState(() => [new PageUrlJumpPlugin()]);
|
|
15
|
+
const pluginInterfaceForCore = useMemo(() => {
|
|
16
|
+
return data ? makePluginInterfaceForCore(plugins) : null;
|
|
17
|
+
}, [plugins, data]);
|
|
18
|
+
if (isPending || !data || !pluginInterfaceForCore) {
|
|
19
|
+
return /* @__PURE__ */ jsx(LoadingScreen, {});
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
ThemeProvider,
|
|
23
|
+
{
|
|
24
|
+
attribute: "class",
|
|
25
|
+
defaultTheme: "system",
|
|
26
|
+
enableSystem: true,
|
|
27
|
+
disableTransitionOnChange: true,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, {}), children: /* @__PURE__ */ jsx(BootstrapConfigProvider, { bootstrapConfig: data, children: /* @__PURE__ */ jsx(GlobalConfigProvider, { children: /* @__PURE__ */ jsx(
|
|
29
|
+
PluginManagerContextProvider,
|
|
30
|
+
{
|
|
31
|
+
plugins,
|
|
32
|
+
pluginInterfaceForCore,
|
|
33
|
+
children: /* @__PURE__ */ jsx(PageUrlPluginContextProvider, { children })
|
|
34
|
+
}
|
|
35
|
+
) }) }) })
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
TopLevelProviders
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=TopLevelProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopLevelProviders.js","sources":["../../../../src/ui/layout/TopLevelProviders.tsx"],"sourcesContent":["import React, { Suspense, useMemo, useState } from 'react'\n\nimport { LoadingScreen } from './LoadingScreen'\nimport { useQueryBootstrapConfig } from '~/api/data/useQueryBootstrapConfig'\nimport { ThemeProvider } from '~/components/theme-provider'\nimport { PluginManagerContextProvider } from '~/modules/pluginCore/PluginManagerContext'\nimport { PageUrlPluginContextProvider } from '~/plugins/builtin/pageUrl/PageUrlPluginContext'\nimport { PageUrlJumpPlugin } from '~/plugins/builtin/pageUrl/pageUrlJumpPlugin'\nimport { BootstrapConfigProvider } from '~/modules/config/BootstrapConfigContext'\nimport { GlobalConfigProvider } from '~/modules/config/GlobalConfigContext'\nimport { makePluginInterfaceForCore } from '~/modules/pluginCore/makePluginManagerContext'\n\nexport interface MainLayoutProps {\n children: React.ReactNode\n}\n\nexport function TopLevelProviders({ children }: MainLayoutProps) {\n const { data, isPending } = useQueryBootstrapConfig()\n const [plugins] = useState(() => [new PageUrlJumpPlugin()])\n\n const pluginInterfaceForCore = useMemo(() => {\n return data ? makePluginInterfaceForCore(plugins) : null\n }, [plugins, data])\n\n if (isPending || !data || !pluginInterfaceForCore) {\n return <LoadingScreen />\n }\n\n return (\n <ThemeProvider\n attribute=\"class\"\n defaultTheme=\"system\"\n enableSystem\n disableTransitionOnChange\n >\n <Suspense fallback={<LoadingScreen />}>\n <BootstrapConfigProvider bootstrapConfig={data}>\n <GlobalConfigProvider>\n <PluginManagerContextProvider\n plugins={plugins}\n pluginInterfaceForCore={pluginInterfaceForCore}\n >\n <PageUrlPluginContextProvider>\n {children}\n </PageUrlPluginContextProvider>\n </PluginManagerContextProvider>\n </GlobalConfigProvider>\n </BootstrapConfigProvider>\n </Suspense>\n </ThemeProvider>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAgBO,SAAS,kBAAkB,EAAE,YAA6B;AAC/D,QAAM,EAAE,MAAM,UAAA,IAAc,wBAAA;AAC5B,QAAM,CAAC,OAAO,IAAI,SAAS,MAAM,CAAC,IAAI,kBAAA,CAAmB,CAAC;AAE1D,QAAM,yBAAyB,QAAQ,MAAM;AAC3C,WAAO,OAAO,2BAA2B,OAAO,IAAI;AAAA,EACtD,GAAG,CAAC,SAAS,IAAI,CAAC;AAElB,MAAI,aAAa,CAAC,QAAQ,CAAC,wBAAwB;AACjD,+BAAQ,eAAA,EAAc;AAAA,EACxB;AAEA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,cAAa;AAAA,MACb,cAAY;AAAA,MACZ,2BAAyB;AAAA,MAEzB,UAAA,oBAAC,UAAA,EAAS,UAAU,oBAAC,eAAA,CAAA,CAAc,GACjC,UAAA,oBAAC,yBAAA,EAAwB,iBAAiB,MACxC,UAAA,oBAAC,sBAAA,EACC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UAEA,UAAA,oBAAC,gCACE,SAAA,CACH;AAAA,QAAA;AAAA,MAAA,EACF,CACF,GACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function JumpTabContent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EhDb } from './EhDb.js';
|
|
3
|
+
interface DbProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
db: EhDb;
|
|
6
|
+
}
|
|
7
|
+
export declare function DbProvider({ children, db }: DbProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function useDb(): EhDb;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, use } from "react";
|
|
3
|
+
const DbContext = createContext(void 0);
|
|
4
|
+
function DbProvider({ children, db }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(DbContext, { value: db, children });
|
|
6
|
+
}
|
|
7
|
+
function useDb() {
|
|
8
|
+
const context = use(DbContext);
|
|
9
|
+
if (context === void 0) {
|
|
10
|
+
throw new Error("useDb must be used within a DbProvider");
|
|
11
|
+
}
|
|
12
|
+
return context;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
DbProvider,
|
|
16
|
+
useDb
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=DbContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DbContext.js","sources":["../../../src/userDb/DbContext.tsx"],"sourcesContent":["import { createContext, use } from 'react'\nimport type { ReactNode } from 'react'\nimport type { EhDb } from './EhDb'\n\nconst DbContext = createContext<EhDb | undefined>(undefined)\n\ninterface DbProviderProps {\n children: ReactNode\n db: EhDb\n}\n\nexport function DbProvider({ children, db }: DbProviderProps) {\n return <DbContext value={db}>{children}</DbContext>\n}\n\nexport function useDb(): EhDb {\n const context = use(DbContext)\n if (context === undefined) {\n throw new Error('useDb must be used within a DbProvider')\n }\n return context\n}\n"],"names":[],"mappings":";;AAIA,MAAM,YAAY,cAAgC,MAAS;AAOpD,SAAS,WAAW,EAAE,UAAU,MAAuB;AAC5D,SAAO,oBAAC,WAAA,EAAU,OAAO,IAAK,SAAA,CAAS;AACzC;AAEO,SAAS,QAAc;AAC5B,QAAM,UAAU,IAAI,SAAS;AAC7B,MAAI,YAAY,QAAW;AACzB,UAAM,IAAI,MAAM,wCAAwC;AAAA,EAC1D;AACA,SAAO;AACT;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as Dexie, Table } from 'dexie';
|
|
2
|
+
import { BootstrapConfigData } from '@env-hopper/backend-core';
|
|
3
|
+
import { EnvironmentHistoryItem } from '~/modules/environment/types';
|
|
4
|
+
export declare class EhDb extends Dexie {
|
|
5
|
+
bootstrap: Table<BootstrapConfigData>;
|
|
6
|
+
environmentHistory: Table<EnvironmentHistoryItem>;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare enum dbCacheDbKeys {
|
|
10
|
+
Bootstrap = "bootstrap",
|
|
11
|
+
EnvironmentHistory = "environmentHistory"
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Dexie from "dexie";
|
|
2
|
+
class EhDb extends Dexie {
|
|
3
|
+
constructor() {
|
|
4
|
+
super("envhopper");
|
|
5
|
+
this.version(2).stores({
|
|
6
|
+
bootstrap: "",
|
|
7
|
+
environmentHistory: ""
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
var dbCacheDbKeys = /* @__PURE__ */ ((dbCacheDbKeys2) => {
|
|
12
|
+
dbCacheDbKeys2["Bootstrap"] = "bootstrap";
|
|
13
|
+
dbCacheDbKeys2["EnvironmentHistory"] = "environmentHistory";
|
|
14
|
+
return dbCacheDbKeys2;
|
|
15
|
+
})(dbCacheDbKeys || {});
|
|
16
|
+
export {
|
|
17
|
+
EhDb,
|
|
18
|
+
dbCacheDbKeys
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=EhDb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EhDb.js","sources":["../../../src/userDb/EhDb.ts"],"sourcesContent":["import Dexie from 'dexie'\nimport type { Table } from 'dexie'\nimport type { BootstrapConfigData } from '@env-hopper/backend-core'\nimport type { EnvironmentHistoryItem } from '~/modules/environment/types'\n\nexport class EhDb extends Dexie {\n bootstrap!: Table<BootstrapConfigData>\n environmentHistory!: Table<EnvironmentHistoryItem>\n\n constructor() {\n super('envhopper')\n this.version(2).stores({\n bootstrap: '',\n environmentHistory: '',\n })\n }\n}\n\nexport enum dbCacheDbKeys {\n Bootstrap = 'bootstrap',\n EnvironmentHistory = 'environmentHistory',\n}\n"],"names":["dbCacheDbKeys"],"mappings":";AAKO,MAAM,aAAa,MAAM;AAAA,EAI9B,cAAc;AACZ,UAAM,WAAW;AACjB,SAAK,QAAQ,CAAC,EAAE,OAAO;AAAA,MACrB,WAAW;AAAA,MACX,oBAAoB;AAAA,IAAA,CACrB;AAAA,EACH;AACF;AAEO,IAAK,kCAAAA,mBAAL;AACLA,iBAAA,WAAA,IAAY;AACZA,iBAAA,oBAAA,IAAqB;AAFX,SAAAA;AAAA,GAAA,iBAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvailabilityVariant, AvailiabilityMatrixData } from '@env-hopper/backend-core';
|
|
2
|
+
export interface AvailabilitySearchParams {
|
|
3
|
+
envSlug?: string;
|
|
4
|
+
resourceJumpSlug?: string;
|
|
5
|
+
availabilityMatrix: AvailiabilityMatrixData;
|
|
6
|
+
}
|
|
7
|
+
export interface AvailabilitySlugPair {
|
|
8
|
+
envSlug: string;
|
|
9
|
+
resourceJumpSlug: string;
|
|
10
|
+
availabilityVariant: AvailabilityVariant;
|
|
11
|
+
}
|
|
12
|
+
export declare function findAvailableResources({ resourceJumpSlug, envSlug, availabilityMatrix, }: AvailabilitySearchParams): Array<AvailabilitySlugPair>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function findAvailableResources({
|
|
2
|
+
resourceJumpSlug,
|
|
3
|
+
envSlug,
|
|
4
|
+
availabilityMatrix
|
|
5
|
+
}) {
|
|
6
|
+
var _a;
|
|
7
|
+
const { availabilityVariants, envSlugs, matrix, resourceJumpSlugs } = availabilityMatrix;
|
|
8
|
+
let pairs = [];
|
|
9
|
+
if (envSlug !== void 0) {
|
|
10
|
+
const envIdx = envSlugs.findIndex((slug) => slug === envSlug);
|
|
11
|
+
if (envIdx !== -1) {
|
|
12
|
+
pairs = ((_a = matrix[envIdx]) == null ? void 0 : _a.flatMap((variantIdx, resourceIdx) => {
|
|
13
|
+
const resourceJumpSlugFound = resourceJumpSlugs[resourceIdx];
|
|
14
|
+
const availabilityVariant = availabilityVariants[variantIdx];
|
|
15
|
+
if (resourceJumpSlugFound === void 0 || availabilityVariant === void 0) {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
envSlug,
|
|
21
|
+
resourceJumpSlug: resourceJumpSlugFound,
|
|
22
|
+
availabilityVariant
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
})) || [];
|
|
26
|
+
}
|
|
27
|
+
if (resourceJumpSlug !== void 0) {
|
|
28
|
+
pairs = pairs.filter((pair) => pair.resourceJumpSlug === resourceJumpSlug);
|
|
29
|
+
}
|
|
30
|
+
} else if (resourceJumpSlug !== void 0) {
|
|
31
|
+
const resourceIdx = resourceJumpSlugs.findIndex(
|
|
32
|
+
(resource) => resource === resourceJumpSlug
|
|
33
|
+
);
|
|
34
|
+
if (resourceIdx !== -1) {
|
|
35
|
+
pairs = matrix.flatMap((resourceJumps, envIdx) => {
|
|
36
|
+
const variantIdx = resourceJumps[resourceIdx];
|
|
37
|
+
const foundEnvSlug = envSlugs[envIdx];
|
|
38
|
+
const availabilityVariant = variantIdx !== void 0 ? availabilityVariants[variantIdx] : void 0;
|
|
39
|
+
if (foundEnvSlug == null || availabilityVariant == null) {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
return [
|
|
43
|
+
{
|
|
44
|
+
envSlug: foundEnvSlug,
|
|
45
|
+
resourceJumpSlug,
|
|
46
|
+
availabilityVariant
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return pairs;
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
findAvailableResources
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=availabilityMatrixUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availabilityMatrixUtils.js","sources":["../../../src/util/availabilityMatrixUtils.ts"],"sourcesContent":["import type {\n AvailabilityVariant,\n AvailiabilityMatrixData,\n} from '@env-hopper/backend-core'\n\nexport interface AvailabilitySearchParams {\n envSlug?: string\n resourceJumpSlug?: string\n availabilityMatrix: AvailiabilityMatrixData\n}\n\nexport interface AvailabilitySlugPair {\n envSlug: string\n resourceJumpSlug: string\n availabilityVariant: AvailabilityVariant\n}\n\nexport function findAvailableResources({\n resourceJumpSlug,\n envSlug,\n availabilityMatrix,\n}: AvailabilitySearchParams): Array<AvailabilitySlugPair> {\n const { availabilityVariants, envSlugs, matrix, resourceJumpSlugs } =\n availabilityMatrix\n\n let pairs: Array<AvailabilitySlugPair> = []\n\n if (envSlug !== undefined) {\n const envIdx = envSlugs.findIndex((slug) => slug === envSlug)\n if (envIdx !== -1) {\n pairs =\n matrix[envIdx]?.flatMap((variantIdx, resourceIdx) => {\n const resourceJumpSlugFound = resourceJumpSlugs[resourceIdx]\n const availabilityVariant = availabilityVariants[variantIdx]\n if (\n resourceJumpSlugFound === undefined ||\n availabilityVariant === undefined\n ) {\n return []\n }\n return [\n {\n envSlug,\n resourceJumpSlug: resourceJumpSlugFound,\n availabilityVariant,\n },\n ]\n }) || []\n }\n if (resourceJumpSlug !== undefined) {\n pairs = pairs.filter((pair) => pair.resourceJumpSlug === resourceJumpSlug)\n }\n } else if (resourceJumpSlug !== undefined) {\n const resourceIdx = resourceJumpSlugs.findIndex(\n (resource) => resource === resourceJumpSlug,\n )\n if (resourceIdx !== -1) {\n pairs = matrix.flatMap((resourceJumps, envIdx) => {\n const variantIdx = resourceJumps[resourceIdx]\n const foundEnvSlug = envSlugs[envIdx]\n const availabilityVariant =\n variantIdx !== undefined\n ? availabilityVariants[variantIdx]\n : undefined\n\n if (foundEnvSlug == null || availabilityVariant == null) {\n return []\n }\n return [\n {\n envSlug: foundEnvSlug,\n resourceJumpSlug,\n availabilityVariant,\n },\n ]\n })\n }\n }\n return pairs\n}\n"],"names":[],"mappings":"AAiBO,SAAS,uBAAuB;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AACF,GAA0D;AAJnD;AAKL,QAAM,EAAE,sBAAsB,UAAU,QAAQ,sBAC9C;AAEF,MAAI,QAAqC,CAAA;AAEzC,MAAI,YAAY,QAAW;AACzB,UAAM,SAAS,SAAS,UAAU,CAAC,SAAS,SAAS,OAAO;AAC5D,QAAI,WAAW,IAAI;AACjB,gBACE,YAAO,MAAM,MAAb,mBAAgB,QAAQ,CAAC,YAAY,gBAAgB;AACnD,cAAM,wBAAwB,kBAAkB,WAAW;AAC3D,cAAM,sBAAsB,qBAAqB,UAAU;AAC3D,YACE,0BAA0B,UAC1B,wBAAwB,QACxB;AACA,iBAAO,CAAA;AAAA,QACT;AACA,eAAO;AAAA,UACL;AAAA,YACE;AAAA,YACA,kBAAkB;AAAA,YAClB;AAAA,UAAA;AAAA,QACF;AAAA,MAEJ,OAAM,CAAA;AAAA,IACV;AACA,QAAI,qBAAqB,QAAW;AAClC,cAAQ,MAAM,OAAO,CAAC,SAAS,KAAK,qBAAqB,gBAAgB;AAAA,IAC3E;AAAA,EACF,WAAW,qBAAqB,QAAW;AACzC,UAAM,cAAc,kBAAkB;AAAA,MACpC,CAAC,aAAa,aAAa;AAAA,IAAA;AAE7B,QAAI,gBAAgB,IAAI;AACtB,cAAQ,OAAO,QAAQ,CAAC,eAAe,WAAW;AAChD,cAAM,aAAa,cAAc,WAAW;AAC5C,cAAM,eAAe,SAAS,MAAM;AACpC,cAAM,sBACJ,eAAe,SACX,qBAAqB,UAAU,IAC/B;AAEN,YAAI,gBAAgB,QAAQ,uBAAuB,MAAM;AACvD,iBAAO,CAAA;AAAA,QACT;AACA,eAAO;AAAA,UACL;AAAA,YACE,SAAS;AAAA,YACT;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MAEJ,CAAC;AAAA,IACH;AAAA,EACF;AACA,SAAO;AACT;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EhRouterInitParams } from '~/types/types';
|
|
2
|
+
export declare function createEhRouter({ context, history }: EhRouterInitParams): import('@tanstack/router-core').RouterCore<import('@tanstack/router-core').Route<any, "/", "/", string, "__root__", undefined, {}, import('~/types/types').EhRouterContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, import('~/routeTree.gen').RootRouteChildren, import('~/routeTree.gen').FileRouteTypes>, "never", false, import('@tanstack/history').RouterHistory, Record<string, any>>;
|
|
3
|
+
declare module '@tanstack/react-router' {
|
|
4
|
+
interface Register {
|
|
5
|
+
router: ReturnType<typeof createEhRouter>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRouter } from "@tanstack/react-router";
|
|
2
|
+
import { routeTree } from "../routeTree.gen.js";
|
|
3
|
+
function createEhRouter({ context, history }) {
|
|
4
|
+
return createRouter({
|
|
5
|
+
routeTree,
|
|
6
|
+
context,
|
|
7
|
+
history,
|
|
8
|
+
// Since we're using React Query, we don't want loader calls to ever be stale
|
|
9
|
+
// This will ensure that the loader is always called when the route is preloaded or visited
|
|
10
|
+
defaultPreloadStaleTime: 0
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
createEhRouter
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=createEhRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEhRouter.js","sources":["../../../src/util/createEhRouter.ts"],"sourcesContent":["import { createRouter } from '@tanstack/react-router'\nimport type { EhRouterInitParams } from '~/types/types'\nimport { routeTree } from '~/routeTree.gen'\n\nexport function createEhRouter({ context, history }: EhRouterInitParams) {\n return createRouter({\n routeTree,\n context,\n history,\n // Since we're using React Query, we don't want loader calls to ever be stale\n // This will ensure that the loader is always called when the route is preloaded or visited\n defaultPreloadStaleTime: 0,\n })\n}\n\ndeclare module '@tanstack/react-router' {\n interface Register {\n router: ReturnType<typeof createEhRouter>\n }\n}\n"],"names":[],"mappings":";;AAIO,SAAS,eAAe,EAAE,SAAS,WAA+B;AACvE,SAAO,aAAa;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,yBAAyB;AAAA,EAAA,CAC1B;AACH;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
function escapeRegex(str) {
|
|
4
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5
|
+
}
|
|
6
|
+
function highlightMatches(text, query) {
|
|
7
|
+
if (!query) return text;
|
|
8
|
+
const safeQuery = escapeRegex(query);
|
|
9
|
+
const regex = new RegExp(`(${safeQuery})`, "gi");
|
|
10
|
+
const parts = text.split(regex);
|
|
11
|
+
return /* @__PURE__ */ jsx(Fragment, { children: parts.map((part, idx) => {
|
|
12
|
+
const key = `${part}-${text.indexOf(part, idx)}`;
|
|
13
|
+
return idx % 2 === 1 ? /* @__PURE__ */ jsx("span", { className: "bg-highlight", children: part }, key) : /* @__PURE__ */ jsx(React__default.Fragment, { children: part }, key);
|
|
14
|
+
}) });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
highlightMatches
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=highlightMatches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightMatches.js","sources":["../../../src/util/highlightMatches.tsx"],"sourcesContent":["import React from 'react'\n\n// Escape regex special characters\nfunction escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n}\n\nexport function highlightMatches(text: string, query: string): React.ReactNode {\n if (!query) return text\n\n const safeQuery = escapeRegex(query)\n const regex = new RegExp(`(${safeQuery})`, 'gi')\n const parts = text.split(regex)\n\n return (\n <>\n {parts.map((part, idx) => {\n const key = `${part}-${text.indexOf(part, idx)}`\n return idx % 2 === 1 ? (\n <span key={key} className=\"bg-highlight\">\n {part}\n </span>\n ) : (\n <React.Fragment key={key}>{part}</React.Fragment>\n )\n })}\n </>\n )\n}\n"],"names":["React"],"mappings":";;AAGA,SAAS,YAAY,KAAqB;AACxC,SAAO,IAAI,QAAQ,uBAAuB,MAAM;AAClD;AAEO,SAAS,iBAAiB,MAAc,OAAgC;AAC7E,MAAI,CAAC,MAAO,QAAO;AAEnB,QAAM,YAAY,YAAY,KAAK;AACnC,QAAM,QAAQ,IAAI,OAAO,IAAI,SAAS,KAAK,IAAI;AAC/C,QAAM,QAAQ,KAAK,MAAM,KAAK;AAE9B,SACE,oBAAA,UAAA,EACG,UAAA,MAAM,IAAI,CAAC,MAAM,QAAQ;AACxB,UAAM,MAAM,GAAG,IAAI,IAAI,KAAK,QAAQ,MAAM,GAAG,CAAC;AAC9C,WAAO,MAAM,MAAM,IACjB,oBAAC,UAAe,WAAU,gBACvB,UAAA,KAAA,GADQ,GAEX,IAEA,oBAACA,eAAM,UAAN,EAA0B,kBAAN,GAAW;AAAA,EAEpC,CAAC,EAAA,CACH;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactQueryUtils.js","sources":["../../../src/util/reactQueryUtils.ts"],"sourcesContent":["import type { TRPCRouter } from '@env-hopper/backend-core'\nimport type { TRPCClient } from '@trpc/client'\nimport type { EhReactQueryMeta } from '~/types/tanstackQuery'\n\nexport function getTrpcFromMeta(ctx: {\n meta?: EhReactQueryMeta\n}): TRPCClient<TRPCRouter> {\n if (!ctx.meta) {\n throw new Error('Missing TRPC client in context of react-query')\n }\n return ctx.meta.trpcClient\n}\n"],"names":[],"mappings":"AAIO,SAAS,gBAAgB,KAEL;AACzB,MAAI,CAAC,IAAI,MAAM;AACb,UAAM,IAAI,MAAM,+CAA+C;AAAA,EACjE;AACA,SAAO,IAAI,KAAK;AAClB;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ToOptions } from '@tanstack/react-router';
|
|
2
|
+
import { EhUrlParams } from '~/types/ehTypes';
|
|
3
|
+
export declare function escapeAppId(appId: string): string;
|
|
4
|
+
export declare function escapeSubValue(subValue: string): string;
|
|
5
|
+
export declare function escapeEnvId(envId: string): string;
|
|
6
|
+
export declare function getEhToOptions({ appId, envId, subValue, }: EhUrlParams): ToOptions;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function escapeAppId(appId) {
|
|
2
|
+
return encodeURIComponent(appId.replace(/\/home$/, "").replace("/", "@"));
|
|
3
|
+
}
|
|
4
|
+
function escapeSubValue(subValue) {
|
|
5
|
+
return encodeURIComponent(subValue);
|
|
6
|
+
}
|
|
7
|
+
function escapeEnvId(envId) {
|
|
8
|
+
return encodeURIComponent(envId);
|
|
9
|
+
}
|
|
10
|
+
function getEhToOptions({
|
|
11
|
+
appId,
|
|
12
|
+
envId,
|
|
13
|
+
subValue
|
|
14
|
+
}) {
|
|
15
|
+
if (appId && envId && subValue) {
|
|
16
|
+
return {
|
|
17
|
+
from: "/",
|
|
18
|
+
to: "/env/$envSlug/app/$appSlug/sub/$subValue",
|
|
19
|
+
params: {
|
|
20
|
+
appSlug: escapeAppId(appId),
|
|
21
|
+
envSlug: escapeEnvId(envId),
|
|
22
|
+
subValue: escapeSubValue(subValue)
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
} else if (appId && envId) {
|
|
26
|
+
return {
|
|
27
|
+
from: "/",
|
|
28
|
+
to: "/env/$envSlug/app/$appSlug",
|
|
29
|
+
params: {
|
|
30
|
+
appSlug: escapeAppId(appId),
|
|
31
|
+
envSlug: escapeEnvId(envId)
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
} else if (appId && subValue) {
|
|
35
|
+
return {
|
|
36
|
+
from: "/",
|
|
37
|
+
to: "/app/$appSlug/sub/$subValue",
|
|
38
|
+
params: {
|
|
39
|
+
appSlug: escapeAppId(appId),
|
|
40
|
+
subValue: escapeSubValue(subValue)
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
} else if (appId) {
|
|
44
|
+
return {
|
|
45
|
+
from: "/",
|
|
46
|
+
to: "/app/$appSlug",
|
|
47
|
+
params: {
|
|
48
|
+
appSlug: escapeAppId(appId)
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
} else if (envId) {
|
|
52
|
+
return {
|
|
53
|
+
from: "/",
|
|
54
|
+
to: "/env/$envSlug",
|
|
55
|
+
params: {
|
|
56
|
+
envSlug: escapeEnvId(envId)
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
} else {
|
|
60
|
+
return {
|
|
61
|
+
from: "/",
|
|
62
|
+
to: "/"
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
escapeAppId,
|
|
68
|
+
escapeEnvId,
|
|
69
|
+
escapeSubValue,
|
|
70
|
+
getEhToOptions
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=route-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-utils.js","sources":["../../../src/util/route-utils.ts"],"sourcesContent":["import type { ToOptions } from '@tanstack/react-router'\nimport type { EhUrlParams } from '~/types/ehTypes'\n\nexport function escapeAppId(appId: string) {\n return encodeURIComponent(appId.replace(/\\/home$/, '').replace('/', '@'))\n}\n\nexport function escapeSubValue(subValue: string) {\n return encodeURIComponent(subValue)\n}\n\nexport function escapeEnvId(envId: string) {\n return encodeURIComponent(envId)\n}\n\nexport function getEhToOptions({\n appId,\n envId,\n subValue,\n}: EhUrlParams): ToOptions {\n if (appId && envId && subValue) {\n return {\n from: '/',\n to: '/env/$envSlug/app/$appSlug/sub/$subValue',\n params: {\n appSlug: escapeAppId(appId),\n envSlug: escapeEnvId(envId),\n subValue: escapeSubValue(subValue),\n },\n }\n } else if (appId && envId) {\n return {\n from: '/',\n to: '/env/$envSlug/app/$appSlug',\n params: {\n appSlug: escapeAppId(appId),\n envSlug: escapeEnvId(envId),\n },\n }\n } else if (appId && subValue) {\n return {\n from: '/',\n to: '/app/$appSlug/sub/$subValue',\n params: {\n appSlug: escapeAppId(appId),\n subValue: escapeSubValue(subValue),\n },\n }\n } else if (appId) {\n return {\n from: '/',\n to: '/app/$appSlug',\n params: {\n appSlug: escapeAppId(appId),\n },\n }\n } else if (envId) {\n return {\n from: '/',\n to: '/env/$envSlug',\n params: {\n envSlug: escapeEnvId(envId),\n },\n }\n } else {\n return {\n from: '/',\n to: '/',\n }\n }\n}\n"],"names":[],"mappings":"AAGO,SAAS,YAAY,OAAe;AACzC,SAAO,mBAAmB,MAAM,QAAQ,WAAW,EAAE,EAAE,QAAQ,KAAK,GAAG,CAAC;AAC1E;AAEO,SAAS,eAAe,UAAkB;AAC/C,SAAO,mBAAmB,QAAQ;AACpC;AAEO,SAAS,YAAY,OAAe;AACzC,SAAO,mBAAmB,KAAK;AACjC;AAEO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,MAAI,SAAS,SAAS,UAAU;AAC9B,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,SAAS,YAAY,KAAK;AAAA,QAC1B,SAAS,YAAY,KAAK;AAAA,QAC1B,UAAU,eAAe,QAAQ;AAAA,MAAA;AAAA,IACnC;AAAA,EAEJ,WAAW,SAAS,OAAO;AACzB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,SAAS,YAAY,KAAK;AAAA,QAC1B,SAAS,YAAY,KAAK;AAAA,MAAA;AAAA,IAC5B;AAAA,EAEJ,WAAW,SAAS,UAAU;AAC5B,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,SAAS,YAAY,KAAK;AAAA,QAC1B,UAAU,eAAe,QAAQ;AAAA,MAAA;AAAA,IACnC;AAAA,EAEJ,WAAW,OAAO;AAChB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,SAAS,YAAY,KAAK;AAAA,MAAA;AAAA,IAC5B;AAAA,EAEJ,WAAW,OAAO;AAChB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,QAAQ;AAAA,QACN,SAAS,YAAY,KAAK;AAAA,MAAA;AAAA,IAC5B;AAAA,EAEJ,OAAO;AACL,WAAO;AAAA,MACL,MAAM;AAAA,MACN,IAAI;AAAA,IAAA;AAAA,EAER;AACF;"}
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/robots.txt
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@env-hopper/frontend-core",
|
|
3
|
+
"version": "2.0.1-alpha",
|
|
4
|
+
"description": "Frontend core library for Env Hopper",
|
|
5
|
+
"homepage": "https://github.com/lislon/env-hopper",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/lislon/env-hopper.git",
|
|
9
|
+
"directory": "packages/frontend-core"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Igor Golovin",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"my-custom-condition": "./src/index.tsx",
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/esm/index.d.ts",
|
|
20
|
+
"default": "./dist/esm/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"module": "dist/esm/index.js",
|
|
26
|
+
"types": "dist/esm/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"src"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
33
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
34
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
35
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
36
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
37
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
38
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
39
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
40
|
+
"@tanstack/query-sync-storage-persister": "^5.80.6",
|
|
41
|
+
"@tanstack/react-query": "^5.80.3",
|
|
42
|
+
"@tanstack/react-router": "^1.131.27",
|
|
43
|
+
"@tanstack/react-virtual": "^3.13.0",
|
|
44
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
45
|
+
"@trpc/client": "^11.4.2",
|
|
46
|
+
"@trpc/server": "^11.4.2",
|
|
47
|
+
"@trpc/tanstack-react-query": "^11.4.2",
|
|
48
|
+
"autoprefixer": "^10.4.21",
|
|
49
|
+
"autosuggest-highlight": "^3.3.4",
|
|
50
|
+
"class-variance-authority": "^0.7.1",
|
|
51
|
+
"classnames": "^2.5.1",
|
|
52
|
+
"clsx": "^2.1.1",
|
|
53
|
+
"dexie": "^4.0.11",
|
|
54
|
+
"dexie-react-hooks": "^1.1.7",
|
|
55
|
+
"downshift": "^9.0.6",
|
|
56
|
+
"flexsearch": "^0.8.204",
|
|
57
|
+
"framer-motion": "^12.23.0",
|
|
58
|
+
"http-errors": "^2.0.0",
|
|
59
|
+
"lucide-react": "^0.523.0",
|
|
60
|
+
"next-themes": "^0.4.6",
|
|
61
|
+
"postcss": "^8.5.3",
|
|
62
|
+
"radashi": "12.5.0-beta.6d5c035",
|
|
63
|
+
"react": "19.1.0",
|
|
64
|
+
"react-dom": "19.1.0",
|
|
65
|
+
"react-error-boundary": "^6.0.0",
|
|
66
|
+
"react-idle-timer": "^5.7.2",
|
|
67
|
+
"react-router-dom": "7.0.2",
|
|
68
|
+
"slate": "^0.117.0",
|
|
69
|
+
"slate-react": "^0.117.1",
|
|
70
|
+
"sleep-promise": "^9.1.0",
|
|
71
|
+
"tailwind-merge": "^3.3.1",
|
|
72
|
+
"tailwindcss": "^4.1.7",
|
|
73
|
+
"tslib": "^2.3.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@tailwindcss/vite": "^4.0.5",
|
|
77
|
+
"@tanstack/react-router-devtools": "1.131.27",
|
|
78
|
+
"@tanstack/router-plugin": "1.131.27",
|
|
79
|
+
"@testing-library/react": "^16.2.0",
|
|
80
|
+
"@types/react": "^19.0.8",
|
|
81
|
+
"@types/react-dom": "^19.1.6",
|
|
82
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
83
|
+
"@vitest/ui": "3.2.2",
|
|
84
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
85
|
+
"tsc-alias": "^1.8.16",
|
|
86
|
+
"tw-animate-css": "^1.3.5",
|
|
87
|
+
"vite": "^6.3.5",
|
|
88
|
+
"vite-plugin-pwa": "^1.0.0",
|
|
89
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
90
|
+
"vitest": "3.2.2",
|
|
91
|
+
"@env-hopper/backend-core": "2.0.1-alpha",
|
|
92
|
+
"@env-hopper/shared-core": "2.0.1-alpha"
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"react": "19.1.0",
|
|
96
|
+
"react-dom": "19.1.0",
|
|
97
|
+
"tailwindcss": "^4.1.7",
|
|
98
|
+
"vite": "^6.3.5",
|
|
99
|
+
"vite-plugin-svgr": "^4.2.0"
|
|
100
|
+
},
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "vite build",
|
|
103
|
+
"clean": "premove ./dist ./coverage ./dist-ts",
|
|
104
|
+
"compile": "tsc --build && tsc-alias",
|
|
105
|
+
"dev": "vite",
|
|
106
|
+
"test:eslint": "eslint ./src",
|
|
107
|
+
"test:unit": "vitest",
|
|
108
|
+
"test:unit:dev": "pnpm run test:unit --watch"
|
|
109
|
+
}
|
|
110
|
+
}
|