Browse Source

insert codemirror asciidoc

master
zeus 4 years ago
parent
commit
6a8e789240
  1. 2
      dist/index.html
  2. 1
      dist/js/app.043a13a2.js.map
  3. 4
      dist/js/app.4b13ac7c.js
  4. 1
      dist/js/app.4b13ac7c.js.map
  5. 4
      dist/js/chunk-vendors.d7ec7d73.js
  6. 2
      dist/js/chunk-vendors.d7ec7d73.js.map
  7. 5
      package-lock.json
  8. 1
      package.json
  9. 4
      src/components/doclive/AdhocView.vue

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>bootstrap-vue-example</title><link href="/css/app.4439dee6.css" rel="preload" as="style"><link href="/css/chunk-vendors.0cbe91b8.css" rel="preload" as="style"><link href="/js/app.043a13a2.js" rel="preload" as="script"><link href="/js/chunk-vendors.f8c3f4a6.js" rel="preload" as="script"><link href="/css/chunk-vendors.0cbe91b8.css" rel="stylesheet"><link href="/css/app.4439dee6.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but bootstrap-vue-example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.f8c3f4a6.js"></script><script src="/js/app.043a13a2.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>bootstrap-vue-example</title><link href="/css/app.4439dee6.css" rel="preload" as="style"><link href="/css/chunk-vendors.0cbe91b8.css" rel="preload" as="style"><link href="/js/app.4b13ac7c.js" rel="preload" as="script"><link href="/js/chunk-vendors.d7ec7d73.js" rel="preload" as="script"><link href="/css/chunk-vendors.0cbe91b8.css" rel="stylesheet"><link href="/css/app.4439dee6.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but bootstrap-vue-example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.d7ec7d73.js"></script><script src="/js/app.4b13ac7c.js"></script></body></html>

1
dist/js/app.043a13a2.js.map

File diff suppressed because one or more lines are too long

4
dist/js/app.043a13a2.js → dist/js/app.4b13ac7c.js

File diff suppressed because one or more lines are too long

1
dist/js/app.4b13ac7c.js.map

File diff suppressed because one or more lines are too long

4
dist/js/chunk-vendors.f8c3f4a6.js → dist/js/chunk-vendors.d7ec7d73.js

File diff suppressed because one or more lines are too long

2
dist/js/chunk-vendors.f8c3f4a6.js.map → dist/js/chunk-vendors.d7ec7d73.js.map

File diff suppressed because one or more lines are too long

5
package-lock.json

@ -4799,6 +4799,11 @@
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.58.1.tgz",
"integrity": "sha512-UGb/ueu20U4xqWk8hZB3xIfV2/SFqnSLYONiM3wTMDqko0bsYrsAkGGhqUzbRkYm89aBKPyHtuNEbVWF9FTFzw=="
},
"codemirror-asciidoc": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/codemirror-asciidoc/-/codemirror-asciidoc-1.0.4.tgz",
"integrity": "sha1-dDn8w48w8UCKsUTRVr85jtNbLMA="
},
"collection-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",

1
package.json

@ -11,6 +11,7 @@
"@vue/compiler-sfc": "^3.0.1",
"asciidoctor": "^2.2.0",
"bootstrap-vue": "^2.17.3",
"codemirror-asciidoc": "^1.0.4",
"file-saver": "^2.0.2",
"jszip": "^3.5.0",
"mkdirp": "^1.0.4",

4
src/components/doclive/AdhocView.vue

@ -87,6 +87,7 @@ import FileSaver from 'file-saver';
import 'codemirror/lib/codemirror.css'
import 'codemirror/theme/neat.css'
import'codemirror/addon/selection/active-line.js'
// hint
import'codemirror/addon/hint/show-hint.js'
import'codemirror/addon/hint/show-hint.css'
@ -117,6 +118,7 @@ import 'codemirror/lib/codemirror.css'
import'codemirror/addon/fold/xml-fold.js'
import 'codemirror/lib/codemirror';
import 'codemirror/addon/display/placeholder';
import 'codemirror-asciidoc';
//import yaml from 'js-yaml'
export default {
components: {
@ -223,7 +225,7 @@ export default {
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
highlightSelectionMatches: { showToken: /\w/, annotateScrollbar: true },
styleSelectedText: true,
mode: 'shell',
mode: 'asciidoc',
hintOptions:{
completeSingle: false
},

Loading…
Cancel
Save