diff --git a/packages/hoppscotch-app/components/http/RequestOptions.vue b/packages/hoppscotch-app/components/http/RequestOptions.vue new file mode 100644 index 000000000..7082eea3b --- /dev/null +++ b/packages/hoppscotch-app/components/http/RequestOptions.vue @@ -0,0 +1,76 @@ + + + diff --git a/packages/hoppscotch-app/components/http/Sidebar.vue b/packages/hoppscotch-app/components/http/Sidebar.vue new file mode 100644 index 000000000..f083e3ee0 --- /dev/null +++ b/packages/hoppscotch-app/components/http/Sidebar.vue @@ -0,0 +1,22 @@ + diff --git a/packages/hoppscotch-app/pages/index.vue b/packages/hoppscotch-app/pages/index.vue index 97f8a3a1f..5601c6b61 100644 --- a/packages/hoppscotch-app/pages/index.vue +++ b/packages/hoppscotch-app/pages/index.vue @@ -2,81 +2,13 @@ @@ -92,7 +24,6 @@ import { useContext, watch, } from "@nuxtjs/composition-api" -import { map } from "rxjs/operators" import { Subscription } from "rxjs" import isEqual from "lodash/isEqual" import { @@ -101,21 +32,16 @@ import { safelyExtractRESTRequest, } from "@hoppscotch/data" import { - restActiveParamsCount$, - restActiveHeadersCount$, getRESTRequest, setRESTRequest, setRESTAuth, restAuth$, - useTestScript, - usePreRequestScript, getDefaultRESTRequest, } from "~/newstore/RESTSession" import { translateExtURLParams } from "~/helpers/RESTExtURLParams" import { pluckRef, useI18n, - useReadonlyStream, useStream, useToast, } from "~/helpers/utils/composables" @@ -197,9 +123,6 @@ export default defineComponent({ setup() { const requestForSync = ref(null) - const testScript = useTestScript() - const preRequestScript = usePreRequestScript() - const confirmSync = ref(false) const toast = useToast() @@ -238,30 +161,10 @@ export default defineComponent({ bindRequestToURLParams() return { - newActiveParamsCount$: useReadonlyStream( - restActiveParamsCount$.pipe( - map((e) => { - if (e === 0) return null - return `${e}` - }) - ), - null - ), - newActiveHeadersCount$: useReadonlyStream( - restActiveHeadersCount$.pipe( - map((e) => { - if (e === 0) return null - return `${e}` - }) - ), - null - ), confirmSync, syncRequest, oAuthURL, requestForSync, - testScript, - preRequestScript, } }, })