diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index f027c189..060dd38b 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -1831,6 +1831,11 @@ "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, + "brace": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/brace/-/brace-0.11.1.tgz", + "integrity": "sha1-SJb8ydVE7vRfS7dmDbMg07N5/lg=" + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2233,11 +2238,6 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, - "codemirror": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.48.0.tgz", - "integrity": "sha512-3Ter+tYtRlTNtxtYdYNPxGxBL/b3cMcvPdPm70gvmcOO2Rauv/fUEewWa0tT596Hosv6ea2mtpx28OXBy1mQCg==" - }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -2996,11 +2996,6 @@ "repeating": "^2.0.0" } }, - "diff-match-patch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.4.tgz", - "integrity": "sha512-Uv3SW8bmH9nAtHKaKSanOQmj2DnlH65fUpcrMdfdaOxUG02QQ4YGZ8AE7kKOMisF7UqvOlGKVYWRvezdncW9lg==" - }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -7839,15 +7834,6 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==" }, - "vue-codemirror": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/vue-codemirror/-/vue-codemirror-4.0.6.tgz", - "integrity": "sha512-ilU7Uf0mqBNSSV3KT7FNEeRIxH4s1fmpG4TfHlzvXn0QiQAbkXS9lLfwuZpaBVEnpP5CSE62iGJjoliTuA8poQ==", - "requires": { - "codemirror": "^5.41.0", - "diff-match-patch": "^1.0.0" - } - }, "vue-highlightjs": { "version": "git://github.com/Dragory/vue-highlightjs.git#5cd0d3d82fe16b4ff51ecf45e9a527b0d35aa0fa", "from": "git://github.com/Dragory/vue-highlightjs.git#pass-hljs-instance" @@ -7878,6 +7864,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "vue2-ace-editor": { + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/vue2-ace-editor/-/vue2-ace-editor-0.0.14.tgz", + "integrity": "sha512-STK+ISGNaSxBxNKv/3tc7jeAE388LsM0yL52KCJtTN6ZbVIeqBtvscRLGqYuZAGaHDD4dfXm6P2Q8DdKxMB2hA==", + "requires": { + "brace": "^0.11.0" + } + }, "vuex": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.1.tgz", diff --git a/dashboard/package.json b/dashboard/package.json index 85bff6ee..ef6bc8e4 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -29,10 +29,10 @@ "js-yaml": "^3.13.1", "marked": "^0.7.0", "vue": "^2.6.10", - "vue-codemirror": "^4.0.6", "vue-highlightjs": "git://github.com/Dragory/vue-highlightjs.git#pass-hljs-instance", "vue-hot-reload-api": "^2.3.3", "vue-router": "^3.0.6", + "vue2-ace-editor": "0.0.14", "vuex": "^3.1.1" }, "browserslist": [ diff --git a/dashboard/src/components/dashboard/GuildConfigEditor.vue b/dashboard/src/components/dashboard/GuildConfigEditor.vue index 61016cec..8b32e3fa 100644 --- a/dashboard/src/components/dashboard/GuildConfigEditor.vue +++ b/dashboard/src/components/dashboard/GuildConfigEditor.vue @@ -4,7 +4,8 @@