Browse Source

console

master
zeus 3 years ago
parent
commit
55738c5b64
  1. 2
      dist/index.html
  2. 2
      dist/js/app.5ae7c1ec.js
  3. 1
      dist/js/app.5ae7c1ec.js.map
  4. 2
      dist/js/app.f199c875.js
  5. 1
      dist/js/app.f199c875.js.map
  6. 51
      src/components/mynetwork/mytable.vue
  7. 41
      src/config/index-web.js

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.f199c875.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.f199c875.js"></script></body></html>
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.25658f84.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.5ae7c1ec.js" rel="preload" as="script"><link href="/js/chunk-vendors.d8d18fe6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.25658f84.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.5ae7c1ec.js"></script></body></html>

2
dist/js/app.5ae7c1ec.js

File diff suppressed because one or more lines are too long

1
dist/js/app.5ae7c1ec.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.f199c875.js

File diff suppressed because one or more lines are too long

1
dist/js/app.f199c875.js.map

File diff suppressed because one or more lines are too long

51
src/components/mynetwork/mytable.vue

@ -902,6 +902,7 @@ info +=' </table>'
//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>
<hr>
<br>
<b>Open a terminal and Run*:</b>
<br>
@ -930,19 +931,45 @@ if(pocurlcodeserver != 'no'){
info +='</p>'
}
// find web url
// ipv4
// ApiConfigWEB.port = port
var urlgenWEB = this.hybridshowdata.Names.split('_');
console.log('urlgenWEB '+urlgenWEB)
var pocurletherpadserver = 'no'
var pocurletherpadserverttyd = 'no'
for(var i = 0; i < ApiConfigWEB.length; i++) {
var obWEB = ApiConfigWEB[i];
if(obWEB.name == urlgenWEB[0]){
var swarmlabinstance1cda1 = new RegExp("(->)");
if(swarmlabinstance1cda1.test(this.hybridshowdata.Ports)){
var splitcda1 = this.hybridshowdata.Ports.split(':')
var splitcd1a1 = splitcda1[1].split('-')
pocurletherpadserver = obWEB.url+'://localhost:'+splitcd1a1[0]+'/?token='+this.token
}
var swarmlabinstance1cda1 = new RegExp("(->)");
if(swarmlabinstance1cda1.test(this.hybridshowdata.Ports)){
var splitcda1split = this.hybridshowdata.Ports.split(',')
for(var i1 = 0; i1 < splitcda1split.length; i1++) {
var swarmlabinstance1cda1s = new RegExp("(0.0.0.0)");
if(swarmlabinstance1cda1s.test(splitcda1split[i1])){
if(obWEB.app){
var swarmlabinstance1cda1s1 = new RegExp(obWEB.port);
if(swarmlabinstance1cda1s1.test(splitcda1split[i1])){
var splitcda1 = splitcda1split[i1].split(':')
var splitcd1a1 = splitcda1[1].split('-')
pocurletherpadserver = obWEB.url+'://localhost:'+splitcd1a1[0]+'/?token='+this.token
}
}
if(obWEB.ttyd){
var swarmlabinstance1cda1s1b = new RegExp(obWEB.ttydport);
if(swarmlabinstance1cda1s1b.test(splitcda1split[i1])){
//console.log('stringify--------- ' + JSON.stringify(splitcda1split[i1]));
var splitcda1bc = splitcda1split[i1].split(':')
var splitcd1a1bc = splitcda1bc[1].split('-')
pocurletherpadserverttyd = obWEB.ttydurl+'://localhost:'+splitcd1a1bc[0]+'/?token='+this.token
}
}
}
}
}
}
}
// -----
@ -959,11 +986,19 @@ if(pocurlcodeserver != 'no'){
}
*/
if(pocurletherpadserver != 'no'){
info += '<hr>'
info +='<p class="text-info">'
info += '<a href="'+pocurletherpadserver+'" target="_blank">Click here to open the Web_App</a>'
info += '<a href="'+pocurletherpadserver+'" target="_blank">Click here to open Web App</a>'
info +='</p>'
}
if(pocurletherpadserverttyd != 'no'){
info += '<hr>'
info +='<p class="text-info">'
info += '<a href="'+pocurletherpadserverttyd+'" target="_blank">Click here to open a Terminal emulator for instance</a>'
info +='</p>'
info += '<hr>'
}
// -----
var pocmypathinfo = ''

41
src/config/index-web.js

@ -3,30 +3,47 @@
export const ApiConfigWEB = [
{
"name": "microservice-etherpad",
"automated": true,
"app": true,
"url": 'http',
"version": 0,
"port": 0
"port": 0,
"ttyd": false,
"ttydport": 3787,
"ttydurl": 'http'
},
{
"name": "jitsiweb",
"automated": true,
"app": true,
"url": 'https',
"version": 0,
"port": 0
"port": 0,
"ttyd": false,
"ttydport": 3787,
"ttydurl": 'http'
},
{
"name": "microservice-novncfull",
"automated": true,
"app": true,
"url": 'http',
"version": 0,
"port": 0
"port": 0,
"ttyd": false,
"ttydport": 3787,
"ttydurl": 'http'
},
{
"name": "microservice-novnclite",
"automated": true,
"app": true,
"url": 'http',
"version": 0,
"port": 0
"port": 0,
"ttyd": false,
"ttydport": 3787,
"ttydurl": 'http'
},
{
"name": "microservice-mongoexpress",
"app": true,
"url": 'http',
"port": 8081,
"ttyd": true,
"ttydport": 3787,
"ttydurl": 'http'
}
];

Loading…
Cancel
Save