Browse Source

add filemana

master
zeus 3 years ago
parent
commit
3c87015f89
  1. 2
      dist/index.html
  2. 2
      dist/js/app.1d9ead26.js
  3. 1
      dist/js/app.1d9ead26.js.map
  4. 2
      dist/js/app.b7b25c9f.js
  5. 1
      dist/js/app.b7b25c9f.js.map
  6. 14
      run.yml
  7. 2
      src-local/llo/new.js
  8. 1336
      src/components/mynetwork/\
  9. 59
      src/components/mynetwork/mytable.vue

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.b7b25c9f.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.b7b25c9f.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.1d9ead26.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.1d9ead26.js"></script></body></html>

2
dist/js/app.1d9ead26.js

File diff suppressed because one or more lines are too long

1
dist/js/app.1d9ead26.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.b7b25c9f.js

File diff suppressed because one or more lines are too long

1
dist/js/app.b7b25c9f.js.map

File diff suppressed because one or more lines are too long

14
run.yml

@ -53,6 +53,20 @@ services:
- ${nodepath}/keys/swarmlab.key:/etc/nginx/swarmlab.key
#command: [nginx-debug, '-g', 'daemon off;']
swarmlabfilemanager:
image: hub.swarmlab.io:5480/swarmlab-filemanager:latest
user: docker
#privileged: true
container_name: swarmlab-filemanager-agent
entrypoint: ["sec_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"]
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
ports:
- "3382:8080"
volumes:
- ${nodepath}/src-local/instance:/data
- /etc/localtime:/etc/localtime:ro
networks:
hybrid-net:

2
src-local/llo/new.js

@ -156,10 +156,12 @@ var static_options = {
}
}
app.use('/player', express.static('LabLearningObject-hybrid', static_options))
app.use('/asciidoc', express.static('LabLearningObject-hybrid-tmp', static_options))
app.use('/images', express.static('LabLearningObject-hybrid/images', static_options))
// ***************************************************
// rest get
// ***************************************************

1336
src/components/mynetwork/\

File diff suppressed because it is too large

59
src/components/mynetwork/mytable.vue

@ -12,6 +12,8 @@
</div>
<br>
<div class="row">
<div class="col-9">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend">
<button
@ -104,8 +106,28 @@
>
Logs</button>
</div>
</div>
</div> <!-- col -->
<div class="col-3">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend float-right">
<button
v-if="hybridshowdata.Names"
class="btn btn-outline-info"
round
type="button"
@click="onAction('basedir')"
>
BaseDir-Persistent_data</button>
</div>
</div>
</div> <!-- col -->
</div> <!-- row -->
</b-container>
<b-container fluid>
<div class="row" >
@ -545,6 +567,40 @@ export default {
//console.log('start ' + JSON.stringify(log))
//console.log('startobj ' + JSON.stringify(obj))
////console.log(this.$socket.client.connect())
}else if(action == 'basedir'){
var log = await store.dispatch("pipelineLLO/getmountinfo",{
instance:this.hybridshowdata.Names
})
var info=`<h5>Base Directory - Persistent data<br>
<br>
`
var myNetworkiservices = this.hybridshowdata.Networks.split('_')
info +='<p class="text-primary">'
info +=' <b>Click on hyperlink opens Directory in new tab</b></p>'
info +=' <table>'
info +='<tr><td><b>Local</b></td><td><i>Container</i></td></tr>'
var datajson = log.data.test[0]
for(var i = 0; i < datajson.length; i++) {
if(datajson[i].Type == 'bind'){
info +='<tr style="outline: thin solid"><td><b> <a class="text-info" href="http://127.0.0.1:3382/'+myNetworkiservices[0]+'" target="_blank">'+datajson[i].Source+'</a></b></td><td><i>' + datajson[i].Destination+' </i></td></tr>'
}
}
info +=' </table>'
this.$swal({
type: 'Info',
title: 'Info!',
icon:'info',
html: info,
showCloseButton: true,
showLoaderOnConfirm: false,
allowOutsideClick: false,
cancelButtonText: 'No, cancel!',
showCancelButton: false,
showLoaderOnConfirm: false,
reverseButtons: true,
focusCancel: true,
confirmButtonText: 'Ok!'
})
}else if(action == 'shareinfo'){
var openuerlju = 'no'
var search = 'microservice-jupyter'
@ -570,9 +626,6 @@ export default {
var log = await store.dispatch("pipelineLLO/getshareinfo",{
instance:this.hybridshowdata.Names
})
//console.log('logs---------- ' + JSON.stringify(this.hybridshowdata))
//console.log('logs1---------- ' + JSON.stringify(this.hybridshowdata.Names))
//console.log('logsserver---------- ' + JSON.stringify(log.data.container))
//console.log('logsserver1---------- ' + JSON.stringify(log.data.network))
this.hybridshowdatashare = log.data.network
var IP = this.hybridshowdatashare.IPv4Address.split('/');

Loading…
Cancel
Save