Browse Source

api keys

master
zeus 3 years ago
parent
commit
77abdc721d
  1. 2
      dist/css/app.7ebe4e80.css
  2. 2
      dist/index.html
  3. 2
      dist/js/app.5e7a93ea.js
  4. 1
      dist/js/app.5e7a93ea.js.map
  5. 2
      dist/js/app.d2878685.js
  6. 1
      dist/js/app.d2878685.js.map
  7. 228
      src/components/manageservices/hybridlab.vue
  8. 18
      src/components/myconnect-server.vue
  9. 72
      src/components/mynetwork/myconnect-server.vue
  10. 20
      src/store/modules/create_pipelineLLO.js
  11. 221
      viwsession/session1

2
dist/css/app.ad1e967b.css → dist/css/app.7ebe4e80.css

File diff suppressed because one or more lines are too long

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.ad1e967b.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.5e7a93ea.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.ad1e967b.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.5e7a93ea.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.7ebe4e80.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.d2878685.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.7ebe4e80.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.d8d18fe6.js"></script><script src="/js/app.d2878685.js"></script></body></html>

2
dist/js/app.5e7a93ea.js

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

2
dist/js/app.d2878685.js

File diff suppressed because one or more lines are too long

1
dist/js/app.d2878685.js.map

File diff suppressed because one or more lines are too long

228
src/components/manageservices/hybridlab.vue

@ -0,0 +1,228 @@
<template>
<card class="card-header" title="Hybrid API Request" style="max-height:100%">
<b-row>
<b-col cols="12" >
<table class="table table-bordered">
<tbody>
<tr>
<th scope="row"
class="text-center"
>
Project
</th>
<td>
<div class="input-group input-group-sm sm-3">
<input type="text"
class="form-control"
aria-label="Small" aria-describedby="inputGroup-sizing-sm"
placeholder="Project Name (Alphanumeric characters, dashes and underscores, NOT spaces)"
v-model="swarmlabhybridapi.project"
>
<div class="input-group-append">
<button
class="ti-info btn btn-outline-primary"
round
type="button"
@click="showinfo('Project')">
</button>
</div>
</div>
</td>
</tr>
<tr>
<th scope="row"
class="text-center"
>
Category
</th>
<td>
<input type="text"
class="form-control"
aria-label="Small" aria-describedby="inputGroup-sizing-sm"
placeholder="Project Category"
v-model="swarmlabhybridapi.faculty"
>
</td>
</tr>
<tr>
<th scope="row"
class="text-center"
>
Description
</th>
<td>
<input type="text"
class="form-control"
aria-label="Small" aria-describedby="inputGroup-sizing-sm"
placeholder="What is the purpose of the project?"
v-model="swarmlabhybridapi.desc"
>
</td>
</tr>
</tbody>
</table>
</b-col>
</b-row>
<b-row>
<b-col cols="12" >
<div class="input-group-append">
<button
class="btn btn-outline-success"
round
type="button"
@click="getApi"
> Request hybrid API
</button>
</div>
</b-col>
</b-row>
</card>
</template>
<script>
import store from '@/store/index'
import {mapState, mapGetters, mapActions,dispatch} from 'vuex'
import Vue from 'vue'
import {ApiConfig} from "@/config/index";
export default {
components: {
},
props: {
},
data() {
return{
swarmlabhybridapi:{
labservices:'services'
}
}
},
mounted() {
},
beforeDestroy () {
},
computed: {
},
methods: {
showinfo(value) {
if(value == 'Project'){
//var info='The ProjectName can only contain alphanumeric characters, dashes or underscores <br> We use that "Name" to retrieve the corresponding key values <br> Name assigned here will need it to connect you to Swarmlab Server.'
var info='We use that "Name" to retrieve the corresponding key values <br> The name assigned here will be needed to connect you to Swarmlab Server. <br> The ProjectName can only contain alphanumeric characters, dashes or underscores.'
this.$swal({
type: 'info',
html: info,
showCloseButton: false,
showLoaderOnConfirm: false,
allowOutsideClick: false,
// cancelButtonText: 'No, cancel!',
showCancelButton: false,
showLoaderOnConfirm: false,
reverseButtons: true,
focusCancel: false,
confirmButtonText: 'Ok!'
})
}
},
async getApi() {
console.log('getApi')
var bootstrap = await store.dispatch("pipelineLLO/swarmlabhybridapi",{
lab: this.swarmlabhybridapi
})
console.log(JSON.stringify(bootstrap))
if(bootstrap.data.action == 'ok'){
var info='<h5>OK</h5>'
this.$swal({
type: 'info',
html: info,
showCloseButton: true,
showLoaderOnConfirm: false,
allowOutsideClick: false,
showLoaderOnConfirm: false,
focusCancel: true
})
}else{
var info='<h5>Error</h5>'
this.$swal({
type: 'error',
html: info,
showCloseButton: true,
showLoaderOnConfirm: false,
allowOutsideClick: false,
showLoaderOnConfirm: false,
focusCancel: true
})
}
}
},
actions: {
}
};
</script>
<style>
.flex-fixed-width-item {
flex: 0 0 100px;
}
.modalinfo {
z-index: 10000000 !important;
position:fixed;
}
/* a container with flex-direction column */
.vue-notifyjs.notifications{
.alert{
z-index: 100;
}
.list-move {
transition: transform 0.3s, opacity 0.4s;
}
.list-item {
display: inline-block;
margin-right: 10px;
}
.list-enter-active {
transition: transform 0.2s ease-in, opacity 0.4s ease-in;
}
.list-leave-active {
transition: transform 1s ease-out, opacity 0.4s ease-out;
}
.list-enter {
opacity: 0;
transform: scale(1.1);
}
.list-leave-to {
opacity: 0;
transform: scale(1.2, 0.7);
}
}
pre {
//background-color: rgb(255, 247, 229);
background-color: #eff0f1;
border: 1px solid blue;
//white-space: pre-line;
text-align: left;
}
.codeblock {
text-align: left;
}
</style>

