zeus 2 lat temu
rodzic
commit
265bfa5a9b
  1. 2
      src-local/llo/new.js
  2. 34
      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

34
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>'
@ -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)

1115
src/components/mynetwork/mytable2.vue

Plik diff jest za duży
Ładowanie…
Anuluj
Zapisz