(function(t){function e(e){for(var n,l,r=e[0],i=e[1],c=e[2],u=0,m=[];u\n \n \n \n \n \n \n
\n \n
\n
\n \n
\n \n ',o=(new DOMParser).parseFromString(n,"text/html"),a=t.url_asciijshighlight.length,l=0;l\n ".concat(o,"\n "),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="

Playbook Images

",e='
Shift-Tab indentLess
Shift-Ctrl-K deleteLine
Alt-Q wrapLines
Ctrl-T transposeChars
Alt-Left goSubwordLeft
Alt-Right goSubwordRight
Ctrl-Up scrollLineUp
Ctrl-Down scrollLineDown
Ctrl-L selectLine
Shift-Ctrl-L splitSelectionByLine
Esc singleSelectionTop
Ctrl-Enter insertLineAfter
Shift-Ctrl-Enter insertLineBefore
Ctrl-D selectNextOccurrence
Shift-Ctrl-Space selectScope
Shift-Ctrl-M selectBetweenBrackets
Ctrl-M goToBracket
Shift-Ctrl-Up swapLineUp
Shift-Ctrl-Down swapLineDown
Ctrl-/ toggleCommentIndented
Ctrl-J joinLines
Shift-Ctrl-D duplicateLine
F9 sortLines
Ctrl-F9 sortLinesInsensitive
F2 nextBookmark
Shift-F2 prevBookmark
Ctrl-F2 toggleBookmark
Shift-Ctrl-F2 clearBookmarks
Alt-F2 selectBookmarks
Backspace smartBackspace
Ctrl-K Ctrl-K delLineRight
Ctrl-K Ctrl-U upcaseAtCursor
Ctrl-K Ctrl-L downcaseAtCursor
Ctrl-K Ctrl-Space setSublimeMark
Ctrl-K Ctrl-A selectToSublimeMark
Ctrl-K Ctrl-W deleteToSublimeMark
Ctrl-K Ctrl-X swapWithSublimeMark
Ctrl-K Ctrl-Y sublimeYank
Ctrl-K Ctrl-C showInCenter
Ctrl-K Ctrl-G clearBookmarks
Ctrl-K Ctrl-Backspace delLineLeft
Ctrl-K Ctrl-0 unfoldAll
Ctrl-K Ctrl-J unfoldAll
Ctrl-Alt-Up addCursorToPrevLine
Ctrl-Alt-Down addCursorToNextLine
Ctrl-F3 findUnder
Shift-Ctrl-F3 findUnderPrevious
Shift-Ctrl-[ fold
Shift-Ctrl-] unfold
Ctrl-H replace
',s=(t="","");this.$swal({title:"Sublime Text bindings",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