Browse Source

insert export zip

master
zeus 4 years ago
parent
commit
b20bddbf5c
  1. 2
      dist/index.html
  2. 2
      dist/js/app.043a13a2.js
  3. 1
      dist/js/app.043a13a2.js.map
  4. 2
      dist/js/app.ce09402d.js
  5. 1
      dist/js/app.ce09402d.js.map
  6. 43
      src/components/doclive/runLlo.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.ce09402d.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.ce09402d.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.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>

2
dist/js/app.043a13a2.js

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

2
dist/js/app.ce09402d.js

File diff suppressed because one or more lines are too long

1
dist/js/app.ce09402d.js.map

File diff suppressed because one or more lines are too long

43
src/components/doclive/runLlo.vue

@ -75,6 +75,7 @@ export default {
datadir: '0_netstat/data',
LearningObject:'',
asciidochtml:'',
asciidochtmlzip:'',
showllo:true,
showlloedit:true,
selected: 'sublime',
@ -93,7 +94,8 @@ export default {
var zip = new JSZip();
var llofile = zip.folder(asciiname);
llofile.file("ascii.adoc.html", this.asciidochtml);
var ziphtml = await this.createhtmlfromadoc()
llofile.file("ascii.adoc.html", this.asciidochtmlzip);
llofile.file("ascii.adoc", this.code);
zip.generateAsync({type:"blob"})
@ -287,6 +289,45 @@ export default {
}
},
async createhtmlfromadoc() {
var value = this.code
// *************************************
// ***** ------- HTML ------- *****
// *************************************
try{
var asciidoctor1 = Asciidoctor()
var value_compiled = asciidoctor1.convert(value,
{
standalone: true,
backend: 'html5',
header_footer: false,
doctype: 'article',
safe: 'safe',
attributes: {
'source-highlighter': 'highlightjs',
'sectnumlevels':4,
'toclevels':4,
'sectnums':true,
'icons': 'font',
'copycss':true,
'stylesheet': 'https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css',
'iconfont-cdn': 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css',
'iconfont-name': 'fontawesome-5-14.0',
'iconfont-remote':true,
'linkcss': true
}
}) // (2)
this.asciidochtmlzip = value_compiled
}catch (ex) {
console.log(" ascerror "+JSON.stringify(ex))
return
}
},
handleChange() {
},

Loading…
Cancel
Save