Swarmlab.io DocLive is a *free online AsciiDoc editor*. - Just type AsciiDoc source text, - ...and the live preview appears
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
29 KiB

(function(t){function e(e){for(var n,l,r=e[0],i=e[1],c=e[2],u=0,m=[];u<r.length;u++)l=r[u],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&m.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);d&&d(e);while(m.length)m.shift()();return a.push.apply(a,c||[]),s()}function s(){for(var t,e=0;e<a.length;e++){for(var s=a[e],n=!0,r=1;r<s.length;r++){var i=s[r];0!==o[i]&&(n=!1)}n&&(a.splice(e--,1),t=l(l.s=s[0]))}return t}var n={},o={app:0},a=[];function l(e){if(n[e])return n[e].exports;var s=n[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,l),s.l=!0,s.exports}l.m=t,l.c=n,l.d=function(t,e,s){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(l.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)l.d(s,n,function(e){return t[e]}.bind(null,n));return s},l.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var d=i;a.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"034f":function(t,e,s){"use strict";var n=s("85ec"),o=s.n(n);o.a},"0f03":function(t,e,s){"use strict";var n=s("e086"),o=s.n(n);o.a},"56d7":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var n=s("2b0e"),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[s("b-navbar",{staticClass:"navbar-secondary",attrs:{toggleable:"md"}},[s("b-navbar-toggle",{attrs:{target:"nav_collapse"}}),s("b-navbar-brand",{staticClass:"logo simple-text ti-swarmlab text-secondary"},[t._v(" Swarmlab.io Doclive ")]),s("b-collapse",{attrs:{"is-nav":"",id:"nav_collapse"}},[s("b-navbar-nav"),s("b-navbar-nav",{staticClass:"ml-auto"},[s("b-nav-item",{attrs:{href:"http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/asciidoc/AsciiDocSyntaxQuickReference.adoc.html",target:"_ascii"}},[t._v(" Asciidoc_QuickReference ")]),s("b-nav-item",[t._v(" | ")]),s("b-nav-item",{attrs:{href:"https://git.swarmlab.io:3000",target:"_swarmlabgit"}},[t._v(" Swarmlab_git ")]),s("b-nav-item",[t._v(" | ")]),s("b-nav-item",{attrs:{href:"https://api-client.swarmlab.io:8088/#/signin?redirect=%2Fdashboard",target:"_swarmlab"}},[t._v(" Lab_onDemand ")]),s("b-nav-item",[t._v(" | ")]),s("b-nav-item-dropdown",{attrs:{right:""}},[s("template",{slot:"button-content"},[s("em",[t._v("Template")])]),s("b-dropdown-item",[s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.addtemplate("LabTemplate")}}},[t._v(" LabTemplate")])])],2),s("b-nav-item"),s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.saveDocLive}},[t._v(" Save As Zip")]),s("button",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{type:"button",round:""}},[s("a",{staticStyle:{color:"inherit"},attrs:{href:"http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/doclive/asciidoc.adoc.html",target:"_asciimore"}},[t._v(" More Formats ")])])],1)],1)],1),s("b-row",[s("b-col",{attrs:{cols:"12"}},[s("doc-live",{staticStyle:{"background-color":"#f8f9fa"}})],1)],1)],1)},a=[],l=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.showmenou,expression:"showmenou == 1"}],staticClass:"row"},[s("div",{staticClass:"col-3"},[s("div",{staticClass:"input-group-append"},["0"==t.columnviewdefault?s("button",{staticClass:"ti-layout-sidebar-none btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.fullscreen("max")}}},[t._v(" Max-Notebook View ")]):t._e(),"1"==t.columnviewdefault?s("button",{staticClass:"ti-layout-sidebar-right btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.fullscreen("min")}}},[t._v(" Min-Notebook View")]):t._e()])]),t._m(0),s("div",{staticClass:"col-3"},[s("div",{staticClass:"input-group-prepend"},["0"==t.columncodedefault?s("button",{staticClass:"ti-layout-sidebar-none btn btn-outline-info btn-sm",staticStyle:{float:"right"},attrs:{type:"button",round:""},on:{click:function(e){return t.fullscreen("codemax")}}},[t._v(" Max-Code View ")]):t._e(),"1"==t.columncodedefault?s("button",{staticClass:"ti-layout-sidebar-left btn btn-outline-info btn-sm",staticStyle:{float:"right"},attrs:{type:"button",round:""},on:{click:function(e){return t.fullscreen("codemin")}}},[t._v(" Min-Code View")]):t._e()])])]),s("div",{staticClass:"row"},[s("div",{class:t.columnview},[s("run-llo",{staticStyle:{"background-color":"#f8f9fa"}})],1),s("div",{class:t.columncode},[s("ad-hoc",{staticStyle:{"background-color":"#f8f9fa"}})],1)])])},r=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-6"},[s("span")])}],i=(s("96cf"),s("1da1")),c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.showlloedit?s("b-row",{attrs:{"no-gutters":"","w-100":"","h-100":""}},[s("b-col",{attrs:{cols:"12",sm:"12",md:"12"}},[s("iframe",{attrs:{id:"llocontainer",srcdoc:t.htmlasciitmp,width:"100%",height:"750",frameBorder:"0",name:"Forgot_Iframe"}})])],1):t._e()},d=[],u=s("97a1"),m=s.n(u),f=s("c4e3"),h=s.n(f),p=s("21a6"),b=s.n(p),v={components:{},data:function(){return{swarmlabllo:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/llo-index.yml",ssl:{},url_asciijshighlight:["https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"],url_asciijs:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"],url_asciicss:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css","https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"],code:"",editchoice:"",optionsedit:[{text:"code",value:"code"},{text:"text",value:"text"}],llodesc:[{llo_url:"",llo_name:"",llo_author:"",llo_intro:""}],searchLLO:[],searchLLOactive:!1,ADOC_html_code:"",challenge:[],action:"",tryLLO:[],service:"os2",active:0,activecount:0,remove:"",activeField:"",bootstrap:!1,firstbootstrap:0,htmlasciitmp:"",datafile:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/0_netstat/data",datadir:"0_netstat/data",LearningObject:"",asciidochtml:"",asciidochtmlzip:"",showllo:!0,showlloedit:!0,selected:"sublime",options:[{text:"vim",value:"vim"},{text:"sublime",value:"sublime"}],pValidate:!1,ADOC_html:[]}},methods:{saveascii:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s,n,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="myname",n=s+"_DocLive.zip",o=new h.a,a=o.folder(s),e.next=6,t.createhtmlfromadoc();case 6:e.sent,a.file("ascii.adoc.html",t.asciidochtmlzip),a.file("ascii.adoc",t.code),o.generateAsync({type:"blob"}).then((function(t){b.a.saveAs(t,n)}));case 10:case"end":return e.stop()}}),e)})))()},bootsrapllo:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s,n,o,a,l,r,i,c,d,u,m,f,h,p,b,v;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(console.log("created"),t.action,t.code,t.service,s=t.active,"llo_"+s+"_ascii",e.prev=6,e.prev=7,n='<!doctype html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">\n </head>\n <body>\n <div id="firstElement">\n <span id="AsciiElement"></span>\n </div>\n <div id="lastElement">\n <span id="jsElement"></span>\n </div>\n </body>\n </html>',o=(new DOMParser).parseFromString(n,"text/html"),a=t.url_asciijshighlight.length,l=0;l<a;l++)r=document.createElement("script"),r.type="text/javascript",r.src=t.url_asciijshighlight[l],o.head.appendChild(r);for(i=t.url_asciicss.length,l=0;l<i;l++)c=document.createElement("link"),c.rel="stylesheet",c.href=t.url_asciicss[l],o.head.appendChild(c);for(d="function llorm(msg) {\n var origin = 'https://api-client.swarmlab.io:8088'\n window.parent.postMessage({'event': 'warranty-transaction-rm', 'data': msg}, origin);\n }; \n function topwindow(field) {\n var asciiid = \"llo_\"+field+\"_ascii\"\n var llotarget = document.getElementById(asciiid);\n if(llotarget){\n llotarget.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' })\n }\n }; \n function lloedit(msg,field) {\n var origin = 'https://api-client.swarmlab.io:8088'\n topwindow(msg);\n window.parent.postMessage({'event': 'warranty-transaction-success', 'data': msg , 'field': field}, origin);\n };",u=document.createElement("script"),u.type="text/javascript",u.innerHTML=d,o.head.appendChild(u),m=t.url_asciijs.length,l=0;l<m;l++)f=document.createElement("script"),f.type="text/javascript",f.src=t.url_asciijs[l],h=o.getElementById("jsElement").parentNode,p=document.getElementById("jsElement"),h.insertBefore(f,p);b=document.createElement("script"),b.type="text/javascript",b.innerHTML="hljs.initHighlighting()",o.body.appendChild(b),v=new XMLSerializer,t.htmlasciitmp=v.serializeToString(o),t.bootstrap=!0,e.next=34;break;case 30:return e.prev=30,e.t0=e["catch"](7),console.log(" asc error "+JSON.stringify(e.t0)),e.abrupt("return");case 34:e.next=40;break;case 36:return e.prev=36,e.t1=e["catch"](6),console.log(" logi error "+JSON.stringify(e.t1)),e.abrupt("return");case 40:case"end":return e.stop()}}),e,null,[[6,36],[7,30]])})))()},addlloascii:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s,n,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=t.code,console.log(" ascii code "+JSON.stringify(t.code)),e.prev=2,n=m()(),o=n.convert(s,{standalone:!1,backend:"html5",header_footer:!1,doctype:"article",safe:"safe",attributes:{"source-highlighter":"highlightjs",sectnumlevels:4,toclevels:4,sectnums:!0,icons:"font",copycss:!0,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":!0,linkcss:!0}})," <div>\n ".concat(o,"\n </div>"),console.log(" ascii "+JSON.stringify(o)),a="firstElement",t.asciidochtml=o,document.getElementById("llocontainer").contentWindow.document.getElementById(a).innerHTML=t.asciidochtml,e.next=16;break;case 12:return e.prev=12,e.t0=e["catch"](2),console.log(" ascerror "+JSON.stringify(e.t0)),e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))()},createhtmlfromadoc:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=t.code,e.prev=1,n=m()(),o=n.convert(s,{standalone:!0,backend:"html5",header_footer:!1,doctype:"article",safe:"safe",attributes:{"source-highlighter":"highlightjs",sectnumlevels:4,toclevels:4,sectnums:!0,icons:"font",copycss:!0,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":!0,linkcss:!0}}),t.asciidochtmlzip=o,e.next=11;break;case 7:return e.prev=7,e.t0=e["catch"](1),console.log(" ascerror "+JSON.stringify(e.t0)),e.abrupt("return");case 11:case"end":return e.stop()}}),e,null,[[1,7]])})))()},handleChange:function(){}},computed:{},mounted:function(){var t=this;this.$root.$on("asciilive_add",(function(e){t.code=e,t.addlloascii()})),this.$root.$on("asciilive_save",(function(e){t.saveascii()}))},beforeDestroy:function(){this.$root.$off("asciilive_add"),this.$root.$off("asciilive_save")},created:function(){this.bootsrapllo()}},g=v,x=(s("0f03"),s("2877")),w=Object(x["a"])(g,c,d,!1,null,null,null),_=w.exports,y=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.showlloedit?s("b-row",{attrs:{"no-gutters":"","w-100":"","h-100":""}},[s("b-col",{attrs:{cols:"12",sm:"12",md:"12"}},[s("b-row",[s("b-col",{attrs:{cols:"5"}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-select custom-select-sm ",on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selected=e.target.multiple?s:s[0]},t.setKeymap]}},t._l(t.options,(function(e){return s("option",{domProps:{value:e.value}},[t._v(" "+t._s(e.text)+" ")])})),0),s("div",{staticClass:"input-group-append"},["sublime"==t.cmOptions.keyMap?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.infoFilter}},[t._v(" i")]):t._e()])])]),s("b-col",{attrs:{cols:"7"}},[s("div",{staticClass:"input-group input-group-sm d-flex justify-content-end"}),s("div",{staticClass:"input-group input-group-sm d-flex justify-content-end"},[s("div",{staticClass:"input-group-append"},[t.tryLLO[t.active]?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.closelog(t.key)}}},[t._v(" Close")]):t._e()]),s("div",{staticClass:"input-group-append"},[t.tryLLO[t.active]?s("button",{staticClass:"btn btn-outline-dark btn-sm",attrs:{type:"button"},on:{click:t.addlloasciisource}},[t._v("Create task!")]):t._e()])])])],1),s("div",{staticClass:"codemirror"},[s("codemirror",{ref:"myCm",attrs:{value:t.code,options:t.cmOptions},on:{cursorActivity:t.onCmCursorActivity,ready:t.onCmReady,focus:t.onCmFocus,input:t.onCmCodeChange}})],1)],1)],1):t._e()],1)},C=[],k=s("8f94"),L=(s("a7be"),s("bbca"),s("31c5"),s("9b74"),s("f6b6"),s("3c98"),s("9c7b"),s("715d"),s("b933"),s("23de"),s("02f0"),s("8c33"),s("7289"),s("2aed"),s("d72f"),s("0b6c"),s("9a48"),s("75f8"),s("697e"),s("aedd"),s("164b"),s("4895"),s("cbc8"),s("8d70"),s("9f09"),s("a2c1"),s("56b3"),s("d7d5"),{components:{codemirror:k["codemirror"]},data:function(){return{swarmlabllo:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/llo-index.yml",ssl:{},url_asciijshighlight:["https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"],url_asciijs:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"],url_asciicss:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css","https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"],code:"# Try!",editchoice:"",optionsedit:[{text:"code",value:"code"},{text:"text",value:"text"}],llodesc:[{llo_url:"",llo_name:"",llo_author:"",llo_intro:""}],llo:[{id:0,rm:!1,data_info:"Asciidoc \n",data_code:"#Your source code",data_service:"",code_datafile:"url",code_name:"",code_exec:"",code_options:"",code_mime:"",code_info:"",code_code:"",code_codeout:"",code_codeoutput:"console",points:"",challenge_question:"",code_challenge_question:"",challenge_answer:"",challenge_answer_hint:"",code_challenge_answer_hint:"",challenge_answer_source:"",challenge_answer_code_out:"",challenge_answer_code:"",code_challenge_answer_code:""}],searchLLO:[],searchLLOactive:!1,ADOC_html_code:"",challenge:[],action:"",tryLLO:[],service:"os2",active:0,activecount:0,remove:"",activeField:"",bootstrap:!1,firstbootstrap:0,htmlasciitmp:"",datafile:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/0_netstat/data",datadir:"0_netstat/data",LearningObject:"",showllo:!0,showlloedit:!0,selected:"sublime",options:[{text:"vim",value:"vim"},{text:"sublime",value:"sublime"}],optionsmime:[{text:"sh",value:"bash"},{text:"javascript",value:"javascript"},{text:"python",value:"python"},{text:"php",value:"php"},{text:"sql",value:"sq;"},{text:"xml",value:"xml"},{text:"c",value:"c"}],pValidate:!1,cmOptions:{tabSize:2,styleActiveLine:!0,lineNumbers:!0,lineSeparator:"\n",line:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},styleSelectedText:!0,mode:"shell",hintOptions:{completeSingle:!1},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,indentUnit:this.ADOC_html_code,lineWrapping:!0,theme:"neat",refresh:!0,autofocus:!1,extraKeys:{Ctrl:"autocomplete"}},ADOC_html:[]}},methods:{showactive:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:e.topwindow(t);case 1:case"end":return s.stop()}}),s)})))()},onCmReady:function(t){t.on("change",(function(t,e){})),t.on("keypress",(function(){t.showHint({completeSingle:!1})}))},onCmCursorActivity:function(t,e,s){},onCmFocus:function(t){},onCmCodeChange:function(t){this.code=t,this.$root.$emit("asciilive_add",this.code)},handleChange:function(){},setKeymap:function(){this.cmOptions.keyMap=this.selected},infoFilter:function(){var t="<h3>Playbook Images</h3>",e='<table class="table table-striped table-sm "><tr><td class="text-left">Shift-Tab</td> <td class="text-left">indentLess</td></tr><tr><td class="text-left">Shift-Ctrl-K</td> <td class="text-left">deleteLine</td></tr><tr><td class="text-left">Alt-Q</td> <td class="text-left">wrapLines</td></tr><tr><td class="text-left">Ctrl-T</td> <td class="text-left">transposeChars</td></tr><tr><td class="text-left">Alt-Left</td> <td class="text-left">goSubwordLeft</td></tr><tr><td class="text-left">Alt-Right</td> <td class="text-left">goSubwordRight</td></tr><tr><td class="text-left">Ctrl-Up</td> <td class="text-left">scrollLineUp</td></tr><tr><td class="text-left">Ctrl-Down</td> <td class="text-left">scrollLineDown</td></tr><tr><td class="text-left">Ctrl-L</td> <td class="text-left">selectLine</td></tr><tr><td class="text-left">Shift-Ctrl-L</td> <td class="text-left">splitSelectionByLine</td></tr><tr><td class="text-left">Esc</td> <td class="text-left">singleSelectionTop</td></tr><tr><td class="text-left">Ctrl-Enter</td> <td class="text-left">insertLineAfter</td></tr><tr><td class="text-left">Shift-Ctrl-Enter</td> <td class="text-left">insertLineBefore</td></tr><tr><td class="text-left">Ctrl-D</td> <td class="text-left">selectNextOccurrence</td></tr><tr><td class="text-left">Shift-Ctrl-Space</td> <td class="text-left">selectScope</td></tr><tr><td class="text-left">Shift-Ctrl-M</td> <td class="text-left">selectBetweenBrackets</td></tr><tr><td class="text-left">Ctrl-M</td> <td class="text-left">goToBracket</td></tr><tr><td class="text-left">Shift-Ctrl-Up</td> <td class="text-left">swapLineUp</td></tr><tr><td class="text-left">Shift-Ctrl-Down</td> <td class="text-left">swapLineDown</td></tr><tr><td class="text-left">Ctrl-/</td> <td class="text-left">toggleCommentIndented</td></tr><tr><td class="text-left">Ctrl-J</td> <td class="text-left">joinLines</td></tr><tr><td class="text-left">Shift-Ctrl-D</td> <td class="text-left">duplicateLine</td></tr><tr><td class="text-left">F9</td> <td class="text-left">sortLines</td></tr><tr><td class="text-left">Ctrl-F9</td> <td class="text-left">sortLinesInsensitive</td></tr><tr><td class="text-left">F2</td> <td class="text-left">nextBookmark</td></tr><tr><td class="text-left">Shift-F2</td> <td class="text-left">prevBookmark</td></tr><tr><td class="text-left">Ctrl-F2</td> <td class="text-left">toggleBookmark</td></tr><tr><td class="text-left">Shift-Ctrl-F2</td> <td class="text-left">clearBookmarks</td></tr><tr><td class="text-left">Alt-F2</td> <td class="text-left">selectBookmarks</td></tr><tr><td class="text-left">Backspace</td> <td class="text-left">smartBackspace</td></tr><tr><td class="text-left">Ctrl-K Ctrl-K</td> <td class="text-left">delLineRight</td></tr><tr><td class="text-left">Ctrl-K Ctrl-U</td> <td class="text-left">upcaseAtCursor</td></tr><tr><td class="text-left">Ctrl-K Ctrl-L</td> <td class="text-left">downcaseAtCursor</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Space</td> <td class="text-left">setSublimeMark</td></tr><tr><td class="text-left">Ctrl-K Ctrl-A</td> <td class="text-left">selectToSublimeMark</td></tr><tr><td class="text-left">Ctrl-K Ctrl-W</td> <td class="text-left">deleteToSublimeMark</td></tr><tr><td class="text-left">Ctrl-K Ctrl-X</td> <td class="text-left">swapWithSublimeMark</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Y</td> <td class="text-left">sublimeYank</td></tr><tr><td class="text-left">Ctrl-K Ctrl-C</td> <td class="text-left">showInCenter</td></tr><tr><td class="text-left">Ctrl-K Ctrl-G</td> <td class="text-left">clearBookmarks</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Backspace</td> <td class="text-left">delLineLeft</td></tr><tr><td class="text-left">Ctrl-K Ctrl-0</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-K Ctrl-J</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-Alt-Up</td> <td class="text-left">addCursorToPrevLine</td></tr><tr><td class="text-left">Ctrl-Alt-Down</td> <td class="text-left">addCursorToNextLine</td></tr><tr><td class="text-left">Ctrl-F3</td> <td class="text-left">findUnder</td></tr><tr><td class="text-left">Shift-Ctrl-F3</td> <td class="text-left">findUnderPrevious</td></tr><tr><td class="text-left">Shift-Ctrl-[</td> <td class="text-left">fold</td></tr><tr><td class="text-left">Shift-Ctrl-]</td> <td class="text-left">unfold</td></tr><tr><td class="text-left">Ctrl-H</td> <td class="text-left">replace</td></tr></table>',s=(t="","");this.$swal({title:"<strong>Sublime Text bindings</strong>",type:"info",html:e+t+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}},computed:{codemirror:function(){return this.$refs.myCm.codemirror}},mounted:function(){var t=this;this.$root.$on("asciilive_template_add",(function(e){t.$nextTick((function(){this.code=e}))}))},beforeDestroy:function(){this.$root.$off("PipelineRunSwarmserviceLLOAdhoc")},created:function(){}}),j=L,S=(s("9767"),Object(x["a"])(j,y,C,!1,null,null,null)),O=S.exports,$={name:"DocLive",props:{},components:{RunLlo:_,AdHoc:O},data:function(){return{loading:!1,showhistory:0,productIndex:1,showmenou:1,columnviewdefault:0,columncodedefault:0,columnview:"col-7 order-first",columncode:"col-5 order-last",tutorMenou:"student"}},created:function(){},mounted:function(){var t=this;this.$root.$on("LLOshowmenounotebooks",(function(){t.showmenou=1})),this.$root.$on("lloshowchallengehistory",(function(e,s){t.showhistory=1}))},beforeDestroy:function(){this.$root.$off("LLOshowmenounotebooks"),this.$root.$off("lloshowchallengehistory")},methods:{fullscreen:function(t){"max"==t?(this.columnview="col-11 order-first",this.columncode="col-1 order-last",this.columnviewdefault=1,this.columncodedefault=0,this.$root.$emit("LLOresizemenounotebooks","max"),console.log(this.columnview)):"min"==t?(this.columnview="col-7 order-first",this.columncode="col-5 order-last",this.columnviewdefault=0,this.columncodedefault=1,this.$root.$emit("LLOresizemenounotebooks","min"),console.log(this.columnview)):"codemax"==t?(this.columnview="col-1 order-first",this.columncode="col-11 order-last",this.columnviewdefault=0,this.columncodedefault=1,console.log(this.columnview)):"codemin"==t&&(this.columnview="col-7 order-first",this.columncode="col-5 order-last",this.columnviewdefault=1,this.columncodedefault=0,this.$root.$emit("LLOresizemenounotebooks","min"),console.log(this.columnview))},onAction:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.tutorMenou="tutor";case 1:case"end":return t.stop()}}),t)})))()}}},T=$,A=Object(x["a"])(T,l,r,!1,null,"6b2c0280",null),M=A.exports,D=(s("e454"),{name:"app",components:{DocLive:M},data:function(){return{show:!0,SwarmabAsciiLabTemplate:""}},mounted:function(){},methods:{saveDocLive:function(){this.$root.$emit("asciilive_save","save")},addtemplate:function(t){"LabTemplate"==t&&(this.SwarmabAsciiLabTemplate='= Title!\nmyName email@emailserver.foo\n:description: Description\n:keywords: Lab, myLab\n:data-uri:\n:toc: true\n:toc-title: Table of Contents\n:toclevels: 4\n:source-highlighter: highlight\n:icons: font\n:sectnums: \n\n{empty} +\n\n.Welcome to Swarmlab.io\n****\nSwarmlab is a powerful collaboration tool that connects tutors and students in a unique all-in-one environment that gets work done fast and easily\nReady-to-Use Virtual Labs one click away.\n****\n\n== Chapter 1\n\n\n.NOTE\n[NOTE]\n====\nAssuming you\'re already logged in\n====\n\n\n=== Install docker\n\n\nTo Docker είναι μια πλατφόρμα λογισμικού ανοιχτού κώδικα που υλοποιεί Εικονικοποίηση (Virtualization) σε επίπεδο Λειτουργικού Συστήματος.\n\nTο Docker προσφέρει αυτοματοποιημένες διαδικασίες για την ανάπτυξη εφαρμογών σε απομονωμένες Περιοχές Χρήστη (User Spaces) που ονομάζονται Software Containers\n\nΤο λογισμικό χρησιμοποιεί τεχνολογιές του πυρήνα του Linux όπως τα cgroups και οι χώροι ονομάτων πυρήνα (kernel namespaces), για να επιτρέπει σε ανεξάρτητα software containers να εκτελούνται στο ίδιο λειτουργικό σύστημα.\n\nΈτσι αποφεύγεται η χρήση επιπλέον υπολογιστικών πόρων που θα απαιτούσε μια εικονική μηχανή (virtual machine).\nΟρισμός, βασικά χαρακτηριστικά και αρχιτεκτονικές IoT, εφαρμογές ΙοΤ, αντιδιαστολή με τον ιστό των αντικειμένων (Web of Things / WoT), προκλήσεις του IoT όπως προτυποποίηση, κλιμάκωση, μέγεθος συσκευών, κατανάλωση ενέργειας, διευθυνσιοδότηση, ασφάλεια/ιδιωτικότητα, ποιότητας υπηρεσιών, κινητικότητα κ.α\n\nMore Info +\nhttps://en.wikipedia.org/wiki/Docker_(software)[^]\n\n[[cheat-Dockervideo]]\n== docker Intro\n\n* Docker - Explained\n+\nvideo::wi-MGFhrad0[youtube]\n\n* How DOCKER works - Virtualization vs containerization\n+\nvideo::0e-KiGJIiDc[youtube]\n\n\n== Installation (Ubuntu)\n\n.Run with sudo\n[source,bash]\n----\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\nsudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"\nsudo apt update\n\nsudo apt install -y docker-ce\n echo "or"\nsudo apt install docker*\n\nsudo systemctl status docker\nsudo usermod -aG docker username #οπου username το όνομα του χρήστη που θα δουλεύει με docker\n----\n\n== Usage swarmlab.io DocLive\n\n\n- Open a console\n\n- Switch to the directory that contains *.adoc documents\n\n- Call the Asciidoctor processor with the command\n\n\n\n\n.If you need to convert only one file\n[TIP]\n====\n[source,bash]\n----\ndocker run --rm -v $(pwd):/documents/ registry.vlabs.uniwa.gr:5080/swarmlab-asciidoctor asciidoctor --safe -b html5 -a theme=flask -a toc2 -o ./path/to/FILENAME.html ./path/from/FILENAME.adoc\n----\nPlease note, there is a **.** in ./path\n====\n\n== Usage Tables\n\nTables\n^^^^^^\n.An example table\n[options="header,footer"]\n|=======================\n|Rank |Ομάδα |Points\n|1 |*Barca* |15\n|2 |*PSG* |08\n|3 |Larnaka |05\n|4 |Osfp |03\n|=======================\n\n\n\n\n',this.$root.$emit("asciilive_template_add",this.SwarmabAsciiLabTemplate))}}}),E=D,R=(s("034f"),Object(x["a"])(E,o,a,!1,null,null,null)),B=R.exports,I=s("5f5b"),F=(s("f9e3"),s("2dd8"),s("5886"));n["default"].use(F["a"]),n["default"].use(I["a"]),n["default"].config.productionTip=!1,new n["default"]({render:function(t){return t(B)}}).$mount("#app")},"85ec":function(t,e,s){},9767:function(t,e,s){"use strict";var n=s("e1be"),o=s.n(n);o.a},e086:function(t,e,s){},e1be:function(t,e,s){},e454:function(t,e,s){}});
//# sourceMappingURL=app.043a13a2.js.map