summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorUdo Walter2018-11-22 05:27:34 +0100
committerUdo Walter2018-11-22 05:27:34 +0100
commit5b315f938afddad911f2c69a2deca2ca5b3f8c17 (patch)
tree7f314825e61ff7da08a46ee7d116e72831bb10aa /webapp/src/main.js
parent[external-backends] Fix: Delete clients in the backend is now working properly. (diff)
downloadbas-5b315f938afddad911f2c69a2deca2ca5b3f8c17.tar.gz
bas-5b315f938afddad911f2c69a2deca2ca5b3f8c17.tar.xz
bas-5b315f938afddad911f2c69a2deca2ca5b3f8c17.zip
[webapp] replace script textareas with a code editor
npm install is necessary to load the editor module
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 4193481..030f9f7 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -1,6 +1,10 @@
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
+import VueCodemirror from 'vue-codemirror'
+import 'codemirror/mode/shell/shell.js'
+import 'codemirror/lib/codemirror.css'
+import 'codemirror/theme/monokai.css'
import VueTouch from 'vue-touch'
import Vuex from 'vuex'
import globalStore from '@/store/global'
@@ -38,6 +42,15 @@ Vue.use(Vuetify, {
}
})
+Vue.use(VueCodemirror, {
+ options: {
+ theme: 'monokai',
+ mode: 'shell',
+ lineNumbers: true,
+ viewportMargin: Infinity
+ }
+})
+
Vue.use(VueTouch)
axios.interceptors.response.use(null, error => {