Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
25 KiB

{"remainingRequest":"/home/lefos/repos/swarmlab-playground-client/node_modules/babel-loader/lib/index.js!/home/lefos/repos/swarmlab-playground-client/src/store/modules/create_pipelineLLO.js","dependencies":[{"path":"/home/lefos/repos/swarmlab-playground-client/src/store/modules/create_pipelineLLO.js","mtime":1615930840866},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/lefos/repos/swarmlab-playground-client/node_modules/babel-loader/lib/index.js","mtime":315532800000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgbWFwU3RhdGUsIG1hcEFjdGlvbnMsIGNvbW1pdCB9IGZyb20gJ3Z1ZXgnOwppbXBvcnQgc3RvcmUgZnJvbSAnQC9zdG9yZS9pbmRleCc7CmltcG9ydCBheGlvcyBmcm9tICdheGlvcyc7CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lc3BhY2VkOiB0cnVlLAogIHN0YXRlOiB7CiAgICB0b2tlbjogJycsCiAgICBsbG86IHt9LAogICAgbG9nOiBbXSwKICAgIG1vbmdvbG9nOiBbXSwKICAgIHNvY2tldGlkOiAnJywKICAgIHJlc3RhcGk6ICdvZmYnCiAgfSwKICBnZXR0ZXJzOiB7CiAgICBnZXRyZXN0YXBpKHN0YXRlLCBjb250YWluZXIpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIGdldCAiK0pTT04uc3RyaW5naWZ5KHN0YXRlLmxsbykpCiAgICAgIHJldHVybiBzdGF0ZS5yZXN0YXBpOyAvL3JldHVybiBzdGF0ZS5sb2cKICAgIH0sCgogICAgZ2V0bW9uZ29sb2coc3RhdGUsIGNvbnRhaW5lcikgewogICAgICAvL2NvbnNvbGUubG9nKCJqczEgZ2V0ICIrSlNPTi5zdHJpbmdpZnkoc3RhdGUubGxvKSkKICAgICAgcmV0dXJuIHN0YXRlLm1vbmdvbG9nOyAvL3JldHVybiBzdGF0ZS5sb2cKICAgIH0sCgogICAgZ2V0bG9nKHN0YXRlLCBjb250YWluZXIpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIGdldCAiK0pTT04uc3RyaW5naWZ5KHN0YXRlLmxsbykpCiAgICAgIHJldHVybiBzdGF0ZS5sb2c7CiAgICB9LAoKICAgIGdldHRva2VuKHN0YXRlLCBjb250YWluZXIpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIGdldCAiK0pTT04uc3RyaW5naWZ5KHN0YXRlLmxsbykpCiAgICAgIHJldHVybiBzdGF0ZS50b2tlbjsKICAgIH0sCgogICAgZ2V0bGxvc3JjKHN0YXRlLCBjb250YWluZXIpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIGdldCAiK0pTT04uc3RyaW5naWZ5KHN0YXRlLmxsbykpCiAgICAgIHJldHVybiBzdGF0ZS5sbG87CiAgICB9LAoKICAgIGdldHNvY2tldGlkKHN0YXRlLCBjb250YWluZXIpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIGdldCAiK0pTT04uc3RyaW5naWZ5KHN0YXRlLmxsbykpCiAgICAgIHJldHVybiBzdGF0ZS5zb2NrZXRpZDsKICAgIH0KCiAgfSwKICBtdXRhdGlvbnM6IHsKICAgIGFkZF9sb2coc3RhdGUsIGRhdGEpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIHNldCAiK0pTT04uc3RyaW5naWZ5KGRhdGEpKQogICAgICBzdGF0ZS5sb2cucHVzaChkYXRhKTsKICAgIH0sCgogICAgc2V0cmVzdGFwaShzdGF0ZSwgZGF0YSkgewogICAgICAvL2NvbnNvbGUubG9nKCJqczEgc2V0ICIrSlNPTi5zdHJpbmdpZnkoZGF0YSkpCiAgICAgIHN0YXRlLnJlc3RhcGkgPSBkYXRhOwogICAgfSwKCiAgICBzZXRfdG9rZW4oc3RhdGUsIGRhdGEpIHsKICAgICAgLy9jb25zb2xlLmxvZygianMxIHNld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b2c7CiAgICB9LAoKICAgIHNldG1vbmdvbG9nKHN0YXRlLCBkYXRhKSB7CiAgICAgIC8vY29uc29sZS5sb2coImpzMSBzZXQgIitKU09OLnN0cmluZ2lmeShkYXRhKSkKICAgICAgc3RhdGUubW9uZ29sb2cucHVzaChkYXRhKTsgLy9zdGF0ZS5sb2cucHVzaChkYXRhKTsKICAgIH0sCgogICAgcm1tb25nb2xvZyhzdGF0ZSwgZGF0YSkgewogICAgICAvL2NvbnNvbGUubG9nKCJqczEgc2V0ICIrSlNPTi5zdHJpbmdpZnkoZGF0YSkpCiAgICAgIHN0YXRlLm1vbmdvbG9nID0gW107IC8vc3RhdGUubG9nLnB1c2goZGF0YSk7CiAgICB9LAoKICAgIHNldGxsbyhzdGF0ZSwgZGF0YSkgewogICAgICAvL2NvbnNvbGUubG9nKCJqczEgc2V0ICIrSlNPTi5zdHJpbmdpZnkoZGF0YSkpCiAgICAgIHN0YXRlLmxsbyA9IGRhdGE7CiAgICB9LAoKICAgIHNldHNvY2tldGlkKHN0YXRlLCBkYXRhKSB7CiAgICAgIC8vY29uc29sZS5sb2coImpzMSBzZXQgIitKU09OLnN0cmluZ2lmeShkYXRhKSkKICAgICAgc3RhdGUuc29ja2V0aWQgPSBkYXRhOwogICAgfQoKICB9LAogIGFjdGlvbnM6IHsKICAgIFJNbW9uZ29sb2coewogICAgICBjb21taXQKICAgIH0sIHZhbHVlKSB7CiAgICAgIGNvbW1pdCgncm1tb25nb2xvZycpOwogICAgfSwKCiAgICBhZGRsb2coewogICAgICBjb21taXQKICAgIH0sIHZhbHVlKSB7CiAgICAgIC8vY29uc29sZS5sb2coImNvbnRhaW5lciAiK3ZhbHVlKQogICAgICB2YXIgdHQgPSB7fTsKICAgICAgdHQubWVzc2FnZSA9IHZhbHVlLmxvZy5sb2cubWVzc2FnZTsKICAgICAgdHQudGFpbGVkX3BhdGggPSB2YWx1ZS5sb2cubG9nLnRhaWxlZF9wYXRoOwogICAgICB0dC5kYXRlID0gdmFsdWUubG9nLmRhdGU7CiAgICAgIGNvbW1pdCgnYWRkX2xvZycsIHR0KTsKICAgIH0sCgogICAgc2V0UmVzdGFwaSh7CiAgICAgIGNvbW1pdAogICAgfSwgdmFsdWUpIHsKICAgICAgLy9jb25zb2xlLmxvZygiY29udGFpbmVyICIrdmFsdWUpCiAgICAgIGNvbW1pdCgnc2V0cmVzdGFwaScsIHZhbHVlLnJlc3RhcGkpOwogICAgfSwKCiAgICBzZXR0b2tlbih7CiAgICAgIGNvbW1pdAogICAgfSwgdmFsdWUpIHsKICAgICAgLy9jb25zb2xlLmxvZygiY29udGFpbmVyICIrdmFsdWUpCiAgICAgIGNvbW1pdCgnc2V0X3Rva2VuJywgdmFsdWUudG9rZW4pOwogICAgfSwKCiAgICBybWxvZyh7CiAgICAgIGNvbW1pdAogICAgfSwgdmFsdWUpIHsKICAgICAgLy9jb25zb2xlLmxvZygiY29udGFpbmVyaXJtICIrdmFsdWUpCiAgICAgIGNvbW1pdCgncm1fbG9nJywgdmFsdWUucGF0aCk7CiAgICB9LAoKICAgIHRhaWxsb2coewogICAgICBjb21taXQKICAgIH0sIHZhbHVlKSB7CiAgICAgIGNvbnNvbGUubG9nKCJjb250YWluZXJpcm0gIiArIHZhbHVlKTsKICAgICAgY29tbWl0KCd0YWlsX2xvZycsIHZhbHVlLnBhdGgpOwogICAgfSwKCiAgICBhc3luYyBnZXRfZGF0YSh7CiAgICAgIGNvbW1pdCwKICAgICAgcm9vdEdldHRlcnMKICAgIH0sIHZhbHVlKSB7CiAgICAgIHRyeSB7CiAgICAgICAgbGV0IHAgPSBhd2FpdCBheGlvcy5nZXQoImh0dHBzOi8vZmFjdG9yeS5zd2FybWxhYi5pbzo1NTUyNy9ydW4iLCB7CiAgICAgICAgICB0aW1lb3V0OiA0NTAwMCwKICAgICAgICAgIHBhcmFtczogewogICAgICAgICAgICBjb2RlOiB2YWx1ZS5jb2RlCiAgICAgICAgICB9CiAgICAgICAgfSk7IC8vdmFyIHAgPSB2YWx1ZS5jb2RlCgogICAgICAgIGNvbnNvbGUubG9nKCJwYXJhbXAgIiArIEpTT04uc3RyaW5naWZ5KHApKTsKICAgICAgICBzdG9yZS5kaXNwYXRjaCgncGlwZWxpbmVMTE8vc2V0U2NyaXB0bGxvJywgcCk7CiAgICAgICAgcmV0dXJuIHA7CiAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICBpZiAoZS5tZXNzYWdlID09ICJSZXF1ZXN0IGZhaWxlZCB3aXRoIHN0YXR1cyBjb2RlIDQwMSIgfHwgLzQwMS9pLnRlc3QoZS5tZXNzYWdlKSkgewogICAgICAgICAgd2luZG93LmxvY2F0aW9uLmhyZWYgPSAnaHR0cHM6Ly9hcGktbG9naW4uc3dhcm1sYWIuaW86ODA4OSc7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHZhciBSID0gewogICAgICAgICAgICBFUlJPUl9zdHI6IGUsCiAgICAgICAgICAgIEVSUk9SOiAneWVzJwogICAgICAgICAgfTsKICAgICAgICAgIHJldHVybiBSOwogICAgICAgIH0KICAgICAgfQogICAgfSwKCiAgICBhc3luYyBnZXRfbG9nKHsKICAgICAgY29tbWl0LAogICAgICByb290R2V0dGVycwogICAgfSwgdmFsdWUpIHsKICAgICAgdHJ5IHsKICAgICAgICB2YXIgdG9rZW4gPSBzdG9yZS5nZXR0ZXJzWydwaXBlbGluZUxMTy9nZXR0b2tlbiddOwogICAgICAgIGxldCBwID0gYXdhaXQgYXhpb3MuZ2V0KCJodHRwczovL2ZhY3Rvcnkuc3dhcm1sYWIuaW86NTU1MjcvZ2V0X2xvZyIsIHsKICAgICAgICAgIHRpbWVvdXQ6IDQ1MDAwLAogICAgICAgICAgcGFyYW1zOiB7CiAgICAgICAgICAgIHRva2VuOiB0b2tlbiwKICAgICAgICAgICAgc3RhcnQ6IHZhbHVlLmRhdGVzdGFydCwKICAgICAgICAgICAgZW5kOiB2YWx1ZS5kYXRlZW5kLAogICAgICAgICAgICBzd2FybWxhYm5hbWU6IHZhbHVlLnN3YXJtbGFibmFtZQogICAgICAgICAgfQogICAgICAgIH0pOyAvL3ZhciBwID0gdmFsdWUuY29kZQoKICAgICAgICBjb25zb2xlLmxvZygicGFyYW1wLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gIiArIEpTT04uc3RyaW5naWZ5KHZhbHVlKSk7CiAgICAgICAgc3RvcmUuZGlzcGF0Y2goJ3BpcGVsaW5lTExPL3NldF9tb25nb2xvZycsIHApOwogICAgICAgIHJldHVybiBwOwogICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgaWYgKGUubWVzc2FnZSA9PSAiUmVxdWVzdCBmYWlsZWQgd2l0aCBzdGF0dXMgY29kZSA0MDEiIHx8IC80MDEvaS50ZXN0KGUubWVzc2FnZSkpIHsKICAgICAgICAgIHdpbmRvdy5sb2NhdGlvbi5ocmVmID0gJ2h0dHBzOi8vYXBpLWxvZ2luLnN3YXJtbGFiLmlvOjgwODknOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICB2YXIgUiA9IHsKICAgICAgICAgICAgRVJST1Jfc3RyOiBlLAogICAgICAgICAgICBFUlJPUjogJ3llcycKICAgICAgICAgIH07CiAgICAgICAgICByZXR1cm4gUjsKICAgICAgICB9CiAgICAgIH0KICAgIH0sCgogICAgYXN5bmMgaG90cmVsb2FkKHsKICAgICAgY29tbWl0LAogICAgICByb290R2V0dGVycwogICAgfSwgdmFsdWUpIHsKICAgICAgdHJ5IHsKICAgICAgICB2YXIgdG9rZW4gPSB2YWx1ZS50b2tlbjsKICAgICAgICB2YXIgcGFyYW1zID0gewogICAgICAgICAgc3dhcm1sYWJuYW1lOiB2YWx1ZS5zd2FybWxhYm5hbWUKICAgICAgICB9OwogICAgICAgIHZhciBvcHRpb25zID0gewogICAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAnY29udGVudC10eXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcsCiAgICAgICAgICAgIEF1dGhvcml6YXRpb246IGBCZWFyZXIgJHt0b2tlbn1gCiAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICB2YXIgcCA9IGF3YWl0IGF4aW9zLnBvc3QoJ2h0dHBzOi8vYXBpLnN3YXJtbGFiLmlvL3N3YXJtbGFicnVuaG90cmVsb2FkJywgcGFyYW1zLCBvcHRpb25zKTsKCiAgICAgICAgaWYgKHAuZXJyb3IgPT0gImludmFsaWRfdG9rZW4iKSB7CiAgICAgICAgICBjb25zb2xlLmxvZyhwKTsKICAgICAgICAgIGNvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KHApKTsKICAgICAgICB9IGVsc2Uge30gLy9jb25zb2xlLmxvZyh2YWx1ZS50b2tlbikKICAgICAgICAvL2NvbnNvbGUubG9nKHZhbHVlLnN3YXJtbGFibmFtZSkKCgogICAgICAgIGNvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KHApKTsKICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgIGlmIChlLm1lc3NhZ2UgPT0gIlJlcXVlc3QgZmFpbGVkIHdpdGggc3RhdHVzIGNvZGUgNDAxIiB8fCAvNDAxL2kudGVzdChlLm1lc3NhZ2UpKSB7CiAgICAgICAgICAvL2NvbnNvbGUubG9nKCdlcnJvciAnK0pTT04uc3RyaW5naWZ5KGUpKQogICAgICAgICAgd2luZG93LmxvY2F0aW9uLmhyZWYgPSAnaHR0cHM6Ly9hcGktbG9naW4uc3dhcm1sYWIuaW86ODA4OSc7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHZhciBSID0gewogICAgICAgICAgICBFUlJPUl9zdHI6IGUsCiAgICAgICAgICAgIEVSUk9SOiAneWVzJwogICAgICAgICAgfTsKICAgICAgICAgIHJldHVybiBSOwogICAgICAgIH0KICAgICAgfQogICAgfSwKCiAgICBzZXRfbW9uZ29sb2coewogICAgICBjb21taXQKICAgIH0sIHZhbHVlKSB7CiAgICAgIC8vY29uc29sZS5sb2coImNvbnRhaW5lciAiK3ZhbHVlKQogICAgICAvL2NvbW1pdCgnc2V0bW9uZ29sb2cnLCB2YWx1ZSkKICAgICAgZm9yIChsZXQgaXRlbSBvZiB2YWx1ZS5kYXRhLmRhdGEpIHsKICAgICAgICAvL2NvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KGl0ZW0pKQogICAgICAgIHZhciBpdGVtb2JqID0ge307CiAgICAgICAgaXRlbW9iai5tZXNzYWdlID0gaXRlbS5tZXNzYWdlOwogICAgICAgIGl0ZW1vYmoudGFpbGVkX3BhdGggPSBpdGVtLnRhaWxlZF9wYXRoOwogICAgICAgIGl0ZW1vYmouZGF0ZSA9IGl0ZW0udGltZTsgLy9jb25zb2xlLmxvZygndnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2ICcrSlNPTi5zdHJpbmdpZnkoaXRlbW9iaikpCgogICAgICAgIGNvbW1pdCgnc2V0bW9uZ29sb2cnLCBpdGVtb2JqKTsKICAgICAgfQogICAgfSwKCiAgICBzZXRTY3JpcHRsbG8oewogICAgICBjb21taXQKICAgIH0sIHZhbHVlKSB7CiAgICAgIC8vY29uc29sZS5sb2coImNvbnRhaW5lciAiK3ZhbHVlKQogICAgICBjb21taXQoJ3NldGxsbycsIHZhbHVlKTsKICAgIH0sCgogICAgc2V0c29ja2V0bGxvKHsKICAgICAgY29tbWl0CiAgICB9LCB2YWx1ZSkgewogICAgICAvL2NvbnNvbGUubG9nKCJjb250YWluZXIgIit2YWx1ZSkKICAgICAgY29tbWl0KCdzZXRzb2NrZXRpZCcsIHZhbHVlKTsKICAgIH0sCgogICAgc2V0U2NyaXB0Q29kbG9nQWN0aW9uKHsKICAgICAgY29tbWl0CiAgICB9LCB2YWx1ZSkgewogICAgICAvL2NvbnNvbGUubG9nKCJjb250YWluZXIgIit2YWx1ZSkKICAgICAgY29tbWl0KCdzZXRTY3JpcHRDb2RlbG9nJywgdmFsdWUpOwogICAgfQoKICB9Cn07"},{"version":3,"sources":["/home/lefos/repos/swarmlab-playground-client/src/store/modules/create_pipelineLLO.js"],"names":["mapState","mapActions","commit","store","axios","namespaced","state","token","llo","log","mongolog","socketid","restapi","getters","getrestapi","container","getmongolog","getlog","gettoken","getllosrc","getsocketid","mutations","add_log","data","push","setrestapi","set_token","rm_log","path","filter","item","tailed_path","console","JSON","stringify","tail_log","splice","setmongolog","rmmongolog","setllo","setsocketid","actions","RMmongolog","value","addlog","tt","message","date","setRestapi","settoken","rmlog","taillog","get_data","rootGetters","p","get","timeout","params","code","dispatch","e","test","window","location","href","R","ERROR_str","ERROR","get_log","start","datestart","end","dateend","swarmlabname","hotreload","options","headers","Authorization","post","error","set_mongolog","itemobj","time","setScriptllo","setsocketllo","setScriptCodlogAction"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,UAAnB,EAA+BC,MAA/B,QAA6C,MAA7C;AACA,OAAOC,KAAP,MAAkB,eAAlB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,eAAe;AACbC,EAAAA,UAAU,EAAE,IADC;AAEbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,EADF;AAELC,IAAAA,GAAG,EAAE,EAFA;AAGLC,IAAAA,GAAG,EAAE,EAHA;AAILC,IAAAA,QAAQ,EAAE,EAJL;AAKLC,IAAAA,QAAQ,EAAC,EALJ;AAMLC,IAAAA,OAAO,EAAC;AANH,GAFM;AAUbC,EAAAA,OAAO,EAAE;AACTC,IAAAA,UAAU,CAAER,KAAF,EAASS,SAAT,EAAoB;AACxB;AACL,aAAOT,KAAK,CAACM,OAAb,CAF6B,CAG7B;AACA,KALQ;;AAMTI,IAAAA,WAAW,CAAEV,KAAF,EAASS,SAAT,EAAoB;AACzB;AACL,aAAOT,KAAK,CAACI,QAAb,CAF8B,CAG9B;AACA,KAVQ;;AAWTO,IAAAA,MAAM,CAAEX,KAAF,EAASS,SAAT,EAAoB;AACpB;AACL,aAAOT,KAAK,CAACG,GAAb;AACA,KAdQ;;AAeTS,IAAAA,QAAQ,CAA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SAHD,MAGK;AACH,cAAIC,CAAC,GAAG;AACFC,YAAAA,SAAS,EAAEN,CADT;AAEFO,YAAAA,KAAK,EAAE;AAFL,WAAR;AAIA,iBAAOF,CAAP;AACG;AACL;AACD,KApHQ;;AAqHTe,IAAAA,YAAY,CAAC;AAAC9E,MAAAA;AAAD,KAAD,EAAWyC,KAAX,EAAkB;AAC5B;AACK;AACC,WAAK,IAAIb,IAAT,IAAiBa,KAAK,CAACpB,IAAN,CAAWA,IAA5B,EAAkC;AAChC;AACA,YAAI0D,OAAO,GAAG,EAAd;AACAA,QAAAA,OAAO,CAACnC,OAAR,GAAsBhB,IAAI,CAACgB,OAA3B;AACAmC,QAAAA,OAAO,CAAClD,WAAR,GAAsBD,IAAI,CAACC,WAA3B;AACAkD,QAAAA,OAAO,CAAClC,IAAR,GAAsBjB,IAAI,CAACoD,IAA3B,CALgC,CAMhC;;AAEHhF,QAAAA,MAAM,CAAC,aAAD,EAAgB+E,OAAhB,CAAN;AACE;AACR,KAlIQ;;AAmITE,IAAAA,YAAY,CAAC;AAACjF,MAAAA;AAAD,KAAD,EAAWyC,KAAX,EAAkB;AAC5B;AACDzC,MAAAA,MAAM,CAAC,QAAD,EAAWyC,KAAX,CAAN;AACA,KAtIQ;;AAuITyC,IAAAA,YAAY,CAAC;AAAClF,MAAAA;AAAD,KAAD,EAAWyC,KAAX,EAAkB;AAC5B;AACDzC,MAAAA,MAAM,CAAC,aAAD,EAAgByC,KAAhB,CAAN;AACA,KA1IQ;;AA2IT0C,IAAAA,qBAAqB,CAAC;AAACnF,MAAAA;AAAD,KAAD,EAAWyC,KAAX,EAAkB;AACrC;AACDzC,MAAAA,MAAM,CAAC,kBAAD,EAAqByC,KAArB,CAAN;AACA;;AA9IQ;AAxFI,CAAf","sourcesContent":["import { mapState, mapActions, commit } from 'vuex'\nimport store from '@/store/index'\nimport axios from 'axios'\n\nexport default {\n namespaced: true,\n state: {\n token: '',\n llo: {},\n log: [],\n mongolog: [],\n socketid:'',\n restapi:'off'\n },\n getters: {\n\t\tgetrestapi (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.restapi\n\t\t\t//return state.log\n\t\t},\n\t\tgetmongolog (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.mongolog\n\t\t\t//return state.log\n\t\t},\n\t\tgetlog (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.log\n\t\t},\n\t\tgettoken (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.token\n\t\t},\n\t\tgetllosrc (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.llo\n\t\t},\n\t\tgetsocketid (state, container) {\n //console.log(\"js1 get \"+JSON.stringify(state.llo))\n\t\t\treturn state.socketid\n\t\t}\n },\n mutations: {\n\t\tadd_log (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.log.push(data);\n\t\t},\n\t\tsetrestapi (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.restapi=data\n\t\t},\n\t\tset_token (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.token=data;\n\t\t},\n\t\trm_log (state, path) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n state.log = state.log.filter((item) => item.tailed_path !== path); \n //const filteredArray = myarr.filter(obj => obj.name !== 'foo');\n //console.log(\"js1 set \"+JSON.stringify(filterlog))\n console.log(\"js1 setrm \"+JSON.stringify(state.log))\n\n\t\t\t\t//state.log = filterlog;\n\t\t},\n\t\ttail_log (state, path) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n state.log = state.log.filter((item) => item.tailed_path !== path).splice(0, 4);\n //const filteredArray = myarr.filter(obj => obj.name !== 'foo');\n //console.log(\"js1 set \"+JSON.stringify(filterlog))\n console.log(\"js1 setrmrmrmrmrmrmrmrm \"+JSON.stringify(state.log))\n\n\t\t\t\t//state.log = filterlog;\n\t\t},\n\t\t\tsetmongolog (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.mongolog.push(data);\n\t\t\t\t//state.log.push(data);\n\t\t},\n\t\t\trmmongolog (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.mongolog = [];\n\t\t\t\t//state.log.push(data);\n\t\t},\n\t\t\tsetllo (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.llo=data;\n\t\t},\n\t\t\tsetsocketid (state, data) {\n //console.log(\"js1 set \"+JSON.stringify(data))\n\t\t\t\tstate.socketid = data;\n\t\t}\n },\n actions: {\n\t\tRMmongolog({commit}, value) {\n\t\t\t commit('rmmongolog')\n\t\t},\n\t\taddlog({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n var tt = {}\n tt.message = value.log.log.message\n tt.tailed_path = value.log.log.tailed_path\n tt.date = value.log.date\n\t\t\t commit('add_log', tt)\n\t\t},\n\t\tsetRestapi({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\tcommit('setrestapi', value.restapi)\n\t\t},\n\t\tsettoken({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\tcommit('set_token', value.token)\n\t\t},\n\t\trmlog({commit}, value) {\n\t\t\t\t//console.log(\"containerirm \"+value)\n\t\t\tcommit('rm_log', value.path)\n\t\t},\n\t\ttaillog({commit}, value) {\n\t\t\t\tconsole.log(\"containerirm \"+value)\n\t\t\tcommit('tail_log', value.path)\n\t\t},\n\t\tasync get_data({commit,rootGetters}, value) {\n\t\t\ttry {\n \n let p = await axios.get(\"https://factory.swarmlab.io:55527/run\", {\n timeout: 45000,\n params: {\n code: value.code\n }\n });\n \n //var p = value.code\n console.log(\"paramp \"+JSON.stringify(p))\n\t\t\t\tstore.dispatch('pipelineLLO/setScriptllo', p)\n\t\t\t\treturn p;\n\n\t\t\t} catch (e) {\n\t\t\t\tif(e.message == \"Request failed with status code 401\" || /401/i.test(e.message)){\n\t\t\t\t\twindow.location.href = 'https://api-login.swarmlab.io:8089';\n\t\t\t\t}else{\n\t\t\t\t var R = {\n ERROR_str: e,\n ERROR: 'yes'\n }\n\t\t\t\t return R;\n }\n\t\t\t}\n\t\t},\n\t\tasync get_log({commit,rootGetters}, value) {\n\t\t\ttry {\n var token = store.getters['pipelineLLO/gettoken'];\n \n let p = await axios.get(\"https://factory.swarmlab.io:55527/get_log\", {\n timeout: 45000,\n params: {\n token: token,\n start: value.datestart,\n end: value.dateend,\n swarmlabname: value.swarmlabname\n }\n });\n \n //var p = value.code\n console.log(\"paramp-------------------------- \"+JSON.stringify(value))\n\t\t\t\tstore.dispatch('pipelineLLO/set_mongolog', p)\n\t\t\t\treturn p;\n\n\t\t\t} catch (e) {\n\t\t\t\tif(e.message == \"Request failed with status code 401\" || /401/i.test(e.message)){\n\t\t\t\t\twindow.location.href = 'https://api-login.swarmlab.io:8089';\n\t\t\t\t}else{\n\t\t\t\t var R = {\n ERROR_str: e,\n ERROR: 'yes'\n }\n\t\t\t\t return R;\n }\n\t\t\t}\n\t\t},\n\t\tasync hotreload({commit,rootGetters}, value) {\n\t\t\ttry {\n var token = value.token\n var params = {\n swarmlabname: value.swarmlabname\n }\n var options = {\n headers: { 'content-type': 'application/x-www-form-urlencoded',Authorization: `Bearer ${token}` },\n };\n var p = await axios.post('https://api.swarmlab.io/swarmlabrunhotreload',params,options);\n\t\t\t\tif(p.error == \"invalid_token\"){\n console.log(p)\n console.log(JSON.stringify(p))\n\t\t\t\t}else{\n }\n //console.log(value.token)\n //console.log(value.swarmlabname)\n console.log(JSON.stringify(p))\n\t\t\t} catch (e) {\n\t\t\t\tif(e.message == \"Request failed with status code 401\" || /401/i.test(e.message)){\n //console.log('error '+JSON.stringify(e))\n\t\t\t\t\twindow.location.href = 'https://api-login.swarmlab.io:8089';\n\t\t\t\t}else{\n\t\t\t\t var R = {\n ERROR_str: e,\n ERROR: 'yes'\n }\n\t\t\t\t return R;\n }\n\t\t\t}\n\t\t},\n\t\tset_mongolog({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\t //commit('setmongolog', value)\n for (let item of value.data.data) {\n //console.log(JSON.stringify(item))\n var itemobj = {}\n itemobj.message = item.message\n itemobj.tailed_path = item.tailed_path\n itemobj.date = item.time\n //console.log('vvvvvvvvvvvvvvvvvvvvvvvv '+JSON.stringify(itemobj))\n\n\t\t\t commit('setmongolog', itemobj)\n }\n\t\t},\n\t\tsetScriptllo({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\tcommit('setllo', value)\n\t\t},\n\t\tsetsocketllo({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\tcommit('setsocketid', value)\n\t\t},\n\t\tsetScriptCodlogAction({commit}, value) {\n\t\t\t\t//console.log(\"container \"+value)\n\t\t\tcommit('setScriptCodelog', value)\n\t\t}\n }\n}\n"]}]}