Browse Source

add url

master
zeus 3 years ago
parent
commit
265bfa5a9b
  1. 2
      src-local/llo/new.js
  2. 32
      src/components/mynetwork/mytable.vue
  3. 1115
      src/components/mynetwork/mytable2.vue

2
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

32
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=`<h5>You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.<br>
<br>
@ -662,6 +686,12 @@ if(container_user){
info +='</p>'
}
if(pocurl != 'no'){
info +='<p class="text-info">'
info += '<a href="'+pocurl+'" target="_blank">Click here to open the Web_App</a>'
info +='</p>'
}
info +='<p class="text-secondary">'
info +=' <b>Directory Maps</b>'
info +='<br>'

1115
src/components/mynetwork/mytable2.vue

File diff suppressed because it is too large
Loading…
Cancel
Save