(function(t){function e(e){for(var o,r,l=e[0],i=e[1],c=e[2],u=0,p=[];ut.tailed_path))];var s="";for(let n of this.log_path)if(s=e.filter(t=>t.tailed_path===n).length,o["default"].set(this.log_path_lenght,n,s),s>this.loglenghttotal)_.dispatch("pipelineLLO/taillog",{path:n})},async message(t){console.log(" socket message "+JSON.stringify(t))},async message_out(t){console.log(" socket out "+JSON.stringify(t))},async message_err(t){console.log(" socket err "+JSON.stringify(t))},async message_close(t){console.log(" socket close "+JSON.stringify(t))}},actions:{}},N=$,j=(s("4cf0"),Object(x["a"])(N,i,c,!1,null,null,null)),A=j.exports,E=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:"4"}},[s("div",{staticClass:"input-group input-group-sm sm-3"})]),s("b-col",{attrs:{cols:"3"}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[t.socketonline?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:"",disable:""},on:{click:t.socketconnect}},[t._v(" online ")]):s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.socketconnect}},[t._v(" socket disconnected")]),t.socketonline?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.hotreload()}}},[t._v(" Hot_Reload")]):t._e()])]),s("b-col",{attrs:{cols:"5"}},[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.socketonline?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.infoHotreload()}}},[t._v(" Hot_Reload_HowTo")]):t._e()]),s("div",{staticClass:"input-group-append"},[t.tryConsole?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.clear()}}},[t._v(" Clear")]):t._e()]),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()])])])],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)},J=[],T=s("8f94"),F=(s("c4e3"),s("21a6"),s("a7be"),s("bbca"),s("281e"),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:T["codemirror"]},data(){return{socketonline:!1,tryConsole:!1,ssl:{},getinfo:"",token:"",swarmlabname:"",code:"",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:"paraiso-light",refresh:!0,readOnly:!0,autofocus:!1,extraKeys:{Ctrl:"autocomplete"}},ADOC_html:[]}},methods:{socketconnect(){this.$root.$emit("SERVER_socket_connect")},clear(){this.tryConsole=!1,this.code=""},async getdata(){var t=this.getinfo;await _.dispatch("pipelineLLO/get_data",{code:t})},async showactive(t){this.topwindow(t)},onCmReady(t){t.on("change",(t,e)=>{}),t.on("keypress",()=>{t.showHint({completeSingle:!1})})},onCmCursorActivity(t,e,s){},onCmFocus(t){},onCmCodeChange(t){this.code=t},handleChange(){},setKeymap(){this.cmOptions.keyMap=this.selected},infoFilter(){var t="

Playbook Images

",e='
Shift-Tab indentLess
Alt-Q wrapLines
Ctrl-Up scrollLineUp
Ctrl-Down scrollLineDown
Ctrl-L selectLine
Esc singleSelectionTop
Ctrl-Enter insertLineAfter
Ctrl-D selectNextOccurrence
Shift-Ctrl-Space selectScope
Shift-Ctrl-M selectBetweenBrackets
Ctrl-M goToBracket
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-F find
',s=(t="","");this.$swal({title:"Key bindings",type:"info",html:e+t+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})},async hotreload(){this.getinfo,await _.dispatch("pipelineLLO/hotreload",{token:this.token,swarmlabname:this.swarmlabname})},infoHotreload(){var t=`
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
Downloadhttps://git.swarmlab.io:3000/labs/swarmlab-playground-client/raw/branch/master/hot_reload.sh
and add the proper values
token${this.token}
swarmlabname${this.swarmlabname}
OR set the variables before exec
export SWARMLAB_token=${this.token}
export SWARMLAB_name=${this.swarmlabname}
Ready! \n
Execute script every time you run git push
`;this.$swal({title:"HowTo",type:"info",html:t,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}},computed:{codemirror(){return this.$refs.myCm.codemirror}},mounted(){this.$root.$on("SERVER_socket_status",t=>{this.$nextTick((function(){"off"==t?this.socketonline=!1:"on"==t&&(this.socketonline=!0)}))}),this.$root.$on("playground_log_in",t=>{var e=_.getters["pipelineLLO/getrestapi"];if("off"==e)var s=_.getters["pipelineLLO/getlog"];else if("on"==e)s=_.getters["pipelineLLO/getmongolog"];console.log("logtmp-roi "+JSON.stringify(s));var o="";this.code="",o=s.filter(e=>e.tailed_path===t),console.log("logtmp22 "+JSON.stringify(o));for(let n of o)this.code+=n.message+" "+n.tailed_path+" "+n.date,this.code+="\n";this.$refs.myCm.codemirror.setCursor(this.$refs.myCm.codemirror.lineCount(),0),this.tryConsole=!0})},beforeDestroy(){this.$root.$off("SERVER_socket_status"),this.$root.$off("playground_log_in")},created(){this.token=new URL(location.href).searchParams.get("token"),this.swarmlabname=new URL(location.href).searchParams.get("pipelinename")}}),M=F,P=(s("0b43"),Object(x["a"])(M,E,J,!1,null,null,null)),B=P.exports,D={components:{ViewNetwork:A,AdhocView:B},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},z=D,q=Object(x["a"])(z,r,l,!1,null,null,null),K=q.exports,U={name:"app",components:{NetworkTable:K},data(){return{show:!0,token:"",SwarmabAsciiLabTemplate:""}},mounted(){},created(){},methods:{hybrid(t){console.log(t)}}},H=U,V=(s("034f"),Object(x["a"])(H,n,a,!1,null,null,null)),G=V.exports,I=s("5886"),Y=s("f2d6"),W=s.n(Y),Q=(s("c059"),s("f87c")),X=s("8e27");o["default"].use(I["default"]),o["default"].use(W.a);const Z=Object(X["io"])("https://localhost:3000",{autoConnect:!1,reconnection:!0,reconnectionDelay:500,maxReconnectionAttempts:1/0,pingInterval:25e3,pingTimeout:6e4,transports:["websocket","polling"],secure:!0});o["default"].use(Q["a"],Z),o["default"].use(u["b"]);o["default"].component("ValidationProvider",L["a"]),o["default"].config.productionTip=!1,new o["default"]({el:"#app",store:_,wait:new W.a,render:t=>t(G)})},"5dec":function(t,e,s){},"778e":function(t,e,s){},"85ec":function(t,e,s){},c059:function(t,e,s){},cf1c:function(t,e,s){t.exports=s.p+"img/loading.f4404720.gif"},e454:function(t,e,s){}}); //# sourceMappingURL=app.e7f4c8fe.js.map