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
Changed pre request script field to use the ace-editor
Andrew Bastin050a53af0d97
diff --git a/pages/index.vue b/pages/index.vueindex ca978d813..1d372da8f 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -24,14 +24,18 @@</a></div></div>- <textarea- id="preRequestScript"- @keydown="formatRawParams"- rows="8"+ <Editorv-model="preRequestScript"- spellcheck="false"- placeholder="pw.env.set('variable', 'value');"- ></textarea>+ :lang="'javascript'"+ :options="{+ maxLines: responseBodyMaxLines,+ minLines: '16',+ fontSize: '16px',+ autoScrollEditorIntoView: true,+ showPrintMargin: false,+ useWorker: false+ }"+ /></li></ul></pw-section>@@ -626,7 +630,7 @@</div></div><div id="response-details-wrapper">- <ResponseBody+ <Editor:value="responseBodyText":lang="responseBodyType":options="{@@ -860,7 +864,7 @@ export default {autocomplete: () => import("../components/autocomplete"),collections: () => import("../components/collections"),saveRequestAs: () => import("../components/collections/saveRequestAs"),- ResponseBody: AceEditor+ Editor: AceEditor},data() {return {