diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vue index 42dcb123..427387d3 100644 --- a/packages/hoppscotch-app/components/collections/ImportExport.vue +++ b/packages/hoppscotch-app/components/collections/ImportExport.vue @@ -42,7 +42,7 @@ @click.native=" () => { readCollectionGist() - $refs.options.tippy().hide() + options.tippy().hide() } " /> @@ -50,10 +50,10 @@ v-tippy="{ theme: 'tooltip' }" :title=" !currentUser - ? $t('export.require_github') + ? `${t('export.require_github')}` : currentUser.provider !== 'github.com' - ? $t('export.require_github') - : null + ? `${t('export.require_github')}` + : undefined " > @@ -177,394 +177,484 @@ - diff --git a/packages/hoppscotch-app/helpers/utils/composables.ts b/packages/hoppscotch-app/helpers/utils/composables.ts index 2018e74a..0950809f 100644 --- a/packages/hoppscotch-app/helpers/utils/composables.ts +++ b/packages/hoppscotch-app/helpers/utils/composables.ts @@ -162,6 +162,11 @@ export function useColorMode() { return $colorMode } +export function useAxios() { + const { $axios } = useContext() + return $axios +} + export function usePolled( pollDurationMS: number, pollFunc: (stopPolling: () => void) => T diff --git a/packages/hoppscotch-app/layouts/default.vue b/packages/hoppscotch-app/layouts/default.vue index ed4c3127..b24c82f4 100644 --- a/packages/hoppscotch-app/layouts/default.vue +++ b/packages/hoppscotch-app/layouts/default.vue @@ -151,6 +151,7 @@ function defineJumpActions() { export default defineComponent({ components: { Splitpanes, Pane }, setup() { + console.log(useContext()) appLayout() hookKeybindingsListener() diff --git a/packages/hoppscotch-app/tsconfig.json b/packages/hoppscotch-app/tsconfig.json index 60e5bb6f..eb87b622 100644 --- a/packages/hoppscotch-app/tsconfig.json +++ b/packages/hoppscotch-app/tsconfig.json @@ -21,7 +21,8 @@ "@nuxtjs/i18n", "@nuxtjs/toast", "@nuxtjs/sentry", - "@nuxtjs/color-mode" + "@nuxtjs/color-mode", + "@nuxtjs/axios" ] }, "exclude": ["node_modules", ".nuxt", "dist"],