chore: remove unwanted logs & use new gql generation for selfhosted-web (#65)
This commit is contained in:
@@ -352,15 +352,11 @@ const newSendRequest = async () => {
|
|||||||
|
|
||||||
ensureMethodInEndpoint()
|
ensureMethodInEndpoint()
|
||||||
|
|
||||||
console.log("Sending request", newEndpoint.value)
|
|
||||||
|
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|
||||||
// Double calling is because the function returns a TaskEither than should be executed
|
// Double calling is because the function returns a TaskEither than should be executed
|
||||||
const streamResult = await runRESTRequest$(tab)()
|
const streamResult = await runRESTRequest$(tab)()
|
||||||
|
|
||||||
console.log("Stream result", streamResult)
|
|
||||||
|
|
||||||
if (isRight(streamResult)) {
|
if (isRight(streamResult)) {
|
||||||
subscribeToStream(
|
subscribeToStream(
|
||||||
streamResult.right,
|
streamResult.right,
|
||||||
@@ -449,7 +445,6 @@ const clearContent = () => {
|
|||||||
|
|
||||||
const updateRESTResponse = (response: HoppRESTResponse | null) => {
|
const updateRESTResponse = (response: HoppRESTResponse | null) => {
|
||||||
tab.value.response = response
|
tab.value.response = response
|
||||||
console.log("Updating response", response)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const copyLinkIcon = refAutoReset<
|
const copyLinkIcon = refAutoReset<
|
||||||
|
|||||||
@@ -124,8 +124,6 @@ export function getFoldersByPath(
|
|||||||
// path will be like this "0/0/1" these are the indexes of the folders
|
// path will be like this "0/0/1" these are the indexes of the folders
|
||||||
const pathArray = path.split("/").map((index) => parseInt(index))
|
const pathArray = path.split("/").map((index) => parseInt(index))
|
||||||
|
|
||||||
console.log(pathArray, collections[pathArray[0]])
|
|
||||||
|
|
||||||
let currentCollection = collections[pathArray[0]]
|
let currentCollection = collections[pathArray[0]]
|
||||||
|
|
||||||
if (pathArray.length === 1) {
|
if (pathArray.length === 1) {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
schema:
|
schema: "../../gql-gen/*.gql"
|
||||||
- ${VITE_BACKEND_GQL_URL}
|
|
||||||
generates:
|
generates:
|
||||||
src/api/generated/graphql.ts:
|
src/api/generated/graphql.ts:
|
||||||
documents: "src/**/*.graphql"
|
documents: "src/**/*.graphql"
|
||||||
@@ -14,6 +13,6 @@ generates:
|
|||||||
- typed-document-node
|
- typed-document-node
|
||||||
- typescript-urql-graphcache
|
- typescript-urql-graphcache
|
||||||
|
|
||||||
src/helpers/backend/backend-schema.json:
|
src/api/generated/backend-schema.json:
|
||||||
plugins:
|
plugins:
|
||||||
- urql-introspection
|
- urql-introspection
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
"do-lint": "pnpm run prod-lint",
|
"do-lint": "pnpm run prod-lint",
|
||||||
"do-typecheck": "pnpm run lint",
|
"do-typecheck": "pnpm run lint",
|
||||||
"do-lintfix": "pnpm run lintfix",
|
"do-lintfix": "pnpm run lintfix",
|
||||||
"gql-codegen": "graphql-codegen --require dotenv/config --config gql-codegen.yml dotenv_config_path=\"../../.env\""
|
"gql-codegen": "graphql-codegen --require dotenv/config --config gql-codegen.yml dotenv_config_path=\"../../.env\"",
|
||||||
|
"postinstall": "pnpm run gql-codegen"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hoppscotch/common": "workspace:^",
|
"@hoppscotch/common": "workspace:^",
|
||||||
|
|||||||
Reference in New Issue
Block a user