Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: github flavored codemirror light theme
liyasthomasa5197ee54494
diff --git a/components/smart/CodeMirror.vue b/components/smart/CodeMirror.vueindex 2280af842..58d8997fd 100644--- a/components/smart/CodeMirror.vue+++ b/components/smart/CodeMirror.vue@@ -14,12 +14,13 @@ const props = withDefaults(value: stringmode: stringplaceholder?: string- wrap: boolean+ wrap?: booleanlinter: LinterDefinition | null}>(),{- linter: null as any,placeholder: "",+ wrap: true,+ linter: null as any,})diff --git a/helpers/editor/codemirror.ts b/helpers/editor/codemirror.tsindex fc7c1f976..6681f792a 100644--- a/helpers/editor/codemirror.ts+++ b/helpers/editor/codemirror.ts@@ -1,6 +1,6 @@import CodeMirror from "codemirror"-import "codemirror/theme/base16-light.css"+import "codemirror-github-light/lib/codemirror-github-light-theme.css"import "codemirror/theme/base16-dark.css"import "codemirror/theme/3024-night.css"@@ -104,7 +104,7 @@ export function useCodemirror(case "system":return "default"case "light":- return "base16-light"+ return "github-light"case "dark":return "base16-dark"case "black":diff --git a/package-lock.json b/package-lock.jsonindex a456b63a0..bff973671 100644--- a/package-lock.json+++ b/package-lock.json@@ -19,6 +19,7 @@"acorn": "^8.4.1","acorn-walk": "^8.1.1","codemirror": "^5.62.3",+ "codemirror-github-light": "^0.4.2","core-js": "^3.16.4","esprima": "^4.0.1","firebase": "^9.0.0",@@ -13107,6 +13108,11 @@"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.62.3.tgz","integrity": "sha512-zZAyOfN8TU67ngqrxhOgtkSAGV9jSpN1snbl8elPtnh9Z5A11daR405+dhLzLnuXrwX0WCShWlybxPN3QC/9Pg=="},+ "node_modules/codemirror-github-light": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/codemirror-github-light/-/codemirror-github-light-0.4.2.tgz",+ "integrity": "sha1-iUl8JJWEipRaLNIaqj5Wa4d7FDU="+ },"node_modules/collect-v8-coverage": {"version": "1.0.1","resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz",@@ -46127,6 +46133,11 @@"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.62.3.tgz","integrity": "sha512-zZAyOfN8TU67ngqrxhOgtkSAGV9jSpN1snbl8elPtnh9Z5A11daR405+dhLzLnuXrwX0WCShWlybxPN3QC/9Pg=="},+ "codemirror-github-light": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/codemirror-github-light/-/codemirror-github-light-0.4.2.tgz",+ "integrity": "sha1-iUl8JJWEipRaLNIaqj5Wa4d7FDU="+ },"collect-v8-coverage": {"version": "1.0.1","resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz",diff --git a/package.json b/package.jsonindex 45a291014..1e684e937 100644--- a/package.json+++ b/package.json@@ -35,6 +35,7 @@"acorn": "^8.4.1","acorn-walk": "^8.1.1","codemirror": "^5.62.3",+ "codemirror-github-light": "^0.4.2","core-js": "^3.16.4","esprima": "^4.0.1","firebase": "^9.0.0",