diff --git a/src-local/llo/new.js b/src-local/llo/new.js index 2051542..2030e64 100644 --- a/src-local/llo/new.js +++ b/src-local/llo/new.js @@ -482,7 +482,7 @@ app.get('/get_llo', (req, res, next) => { "tomongo": ${to} } } - ` + ` //"next_page_url": "?page="+${next}, //"prev_page_url": "?page="+${prev}, //myplaybooks.links = links diff --git a/src/components/mynetwork/mytable.vue b/src/components/mynetwork/mytable.vue old mode 100644 new mode 100755 index 0b8b607..d879c98 --- a/src/components/mynetwork/mytable.vue +++ b/src/components/mynetwork/mytable.vue @@ -643,8 +643,32 @@ export default { container_bash = '/bin/bash' var container_user_swarmlab = 'docker' } +// ----- + var swarmlabinstance1c = new RegExp("(/poc-|/POC-)"); + var pocurl = 'no' + console.log('log---------- ' + JSON.stringify(this.hybridshowdata)) + if(swarmlabinstance1c.test(this.hybridshowdata.Image)){ + var swarmlabinstance1cd = new RegExp("(->)"); + if(swarmlabinstance1cd.test(this.hybridshowdata.Ports)){ + var splitcd = this.hybridshowdata.Ports.split(':') + var splitcd1 = splitcd[1].split('-') + var swarmlabinstance1ce = new RegExp("^(web)"); + if(swarmlabinstance1ce.test(this.hybridshowdata.Names)){ + pocurl = 'http://localhost:'+splitcd1[0]+'/?token='+this.token + } + //console.log('log1a---------- ' + pocurl) + //console.log('log1---------- ' + JSON.stringify(this.hybridshowdata)) + } + //container_user = true + } +// ----- + var swarmlabinstance = new RegExp("^(hybrid-|HYBRID-)"); + if(swarmlabinstance.test(this.hybridshowdata.Names)){ + container_user = true + container_bash = '/bin/bash' + var container_user_swarmlab = 'docker' + } - // console.log('log---------- ' + JSON.stringify(this.hybridshowdata)) //var Localpath = JSON.parse(log.data.test) var info=`
' + info += 'Click here to open the Web_App' + info +='
' +} + info +=''
info +=' Directory Maps'
info +='
'
@@ -1012,7 +1042,7 @@ info +='This permits the docker user on the local machine to connect to X window
this.$root.$emit('hybrid_log_in',val)
this.$root.$emit('hybrid_refresh_table_storage')
},
- // poc
+ // poc
async message_err_poc(val) {
//console.log(" socket err "+JSON.stringify(val))
this.$root.$emit('hybrid_log_in',val)
diff --git a/src/components/mynetwork/mytable2.vue b/src/components/mynetwork/mytable2.vue
new file mode 100644
index 0000000..0b8b607
--- /dev/null
+++ b/src/components/mynetwork/mytable2.vue
@@ -0,0 +1,1115 @@
+
+
+ Select network
+