18
src/components/myconnect-server.vue

@ -7,6 +7,11 @@
<myconnect-server>
</myconnect-server>
<hybrid-lab
v-if="ishybridlab"
>
</hybrid-lab>
</div>
<div class="col-5 order-last" >
@ -31,11 +36,11 @@ import {mapState, mapGetters, mapActions} from 'vuex'
//import AdhocView from "./mynetwork/AdhocView.vue";
import ZonesView from "./manageservices/manage-service.vue";
import card from '@/components/Card.vue'
//import DockerServices from "./mynetwork/dockerservices.vue";
import HybridLab from "./manageservices/hybridlab.vue";
import MyconnectServer from "./mynetwork/myconnect-server.vue";
export default {
components: {
// AdhocView,
HybridLab,
ZonesView,
card,
MyconnectServer
@ -43,13 +48,22 @@ export default {
data () {
return {
loading: false,
ishybridlab: false,
consoleView: 'off',
productIndex: 1
}
},
mounted() {
this.$root.$on('hybrid_lab_keyview', (v) => {
if(v == 'open'){
this.ishybridlab=true
}else if(v == 'close'){
this.ishybridlab=false
}
})
},
beforeDestroy () {
this.$root.$off('hybrid_lab_keyview')
},

72
src/components/mynetwork/myconnect-server.vue

@ -45,18 +45,12 @@
<br>
</div>
</div>
<div class="row">
<div class="col-4">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend">
<button
class="ti-info btn btn-outline-success"
round
type="button"
title="HowTo"
@click="onAction('register')"
>
</button>
<button
class="ti-settings btn btn-outline-info"
round
@ -80,10 +74,14 @@
-->
</div>
</div>
<div class="col-5">
<div class="col-1">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend"
>
</div>
</div> <!-- coll -->
<div class="col-7 text-right">
<div class="input-group input-group-sm sm-3 text-right">
<div class="input-group-append text-right">
<button
class="ti-link btn btn-outline-success"
round
@ -92,9 +90,6 @@
@click="onAction('connect')"
> Connect
</button>
</div>
<div class="input-group-prepend"
>
<button
class="ti-unlink btn btn-outline-warning"
round
@ -103,13 +98,6 @@
@click="onAction('disconnect')"
> Disconnect
</button>
</div>
</div>
</div> <!-- coll -->
<div class="col-3">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend">
<button
v-if="isconnect"
class="ti-link btn btn-outline-success"
@ -133,6 +121,41 @@
</div>
</div>
<div class="row">
<div class="col-12">
<div class="input-group input-group-sm sm-3">
<div class="input-group-prepend">
<button
v-if="ishybridlab"
class="ti-key btn btn-outline-info"
round
type="button"
title="Api keys"
@click="onAction('apikeyopen')"
> Enable the Swarmlab hybrid API
</button>
<button
v-else
class="ti-layout-media-overlay-alt btn btn-outline-warning"
round
type="button"
title="Api keys"
@click="onAction('apikeyclose')"
> Enable the Swarmlab hybrid API
</button>
<button
class="ti-info btn btn-outline-success"
round
type="button"
title="HowTo"
@click="onAction('register')"
>
</button>
</div>
</div>
</div>
</div>
</b-container>
</card>
</template>
@ -151,6 +174,7 @@ export default {
data() {
return{
isconnect:false,
ishybridlab:true,
isstatus:false,
CONFIG:{
'status':'',
@ -251,6 +275,12 @@ export default {
//console.log('start ' + JSON.stringify('load'))
this.onAction('save')
}else if(action == 'apikeyopen'){
this.ishybridlab=false
this.$root.$emit('hybrid_lab_keyview','open')
}else if(action == 'apikeyclose'){
this.ishybridlab=true
this.$root.$emit('hybrid_lab_keyview','close')
}else if(action == 'connect'){
//console.log('start ' + JSON.stringify('connect'))
var log = await store.dispatch("pipelineLLO/get_config",{

20
src/store/modules/create_pipelineLLO.js

@ -191,6 +191,26 @@ export default {
}
}
},
async swarmlabhybridapi({commit,rootGetters}, value) {
try {
var token = rootGetters['pipelineLLO/gettoken']
var save = value
var params = {
pipeline: save
}
var options = {
headers: { 'content-type': 'application/x-www-form-urlencoded',Authorization: `Bearer ${token}` },
};
var pipelineApi = await axios.post('https://api.swarmlab.io/swarmlabhybridapi',params,options);
return pipelineApi
} catch (e) {
if(e.error == "invalid_token"){
window.location.href = 'https://api-login.swarmlab.io:8089';
}
console.error(e);
}
},
async getprogress({commit,rootGetters}, value) {
try {
var token = rootGetters['pipelineLLO/gettoken']

221
viwsession/session1

@ -17,7 +17,7 @@ badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue
badd +20 /data/appl/ok/swarmlab-hybrid-agent/src/store/modules/create_pipelineLLO.js
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/App.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/myconnect-server.vue
badd +27 /data/appl/ok/swarmlab-hybrid-agent/src/components/myconnect-server.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork/myconnect-server.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices.vue
badd +449 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/deploy-bootstrap.vue
@ -27,8 +27,10 @@ badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/llo-se
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/llo-view.vue
badd +9 /data/appl/ok/swarmlab-hybrid-agent/src/components/asciiplayer.vue
badd +28 /data/appl/ok/swarmlab-hybrid-agent/src/components/managello.vue
badd +235 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/calendarview.vue
badd +0 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/view-events.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/calendarview.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/view-events.vue
badd +0 /data/appl/ok/swarmlab-hybrid-agent/src/components/dashboard.vue
badd +0 /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/hybridlab.vue
argglobal
silent! argdel *
$argadd mynetwork.vue
@ -51,14 +53,14 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe '1resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 100 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 101) / 202)
exe '4resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 4resize ' . ((&columns * 101 + 101) / 202)
exe '1resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe '3resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
exe '4resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 4resize ' . ((&columns * 101 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -69,7 +71,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 191 - ((10 * winheight(0) + 11) / 22)
let s:l = 191 - ((10 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -107,7 +109,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 21 - ((0 * winheight(0) + 11) / 22)
let s:l = 21 - ((0 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -134,14 +136,14 @@ normal! zt
normal! 010|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
exe '1resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 100 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 101) / 202)
exe '4resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 4resize ' . ((&columns * 101 + 101) / 202)
exe '1resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe '3resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
exe '4resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 4resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src-local/llo/new.js
set splitbelow splitright
wincmd _ | wincmd |
@ -156,11 +158,11 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
exe '3resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -171,12 +173,12 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 1080 - ((22 * winheight(0) + 22) / 45)
let s:l = 1080 - ((22 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1080
normal! 037|
normal! 023|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
@ -190,7 +192,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 101 - ((0 * winheight(0) + 11) / 22)
let s:l = 101 - ((20 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -209,7 +211,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 182 - ((0 * winheight(0) + 11) / 22)
let s:l = 182 - ((20 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -217,11 +219,11 @@ normal! zt
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
exe '3resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/store/modules/create_pipelineLLO.js
set splitbelow splitright
wincmd _ | wincmd |
@ -232,8 +234,8 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -244,12 +246,12 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 70 - ((22 * winheight(0) + 22) / 45)
let s:l = 204 - ((30 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
70
normal! 013|
204
normal! 019|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
@ -263,7 +265,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 246 - ((19 * winheight(0) + 22) / 45)
let s:l = 246 - ((19 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -271,20 +273,27 @@ normal! zt
normal! 049|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/components/myconnect-server.vue
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd _ | wincmd |
split
1wincmd k
wincmd w
wincmd w
set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe '1resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -295,12 +304,31 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 32 - ((30 * winheight(0) + 22) / 45)
let s:l = 27 - ((9 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
32
normal! 058|
27
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
if bufexists('/data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/hybridlab.vue') | buffer /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/hybridlab.vue | else | edit /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/hybridlab.vue | endif
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 137 - ((11 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
137
normal! 023|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
@ -314,16 +342,20 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 161 - ((44 * winheight(0) + 22) / 45)
let s:l = 228 - ((21 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
161
normal! 019|
228
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
2wincmd w
exe '1resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe '2resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices.vue
set splitbelow splitright
wincmd _ | wincmd |
@ -334,8 +366,8 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
argglobal
enew
file /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/manage-service.vue
@ -359,7 +391,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 28 - ((27 * winheight(0) + 22) / 45)
let s:l = 28 - ((26 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -367,8 +399,8 @@ normal! zt
normal! 02|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/deploy-bootstrap.vue
set splitbelow splitright
wincmd _ | wincmd |
@ -383,11 +415,11 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 74 + 101) / 202)
exe '2resize ' . ((&lines * 17 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 127 + 101) / 202)
exe '3resize ' . ((&lines * 27 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 127 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 74 + 100) / 201)
exe '2resize ' . ((&lines * 17 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 126 + 100) / 201)
exe '3resize ' . ((&lines * 26 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 126 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -398,7 +430,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 405 - ((27 * winheight(0) + 22) / 45)
let s:l = 405 - ((26 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -438,11 +470,11 @@ setlocal fdn=20
setlocal fen
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 74 + 101) / 202)
exe '2resize ' . ((&lines * 17 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 127 + 101) / 202)
exe '3resize ' . ((&lines * 27 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 127 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 74 + 100) / 201)
exe '2resize ' . ((&lines * 17 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 126 + 100) / 201)
exe '3resize ' . ((&lines * 26 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 126 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/join-service.vue
set splitbelow splitright
set nosplitbelow
@ -459,7 +491,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 497 - ((22 * winheight(0) + 23) / 46)
let s:l = 497 - ((22 * winheight(0) + 22) / 45)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -476,8 +508,8 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -488,7 +520,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 191 - ((31 * winheight(0) + 22) / 45)
let s:l = 191 - ((30 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -507,7 +539,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 2 - ((1 * winheight(0) + 22) / 45)
let s:l = 2 - ((1 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -515,8 +547,8 @@ normal! zt
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 2resize ' . ((&columns * 101 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/components/manageservices/calendarview.vue
set splitbelow splitright
wincmd _ | wincmd |
@ -531,11 +563,11 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 101 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 100 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 100 + 101) / 202)
exe 'vert 1resize ' . ((&columns * 100 + 100) / 201)
exe '2resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 201)
exe '3resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 100 + 100) / 201)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -546,7 +578,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 2 - ((1 * winheight(0) + 22) / 45)
let s:l = 2 - ((1 * winheight(0) + 22) / 44)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -565,12 +597,12 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 27 - ((13 * winheight(0) + 11) / 22)
let s:l = 29 - ((14 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
27
normal! 031|
29
normal! 036|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
@ -584,21 +616,20 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 6 - ((5 * winheight(0) + 11) / 22)
let s:l = 15 - ((14 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
6
normal! 070|
15
normal! 07|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
3wincmd w
exe 'vert 1resize ' . ((&columns * 101 + 101) / 202)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 100 + 101) / 202)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 100 + 101) / 202)
tabnext 9
exe 'vert 1resize ' . ((&columns * 100 + 100) / 201)
exe '2resize ' . ((&lines * 21 + 23) / 47)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 201)
exe '3resize ' . ((&lines * 22 + 23) / 47)
exe 'vert 3resize ' . ((&columns * 100 + 100) / 201)
tabnext 4
set stal=1
if exists('s:wipebuf')
silent exe 'bwipe ' . s:wipebuf

Loading…
Cancel
Save