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
118 KiB
2 lines
118 KiB
(function(t){function e(e){for(var i,n,r=e[0],l=e[1],c=e[2],u=0,p=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(s,n)&&s[n]&&p.push(s[n][0]),s[n]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i]);d&&d(e);while(p.length)p.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var t,e=0;e<o.length;e++){for(var a=o[e],i=!0,r=1;r<a.length;r++){var l=a[r];0!==s[l]&&(i=!1)}i&&(o.splice(e--,1),t=n(n.s=a[0]))}return t}var i={},s={app:0},o=[];function n(e){if(i[e])return i[e].exports;var a=i[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=i,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var d=l;o.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"034f":function(t,e,a){"use strict";a("85ec")},"0390":function(t,e,a){"use strict";a("b721")},"0b43":function(t,e,a){"use strict";a("778e")},"0d35":function(t,e,a){},"0ed5":function(t,e,a){t.exports=a.p+"img/docker.7b56657d.png"},3606:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABy1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADb+RESAAAAmHRSTlMAAQIDBAUGBwgKCwwODxESExUXGBkaGx4fICQlKCkqLC0uLzAyNDY4Ojs8P0BBQkNFR0lLTU5RUlVWV1hZXF1eX2BhYmNoaW1vc3R2eXp8fX5/gISFiouPkZWWl5ucoKKmqKytr7Gys7a3uLm6vL2+v8DBw8TFx8jKzM7P0NTV1tfY2dvf4OXm5+nr7e/y9fb3+Pn6+/z9/midA9kAAAPJSURBVHja7Zv5V01RFMf360WklCdjCJlV5lmTyJgImTKmjMlMMhOipOK9/ef6wTune5977zlnn81Zy7rfH+/a+34+bzr1vqsA4sSJEydOnDhx4vw3KWhsLk845CduIOJAx/ZiVwKL8HeGVjoSOJQVwDuOBHqFQK8bftEPIXDEjcA2wcelbgQuCP5HNx/FxCch0OHmCaiUr8BWNwItgj9e5EbgkRC464ZfkhYCB/lvnq9xuu+Sb4GFvuvFSXt+zSBeK1QNXRL8D94P4bRu/LzWlr9uBBHvKQzyvgiBs17+A0T8VsXAVxqskK/Aphy+rUGWj3g/0qBN8Een5vLtDCQf8VbUCftMTN2cOBp75CrdwMNHXBA+l5JD++W1JZ5VqoGPny4LH6yXU/PltTkZawMfH1siJq+IoXeei0fR0sDPb4s6qYbE1OnAdybNQJ8Pa+TYegg1GKn6a3w4KR9mAXAZmPChX8x1hZ4PpgZG/NlycB8wGRjxYa+cnAs8Bn7+cdV4p5h8GXlK6xsY8icPi9FTwGJgyIdqOVsFHAamfGgXs8OTQMegmpkPr8TwVfVPa7WBOX+enG4CewNzPjTL8VlgbeDnH9P6zF4X488BbA0o/Cly5wTYGlD4sEEurAJLAxIfzoiFr8qvIAoDGh/ei43L6lm/QQ0Lv1yu1IKVAZEPB8RKZgbYGPj5rfq/ONwWO0/15kMMyPzCMdMnLdCAzIfNcms50A3ofDgvtgbzgGxgwU8MiLWLBlu5BnS+7KcRdwDZAOj8iX46PR3IBl6BTmo//dBwsStEINPwb/rpJu83Z0iTDaj9tI+fhtoM1YDYT/v5tUA2IPbTf/DJBrR+OoBPNSD104F8ogGlnw7hkwwo/XQon2IQ1k/T+ASD4H6azAeoMzMI7qct+KYGgf20Fd/QIKiftuSbGQT001HZo8M3MQjqp+35BgZB/TQDX98gsJ9m4OsahPTTDHyAeh2D1SH9NANfzyC0n2bgaxnIfrpbdbNGc76GQVQ/zcBXG0T20wx8pUF0P83AVxio+mkGfrSBsp9m4EcaqPtpBj5Ag8+gzqyfzlmn8HNuMVpq1k+nxq35OQYVZv30Mga+z6AvadZP579g4HsMXqdM++mZbxj40sDD1+6nswZ2/KyBl6/fT5e9ZeAD1I1iX4rWT5f14/fdYJ3SiiS1n04uLgH2GPbT/DHtp7lj3k8zh9BP8+YcoZ/mDK2fZsxEP73TjQC1n2ZLD7Wf5soTx38/DVt+ZgUqHQlA+eGeMUR87PJfGQo3trcWQ5w4ceLE4covD6NT8cdAqtUAAAAASUVORK5CYII="},"47a8":function(t,e,a){"use strict";a("ec01")},"4cf0":function(t,e,a){"use strict";a("5dec")},"55b7":function(t,e,a){"use strict";a("c000")},"56d7":function(t,e,a){"use strict";a.r(e);var i=a("2b0e"),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container-fluid",attrs:{id:"app"}},[a("nav",{staticClass:"navbar navbar-light navbar-expand-md bg-light justify-content-md-center justify-content-start"},[a("b-navbar-brand",{staticClass:"logo simple-text ti-swarmlab text-secondary"},[t._v(" Swarmlab.io ")]),a("div",{staticClass:"navbar-collapse collapse justify-content-between align-items-center w-100",attrs:{id:"collapsingNavbar2"}},[a("ul",{staticClass:"navbar-nav mx-auto text-md-center text-left"},[a("b-nav-item",{attrs:{href:"https://git.swarmlab.io:3000",target:"_swarmlabgit"}},[t._v(" Swarmlab_git ")]),t._m(0),t._m(1),t._m(2),a("b-nav-item",{attrs:{href:"https://api-client.swarmlab.io:8088/?token="+t.token,target:"_swarmlab"}},[t._v(" Swarmlab_Cloud ")])],1),a("ul",{staticClass:"nav navbar-nav flex-row justify-content-md-center justify-content-start flex-nowrap"},[a("b-nav-item",{on:{click:function(e){return t.onAction("check")}}},[t._v("Connection Status:")]),a("b-nav-item",[t._v("Agent")]),"close"===t.issocket?a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-danger",attrs:{href:"#",title:"You are disconnected from hybrid_agent"}})]):a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-success",attrs:{href:"#",title:"You are connected hybrid_agent"},on:{click:function(e){return t.onAction("connect")}}})]),a("b-nav-item",[t._v("Server")]),!0!==t.isconnect?a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-danger",attrs:{href:"#",title:"You are disconnected from hybrid_server"}})]):a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-success",attrs:{href:"#",title:"You are connected hybrid_server"}})]),a("b-nav-item")],1)])],1),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"d-flex",attrs:{id:"wrapper"}},["max"==t.sidemenou?a("div",{staticClass:" bg-light border-right",staticStyle:{width:"15rem"},attrs:{id:"sidebar-wrapper"}},[a("div",{staticClass:"list-group list-group-flush"},[a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-dashboard",modifiers:{"hybrid-dashboard":!0}}],staticClass:"ti-dashboard list-group-item list-group-item-action",class:{active:t.isActive("dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Dashboard"},on:{click:function(e){return t.setActive("dashboard","")}}},[t._v(" Dashboard")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-view-grid m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboard"},on:{click:function(e){return t.setActive("dashboard","dashboard_dashboard")}}},[t._v(" Dashoard")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-profile",modifiers:{"hybrid-profile":!0}}],staticClass:"ti-user list-group-item list-group-item-action",class:{active:t.isActive("profile")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("profile","")},function(e){return t.hybrid("connect-server")}]}},[t._v(" Profile")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-profile",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-pencil-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("profile_settings")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Settings"},on:{click:[function(e){return t.setActive("settings","profile_settings")},function(e){return t.hybrid("connect-server")}]}},[t._v(" Settings")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid",modifiers:{"hybrid-hybrid":!0}}],staticClass:"ti-loop list-group-item list-group-item-action",class:{active:t.isActive("hybrid")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("hybrid","")},function(e){return t.hybrid("manage_service")}]}},[t._v(" Hybrid")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-hybrid",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-target m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_instances")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Hybrid"},on:{click:[function(e){return t.setActive("hybrid","hybrid_instances")},function(e){return t.hybrid("manage_service")}]}},[t._v(" Zone")]),a("b-list-group-item",{staticClass:"ti-cloud-up m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_deploy")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Deploy"},on:{click:[function(e){return t.setActive("hybrid","hybrid_deploy")},function(e){return t.hybrid("manage_deploy")}]}},[t._v(" Deploy")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-container",modifiers:{"hybrid-container":!0}}],staticClass:"ti-package list-group-item list-group-item-action",class:{active:t.isActive("container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("container","")},function(e){return t.hybrid("bootstrap")}]}},[t._v(" Container")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-harddrives m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container"},on:{click:[function(e){return t.setActive("container","hybrid_container")},function(e){return t.hybrid("bootstrap")}]}},[t._v(" Container")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-private",modifiers:{"hybrid-private":!0}}],staticClass:"ti-home list-group-item list-group-item-action",class:{active:t.isActive("private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private"},on:{click:[function(e){return t.setActive("private","")},function(e){return t.hybrid("services")}]}},[t._v(" Private")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-harddrive m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container"},on:{click:[function(e){return t.setActive("private","hybrid_private")},function(e){return t.hybrid("services")}]}},[t._v(" Bootstrap")])],1),a("b-list-group-item",{staticClass:"ti-angle-double-left list-group-item list-group-item-action",class:{active:t.isActive("menou-min")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"menou-min"},on:{click:function(e){return t.onActionMenu("min")}}})],1)]):t._e(),"min"==t.sidemenou?a("div",{staticClass:" bg-light border-right",attrs:{id:"sidebar-wrapper"}},[a("div",{staticClass:"list-group list-group-flush"},[a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-dashboard",modifiers:{"hybrid-dashboard":!0}}],staticClass:"ti-dashboard list-group-item list-group-item-action",class:{active:t.isActive("dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Dashboard",title:"Dashboard"},on:{click:function(e){return t.setActive("dashboard","")}}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-view-grid m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboard",title:"Dashboard"},on:{click:function(e){return t.setActive("dashboard","dashboard_dashboard")}}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-profile",modifiers:{"hybrid-profile":!0}}],staticClass:"ti-user list-group-item list-group-item-action",class:{active:t.isActive("profile")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Profile"},on:{click:[function(e){return t.setActive("profile","")},function(e){return t.hybrid("connect-server")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-profile",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-pencil-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("profile_settings")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Settings",title:"Profile"},on:{click:[function(e){return t.setActive("settings","profile_settings")},function(e){return t.hybrid("connect-server")}]}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid",modifiers:{"hybrid-hybrid":!0}}],staticClass:"ti-loop list-group-item list-group-item-action",class:{active:t.isActive("hybrid")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Hybrid"},on:{click:[function(e){return t.setActive("hybrid","")},function(e){return t.hybrid("manage_service")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-hybrid",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-target m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_instances")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Hybrid",title:"Zones"},on:{click:[function(e){return t.setActive("hybrid","hybrid_instances")},function(e){return t.hybrid("manage_service")}]}}),a("b-list-group-item",{staticClass:"ti-cloud-up m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_deploy")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Deploy"},on:{click:[function(e){return t.setActive("hybrid","hybrid_deploy")},function(e){return t.hybrid("manage_deploy")}]}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-container",modifiers:{"hybrid-container":!0}}],staticClass:"ti-package list-group-item list-group-item-action",class:{active:t.isActive("container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Container"},on:{click:[function(e){return t.setActive("container","")},function(e){return t.hybrid("bootstrap")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-harddrives m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container",title:"Show all containers"},on:{click:[function(e){return t.setActive("container","hybrid_container")},function(e){return t.hybrid("bootstrap")}]}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-private",modifiers:{"hybrid-private":!0}}],staticClass:"ti-home list-group-item list-group-item-action",class:{active:t.isActive("private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private",title:"Private"},on:{click:[function(e){return t.setActive("private","")},function(e){return t.hybrid("services")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-harddrive m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container",title:"Bootstrap"},on:{click:[function(e){return t.setActive("private","hybrid_private")},function(e){return t.hybrid("services")}]}})],1),a("b-list-group-item",{staticClass:"ti-angle-double-right list-group-item list-group-item-action",staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"menou-max"},on:{click:function(e){return t.onActionMenu("max")}}})],1)]):t._e(),a("div",{staticClass:"w-100 p-3",staticStyle:{"background-color":"#eee"}},[a("connect-server",{directives:[{name:"show",rawName:"v-show",value:"connect-server"==t.hybridmenou,expression:"hybridmenou == 'connect-server'"}],staticStyle:{"background-color":"#f8f9fa"}}),a("manage-services",{directives:[{name:"show",rawName:"v-show",value:"manage_service"==t.hybridmenou,expression:"hybridmenou == 'manage_service'"}],staticStyle:{"background-color":"#f8f9fa"}}),a("network-table",{directives:[{name:"show",rawName:"v-show",value:"bootstrap"==t.hybridmenou,expression:"hybridmenou == 'bootstrap'"}],staticStyle:{"background-color":"#f8f9fa"}}),a("services-table",{directives:[{name:"show",rawName:"v-show",value:"services"==t.hybridmenou,expression:"hybridmenou == 'services'"}],staticStyle:{"background-color":"#f8f9fa"}}),"manage_deploy"==t.hybridmenou?a("manage-deploy",{staticStyle:{"background-color":"#f8f9fa"}}):t._e()],1)])])],1)],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[t._v(" - ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item my-auto"},[a("a",{staticClass:"nav-link navbar-brand mx-0 d-none d-md-inline",attrs:{href:""}},[t._v("Hybrid")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[t._v(" - ")])])}],n=(a("e454"),a("2f62")),r=a("5f5b"),l=a("bc3a"),c=a.n(l);const d={swarmlab_url_80:"https://api.swarmlab.io",url_80:"http://localhost:3080",url_443:"https://localhost:3080"};var u={namespaced:!0,state:{token:"",socketStatus:"close",status:{}},getters:{getsocketStatus(t,e){return t.socketStatus},gettoken(t,e){return t.token},getlog(t,e){return t.log},getstatus(t,e){return t.status}},mutations:{set_socketStatus(t,e){t.socketStatus=e},set_token(t,e){t.token=e},set_status(t,e){t.status=e},add_log(t,e){t.log.push(e)}},actions:{addlog({commit:t},e){var a={};a.message=e.log.log.message,a.tailed_path=e.log.log.tailed_path,a.date=e.log.date,t("add_log",a)},setsocketStatus({commit:t},e){t("set_socketStatus",e.status)},settoken({commit:t},e){t("set_token",e.token)},setstatus({commit:t},e){t("set_status",e.status)},async swarmlabstart({commit:t,rootGetters:e},a){console.log("from "+JSON.stringify(a));try{var i=a.token,s={action:a.action},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/run",r=await c.a.post(n,s,o);console.log(JSON.stringify(r))}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridadd({commit:t,rootGetters:e},a){try{var i=a.token,s={action:a.action,nodename:a.nodename,nodeip:a.nodeip,nodeid:a.nodeid,noderole:a.noderole,nodezones:a.nodezones,nodedesc:a.nodedesc},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridadd",s,o);"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n))}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridrm({commit:t,rootGetters:e},a){try{var i=a.token,s={action:a.action,nodename:a.nodename,nodeip:a.nodeip,nodeid:a.nodeid,noderole:a.noderole,nodezones:a.nodezones,nodedesc:a.nodedesc},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrm",s,o);"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n))}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async getmountinfo({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(a));try{var i=a.token,s={instance:a.instance},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/getmountinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesinfo({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(a));try{var i=a.token,s={instance:a.instance},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/getservicesinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesstatus({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(a));try{var i=a.token,s={instance:a.instance},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/getservicesstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async create_config({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(a));try{var i=a.token,s={value:a.value},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/create_config",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async get_config({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(a));try{var i=a.token,s={value:"get"},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=d.url_80+"/get_config",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getswarmlabinfo({commit:t,rootGetters:e},a){try{var i=e["pipelineLLO/gettoken"];console.log("token "+i);var s={swarmlabname:a},o={params:s,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabhybridservicesinfo",o);return t}catch(n){console.error(n),"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async swarmlabhybridconfig({commit:t,rootGetters:e},a){try{var i=a.token,s={action:"add"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridconfiginfo",s,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n)),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_servicerm({commit:t,rootGetters:e},a){try{var i=a.token,s={bootstrapstackid:a.bootstrapstackid,bootstrapnameid:a.bootstrapnameid,action:"servicesrm"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrmservice",s,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n)),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async stackrm({commit:t,rootGetters:e},a){try{var i=a.token,s={bootstrapstackid:a.bootstrapstackid,action:"stackrm"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrmstack",s,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n)),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridjoin({commit:t,rootGetters:e},a){try{var i=a.token,s={swarmlabservice:"ondemand_test_spitifgdfgdfkngkndfkngkdfngkdfk",action:"join"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridjoin",s,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n)),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async adddeploy({commit:t,rootGetters:e},a){try{var i=a.token,s={deploy:a.deploy,action:"deploy"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+i}},n=await c.a.post("https://api.swarmlab.io/adddeployhybrid",s,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),console.log(JSON.stringify(n)),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}}}},p=a("ecee"),m=a("c074"),h=a("f2d1"),b=a("ad3d");a("f9e3"),a("2dd8");i["default"].use(n["a"]),i["default"].use(r["a"]),i["default"].component("font-awesome-icon",b["a"]),p["d"].add(m["d"],m["e"],m["c"],m["b"],m["a"],h["b"],h["c"],h["d"],m["f"],h["a"]),p["b"].watch();var g=new n["a"].Store({modules:{pipelineLLO:u},state:{},getters:{},mutations:{}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("myconnect-server")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},v=[],y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:" col text-center"},[i("v-wait",{attrs:{for:"myRunInstance1"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c"),width:"50",height:"50"}}),t._v(" Lab_Instance... ")])])],2),t.extenderror?i("button",{staticClass:"btn btn-outline-danger btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.runextenderror()}}},[t._v(" Error: max depth exceeded")]):t._e(),t.tryConsole?i("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.clear()}}},[t._v(" Clear")]):t._e(),i("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:"",disabled:""}},[t._v(" Console")]),"sublime"==t.cmOptions.keyMap?i("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.infoFilter}},[t._v(" i")]):t._e()],1),i("div",{staticClass:"codemirror"},[i("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)},w=[],A=a("8f94"),k=(a("c4e3"),a("21a6"),a("a7be"),a("eb8f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[t.$slots.image?a("div",{staticClass:"card-image"},[t._t("image")],2):t._e(),t.$slots.header||t.title?a("div",{staticClass:"card-header"},[t._t("header",[a("h4",{staticClass:"card-title"},[t._v(t._s(t.title))]),t.subTitle?a("p",{staticClass:"card-category"},[t._v(t._s(t.subTitle))]):t._e()])],2):t._e(),t.$slots.default?a("div",{staticClass:"card-body"},[t._t("default")],2):t._e(),t._t("raw-content"),t.$slots.footer?a("div",{staticClass:"card-footer"},[a("hr"),t._t("footer")],2):t._e()],2)}),C=[],_={name:"card",props:{title:String,subTitle:String}},x=_,O=a("2877"),S=Object(O["a"])(x,k,C,!1,null,null,null),N=S.exports,$=(a("b866"),a("31c5"),a("9b74"),a("f6b6"),a("3c98"),a("9c7b"),a("715d"),a("b933"),a("23de"),a("02f0"),a("8c33"),a("7289"),a("2aed"),a("d72f"),a("0b6c"),a("9a48"),a("75f8"),a("697e"),a("aedd"),a("164b"),a("4895"),a("cbc8"),a("8d70"),a("9f09"),a("a2c1"),a("56b3"),a("d7d5"),{components:{card:N,codemirror:A["codemirror"]},data(){return{socketonline:!1,extenderror:!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:!1,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:"idea",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 g.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,a){},onCmFocus(t){},onCmCodeChange(t){this.code=t},handleChange(){},setKeymap(){this.cmOptions.keyMap=this.selected},infoFilter(){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">Alt-Q</td> <td class="text-left">wrapLines</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">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">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">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-F</td> <td class="text-left">find</td></tr></table>',a=(t="","");this.$swal({title:"<strong>Key bindings</strong>",type:"info",html:e+t+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})},async hotreload(){this.getinfo,await g.dispatch("pipelineLLO/hotreload",{token:this.token,swarmlabname:this.swarmlabname})},runextenderror(){var t=' <div style="overflow-x: auto;">\n <p>\n It\'s the total amount of layers; \n </p>\n <p class="text-left">\n <b>The current limit of 125 layers is due to the kernel\'s ARG_MAX</b>, which limits the number of arguments / length of arguments that can be passed when mounting the layers \n \n<br> <i> (this limit can be raised in kernels, but is not something that could be relied on as it would make those images non-interoperable on systems that don\'t have the custom configuration)</i>\n </p>\n <p class="text-left">\n Note that not every step in a Dockerfile creates a new layer, <b>only (RUN) steps that modify the filesystem will introduce a new layer</b>.\n </p>\n\n <p class="text-center">\n <h5> <b>Solution</b> </h5>\n </p>\n <p class="text-left">\n Delete all local docker images related to your dockerfile using the following:\n <br>\n <br>\n <i><b>docker rmi -f $(docker images -a -q)</b></i>\n </p>\n\n <p class="text-left">\n <h5> <b>Description</b> </h5>\n <br>\n Remove unused image <br>\n - all images not referenced by any container -\n </p>\n <p class="text-left">\n <h5> <b>Filtering</b> </h5>\n <br>\n <i><b>docker rmi -f $(docker images -a | grep "IMAGE_NAME" | awk \'{ print $3 }\')</b></i>\n </p>\n\n</div>';this.$swal({title:"<strong>Info</strong>",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("hybrid_log_in",t=>{this.code+=t.data,this.code+="\n",this.$refs.myCm.codemirror.setCursor(this.$refs.myCm.codemirror.lineCount(),0);var e=new RegExp("max depth exceeded");e.test(t.data)?(this.extenderror=!0,console.log("find")):console.log("not find"),this.tryConsole=!0}),this.$root.$on("SERVER_hybrid_table_start",t=>{this.$nextTick((function(){this.$wait.start("myRunInstance1")}))}),this.$root.$on("SERVER_hybrid_table_stop",t=>{this.$nextTick((function(){this.$wait.end("myRunInstance1")}))})},beforeDestroy(){this.$root.$off("SERVER_socket_status"),this.$root.$off("hybrid_log_in"),this.$root.$off("SERVER_hybrid_table_start"),this.$root.$off("SERVER_hybrid_table_stop")},created(){this.token=new URL(location.href).searchParams.get("token"),this.swarmlabname=new URL(location.href).searchParams.get("pipelinename")}}),I=$,L=(a("0b43"),Object(O["a"])(I,y,w,!1,null,null,null)),P=L.exports,R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"row text-center"},[i("div",{staticClass:"col-12"},[i("b",[t._v("Hybrid server config")])])]),i("div",{staticClass:"row text-center"},[i("div",{staticClass:"col-12"},[i("br")])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Node ID")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.nodeid))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab key")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.workerkey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab PublicKey")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.swarmlab_public_wgkey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab ip")])]),i("div",{staticClass:"col-3"},[i("i",[t._v(t._s(t.CONFIG.server_ip))])]),i("div",{staticClass:"col-2"},[i("b",[t._v("Local IP")])]),i("div",{staticClass:"col-4"},[i("i",[t._v(t._s(t.CONFIG.wg_ip))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Private key")])]),i("div",{staticClass:"col-3"},[i("i",[t._v(t._s(t.CONFIG.privatekey))])]),i("div",{staticClass:"col-2"},[i("b",[t._v("Public key")])]),i("div",{staticClass:"col-4"},[i("i",[t._v(t._s(t.CONFIG.publickey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("br")])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-4"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"ti-info btn btn-outline-success",attrs:{round:"",type:"button",title:"HowTo"},on:{click:function(e){return t.onAction("register")}}}),i("button",{staticClass:"ti-settings btn btn-outline-info",attrs:{round:"",type:"button",title:"Load config"},on:{click:function(e){return t.onAction("load")}}},[t._v(" Load Settings ")])])])]),i("div",{staticClass:"col-5"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("connect")}}},[t._v(" Connect ")])]),i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("disconnect")}}},[t._v(" Disconnect ")])])])]),t._v(" "),i("div",{staticClass:"col-3"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[t.isconnect?i("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status online ")]):i("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status offline ")])])])])])])],1)},D=[],B=a("af52"),F={components:{card:N},props:{},data(){return{isconnect:!1,isstatus:!1,CONFIG:{status:"",privatekey:"",publickey:"",server_ip:"",nodeid:"",workerkey:"",allowed_ips:"",swarmlab_public_wgkey:"",wg_ip:"",swarm_ip:"",wg_port:""},token:""}},mounted(){this.$root.$on("hybrid_connect_server_view",t=>{console.log("from mytable"+JSON.stringify(t)),this.CONFIG.status=t.status,this.CONFIG.workerkey=t.workerkey,this.CONFIG.swarmlab_public_wgkey=t.swarmlab_public_wgkey,this.CONFIG.server_ip=t.server_ip,this.CONFIG.allowed_ips=t.allowed_ips,this.CONFIG.wg_port=t.wg_port,this.CONFIG.wg_ip=t.wg_ip,this.CONFIG.swarm_ip=t.swarm_ip,this.CONFIG.privatekey=t.privatekey,this.CONFIG.publickey=t.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1)}),this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_connect_server_view"),this.$root.$off("hybrid_server_status")},computed:{},methods:{async serverstatus(t){var e=g.getters["pipelineLLO/getstatus"];console.log("status log "+JSON.stringify(e)),"active"==e.data.swarmlab&&"Online"==e.data.hybrid?(this.isstatus=!0,this.isconnect=!0,this.CONFIG.nodeid=e.data.swarmlabid):(this.isstatus=!1,this.isconnect=!1,this.CONFIG.nodeid="null")},async onAction(t){if("load"==t){var e=await g.dispatch("pipelineLLO/swarmlabhybridconfig",{token:this.token});console.log("settings "+JSON.stringify(e)),this.CONFIG.status=e.data.data.status,this.CONFIG.workerkey=e.data.data.workerkey,this.CONFIG.swarmlab_public_wgkey=e.data.data.wg_public,this.CONFIG.server_ip=e.data.data.endpoint,this.CONFIG.allowed_ips=e.data.data.allowed_ip,this.CONFIG.wg_port=e.data.data.wg_port,this.CONFIG.wg_ip=e.data.data.wg_ip,this.CONFIG.swarm_ip=e.data.data.swarm_ip,this.CONFIG.privatekey=e.data.data.privatekey,this.CONFIG.publickey=e.data.data.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1),console.log("swarm "+JSON.stringify(e.data.data.workerkey)),console.log("start "+JSON.stringify("load")),this.onAction("save")}else if("connect"==t){console.log("start "+JSON.stringify("connect"));e=await g.dispatch("pipelineLLO/get_config",{token:this.token});console.log("pwd "+JSON.stringify(e)),this.isconnect=!0;var a=e.data.data;if(e.data.error_msg="ok"){var i="sudo /bin/bash ";i+=a.trim(),i+="/hybrid/connect/join.sh"}else i="no exec file";var s="<h5>Swarmlab Connect</h5><br>";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("save"==t){e=await g.dispatch("pipelineLLO/create_config",{token:this.token,value:this.CONFIG});console.log("start "+JSON.stringify(e)),console.log("start "+JSON.stringify("createkey"))}else if("disconnect"==t){console.log("start "+JSON.stringify("disconnect"));e=await g.dispatch("pipelineLLO/get_config",{token:this.token});console.log("pwd "+JSON.stringify(e));a=e.data.data;if(e.data.error_msg="ok"){i="sudo /bin/bash ";i+=a.trim(),i+="/hybrid/connect/leave.sh"}else i="no exec file";s="<h5>Swarmlab Disconnect</h5><br>";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("register"==t){console.log("start "+JSON.stringify("register"));i="Before you begin\n <br>\n Before you start using the Swarmlab Hybrid API, you need a hybrid enabled account and the Swarmlab API enabled. \n <br>\n To learn more, see Get Started with Hybrid Platform. \n ",s="<h5>Get API Key's</h5><br>";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}},actions:{}},T=F,G=(a("cd6e"),Object(O["a"])(T,R,D,!1,null,null,null)),V=G.exports,E={components:{AdhocView:P,card:N,MyconnectServer:V},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},J=E,z=Object(O["a"])(J,f,v,!1,null,null,null),j=z.exports,M=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("view-network"),a("docker-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},q=[],H=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[t.$socket.disconnected?i("button",{staticClass:"ti-unlink btn btn-outline-danger",attrs:{round:"",type:"button",title:"You are disconnected from Swarmlab-hybrid",disabled:""}}):i("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"You are connected swarmlab-hybrid",disabled:""}})]),i("div",{staticClass:"input-group-prepend"}),i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.Names?i("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-connect")}}},[t._v(" Connect")]):t._e(),t.hybridshowdata.Names?i("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-stop")}}},[t._v(" Stop")]):t._e()])])]),i("b-container",{attrs:{fluid:""}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" ID ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.ID)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Image)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Names)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" RunningFor ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.RunningFor)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Networks)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" CreatedAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.CreatedAt)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Status)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Ports)+" ")])])])],1)},Y=[],U=a("7bb1"),K=a("4c93");Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("required",{...K["c"],message:"This field is required"});var Z={components:{card:N},props:{},data(){return{CONFIG:{status:"",workerkey:"",swarmlab_public_wgkey:"",server_ip:"",allowed_ips:"",wg_port:"",wg_ip:"",swarm_ip:"",privatekey:"",publickey:"",workerkey:"",privatekey:"",publickey:"",server_ip:""},CONFIGallowed_ips:"",swarmlabname:"swarmlab-sec",swarmlabname_port:"",swarmlabname_size:3,swarmlabname_git:"",hybridshowdata:{},issocket:"close",setFilter:{},searchFor:{},resetFilter:{}}},beforeMount(){this.socketopen(),this.socketauthenticate(),console.log("send")},mounted(){this.$root.$on("hybrid_show_info",t=>{this.$nextTick((function(){this.hybridshowdata=t,console.log(JSON.stringify(this.hybridshowdata))}))}),this.$root.$on("hybrid_start_instance",t=>{this.swarmlabname=t.swarmlabname,t.size&&(this.swarmlabname_size=t.size),t.port&&(this.swarmlabname_port=t.port),console.log("RUN exec "+JSON.stringify(this.swarmlabname)),this.onAction("start")}),this.$root.$on("hybrid_install_instance",t=>{this.swarmlabname=t.swarmlabname,this.swarmlabname_git=t.git,this.onAction("install")}),this.$root.$on("hybrid_connect_server",t=>{this.$socket.client.emit("get-serverconfig")}),this.$root.$on("hybrid_stop_instance",t=>{this.swarmlabname=t,console.log("RUN exec "+JSON.stringify(this.swarmlabname)),this.onAction("stop")})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token);g.dispatch("pipelineLLO/settoken",{token:this.token});this.socketopen()},beforeDestroy(){this.$root.$off("hybrid_show_info"),this.$root.$off("hybrid_start_instance"),this.$root.$off("hybrid_stop_instance"),this.$root.$off("hybrid_connect_server"),this.$root.$off("hybrid_install_instance")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async onAction(t){if("start"==t){var e={action:"up"};e.token=this.token,e.swarmlabname=this.swarmlabname,e.swarmlabname_size=this.swarmlabname_size,e.swarmlabname_port=this.swarmlabname_port,this.$socket.client.open(),this.$socket.client.emit("start",e),console.log("startobj "+JSON.stringify(e))}else if("container-connect"==t){var a=await g.dispatch("pipelineLLO/getmountinfo",{instance:this.hybridshowdata.Names});console.log("log "+JSON.stringify(a));var i="<h5>You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.<br> \n <br>\n <b>Open a terminal and Run:</b>\n <br>\n <br>\n";i+="docker exec -it -udocker "+this.hybridshowdata.Names+" /bin/bash ",i+="<br>",i+="<br>",i+=" Directory Maps",i+=" <table>",i+="<tr><td><b>Local</b></td><td><i>Container</i></td></tr>";for(var s=a.data.test[0],o=0;o<s.length;o++)console.log("test1 "+JSON.stringify(s[o])),"bind"==s[o].Type&&(i+="<tr><td><b>"+s[o].Source+" </b></td><td><i>"+s[o].Destination+" </i></td></tr>");i+=" </table>",i+="</h5><br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("install"==t){e={action:"up"};e.token=this.token,e.swarmlabname=this.swarmlabname,e.git=this.swarmlabname_git,this.$socket.client.open(),this.$socket.client.emit("install",e)}else"container-stop"==t?(this.$root.$emit("SERVER_hybrid_table_start"),this.$socket.client.emit("container-stop",this.swarmlabname,this.hybridshowdata.ID)):"create-wirequard"==t?this.$socket.client.emit("create-wirequard",this.token):"stop"==t&&this.$socket.client.emit("stop",this.swarmlabname)},async socketopen(){this.$socket.client.open(),this.$socket.client.connect()},async socketauthenticate(){this.$socket.client.emit("authenticate",this.token)},async socketreconnect(){await this.socketopen();this.socketauthenticate()},async socketclose(){this.$socket.client.close()}},sockets:{connect(){console.log("socket connected socketdatasend"),this.issocket="open";g.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},error(t){console.log("socket error "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},connect_error(t){console.log("socket connect_error "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketopen(),this.socketreconnect()},disconnect(t){console.log("socket disconnect "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},connect_timeout(t){console.log("socket timeout "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},reconnect(t){console.log("socket reconnect attemptNumber "+JSON.stringify(t)),this.socketreconnect()},reconnect_attempt(t){console.log("socket reconnect_attempt "+JSON.stringify(t)),this.socketreconnect()},reconnecting(t){console.log("socket reconnecting "+JSON.stringify(t)),this.socketreconnect()},reconnect_error(t){console.log("socket reconnect_error "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},unauthorized(t){console.log("socket unauthorized "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},socket_id_emit(t){console.log("socket id from server "+JSON.stringify(t)),this.issocket="open";g.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},async logdata(t){console.log(" socket from logdata "+JSON.stringify(t));g.dispatch("pipelineLLO/addlog",{log:t});var e=g.getters["pipelineLLO/getlog"];this.log_path=[...new Set(e.map(t=>t.tailed_path))];var a="";for(let s of this.log_path)if(a=e.filter(t=>t.tailed_path===s).length,i["default"].set(this.log_path_lenght,s,a),a>this.loglenghttotal)g.dispatch("pipelineLLO/taillog",{path:s})},async message(t){console.log(" socket message "+JSON.stringify(t))},async message_config(t){t.data=JSON.parse(t.data),"ok"==t.file?(console.log("server-value-file-ok "+JSON.stringify(t.data.status)),this.CONFIG.status=t.data.status,this.CONFIG.workerkey=t.data.workerkey,this.CONFIG.swarmlab_public_wgkey=t.data.swarmlab_public_wgkey,this.CONFIG.server_ip=t.data.server_ip,this.CONFIG.allowed_ips=t.data.allowed_ips,this.CONFIG.wg_port=t.data.wg_port,this.CONFIG.wg_ip=t.data.wg_ip,this.CONFIG.swarm_ip=t.data.swarm_ip,this.CONFIG.privatekey=t.data.privatekey,this.CONFIG.publickey=t.data.publickey):"nodata"==t.file&&(this.CONFIG.status="",this.CONFIG.workerkey="",this.CONFIG.swarmlab_public_wgkey="",this.CONFIG.server_ip="",this.CONFIG.allowed_ips="",this.CONFIG.wg_port="",this.CONFIG.wg_ip="",this.CONFIG.swarm_ip="",this.CONFIG.privatekey="",this.CONFIG.publickey=""),console.log("server-config "+JSON.stringify(t)),this.$root.$emit("hybrid_connect_server_view",this.CONFIG)},async message_out(t){console.log(" socket out "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t),this.$root.$emit("SERVER_hybrid_table_start"),this.hybridshowdata={}},async message_err(t){console.log(" socket err "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t)},async message_close(t){console.log(" socket close "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t),this.$root.$emit("hybrid_refresh_table"),this.$root.$emit("SERVER_hybrid_table_stop")},async message_hybrid_status(t){console.log(" message_hybrid_status "+JSON.stringify(t));var e={};e.status=t;g.dispatch("pipelineLLO/setstatus",e);this.$root.$emit("hybrid_server_status",t)}},actions:{}},Q=Z,X=(a("4cf0"),Object(O["a"])(Q,H,Y,!1,null,null,null)),W=X.exports,tt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),i("vuetable",{key:t.vuetablekey,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess},scopedSlots:t._u([{key:"actions",fn:function(e){return i("div",{},[t.actionrowindex==e.rowIndex?i("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}}):i("button",{staticClass:"ti-more btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}})])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},et=[],at=a("127e"),it=a("3568"),st=a("b3c5"),ot={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekey:0,fielddata:{},fields:[{name:"Names",title:'<span class="orange"></span>Name',sortField:"Names",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"50%"},{name:"Image",title:'<span class="orange"></span>Image',sortField:"Image",visible:!0,dataClass:"left aligned w-25",width:"15%",formatter(t){const e=/^ondemand_playground/.test(t);if(e){var a='<p class="text-warning">Playground</p>';return a}a='<p class="text-info">Lab</p>';return a}},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"Status",title:'<span class="orange"></span>Status',sortField:"Status",titleClass:"center aligned",visible:!0,width:"10%"},{name:"ID",sortField:"ID",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"5%"}],apiurl:d.url_80+"/dockerservices",css:st["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_dockerservices",()=>{i["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){i["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_refresh_dockerservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,i="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:i+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){this.actionrowindex=a,this.$root.$emit("hybrid_show_info",e),console.log("index "+this.actionrowindex),"view-item"==t||"delete-item"==t&&this.$swal({type:"info",html:info+winfo,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"})},refreshVuetable(){this.$nextTick(()=>{this.vuetablekey+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},nt=ot,rt=(a("0390"),Object(O["a"])(nt,tt,et,!1,null,null,null)),lt=rt.exports,ct={components:{ViewNetwork:W,AdhocView:P,card:N,DockerServices:lt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},dt=ct,ut=Object(O["a"])(dt,M,q,!1,null,null,null),pt=ut.exports,mt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("available-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},ht=[],bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?i("div",{staticClass:"row"},[i("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[i("span",[i("b",[t._v("Lab Service Options")])])])],1):t._e(),t.viewhybridoptions?i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Instaces ")]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.size,expression:"hybridoptions.size"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Number of Instances"},domProps:{value:t.hybridoptions.size},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"size",e.target.value)}}}),i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Port")]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.port,expression:"hybridoptions.port"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Expose Port"},domProps:{value:t.hybridoptions.port},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"port",e.target.value)}}}),i("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Up")])]):t._e(),i("vuetable",{key:t.vuetablekey,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.swarmlabname]==e.rowIndex?i("button",{staticClass:"ti-thumb-up btn btn-info btn-sm",attrs:{title:"Stop Lan_Instance",round:""},on:{click:function(a){return t.onAction("down-item",e.rowData,e.rowIndex)}}}):t._e(),t.testactionrowindex[e.rowData.swarmlabname]!=e.rowIndex&&t.testactionrowindex[e.rowIndex]==e.rowIndex?i("button",{staticClass:"ti-thumb-down btn btn-secondary btn-sm",attrs:{title:"Start Lan_Instance",round:""},on:{click:function(a){return t.onAction("run-item",e.rowData,e.rowIndex)}}}):t._e()])])}},{key:"actionslocal",fn:function(e){return i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowIndex]==e.rowIndex?i("button",{staticClass:"ti-trash btn btn-info btn-sm",attrs:{title:"Remove Lab_Instance",round:""}}):t._e()])])}},{key:"actions",fn:function(e){return i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.checkactionrowindex(e.rowData,e.rowIndex)?i("button",{staticClass:"ti-cloud-down btn btn-outline-secondary btn-sm",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowIndex)}}}):t._e(),i("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Lab_Instance Info",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowIndex)}}})])])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},gt=[],ft={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],teststatusindex:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekey:0,fielddata:{},fields:[{name:"swarmlabname",title:'<span class="orange"></span>Name',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3",width:"68%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actionslocal",title:"Installed",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridservices",css:st["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_refresh_availableservices",()=>{i["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){i["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,i="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:i+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindex(t,e){if(this.testactionrowindex[e]==e){var a={};a.token=this.token,a.instance=t.swarmlabname;var s=await g.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(s)),"yes"==s.data.data?(i["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(s.data))):(console.log("res8 NO "+JSON.stringify(s.data)),i["default"].delete(this.testactionrowindex,t.swarmlabname)),console.log("is set "+e)}else{console.log("not set "+e);a={};a.token=this.token,a.instance=t.swarmlabname;var o=await g.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){console.log("resi YES "+JSON.stringify(o)),i["default"].set(this.testactionrowindex,e,e);s=await g.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(s)),"yes"==s.data.data?(i["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(s.data))):(console.log("res8 NO "+JSON.stringify(s.data)),i["default"].delete(this.testactionrowindex,t.swarmlabname))}else console.log("resi NO "+JSON.stringify(o))}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlab=e;var s=this.swarmlab,o=await g.dispatch("pipelineLLO/getswarmlabinfo",s.swarmlabname),n=(JSON.stringify(o.data.swarmlab,null,2),JSON.stringify(o.data.swarmlabinfo,null,2));n=o.data.swarmlabinfo;if("ok"==o.data.error25){var r="",l='<h5>Swarmlab Service <a href="'+n+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:l+r,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}else if("delete-item"==t)this.$swal({type:"info",html:l+r,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}),i["default"].nextTick(()=>this.$refs.vuetable.refresh());else if("run-install"==t){this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;o=await g.dispatch("pipelineLLO/getswarmlabinfo",t.swarmlabname),n=o.data.swarmlabinfo;t.git=n,console.log("inf git 1 "+JSON.stringify(n)),console.log("inf "+JSON.stringify(t)),this.$root.$emit("hybrid_install_instance",t)}else if("run-item"==t)this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;else if("down-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;l="Stop and remove containers, networks, images, and volumes";this.$swal({type:"info",html:l,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)}),console.log("RUN 1 "+JSON.stringify(e.swarmlabname))}},async rmAndClose(t){if(console.log("value 1 "+JSON.stringify(t)),console.log("value 1 "+JSON.stringify(this.hybridoptions)),t.isConfirmed){console.log("yes");var e=this.hybridoptions.swarmlabname;this.$root.$emit("hybrid_stop_instance",e),i["default"].delete(this.testactionrowindex,this.hybridoptions.index),i["default"].nextTick(()=>this.$refs.vuetable.refresh())}else console.log("no")},async setHybridoptions(){console.log(JSON.stringify(this.hybridoptions));let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port,this.$root.$emit("hybrid_start_instance",t),i["default"].set(this.testactionrowindex,t.swarmlabname,t.index),i["default"].nextTick(()=>this.$refs.vuetable.refresh())},refreshVuetable(){this.$nextTick(()=>{this.vuetablekey+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},vt=ft,yt=(a("47a8"),Object(O["a"])(vt,bt,gt,!1,null,null,null)),wt=yt.exports,At={components:{AdhocView:P,card:N,AvailableServices:wt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},kt=At,Ct=Object(O["a"])(kt,mt,ht,!1,null,null,null),_t=Ct.exports,xt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("myconnect-manage-server")],1),a("div",{staticClass:"col-5 order-last"},[a("br")])])])},Ot=[],St=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("add")}}},[t._v(" Add Network Node")])]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.nodeadmin?i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("br"),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 order-first pr-md-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodename,expression:"nodename"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Name"},domProps:{value:t.nodename},on:{input:function(e){e.target.composing||(t.nodename=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"col-3 pr-md-1"},[t.nodeadminupdate?i("ValidationProvider",{ref:"provider",attrs:{name:"nodeid",rules:"required|alpha_num"},scopedSlots:t._u([{key:"default",fn:function(e){e.valid,e.errors,e.ariaMsg,e.ariaInput;return[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeid,expression:"nodeid"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"NodeId",disabled:""},domProps:{value:t.nodeid},on:{input:function(e){e.target.composing||(t.nodeid=e.target.value)}}})]}}],null,!1,1653130323)}):i("ValidationProvider",{ref:"provider",attrs:{name:"nodeid",rules:"required|alpha_num"},scopedSlots:t._u([{key:"default",fn:function(e){e.valid;var a=e.errors;e.ariaMsg,e.ariaInput;return[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeid,expression:"nodeid"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"NodeId","data-vv-as":'"Node id"',"data-vv-value-path":"nodeid","data-vv-name":"nodeid"},domProps:{value:t.nodeid},on:{input:function(e){e.target.composing||(t.nodeid=e.target.value)}}}),i("span",[t._v(t._s(a[0]))])]}}],null,!1,3037502831)})],1),t._v(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeip,expression:"nodeip"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"IP"},domProps:{value:t.nodeip},on:{input:function(e){e.target.composing||(t.nodeip=e.target.value)}}})])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 order-first pr-md-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.noderole,expression:"noderole"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Role"},domProps:{value:t.noderole},on:{input:function(e){e.target.composing||(t.noderole=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodezones,expression:"nodezones"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Zones"},domProps:{value:t.nodezones},on:{input:function(e){e.target.composing||(t.nodezones=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.nodedesc,expression:"nodedesc"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"nodedesc"},domProps:{value:t.nodedesc},on:{input:function(e){e.target.composing||(t.nodedesc=e.target.value)}}})])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 pr-md-1"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-append"},[t.nodeadminupdate?i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("update")}}},[t._v(" update")]):i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("addserver")}}},[t._v(" add")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("cancel")}}},[t._v(" Cancel")])])])])])]):t._e(),t._v(" "),i("vuetable",{key:t.vuetablekey,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess},scopedSlots:t._u([{key:"actions",fn:function(e){return[i("div",{staticClass:"table-button-container"},[i("button",{staticClass:"ti-pencil btn btn-outline-secondary btn-sm",on:{click:function(a){return t.onAction("edit",e.rowData,e.rowIndex)}}}),i("button",{staticClass:"ti-trash btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("rm",e.rowData,e.rowIndex)}}})])]}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Nt=[];Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("required",{...K["c"],message:"This field is required"});var $t={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{token:"",valid:!1,nodeadmin:!1,nodeadminupdate:!1,rowdata:{},nodename:"",nodeid:"",nodeip:"",noderole:"",nodezones:"",nodedesc:"",playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekey:0,fielddata:{},fields:[{name:"name",title:'<span class="orange"></span>Name',sortField:"name",titleClass:"text-center aligned",visible:!0,dataClass:"center aligned",width:"20%"},{name:"nodeid",title:'<span class="text-warning">nodeid</span>',titleClass:"text-center aligned",sortField:"nodeid",visible:!0,width:"20%"},{name:"ip",title:'<span class="orange"></span>IP',titleClass:"text-center aligned",sortField:"swarmlabname",visible:!0,width:"13%"},{name:"role",title:'<span class="orange"></span>Role',titleClass:"text-center aligned",sortField:"role",visible:!0,width:"15%",formatter(t){const e=/^ondemand_playground/.test(t);if(e){var a='<p class="text-warning">Playground</p>';return a}a='<p class="text-info">Lab</p>';return a}},{name:"zones",title:'<span class="text-warning">Zones</span>',sortField:"zones",titleClass:"text-center aligned",visible:!0,width:"20%"},{name:"status",title:'<span class="orange"></span>Status',titleClass:"text-center aligned",sortField:"status",visible:!0,width:"5%"},{name:"__slot:actions",title:"Actions",titleClass:"text-center aligned",dataClass:"text-center aligned",width:"10%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1}],apiurl:d.swarmlab_url_80+"/getswarmlabhybrid",css:st["a"],perpage:9,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"hybrid"}}},mounted(){},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,i="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:i+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){var s=await g.dispatch("pipelineLLO/swarmlabhybridjoin",{token:this.token,action:"join"});if(console.log(JSON.stringify(s)),"edit"==t)this.nodeadmin=!0,this.nodeadminupdate=!0,this.nodeid=e.nodeid,this.nodeip=e.ip,this.nodename=e.name,this.noderole=e.role,this.nodezones=e.zones,this.nodedesc=e.description,console.log(JSON.stringify(e)),console.log(JSON.stringify(a));else if("update"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?(this.valid=!0,console.log("valid "+JSON.stringify(t))):(this.valid=!1,console.log("no valid"+JSON.stringify(t)))}),this.valid){var o=await g.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});i["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else if("rm"==t)this.rowdata=e,this.$swal({type:"info",html:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}).then(t=>{this.rmAndClose(t)});else if("add"==t)this.nodeadmin=!0,this.nodeadminupdate=!1;else if("addserver"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?(this.valid=!0,console.log("valid "+JSON.stringify(t))):(this.valid=!1,console.log("no valid"+JSON.stringify(t)))}),this.valid){this.nodeadmin=!1,this.nodeadminupdate=!1;o=await g.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});i["default"].nextTick(()=>this.$refs.vuetable.refresh()),console.log(JSON.stringify(o))}}else"cancel"==t&&(this.nodeadmin=!1,this.nodeadminupdate=!1)},async rmAndClose(t){await g.dispatch("pipelineLLO/getswarmlabhybridinfo",{token:this.token,nodezones:this.rowdata.zones});if(t.value){await g.dispatch("pipelineLLO/swarmlabhybridrm",{token:this.token,action:"rm",nodeid:this.rowdata.nodeid,nodeip:this.rowdata.ip,nodename:this.rowdata.name,noderole:this.rowdata.role,nodezones:this.rowdata.zones,nodedesc:this.rowdata.description});i["default"].nextTick(()=>this.$refs.vuetable.refresh()),console.log(JSON.stringify(t)),console.log("rowdara "+JSON.stringify(this.rowdata))}},async addAndClose(t){},refreshVuetable(){this.$nextTick(()=>{this.vuetablekey+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},It=$t,Lt=(a("55b7"),Object(O["a"])(It,St,Nt,!1,null,null,null)),Pt=Lt.exports,Rt={components:{AdhocView:P,card:N,MyconnectManageServer:Pt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Dt=Rt,Bt=Object(O["a"])(Dt,xt,Ot,!1,null,null,null),Ft=Bt.exports,Tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 order-first "},[a("br"),a("mydeploy-manage-bootstrap")],1),a("div",{staticClass:"col-6 order-last"},[a("br"),a("mydeploy-manage-view")],1)])])},Gt=[],Vt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("b-row",[i("b-col",{attrs:{cols:"8"}},[i("ValidationProvider",{ref:"hybrid_image",attrs:{name:"Image",rules:"required|alpha_num_image"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.image,expression:"deploy.image"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.image,"is-invalid":2==t.isDeployValid.image},attrs:{type:"text",name:"Image","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Image"},domProps:{value:t.deploy.image},on:{keyup:function(e){return t.isValid("image")},input:function(e){e.target.composing||t.$set(t.deploy,"image",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("image")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("ValidationProvider",{ref:"hybrid_stackname",attrs:{name:"StackName",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.stackname,expression:"deploy.stackname"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.stackname,"is-invalid":2==t.isDeployValid.stackname},attrs:{type:"text",name:"StackName","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"StackName"},domProps:{value:t.deploy.stackname},on:{keyup:function(e){return t.isValid("stackname")},input:function(e){e.target.composing||t.$set(t.deploy,"stackname",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("stackname")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"8"}},[i("ValidationProvider",{ref:"hybrid_name",attrs:{name:"Name",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.name,expression:"deploy.name"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.name,"is-invalid":2==t.isDeployValid.name},attrs:{type:"HybridError",name:"Name","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Name"},domProps:{value:t.deploy.name},on:{keyup:function(e){return t.isValid("name")},input:function(e){e.target.composing||t.$set(t.deploy,"name",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("name")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("ValidationProvider",{ref:"hybrid_network",attrs:{name:"Network",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.network,expression:"deploy.network"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.network,"is-invalid":2==t.isDeployValid.network},attrs:{type:"text",name:"Network","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Network Name"},domProps:{value:t.deploy.network},on:{keyup:function(e){return t.isValid("network")},input:function(e){e.target.composing||t.$set(t.deploy,"network",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("network")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"4"}},[i("ValidationProvider",{ref:"hybrid_cpu",attrs:{name:"Cpu",rules:"required|alpha_num_cpu"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.cpu,expression:"deploy.cpu"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.cpu,"is-invalid":2==t.isDeployValid.cpu},attrs:{type:"text",name:"Cpu","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Limit CPU e.g. 0.50"},domProps:{value:t.deploy.cpu},on:{keyup:function(e){return t.isValid("cpu")},input:function(e){e.target.composing||t.$set(t.deploy,"cpu",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("cpu")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("ValidationProvider",{ref:"hybrid_memory",attrs:{name:"Memory",rules:"required|alpha_num_memory"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.memory,expression:"deploy.memory"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.memory,"is-invalid":2==t.isDeployValid.memory},attrs:{type:"text",name:"Memory","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Limit Memory e.g. 500"},domProps:{value:t.deploy.memory},on:{keyup:function(e){return t.isValid("memory")},input:function(e){e.target.composing||t.$set(t.deploy,"memory",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("memory")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("ValidationProvider",{ref:"hybrid_networkport",attrs:{name:"Networkport",rules:"mybetween:1,65535"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.networkport,expression:"deploy.networkport"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.networkport,"is-invalid":2==t.isDeployValid.networkport},attrs:{type:"text",name:"Networkport","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Net Port (inside the container)"},domProps:{value:t.deploy.networkport},on:{keyup:function(e){return t.isValid("networkport")},input:function(e){e.target.composing||t.$set(t.deploy,"networkport",e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("networkport")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start date ")])]),i("date-picker",{attrs:{type:"date",autocomplete:"off",format:"YYYY-MM-DD",lang:"en"},model:{value:t.deploy.startdate,callback:function(e){t.$set(t.deploy,"startdate",e)},expression:"deploy.startdate"}})],1)]),i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start time")])]),i("date-picker",{attrs:{type:"time",format:"HH:mm","show-hour":"","show-minute":"","time-picker-options":t.timePickerOptions,lang:"en"},model:{value:t.deploy.starttime,callback:function(e){t.$set(t.deploy,"starttime",e)},expression:"deploy.starttime"}})],1)])],1),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End date ")])]),i("date-picker",{attrs:{type:"date",autocomplete:"off",format:"YYYY-MM-DD",lang:"en"},model:{value:t.deploy.enddate,callback:function(e){t.$set(t.deploy,"enddate",e)},expression:"deploy.enddate"}})],1)]),i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End time")])]),i("date-picker",{attrs:{type:"time",format:"HH:mm","show-hour":"","show-minute":"","time-picker-options":t.timePickerOptions,lang:"en"},model:{value:t.deploy.endtime,callback:function(e){t.$set(t.deploy,"endtime",e)},expression:"deploy.endtime"}})],1)])],1),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"ti-cloud-up btn btn-outline-success",attrs:{round:"",type:"button",title:"Deploy"},on:{click:function(e){return t.add_deploy()}}},[t._v(" Deploy ")])])])]),i("b-col",{attrs:{cols:"2"}}),i("b-col",{attrs:{cols:"4"}},[i("div",{staticClass:"custom-control custom-switch"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.usersjoin,expression:"deploy.usersjoin"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customStack",value:"true","unchecked-value":"false"},domProps:{checked:Array.isArray(t.deploy.usersjoin)?t._i(t.deploy.usersjoin,"true")>-1:t.deploy.usersjoin},on:{change:function(e){var a=t.deploy.usersjoin,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o="true",n=t._i(a,o);i.checked?n<0&&t.$set(t.deploy,"usersjoin",a.concat([o])):n>-1&&t.$set(t.deploy,"usersjoin",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.deploy,"usersjoin",s)}}}),i("label",{staticClass:"custom-control-label",attrs:{for:"customStack"}},[t._v("Users can join the lab instance")])])])],1)],1)],1)},Et=[],Jt=a("ec45");a("411c");Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("mybetween",K["b"]),Object(U["b"])("mybetween",{message:"The {_field_} field must be a number: 1-65535"}),Object(U["b"])("alpha_num_image",t=>{var e=new RegExp(/^[A-Za-z0-9\:\.\-\_\/]+$/,"i");return!!e.test(t)||"The {_field_} field may contain alphabetic characters, numbers, colons, hyphens, slashes, dots and underscores"}),Object(U["b"])("alpha_num_name",t=>{var e=new RegExp(/^[A-Za-z0-9]+$/,"i");return!!e.test(t)||"The {_field_} field may contain alphabetic characters and numbers"}),Object(U["b"])("alpha_num_cpu",t=>{var e=new RegExp(/^(?!0\d)\d+(?:\.\d{1})?$/);return!!e.test(t)||"The {_field_} field may contain numbers and dots e.g 0.5"}),Object(U["b"])("alpha_num_memory",t=>{var e=new RegExp(/^[0-9]+$/,"i");return!!e.test(t)||"The {_field_} field may contain numbers e.g 500"}),Object(U["b"])("required",{...K["c"],message:"This field is required"});var zt={components:{DatePicker:Jt["a"],ValidationProvider:U["a"],card:N},props:{},data(){return{isHybridError:!1,isHybridSuccess:!1,token:"",timePickerOptions:{start:"00:00",step:"00:30",end:"23:30"},deploy:{usersjoin:!0},isDeployValid:{image:3,name:3,stackname:3,network:3,networkport:3,cpu:3,memory:3},isDeployError:{}}},mounted(){},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){},computed:{},methods:{async add_deploy(){var t=Object.entries(this.deploy),e=new Promise((e,a)=>{t.forEach((t,a,i)=>{this.isValid(i[a][0]),a===i.length-1&&e()})});e.then(()=>{(async()=>{var t=!0;for(const[a,i]of Object.entries(this.isDeployValid))console.log(`${a}: ${i}`),1!=i&&(t=!1);if(t){await g.dispatch("pipelineLLO/adddeploy",{token:this.token,deploy:this.deploy});this.$root.$emit("hybrid_refresh_bootstrap_view")}else{var e="Missing required fields";this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}})()})},async showInfo(t){if("image"==t)var e='<h5>To start, we need to have a <b>docker image </b> <br>\n<br> We have built some. You can find it here: Menu "Images"</h5>\n<h6>More Info here: <a href="https://en.wikipedia.org/wiki/Docker_(software)" target="new">Wikipedia</a> , <a href="https://www.docker.com/resources/what-container" target="new">Docker</a> </h6>\n<br>\n<br>\n The field may contain alphabetic characters, numbers, colons, hyphens, slashes, dots and underscores\n';else if("stackname"==t)e="<h5>To start, we need to have a <b>Stack Name </b> <br>\n<br> This will bring up all the services, volumes, networks and everything else <br> in an isolated environment.\n</h6>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n";else if("network"==t)e="<h5>To start, we need to have a <b>Network </b> <br>\n<br> This will bring up all the services, volumes, networks and everything else <br> in an isolated network environment.\n<br>\n<br>\nServices running inside any of this networks containers have access (not limited by any firewall) to all other services.\n<br>\n</h5>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n\n";else if("networkport"==t)e="<h5><b>Network Port </b></h5>\n<br> \n<h5>\nBy default, when you create a container, <b>it does not publish any of its ports to the outside world. </b>\n<br>\nTo make a port available to Services which are not connected to the Stack network, we use this port. \n</h5>\n<br>\n<h5>\n<u>\nTo make a service available we have to know the port number used by these service inside the container.\n</u>\n<br>\n<b>Please insert that here.</b>\n</h5>\n<br>\n<br>\n(The port for outside connections is automatically generated and you dont have to worry about it!)\n<br>\n<br>\n The field may contain numbers\n";else if("cpu"==t)e="<h5>To start, we need to have a <b>CPU </b> Limit <br>\n<br> Limit the specific CPUs or cores a container can use\n</h6>\n<br>\n<br>\nThe field may contain numbers and dots e.g 0.5\n";else if("memory"==t)e="<h5>To start, we need to have a <b>Memory </b> Limit \n<br> <br> Limit the specific Memoty a container can use <br> \ne.g 200\n<br> \n(MB)\n</h6>\n<br>\n<br>\n<h6>\n<i>\nIt is important <b>not</b> to allow a running container to consume too much of the host machine’s memory.\n</i>\n</h6>\n<br>\n<br>\n The field may contain numbers\n";else if("name"==t)e="<h5>To start, we need to have a <b>Name </b><br> \nThis name is only for your own use. The system completely disregards it!\n</h5>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n";this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async isValid(t){if("image"==t){console.log(this.deploy.image);var e=await this.$refs.hybrid_image.validate();1==e.valid?this.isDeployValid.image=1:this.isDeployValid.image=2}else if("stackname"==t){e=await this.$refs.hybrid_stackname.validate();1==e.valid?this.isDeployValid.stackname=1:this.isDeployValid.stackname=2}else if("network"==t){e=await this.$refs.hybrid_network.validate();1==e.valid?this.isDeployValid.network=1:this.isDeployValid.network=2}else if("networkport"==t){e=await this.$refs.hybrid_networkport.validate();1==e.valid?this.isDeployValid.networkport=1:this.isDeployValid.networkport=2}else if("cpu"==t){e=await this.$refs.hybrid_cpu.validate();1==e.valid?this.isDeployValid.cpu=1:this.isDeployValid.cpu=2}else if("memory"==t){e=await this.$refs.hybrid_memory.validate();1==e.valid?this.isDeployValid.memory=1:this.isDeployValid.memory=2}else if("name"==t){e=await this.$refs.hybrid_name.validate();1==e.valid?this.isDeployValid.name=1:this.isDeployValid.name=2}}},actions:{}},jt=zt,Mt=(a("aa1b"),Object(O["a"])(jt,Vt,Et,!1,null,null,null)),qt=Mt.exports,Ht=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("f467"),alt:"..."}})]),i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("b-container",{attrs:{fluid:""}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?i("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-stop")}}},[t._v(" Remove Stack ")]):t._e()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?i("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-restart")}}},[t._v(" Restart Stack ")]):t._e()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?i("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("service-stop")}}},[t._v(" Remove Service ")]):t._e()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?i("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("service-restart")}}},[t._v(" Restart Service ")]):t._e()])])]),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Instances ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Replicas)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapimage)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapname)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" EndAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdateend)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapnetwork)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" BeginAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdatebegin)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),t.hybridshowdata.status?i("div",{staticClass:"col-3 text-secondary"},[i("span",{staticClass:"ti-check text-success"})]):i("div",{staticClass:"col-3 text-secondary"},[i("span")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),0!=t.hybridshowdata.ports?i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.ports)+" ")]):i("div",{staticClass:"col-4 text-secondary"})]):t._e()]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search By StackName"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),i("vuetable",{key:t.vuetablekey,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess},scopedSlots:t._u([{key:"actions",fn:function(e){return i("div",{},[t.actionrowindex==e.rowIndex?i("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}}):i("button",{staticClass:"ti-more btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}})])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Yt=[],Ut={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",playbookInfo:{},hybridshowdata:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekey:0,fielddata:{},fields:[{name:"bootstrapname",title:'<span class="orange"></span>Name',sortField:"bootstrapname",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"15%"},{name:"bootstrapstackname",title:'<span class="orange"></span>StackName',sortField:"bootstrapstackname",visible:!0,dataClass:"left aligned w-25",width:"15%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"bootstrapdatebegin5",title:'<span class="orange"></span>Begin',sortField:"bootstrapdatebegin5",titleClass:"center aligned",visible:!0,width:"10%"},{name:"bootstrapusersjoin",title:'<span class="orange"></span>Join',sortField:"bootstrapusersjoin",titleClass:"center aligned",visible:!0,width:"5%",callback:function(t){if(1==t){var e='<span class="ti-check text-success"> </span>';return e}e="<span> </span>";return e}},{name:"ID",sortField:"ID",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"5%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridbootstrapservices",css:st["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_bootstrap_view",()=>{i["default"].nextTick(()=>this.$refs.vuetable.refresh())})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_refresh_bootstrap_view")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async onActionHybrid(t){if("stack-stop"==t){var e="<h5>This will remove the stack with the name<b> "+this.hybridshowdata.bootstrapstackname+"</b> <br><br> Services, networks, and secrets associated with the stack will be removed. </h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_stackrm(t)})}else if("service-stop"==t){await g.dispatch("pipelineLLO/hybrid_servicerm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});i["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async onActionHybrid_stackrm(t){if(t.isConfirmed){await g.dispatch("pipelineLLO/stackrm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid});i["default"].nextTick(()=>this.$refs.vuetable.refresh())}},onError(t,e){var a=e,i="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:i+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){this.actionrowindex=a,console.log("index "+this.actionrowindex),"view-item"==t||("run-more"==t?(this.hybridshowdata=e,console.log("hybrid "+JSON.stringify(e))):"delete-item"==t&&this.$swal({type:"info",html:info+winfo,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}))},refreshVuetable(){this.$nextTick(()=>{this.vuetablekey+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},Kt=Ut,Zt=(a("7296"),Object(O["a"])(Kt,Ht,Yt,!1,null,null,null)),Qt=Zt.exports,Xt={components:{card:N,MydeployManageBootstrap:qt,MydeployManageView:Qt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Wt=Xt,te=Object(O["a"])(Wt,Tt,Gt,!1,null,null,null),ee=te.exports,ae={name:"app",components:{NetworkTable:pt,ServicesTable:_t,ConnectServer:j,ManageServices:Ft,ManageDeploy:ee},data(){return{setStatusAgent:"",issocket:!1,isconnect:!1,activeItem:"",activeItemSub:"",sidemenou:"max",hybridmenou:"bootstrap",show:!0,token:"",SwarmabAsciiLabTemplate:""}},mounted(){this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},beforeDestroy(){this.$root.$off("hybrid_server_status")},created(){},methods:{async onAction(t){if("check"==t){if(this.$socket.disconnected)var e="close";else if(this.$socket.connected)e="open";if(this.isconnect)var a="open";else a="close";var i="Status<br>";i+="Agent is "+e+"<br>",i+="Server is "+a,this.$swal({type:"info",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showLoaderOnConfirm:!1,focusCancel:!0})}},async serverstatus(t){var e=g.getters["pipelineLLO/getstatus"];"active"==e.data.swarmlab&&"Online"==e.data.hybrid?this.isconnect=!0:this.isconnect=!1},onActionMenu(t){"max"==t?this.sidemenou="max":"min"==t&&(this.sidemenou="min")},hybrid(t){this.hybridmenou=t,"bootstrap"==t?this.$root.$emit("hybrid_refresh_dockerservices"):"connect-server"==t?this.$root.$emit("hybrid_connect_server"):"services"==t&&this.$root.$emit("hybrid_refresh_availableservices")},isActive:function(t){return this.activeItem===t},isActiveSub:function(t){return this.activeItemSub===t},setActive:function(t,e){this.activeItem=t,this.activeItemSub=e}},computed:{socketStatus(){return g.getters["pipelineLLO/getsocketStatus"]}},watch:{socketStatus(t){console.log("watchok "+t),this.issocket=t}}},ie=ae,se=(a("034f"),Object(O["a"])(ie,s,o,!1,null,null,null)),oe=se.exports,ne=a("5886"),re=a("f2d6"),le=a.n(re),ce=(a("c059"),a("f87c")),de=a("8e27");i["default"].use(ne["default"]),i["default"].use(le.a);var ue=d.url_80;const pe=Object(de["io"])(ue,{autoConnect:!1,reconnection:!0,reconnectionDelay:500,maxReconnectionAttempts:1/0,pingInterval:25e3,pingTimeout:6e4,transports:["websocket","polling"],secure:!0,rejectUnauthorized:!1});i["default"].use(ce["a"],pe),i["default"].use(r["b"]);i["default"].component("ValidationProvider",U["a"]),i["default"].config.productionTip=!1,new i["default"]({el:"#app",store:g,wait:new le.a,render:t=>t(oe)})},"5dec":function(t,e,a){},7296:function(t,e,a){"use strict";a("0d35")},"778e":function(t,e,a){},"798c":function(t,e,a){},"85ec":function(t,e,a){},a6d9:function(t,e,a){},aa1b:function(t,e,a){"use strict";a("798c")},b721:function(t,e,a){},c000:function(t,e,a){},c059:function(t,e,a){},cd6e:function(t,e,a){"use strict";a("a6d9")},cf1c:function(t,e,a){t.exports=a.p+"img/loading.f4404720.gif"},e454:function(t,e,a){},ec01:function(t,e,a){},f467:function(t,e,a){t.exports=a.p+"img/hybrid-1.852eef88.png"}});
|
|
//# sourceMappingURL=app.b116901b.js.map
|