diff --git a/packages/hoppscotch-common/package.json b/packages/hoppscotch-common/package.json index 51ff3b13..29adfba0 100644 --- a/packages/hoppscotch-common/package.json +++ b/packages/hoppscotch-common/package.json @@ -34,6 +34,7 @@ "@codemirror/search": "6.5.6", "@codemirror/state": "6.4.1", "@codemirror/view": "6.25.1", + "@guolao/vue-monaco-editor": "1.5.5", "@hoppscotch/codemirror-lang-graphql": "workspace:^", "@hoppscotch/data": "workspace:^", "@hoppscotch/httpsnippet": "3.0.9", @@ -79,6 +80,7 @@ "lossless-json": "4.0.2", "markdown-it": "14.1.0", "minisearch": "7.1.0", + "monaco-editor": "0.52.2", "nprogress": "0.2.0", "paho-mqtt": "1.1.0", "path": "0.12.7", diff --git a/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue b/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue new file mode 100644 index 00000000..0545d564 --- /dev/null +++ b/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue @@ -0,0 +1,196 @@ + + + diff --git a/packages/hoppscotch-common/src/components/http/PreRequestScript.vue b/packages/hoppscotch-common/src/components/http/PreRequestScript.vue index 0cf1caaf..fba723da 100644 --- a/packages/hoppscotch-common/src/components/http/PreRequestScript.vue +++ b/packages/hoppscotch-common/src/components/http/PreRequestScript.vue @@ -38,7 +38,18 @@
-
+ + +