@ -536,7 +536,7 @@ export default {
}
}
for ( let index = 0 ; index < al ; ++ index ) {
for ( let index = 0 ; index < al ; ++ index ) {
var el = res1 . data . data [ index ] ;
var el = res1 . data . data [ index ] ;
console . log ( 'resall-run--> ' + JSON . stringify ( el ) )
/ / c o n s o l e . l o g ( ' r e s a l l - r u n - - > ' + J S O N . s t r i n g i f y ( e l ) )
/ *
/ *
var atmp1a = el . split ( '@' ) ;
var atmp1a = el . split ( '@' ) ;
if ( atmp1a [ 1 ] ) {
if ( atmp1a [ 1 ] ) {
@ -551,10 +551,10 @@ export default {
let indexiuser = el1 [ 0 ] . lastIndexOf ( '-' ) ;
let indexiuser = el1 [ 0 ] . lastIndexOf ( '-' ) ;
indexiuser ++
indexiuser ++
var restuser = el1 [ 0 ] . substring ( indexiuser )
var restuser = el1 [ 0 ] . substring ( indexiuser )
console . log ( restuser )
/ / c o n s o l e . l o g ( r e s t u s e r )
/ / V u e . s e t ( t h i s . t e s t t e s t , e l 1 [ 0 ] , e l 1 [ 0 ] )
/ / V u e . s e t ( t h i s . t e s t t e s t , e l 1 [ 0 ] , e l 1 [ 0 ] )
Vue . set ( this . testtest , restuser , restuser )
Vue . set ( this . testtest , restuser , restuser )
console . log ( this . testtest )
/ / c o n s o l e . l o g ( t h i s . t e s t t e s t )
}
}
}
}
@ -563,17 +563,17 @@ export default {
for ( var arrayIndex in this . testtestdir ) {
for ( var arrayIndex in this . testtestdir ) {
Vue . delete ( this . testtestdir , this . testtestdir [ arrayIndex ] )
Vue . delete ( this . testtestdir , this . testtestdir [ arrayIndex ] )
}
}
console . log ( 'elnames user all ' + JSON . stringify ( this . hybridoptions ) )
/ / c o n s o l e . l o g ( ' e l n a m e s u s e r a l l ' + J S O N . s t r i n g i f y ( t h i s . h y b r i d o p t i o n s ) )
var all = res2 . data . data . length ;
var all = res2 . data . data . length ;
for ( let index = 0 ; index < all ; ++ index ) {
for ( let index = 0 ; index < all ; ++ index ) {
var el1a = res2 . data . data [ index ] ;
var el1a = res2 . data . data [ index ] ;
console . log ( 'elnames1' + el1a )
/ / c o n s o l e . l o g ( ' e l n a m e s 1 ' + e l 1 a )
/ / f o r m u l t i u s e r m u s t x x = f a l s e
/ / f o r m u l t i u s e r m u s t x x = f a l s e
var xx = false
var xx = false
if ( xx ) {
if ( xx ) {
var struser = ` ${ this . hybridoptions . user } _ `
var struser = ` ${ this . hybridoptions . user } _ `
var strbase = ` _ ${ this . hybridoptions . baseservice } `
var strbase = ` _ ${ this . hybridoptions . baseservice } `
console . log ( 'elnames user ' + struser )
/ / c o n s o l e . l o g ( ' e l n a m e s u s e r ' + s t r u s e r )
var sRegExInput = new RegExp ( struser , 'g' ) ;
var sRegExInput = new RegExp ( struser , 'g' ) ;
var a = el1a . replace ( sRegExInput , '' ) ;
var a = el1a . replace ( sRegExInput , '' ) ;
@ -581,30 +581,30 @@ export default {
var a1 = a . replace ( sRegExInput1 , '' ) ;
var a1 = a . replace ( sRegExInput1 , '' ) ;
/ / v a r a = e l 1 a . r e p l a c e ( ' s t r u s e r ' , " " ) ;
/ / v a r a = e l 1 a . r e p l a c e ( ' s t r u s e r ' , " " ) ;
console . log ( 'elnames -a1 ' + a1 )
/ / c o n s o l e . l o g ( ' e l n a m e s - a 1 ' + a 1 )
console . log ( 'elnames -a ' + a )
/ / c o n s o l e . l o g ( ' e l n a m e s - a ' + a )
Vue . set ( this . testtestdir , a1 , a1 )
Vue . set ( this . testtestdir , a1 , a1 )
} else {
} else {
var atmp1 = el1a . split ( '@' ) ;
var atmp1 = el1a . split ( '@' ) ;
if ( atmp1 [ 1 ] ) {
if ( atmp1 [ 1 ] ) {
console . log ( 'resall---> atmp1 a ' + JSON . stringify ( atmp1 ) )
/ / c o n s o l e . l o g ( ' r e s a l l - - - > a t m p 1 a ' + J S O N . s t r i n g i f y ( a t m p 1 ) )
var atmp2 = atmp1 [ 1 ] . split ( '_' ) ;
var atmp2 = atmp1 [ 1 ] . split ( '_' ) ;
console . log ( 'resall---> atmp1 ' + JSON . stringify ( atmp1 ) )
/ / c o n s o l e . l o g ( ' r e s a l l - - - > a t m p 1 ' + J S O N . s t r i n g i f y ( a t m p 1 ) )
console . log ( 'resall---> atmp2 ' + JSON . stringify ( atmp2 [ 1 ] ) )
/ / c o n s o l e . l o g ( ' r e s a l l - - - > a t m p 2 ' + J S O N . s t r i n g i f y ( a t m p 2 [ 1 ] ) )
console . log ( 'resall---> 2222 ' + JSON . stringify ( atmp2 ) )
/ / c o n s o l e . l o g ( ' r e s a l l - - - > 2 2 2 2 ' + J S O N . s t r i n g i f y ( a t m p 2 ) )
Vue . set ( this . testtestdir , atmp2 [ 1 ] , atmp2 [ 1 ] )
Vue . set ( this . testtestdir , atmp2 [ 1 ] , atmp2 [ 1 ] )
var servicecustomuser = ` ${ atmp1 [ 0 ] } @ ${ atmp2 [ 0 ] } `
var servicecustomuser = ` ${ atmp1 [ 0 ] } @ ${ atmp2 [ 0 ] } `
Vue . set ( this . testtestdiruser , atmp2 [ 1 ] , servicecustomuser )
Vue . set ( this . testtestdiruser , atmp2 [ 1 ] , servicecustomuser )
console . log ( this . testtestdir )
/ / c o n s o l e . l o g ( t h i s . t e s t t e s t d i r )
console . log ( this . testtestdiruser )
/ / c o n s o l e . l o g ( t h i s . t e s t t e s t d i r u s e r )
/ / V u e . s e t ( t h i s . t e s t t e s t u s e r , e l 1 [ 0 ] , e l 1 [ 0 ] )
/ / V u e . s e t ( t h i s . t e s t t e s t u s e r , e l 1 [ 0 ] , e l 1 [ 0 ] )
}
}
}
}
}
}
}
}
console . log ( 'resall1---> ' + JSON . stringify ( res2 . data . data ) )
/ / c o n s o l e . l o g ( ' r e s a l l 1 - - - > ' + J S O N . s t r i n g i f y ( r e s 2 . d a t a . d a t a ) )
console . log ( 'resall--->> ' + JSON . stringify ( this . testtestdir ) )
/ / c o n s o l e . l o g ( ' r e s a l l - - - > > ' + J S O N . s t r i n g i f y ( t h i s . t e s t t e s t d i r ) )
/ / c o n s o l e . l o g ( t h i s . t e s t t e s t d i r )
/ / c o n s o l e . l o g ( t h i s . t e s t t e s t d i r )
} ,
} ,
setFilter ( ) {
setFilter ( ) {
@ -646,7 +646,7 @@ export default {
if ( action == 'view-item' ) {
if ( action == 'view-item' ) {
this . swarmlab = data
this . swarmlab = data
var container = this . swarmlab . readme
var container = this . swarmlab . readme
console . log ( 'inf ' + JSON . stringify ( data ) )
/ / c o n s o l e . l o g ( ' i n f ' + J S O N . s t r i n g i f y ( d a t a ) )
/ / c o n s o l e . l o g ( ' i n f i ' + J S O N . s t r i n g i f y ( i n d e x ) )
/ / c o n s o l e . l o g ( ' i n f i ' + J S O N . s t r i n g i f y ( i n d e x ) )
var description = '<div style="height: 250px; overflow-y: scroll;"><p>' + container + '</p></div>'
var description = '<div style="height: 250px; overflow-y: scroll;"><p>' + container + '</p></div>'
@ -801,7 +801,7 @@ export default {
this . up_name = data . swarmlabname
this . up_name = data . swarmlabname
console . log ( 'RUN------------ ' + JSON . stringify ( data ) )
/ / c o n s o l e . l o g ( ' R U N - - - - - - - - - - - - ' + J S O N . s t r i n g i f y ( d a t a ) )
var filtermicrosfot = ` microservice-volatilitywindows `
var filtermicrosfot = ` microservice-volatilitywindows `
var grepmicrosoft = new RegExp ( filtermicrosfot ) ;
var grepmicrosoft = new RegExp ( filtermicrosfot ) ;
@ -848,7 +848,7 @@ export default {
/ / c o n s o l e . l o g ( ' R U N b a s e ' + J S O N . s t r i n g i f y ( t h i s . h y b r i d o p t i o n s ) )
/ / c o n s o l e . l o g ( ' R U N b a s e ' + J S O N . s t r i n g i f y ( t h i s . h y b r i d o p t i o n s ) )
if ( obWEB . hasOwnProperty ( 'custom' ) ) {
if ( obWEB . hasOwnProperty ( 'custom' ) ) {
if ( obWEB . custom != 'no' ) {
if ( obWEB . custom != 'no' ) {
console . log ( obWEB . custom )
/ / c o n s o l e . l o g ( o b W E B . c u s t o m )
this . customedit = true
this . customedit = true
this . custom . os = obWEB . customos
this . custom . os = obWEB . customos
this . custom . sh = obWEB . customsh
this . custom . sh = obWEB . customsh
@ -924,25 +924,26 @@ export default {
async setcustomsave ( ) {
async setcustomsave ( ) {
let value = { }
let value = { }
value . swarmlabname = this . hybridoptions . swarmlabname
value . swarmlabname = this . hybridoptions . swarmlabname
var log = await store . dispatch ( "pipelineLLO/savecustom" , {
var log = await store . dispatch ( "pipelineLLO/savecustomuser " , {
token : this . token ,
token : this . token ,
instance : this . hybridoptions . swarmlabname ,
instance : this . hybridoptions ,
package : this . custom . os ,
package : this . custom . os ,
sh : this . custom . sh
sh : this . custom . sh
} )
} )
this . custommenouopen = false
this . custommenouopen = false
this . custommenou = false
this . custommenou = false
console . log ( 'chown ok ' + JSON . stringify ( log . data ) )
/ / c o n s o l e . l o g ( ' c h o w n o k ' + J S O N . s t r i n g i f y ( l o g . d a t a ) )
} ,
} ,
async setcustom ( ) {
async setcustom ( ) {
let value = { }
let value = { }
value . swarmlabname = this . hybridoptions . swarmlabname
value . swarmlabname = this . hybridoptions . swarmlabname
this . custommenouopen = true
this . custommenouopen = true
this . custommenou = true
this . custommenou = true
var log = await store . dispatch ( "pipelineLLO/getcustom" , {
var log = await store . dispatch ( "pipelineLLO/getcustomuser " , {
token : this . token ,
token : this . token ,
instance : this . hybridoptions . swarmlabname
instance : this . hybridoptions
} )
} )
/ / c o n s o l e . l o g ( l o g )
if ( log . data . error === false ) {
if ( log . data . error === false ) {
if ( log . data . error_msg == 'nodir' ) {
if ( log . data . error_msg == 'nodir' ) {
/ / c o n s o l e . l o g ( ' c h o w n r e l o a d ' )
/ / c o n s o l e . l o g ( ' c h o w n r e l o a d ' )
@ -974,8 +975,8 @@ export default {
/ / t h i s . c u s t o m . s h = l o g . d a t a . e x t r a s h t e x t
/ / t h i s . c u s t o m . s h = l o g . d a t a . e x t r a s h t e x t
Vue . set ( this . custom , 'sh' , log . data . extrashtext )
Vue . set ( this . custom , 'sh' , log . data . extrashtext )
}
}
console . log ( 'chown extrapackages1 ' + JSON . stringify ( this . custom . os ) )
/ / c o n s o l e . l o g ( ' c h o w n e x t r a p a c k a g e s 1 ' + J S O N . s t r i n g i f y ( t h i s . c u s t o m . o s ) )
console . log ( 'chown sh1 ' + JSON . stringify ( this . custom . sh ) )
/ / c o n s o l e . l o g ( ' c h o w n s h 1 ' + J S O N . s t r i n g i f y ( t h i s . c u s t o m . s h ) )
}
}
} else {
} else {
@ -1002,9 +1003,9 @@ export default {
/ / c o n s o l e . l o g ( ' c h o w n s h ' + J S O N . s t r i n g i f y ( t h i s . c u s t o m . s h ) )
/ / c o n s o l e . l o g ( ' c h o w n s h ' + J S O N . s t r i n g i f y ( t h i s . c u s t o m . s h ) )
} ,
} ,
async backup ( ) {
async backup ( ) {
var log = await store . dispatch ( "pipelineLLO/runbackupinstance" , {
var log = await store . dispatch ( "pipelineLLO/runbackupinstanceuser " , {
token : this . token ,
token : this . token ,
instance : this . hybridoptions . swarmlabname
instance : this . hybridoptions
} )
} )
} ,
} ,
async backupview ( ) {
async backupview ( ) {
@ -1048,7 +1049,7 @@ info +=' <b>Click on hyperlink opens Directory in new tab</b></p>'
service : this . hybridoptions . service ,
service : this . hybridoptions . service ,
baseservice : this . hybridoptions . baseservice
baseservice : this . hybridoptions . baseservice
} )
} )
console . log ( 'data ' + JSON . stringify ( this . hybridoptions ) )
/ / c o n s o l e . l o g ( ' d a t a ' + J S O N . s t r i n g i f y ( t h i s . h y b r i d o p t i o n s ) )
/ / t h i s . $ r o o t . $ e m i t ( ' h y b r i d _ s t a r t _ i n s t a n c e _ c u s t o m ' , v a l u e )
/ / t h i s . $ r o o t . $ e m i t ( ' h y b r i d _ s t a r t _ i n s t a n c e _ c u s t o m ' , v a l u e )
this . $root . $emit ( 'hybrid_start_instance_custom' , this . hybridoptions )
this . $root . $emit ( 'hybrid_start_instance_custom' , this . hybridoptions )
/ / V u e . s e t ( t h i s . t e s t a c t i o n r o w i n d e x , v a l u e . s w a r m l a b n a m e , v a l u e . i n d e x )
/ / V u e . s e t ( t h i s . t e s t a c t i o n r o w i n d e x , v a l u e . s w a r m l a b n a m e , v a l u e . i n d e x )