diff --git a/packages/nc-gui/components/monaco/CustomMonacoEditor.js b/packages/nc-gui/components/monaco/CustomMonacoEditor.js index f984ef5667..64125b5961 100644 --- a/packages/nc-gui/components/monaco/CustomMonacoEditor.js +++ b/packages/nc-gui/components/monaco/CustomMonacoEditor.js @@ -17,7 +17,8 @@ export default { default: "vs-dark" }, lang: {type:String, default: 'typescript'}, - readOnly:Boolean + readOnly:Boolean, + minimap:Boolean, }, model: { @@ -71,7 +72,9 @@ export default { this.editor = monaco.editor.create(this.$el, { model: model, - theme: this.theme, + theme: this.theme, minimap: { + enabled: this.minimap + } }); this.editor.onDidChangeModelContent(event => { diff --git a/packages/nc-gui/components/project/spreadsheet/components/codeSnippet.vue b/packages/nc-gui/components/project/spreadsheet/components/codeSnippet.vue index fb7de65ac7..0e81a4c879 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/codeSnippet.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/codeSnippet.vue @@ -9,11 +9,12 @@ mdi-close -
- +
+ {{ lang }} @@ -21,7 +22,12 @@
- + mdi-clipboard-outline @@ -33,7 +39,7 @@ > - - {{ c }} + + + {{ c }} +
- +
@@ -156,9 +175,7 @@ api.dbViewRow.list( "noco", ${JSON.stringify(this.projectName)}, ${JSON.stringify(this.meta.title)}, - ${JSON.stringify(this.view.title)}, - ${JSON.stringify(this.queryParams, null, 2)} -).then(function (data) { + ${JSON.stringify(this.view.title)}, ${JSON.stringify(this.queryParams, null, 4)}).then(function (data) { console.log(data); }).catch(function (error) { console.error(error); @@ -187,6 +204,9 @@ api.dbViewRow.list(