diff --git a/packages/hoppscotch-app/components/graphql/RequestOptions.vue b/packages/hoppscotch-app/components/graphql/RequestOptions.vue index 77c751e3..5da0357d 100644 --- a/packages/hoppscotch-app/components/graphql/RequestOptions.vue +++ b/packages/hoppscotch-app/components/graphql/RequestOptions.vue @@ -307,9 +307,7 @@ import { makeGQLHistoryEntry, addGraphqlHistoryEntry } from "~/newstore/history" import { logHoppRequestRunToAnalytics } from "~/helpers/fb/analytics" import { getCurrentStrategyID } from "~/helpers/network" import { makeGQLRequest } from "~/helpers/types/HoppGQLRequest" -import { useNewCodemirror as useCodemirror } from "~/helpers/editor/codemirror" -import "codemirror/mode/javascript/javascript" -import "~/helpers/editor/modes/graphql" +import { useCodemirror } from "~/helpers/editor/codemirror" import jsonLinter from "~/helpers/editor/linting/json" import { createGQLQueryLinter } from "~/helpers/editor/linting/gqlQuery" import queryCompleter from "~/helpers/editor/completion/gqlQuery" diff --git a/packages/hoppscotch-app/components/graphql/Sidebar.vue b/packages/hoppscotch-app/components/graphql/Sidebar.vue index a23186cd..78e8351e 100644 --- a/packages/hoppscotch-app/components/graphql/Sidebar.vue +++ b/packages/hoppscotch-app/components/graphql/Sidebar.vue @@ -252,7 +252,6 @@ import { setGQLURL, setGQLVariables, } from "~/newstore/GQLSession" -import "~/helpers/editor/modes/graphql" function isTextFoundInGraphqlFieldObject( text: string, diff --git a/packages/hoppscotch-app/components/http/ImportCurl.vue b/packages/hoppscotch-app/components/http/ImportCurl.vue index ba7a2cc5..393d1868 100644 --- a/packages/hoppscotch-app/components/http/ImportCurl.vue +++ b/packages/hoppscotch-app/components/http/ImportCurl.vue @@ -30,7 +30,6 @@ import { makeRESTRequest, } from "~/helpers/types/HoppRESTRequest" import { setRESTRequest } from "~/newstore/RESTSession" -import "codemirror/mode/shell/shell" const { $toast, diff --git a/packages/hoppscotch-app/components/http/Parameters.vue b/packages/hoppscotch-app/components/http/Parameters.vue index a6cc2226..0135a5a3 100644 --- a/packages/hoppscotch-app/components/http/Parameters.vue +++ b/packages/hoppscotch-app/components/http/Parameters.vue @@ -175,7 +175,6 @@ import { deleteAllRESTParams, setRESTParams, } from "~/newstore/RESTSession" -import "codemirror/mode/yaml/yaml" const { $toast, diff --git a/packages/hoppscotch-app/components/http/PreRequestScript.vue b/packages/hoppscotch-app/components/http/PreRequestScript.vue index 2d75b9f2..50d153ee 100644 --- a/packages/hoppscotch-app/components/http/PreRequestScript.vue +++ b/packages/hoppscotch-app/components/http/PreRequestScript.vue @@ -85,8 +85,7 @@ import { reactive, ref, useContext } from "@nuxtjs/composition-api" import { usePreRequestScript } from "~/newstore/RESTSession" import snippets from "~/helpers/preRequestScriptSnippets" -import "codemirror/mode/javascript/javascript" -import { useNewCodemirror as useCodemirror } from "~/helpers/editor/codemirror" +import { useCodemirror } from "~/helpers/editor/codemirror" import linter from "~/helpers/editor/linting/preRequest" import completer from "~/helpers/editor/completion/preRequest" diff --git a/packages/hoppscotch-app/components/http/RawBody.vue b/packages/hoppscotch-app/components/http/RawBody.vue index b11ef8dc..b5f33503 100644 --- a/packages/hoppscotch-app/components/http/RawBody.vue +++ b/packages/hoppscotch-app/components/http/RawBody.vue @@ -72,11 +72,6 @@ import { useCodemirror } from "~/helpers/editor/codemirror" import { getEditorLangForMimeType } from "~/helpers/editorutils" import { pluckRef } from "~/helpers/utils/composables" import { useRESTRequestBody } from "~/newstore/RESTSession" -import "codemirror/mode/yaml/yaml" -import "codemirror/mode/xml/xml" -import "codemirror/mode/css/css" -import "codemirror/mode/htmlmixed/htmlmixed" -import "codemirror/mode/javascript/javascript" const props = defineProps<{ contentType: string diff --git a/packages/hoppscotch-app/components/http/Tests.vue b/packages/hoppscotch-app/components/http/Tests.vue index 5f8d06b0..d51d2a0b 100644 --- a/packages/hoppscotch-app/components/http/Tests.vue +++ b/packages/hoppscotch-app/components/http/Tests.vue @@ -85,7 +85,6 @@ import { reactive, ref, useContext } from "@nuxtjs/composition-api" import { useTestScript } from "~/newstore/RESTSession" import testSnippets from "~/helpers/testSnippets" -import "codemirror/mode/javascript/javascript" import { useCodemirror } from "~/helpers/editor/codemirror" import linter from "~/helpers/editor/linting/testScript" import completer from "~/helpers/editor/completion/testScript" diff --git a/packages/hoppscotch-app/components/lenses/renderers/HTMLLensRenderer.vue b/packages/hoppscotch-app/components/lenses/renderers/HTMLLensRenderer.vue index 87178b1d..c7f2a251 100644 --- a/packages/hoppscotch-app/components/lenses/renderers/HTMLLensRenderer.vue +++ b/packages/hoppscotch-app/components/lenses/renderers/HTMLLensRenderer.vue @@ -66,10 +66,6 @@ import { computed, ref, useContext, reactive } from "@nuxtjs/composition-api" import { useCodemirror } from "~/helpers/editor/codemirror" import { copyToClipboard } from "~/helpers/utils/clipboard" -import "codemirror/mode/xml/xml" -import "codemirror/mode/javascript/javascript" -import "codemirror/mode/css/css" -import "codemirror/mode/htmlmixed/htmlmixed" import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse" const props = defineProps<{ diff --git a/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue b/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue index 5551fa66..994b3e18 100644 --- a/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue +++ b/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue @@ -145,9 +145,8 @@