diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index 9d3de1d34..ba0a9fb7d 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -186,8 +186,8 @@ declare module '@vue/runtime-core' { SmartTab: typeof import('./../../hoppscotch-ui/src/components/smart/Tab.vue')['default'] SmartTabs: typeof import('./../../hoppscotch-ui/src/components/smart/Tabs.vue')['default'] SmartToggle: typeof import('./../../hoppscotch-ui/src/components/smart/Toggle.vue')['default'] - SmartTree: typeof import('./components/smart/Tree.vue')['default'] - SmartTreeBranch: typeof import('./components/smart/TreeBranch.vue')['default'] + SmartTree: typeof import('./../../hoppscotch-ui/src/components/smart/Tree.vue')['default'] + SmartTreeBranch: typeof import('./../../hoppscotch-ui/src/components/smart/TreeBranch.vue')['default'] SmartWindow: typeof import('./../../hoppscotch-ui/src/components/smart/Window.vue')['default'] SmartWindows: typeof import('./../../hoppscotch-ui/src/components/smart/Windows.vue')['default'] TabPrimary: typeof import('./components/tab/Primary.vue')['default'] diff --git a/packages/hoppscotch-common/src/components/collections/MyCollections.vue b/packages/hoppscotch-common/src/components/collections/MyCollections.vue index 86b3d4b9f..9ba7b991f 100644 --- a/packages/hoppscotch-common/src/components/collections/MyCollections.vue +++ b/packages/hoppscotch-common/src/components/collections/MyCollections.vue @@ -32,7 +32,7 @@
- + - +
@@ -303,7 +303,10 @@ import IconHelpCircle from "~icons/lucide/help-circle" import { HoppCollection, HoppRESTRequest } from "@hoppscotch/data" import { computed, PropType, Ref, toRef } from "vue" import { GetMyTeamsQuery } from "~/helpers/backend/graphql" -import { ChildrenResult, SmartTreeAdapter } from "~/helpers/treeAdapter" +import { + ChildrenResult, + SmartTreeAdapter, +} from "@hoppscotch/ui/dist/helpers/treeAdapter" import { useI18n } from "@composables/i18n" import { useColorMode } from "@composables/theming" import { pipe } from "fp-ts/function" diff --git a/packages/hoppscotch-common/src/components/collections/TeamCollections.vue b/packages/hoppscotch-common/src/components/collections/TeamCollections.vue index 1168ce547..70fa8b40b 100644 --- a/packages/hoppscotch-common/src/components/collections/TeamCollections.vue +++ b/packages/hoppscotch-common/src/components/collections/TeamCollections.vue @@ -46,7 +46,7 @@
- + - +
@@ -326,7 +326,10 @@ import { useI18n } from "@composables/i18n" import { useColorMode } from "@composables/theming" import { TeamCollection } from "~/helpers/teams/TeamCollection" import { TeamRequest } from "~/helpers/teams/TeamRequest" -import { ChildrenResult, SmartTreeAdapter } from "~/helpers/treeAdapter" +import { + ChildrenResult, + SmartTreeAdapter, +} from "@hoppscotch/ui/dist/helpers/treeAdapter" import { cloneDeep } from "lodash-es" import { HoppRESTRequest } from "@hoppscotch/data" import { pipe } from "fp-ts/function" diff --git a/packages/hoppscotch-ui/package.json b/packages/hoppscotch-ui/package.json index 784a5c013..87cba0b60 100644 --- a/packages/hoppscotch-ui/package.json +++ b/packages/hoppscotch-ui/package.json @@ -97,6 +97,7 @@ "main": "./dist/index.es.js", "exports": { ".": "./dist/index.es.js", + "./helpers/treeAdapter.ts": "./src/helpers/treeAdapter.ts", "./style.css": "./dist/style.css" }, "types": "./dist/index.d.ts" diff --git a/packages/hoppscotch-common/src/components/smart/Tree.vue b/packages/hoppscotch-ui/src/components/smart/Tree.vue similarity index 83% rename from packages/hoppscotch-common/src/components/smart/Tree.vue rename to packages/hoppscotch-ui/src/components/smart/Tree.vue index 781459254..80adcbc36 100644 --- a/packages/hoppscotch-common/src/components/smart/Tree.vue +++ b/packages/hoppscotch-ui/src/components/smart/Tree.vue @@ -25,6 +25,7 @@ :highlight-children="(id:string|null) => highlightChildren(id)" > + @@ -35,8 +36,8 @@ v-else-if="rootNodes.status === 'loading'" class="flex flex-col items-center justify-center flex-1 p-4" > - - {{ t("state.loading") }} + + {{ t?.("state.loading") }}