cosmosc2-tool-scriptrunner 5.0.2.pre.beta2 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +0,0 @@
1
- {"version":3,"file":"js/302.js","mappings":"mMAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQN,EAAIO,MAAM,MAAQP,EAAIQ,SAASJ,EAAG,aAAa,CAACE,MAAM,CAAC,IAAM,GAAG,MAAQN,EAAIS,UAAU,QAAU,KAAMC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,SAASC,GAC3R,IAAIR,EAAQQ,EAAIR,MAChB,MAAO,CAACF,EAAG,QAAQJ,EAAIe,GAAG,CAACT,MAAM,CAAC,KAAO,IAAIU,GAAG,CAAC,MAAQ,SAASC,GAAQjB,EAAIkB,WAAY,KAAS,QAAQZ,GAAM,GAAO,CAACN,EAAImB,GAAG,kBAAkBC,MAAM,CAACC,MAAOrB,EAAa,UAAEsB,SAAS,SAAUC,GAAMvB,EAAIkB,UAAUK,GAAKC,WAAW,cAAc,CAACpB,EAAG,SAAS,CAACJ,EAAImB,GAAG,QAAQnB,EAAIyB,GAAGzB,EAAIS,WAAW,OAAOT,EAAImB,GAAG,IAAInB,EAAIyB,GAAGzB,EAAI0B,WAAW,MAAM,GAAGtB,EAAG,aAAa,CAACE,MAAM,CAAC,IAAM,GAAG,SAAW,EAAE,MAAQ,UAAUI,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,SAASC,GACtc,IAAIR,EAAQQ,EAAIR,MAChB,MAAO,CAACF,EAAG,QAAQJ,EAAIe,GAAG,CAACT,MAAM,CAAC,KAAO,GAAG,MAAQ,SAAS,YAAY,iBAAiBU,GAAG,CAAC,MAAQhB,EAAI2B,qBAAqB,QAAQrB,GAAM,GAAO,CAACN,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ptRunner/ScriptRunner.vue?726a","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/services/axios.js","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/services/api.js","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/FileOpenSaveDialog.vue?6ad0","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/FileOpenSaveDialog.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/FileOpenSaveDialog.vue?4db4","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/FileOpenSaveDialog.vue?819c","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?955b","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?51a9","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentDialog.vue?0b88","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/SimpleTextDialog.vue?451f","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/SimpleTextDialog.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/SimpleTextDialog.vue?88d9","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/SimpleTextDialog.vue?3eda","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue?228d","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue?adab","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue?dfc0","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/AskDialog.vue?c73f","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/AskDialog.vue?49c0","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/AskDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InformationDialog.vue?77d6","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InformationDialog.vue?f5c2","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InformationDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue?782c","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/services/cosmos-api.js","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue?35be","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/PromptDialog.vue?a7af","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/PromptDialog.vue?22ee","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/PromptDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ResultsDialog.vue?c6fb","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ResultsDialog.vue?1b8c","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ResultsDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue?5aac","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?86ab","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?46d4","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/EnvironmentChooser.vue?056c","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue?c70e","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/UpdateMetadataDialog.vue?672c","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/Dialogs/UpdateMetadataDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/UpdateMetadataDialog.vue?0dd1","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/Dialogs/UpdateMetadataDialog.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/SuiteRunner.vue?f94e","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/SuiteRunner.vue?fa75","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/SuiteRunner.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptLogMessages.vue?ac42","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptLogMessages.vue?3ddf","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptLogMessages.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/autocomplete/utilities.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/autocomplete/packetCompleter.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/autocomplete/cmdCompleter.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/autocomplete/tlmCompleter.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/autocomplete/mnemonicChecker.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/annotations/regexAnnotator.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/annotations/sleepAnnotator.js","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/RunningScripts.vue?6feb","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/RunningScripts.vue?3830","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/RunningScripts.vue","webpack://@cosmosc2/tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue?8324","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue?b2db","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue?ac54","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue?74e5","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/SuiteRunner.vue?d10c","webpack://@cosmosc2/tool-scriptrunner/../cosmosc2-tool-common/src/components/TopBar.vue?5429","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue?1264","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/ScriptRunner.vue?45d9","webpack://@cosmosc2/tool-scriptrunner/./src/tools/ScriptRunner/SuiteRunner.vue?c850"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-bar',{attrs:{\"menus\":_vm.menus,\"title\":_vm.title}}),_c('v-snackbar',{attrs:{\"top\":\"\",\"color\":_vm.alertType,\"timeout\":3000},scopedSlots:_vm._u([{key:\"action\",fn:function(ref){\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._b({attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.showAlert = false}}},'v-btn',attrs,false),[_vm._v(\" Close \")])]}}]),model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_c('v-icon',[_vm._v(\" mdi-\"+_vm._s(_vm.alertType)+\" \")]),_vm._v(\" \"+_vm._s(_vm.alertText)+\" \")],1),_c('v-snackbar',{attrs:{\"top\":\"\",\"timeout\":-1,\"color\":\"orange\"},scopedSlots:_vm._u([{key:\"action\",fn:function(ref){\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._b({attrs:{\"text\":\"\",\"color\":\"danger\",\"data-test\":\"unlock-button\"},on:{\"click\":_vm.confirmLocalUnlock}},'v-btn',attrs,false),[_vm._v(\" Unlock \")]),_c('v-btn',_vm._b({attrs:{\"text\":\"\"},on:{\"click\":function () {\n _vm.showReadOnlyToast = false\n }}},'v-btn',attrs,false),[_vm._v(\" dismiss \")])]}}]),model:{value:(_vm.showReadOnlyToast),callback:function ($$v) {_vm.showReadOnlyToast=$$v},expression:\"showReadOnlyToast\"}},[_c('v-icon',[_vm._v(\" mdi-pencil-off \")]),_vm._v(\" \"+_vm._s(_vm.lockedBy)+\" is editing this script. Editor is in read-only mode \")],1),(_vm.suiteRunner)?_c('suite-runner',{attrs:{\"suite-map\":_vm.suiteMap,\"disable-buttons\":_vm.disableSuiteButtons},on:{\"button\":_vm.suiteRunnerButton}}):_vm._e(),_c('div',{attrs:{\"id\":\"sr-controls\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"space-between\"}},[_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[(_vm.showDisconnect)?_c('v-icon',{staticClass:\"mr-2\",attrs:{\"color\":\"red\"}},[_vm._v(\" mdi-connection \")]):_vm._e(),_c('v-select',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"items\":_vm.fileList,\"disabled\":_vm.fileList.length <= 1,\"label\":\"Filename\",\"id\":\"filename\",\"data-test\":\"filename\"},on:{\"change\":_vm.fileNameChanged},model:{value:(_vm.fullFilename),callback:function ($$v) {_vm.fullFilename=$$v},expression:\"fullFilename\"}}),_c('v-text-field',{staticClass:\"shrink ml-2 script-state\",staticStyle:{\"width\":\"100px\"},attrs:{\"label\":\"Script ID\",\"data-test\":\"id\",\"dense\":\"\",\"outlined\":\"\",\"readonly\":\"\",\"hide-details\":\"\"},model:{value:(_vm.scriptId),callback:function ($$v) {_vm.scriptId=$$v},expression:\"scriptId\"}}),_c('v-text-field',{staticClass:\"shrink ml-2 script-state\",staticStyle:{\"width\":\"120px\"},attrs:{\"label\":\"Script State\",\"data-test\":\"state\",\"dense\":\"\",\"outlined\":\"\",\"readonly\":\"\",\"hide-details\":\"\"},model:{value:(_vm.state),callback:function ($$v) {_vm.state=$$v},expression:\"state\"}}),(_vm.state === 'Connecting...')?_c('v-progress-circular',{staticClass:\"ml-2 mr-2\",attrs:{\"size\":40,\"indeterminate\":\"\",\"color\":\"primary\"}}):_c('div',{staticClass:\"ml-2 mr-2\",staticStyle:{\"width\":\"40px\",\"height\":\"40px\"}})],1)],1),_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-spacer'),(_vm.startOrGoButton === 'Start')?_c('div',[_c('v-btn',{staticClass:\"mx-1\",attrs:{\"color\":\"primary\",\"data-test\":\"start-button\",\"disabled\":_vm.startOrGoDisabled},on:{\"click\":_vm.startHandler}},[_c('span',[_vm._v(\" Start \")])]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"mx-1\",attrs:{\"data-test\":\"env-button\",\"color\":_vm.environmentIconColor,\"disabled\":_vm.startOrGoDisabled},on:{\"click\":function($event){_vm.scriptEnvironment.show = !_vm.scriptEnvironment.show}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\" \"+_vm._s(_vm.environmentIcon)+\" \")])],1)]}}],null,false,2681130347)},[_c('span',[_vm._v(\" Open Environment Dialog \")])])],1):_c('div',[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"disabled\":_vm.startOrGoDisabled,\"data-test\":\"go-button\"},on:{\"click\":_vm.go}},[_vm._v(\" Go \")]),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"disabled\":_vm.pauseOrRetryDisabled,\"data-test\":\"pause-retry-button\"},on:{\"click\":_vm.pauseOrRetry}},[_vm._v(\" \"+_vm._s(_vm.pauseOrRetryButton)+\" \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"data-test\":\"stop-button\",\"disabled\":_vm.stopDisabled},on:{\"click\":_vm.stop}},[_vm._v(\" Stop \")])],1)],1)],1)],1)],1),_c('multipane',{staticClass:\"horizontal-panes\",attrs:{\"layout\":\"horizontal\"},on:{\"paneResize\":function($event){return _vm.editor.resize()}}},[_c('div',{staticClass:\"pane\",attrs:{\"id\":\"editorbox\"}},[_c('v-snackbar',{staticClass:\"saving\",attrs:{\"absolute\":\"\",\"top\":\"\",\"right\":\"\",\"timeout\":-1},model:{value:(_vm.showSave),callback:function ($$v) {_vm.showSave=$$v},expression:\"showSave\"}},[_vm._v(\" Saving... \")]),_c('pre',{attrs:{\"id\":\"editor\"},on:{\"contextmenu\":function($event){$event.preventDefault();return _vm.showExecuteSelectionMenu.apply(null, arguments)}}}),_c('v-menu',{attrs:{\"position-x\":_vm.menuX,\"position-y\":_vm.menuY,\"absolute\":\"\",\"offset-y\":\"\"},model:{value:(_vm.executeSelectionMenu),callback:function ($$v) {_vm.executeSelectionMenu=$$v},expression:\"executeSelectionMenu\"}},[_c('v-list',_vm._l((_vm.executeSelectionMenuItems),function(item){return _c('v-list-item',{key:item.label},[_c('v-list-item-title',{on:{\"click\":item.command}},[_vm._v(\" \"+_vm._s(item.label)+\" \")])],1)}),1)],1)],1),_c('multipane-resizer',[_c('hr')]),_c('div',{ref:\"messagesDiv\",staticClass:\"mt-2 pane\",attrs:{\"id\":\"messages\"}},[(_vm.showDebug)?_c('div',{staticClass:\"pa-0\",attrs:{\"id\":\"debug\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-btn',{staticClass:\"mr-4\",staticStyle:{\"width\":\"100px\"},attrs:{\"color\":\"primary\",\"data-test\":\"step-button\"},on:{\"click\":_vm.step}},[_vm._v(\" Step \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-step-forward \")])],1),_c('v-text-field',{staticClass:\"mb-2\",attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"label\":\"Debug\",\"data-test\":\"debug-text\"},on:{\"keydown\":_vm.debugKeydown},model:{value:(_vm.debug),callback:function ($$v) {_vm.debug=$$v},expression:\"debug\"}})],1)],1):_vm._e(),_c('script-log-messages',{model:{value:(_vm.messages),callback:function ($$v) {_vm.messages=$$v},expression:\"messages\"}})],1)],1),(_vm.fileOpen)?_c('file-open-save-dialog',{attrs:{\"type\":\"open\",\"api-url\":\"/script-api/scripts\"},on:{\"file\":function($event){return _vm.setFile($event)},\"error\":function($event){return _vm.setError($event)}},model:{value:(_vm.fileOpen),callback:function ($$v) {_vm.fileOpen=$$v},expression:\"fileOpen\"}}):_vm._e(),(_vm.showSaveAs)?_c('file-open-save-dialog',{attrs:{\"type\":\"save\",\"api-url\":\"/script-api/scripts\",\"require-target-parent-dir\":\"\",\"input-filename\":_vm.filenameOrBlank},on:{\"filename\":function($event){return _vm.saveAsFilename($event)},\"error\":function($event){return _vm.setError($event)}},model:{value:(_vm.showSaveAs),callback:function ($$v) {_vm.showSaveAs=$$v},expression:\"showSaveAs\"}}):_vm._e(),(_vm.showEnvironment)?_c('environment-dialog',{model:{value:(_vm.showEnvironment),callback:function ($$v) {_vm.showEnvironment=$$v},expression:\"showEnvironment\"}}):_vm._e(),(_vm.ask.show)?_c('ask-dialog',{attrs:{\"question\":_vm.ask.question,\"default\":_vm.ask.default,\"password\":_vm.ask.password,\"answer-required\":_vm.ask.answerRequired},on:{\"response\":_vm.ask.callback},model:{value:(_vm.ask.show),callback:function ($$v) {_vm.$set(_vm.ask, \"show\", $$v)},expression:\"ask.show\"}}):_vm._e(),(_vm.information.show)?_c('information-dialog',{attrs:{\"title\":_vm.information.title,\"text\":_vm.information.text},model:{value:(_vm.information.show),callback:function ($$v) {_vm.$set(_vm.information, \"show\", $$v)},expression:\"information.show\"}}):_vm._e(),(_vm.inputMetadata.show)?_c('input-metadata-dialog',{attrs:{\"target\":_vm.inputMetadata.target},on:{\"response\":_vm.inputMetadata.callback},model:{value:(_vm.inputMetadata.show),callback:function ($$v) {_vm.$set(_vm.inputMetadata, \"show\", $$v)},expression:\"inputMetadata.show\"}}):_vm._e(),(_vm.prompt.show)?_c('prompt-dialog',{attrs:{\"title\":_vm.prompt.title,\"subtitle\":_vm.prompt.subtitle,\"message\":_vm.prompt.message,\"details\":_vm.prompt.details,\"buttons\":_vm.prompt.buttons,\"layout\":_vm.prompt.layout},on:{\"response\":_vm.prompt.callback},model:{value:(_vm.prompt.show),callback:function ($$v) {_vm.$set(_vm.prompt, \"show\", $$v)},expression:\"prompt.show\"}}):_vm._e(),(_vm.results.show)?_c('results-dialog',{attrs:{\"text\":_vm.results.text},model:{value:(_vm.results.show),callback:function ($$v) {_vm.$set(_vm.results, \"show\", $$v)},expression:\"results.show\"}}):_vm._e(),(_vm.scriptEnvironment.show)?_c('script-environment-dialog',{attrs:{\"input-environment\":_vm.scriptEnvironment.env},on:{\"environment\":_vm.environmentHandler},model:{value:(_vm.scriptEnvironment.show),callback:function ($$v) {_vm.$set(_vm.scriptEnvironment, \"show\", $$v)},expression:\"scriptEnvironment.show\"}}):_vm._e(),(_vm.showUpdateMetadata)?_c('update-metadata-dialog',{model:{value:(_vm.showUpdateMetadata),callback:function ($$v) {_vm.showUpdateMetadata=$$v},expression:\"showUpdateMetadata\"}}):_vm._e(),_c('simple-text-dialog',{attrs:{\"title\":\"Suite Analysis Error\",\"text\":_vm.suiteError,\"width\":1000},model:{value:(_vm.showSuiteError),callback:function ($$v) {_vm.showSuiteError=$$v},expression:\"showSuiteError\"}}),_c('v-bottom-sheet',{model:{value:(_vm.showStartedScripts),callback:function ($$v) {_vm.showStartedScripts=$$v},expression:\"showStartedScripts\"}},[_c('v-sheet',{staticClass:\"pb-11 pt-5 px-5\"},[_c('running-scripts',{attrs:{\"connect-in-new-tab\":!!_vm.fileModified},on:{\"close\":function () {\n _vm.showStartedScripts = false\n }}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 10000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response.status === 401) {\n delete localStorage.cosmosToken\n CosmosAuth.login(location.href)\n } else {\n let body = `HTTP ${error.response.status} - `\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n }\n)\n\nexport default axiosInstance\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n await CosmosAuth.updateToken(CosmosAuth.defaultMinValidity)\n } catch (error) {\n CosmosAuth.login()\n }\n headers['Authorization'] = localStorage.cosmosToken\n }\n if (!noScope && !params['scope']) {\n params['scope'] = localStorage.scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.success.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_c('v-spacer')],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-text-field',{attrs:{\"flat\":\"\",\"autofocus\":\"\",\"solo-inverted\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"label\":\"Search\",\"data-test\":\"file-open-save-search\"},on:{\"input\":_vm.handleSearch},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-row',{staticClass:\"mt-2\",attrs:{\"dense\":\"\"}},[_c('v-treeview',{ref:\"tree\",staticStyle:{\"width\":\"100%\"},attrs:{\"dense\":\"\",\"activatable\":\"\",\"return-object\":\"\",\"items\":_vm.items,\"search\":_vm.search,\"open-on-click\":_vm.type === 'open'},on:{\"update:active\":_vm.activeFile},scopedSlots:_vm._u([{key:\"prepend\",fn:function(ref){\nvar item = ref.item;\nvar open = ref.open;\nreturn [(!item.file)?_c('v-icon',[_vm._v(\" \"+_vm._s(open ? 'mdi-folder-open' : 'mdi-folder')+\" \")]):_c('v-icon',[_vm._v(\" \"+_vm._s('mdi-language-ruby')+\" \")])]}}]),model:{value:(_vm.tree),callback:function ($$v) {_vm.tree=$$v},expression:\"tree\"}})],1),_c('v-row',{staticClass:\"my-2\"},[_c('v-text-field',{attrs:{\"hide-details\":\"\",\"label\":\"Filename\",\"data-test\":\"file-open-save-filename\",\"disabled\":_vm.type === 'open'},model:{value:(_vm.selectedFile),callback:function ($$v) {_vm.selectedFile=$$v},expression:\"selectedFile\"}})],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.error),expression:\"error\"}],staticClass:\"my-2 red--text\",domProps:{\"textContent\":_vm._s(_vm.error)}})]),_c('v-row',{staticClass:\"mt-2\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"file-open-save-cancel-btn\",\"disabled\":_vm.disableButtons},on:{\"click\":function($event){_vm.show = false}}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"type\":\"submit\",\"color\":\"primary\",\"data-test\":\"file-open-save-submit-btn\",\"disabled\":_vm.disableButtons || !!_vm.error},on:{\"click\":function($event){$event.preventDefault();return _vm.success.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.submit)+\" \")])],1)],1)])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <form v-on:submit.prevent=\"success\">\n <v-system-bar>\n <v-spacer />\n <span> {{ title }} </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"pa-3\">\n <v-row dense>\n <v-text-field\n @input=\"handleSearch\"\n v-model=\"search\"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label=\"Search\"\n data-test=\"file-open-save-search\"\n />\n </v-row>\n <v-row dense class=\"mt-2\">\n <v-treeview\n v-model=\"tree\"\n @update:active=\"activeFile\"\n dense\n activatable\n return-object\n ref=\"tree\"\n style=\"width: 100%\"\n :items=\"items\"\n :search=\"search\"\n :open-on-click=\"type === 'open'\"\n >\n <template v-slot:prepend=\"{ item, open }\">\n <v-icon v-if=\"!item.file\">\n {{ open ? 'mdi-folder-open' : 'mdi-folder' }}\n </v-icon>\n <v-icon v-else>\n {{ 'mdi-language-ruby' }}\n </v-icon>\n </template>\n </v-treeview>\n </v-row>\n <v-row class=\"my-2\">\n <v-text-field\n v-model=\"selectedFile\"\n hide-details\n label=\"Filename\"\n data-test=\"file-open-save-filename\"\n :disabled=\"type === 'open'\"\n />\n </v-row>\n <v-row dense>\n <span class=\"my-2 red--text\" v-show=\"error\" v-text=\"error\" />\n </v-row>\n <v-row class=\"mt-2\">\n <v-spacer />\n <v-btn\n @click=\"show = false\"\n outlined\n class=\"mx-2\"\n data-test=\"file-open-save-cancel-btn\"\n :disabled=\"disableButtons\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"success\"\n type=\"submit\"\n color=\"primary\"\n class=\"mx-2\"\n data-test=\"file-open-save-submit-btn\"\n :disabled=\"disableButtons || !!error\"\n >\n {{ submit }}\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n type: {\n type: String,\n required: true,\n validator: function (value) {\n // The value must match one of these strings\n return ['open', 'save'].indexOf(value) !== -1\n },\n },\n apiUrl: String, // Base API URL for use with scripts or cmd-tlm\n requireTargetParentDir: Boolean, // Require that the save filename be nested in a directory with the name of a target\n inputFilename: String, // passed if this is a 'save' dialog\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n tree: [],\n items: [],\n id: 1,\n search: null,\n selectedFile: null,\n disableButtons: false,\n targets: [],\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n title: function () {\n if (this.type === 'open') {\n return 'File Open'\n } else {\n return 'File Save As...'\n }\n },\n submit: function () {\n if (this.type === 'open') {\n return 'OPEN'\n } else {\n return 'SAVE'\n }\n },\n error: function () {\n if (this.selectedFile === '' || this.selectedFile === null) {\n return 'No file selected must select a file'\n }\n if (\n !this.selectedFile.match(this.validFilenameRegex) ||\n this.selectedFile.match(/\\.\\.|\\/\\/|\\.\\/|\\/\\./) // Block .'s and /'s next to each other (block path traversal)\n ) {\n let message = `${this.selectedFile} is not a valid filename. Must `\n if (this.requireTargetParentDir) {\n message += 'be in a target directory and '\n }\n message += \"only contain alphanumeric characters and / ! - _ . * ' ( )\"\n return message\n }\n return null\n },\n validFilenameRegex: function () {\n const alphanumeric = '0-9a-zA-Z'\n const charset = `${alphanumeric}\\\\/\\\\!\\\\-\\\\_\\\\.\\\\*\\\\'\\\\(\\\\)` // From https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html a-z A-Z 0-9 / ! - _ . * ' ( )\n let expression = `[${charset}]+\\\\.[${alphanumeric}]+`\n if (this.requireTargetParentDir) {\n const targets = `(${this.targets.join('|')})`\n expression = `\\\\/?${targets}\\\\/${expression}`\n }\n return new RegExp(expression)\n },\n },\n created() {\n Api.get(this.apiUrl)\n .then((response) => {\n this.items = []\n this.id = 1\n for (let file of response.data) {\n this.filepath = file\n this.insertFile(this.items, 1, file)\n this.id++\n }\n if (this.inputFilename) {\n this.selectedFile = this.inputFilename\n }\n })\n .catch((error) => {\n this.$emit('error', `Failed to connect to Cosmos. ${error}`)\n })\n if (this.requireTargetParentDir) {\n Api.get('/cosmos-api/targets').then((response) => {\n this.targets = response.data\n })\n }\n },\n methods: {\n clear: function () {\n this.show = false\n this.overwrite = false\n this.disableButtons = false\n },\n handleSearch: function (input) {\n if (input) {\n this.$refs.tree.updateAll(true)\n } else {\n this.$refs.tree.updateAll(false)\n }\n },\n activeFile: function (file) {\n if (file.length === 0) {\n this.selectedFile = null\n } else {\n this.selectedFile = file[0].path\n }\n },\n exists: function (root, name) {\n let found = false\n for (let item of root) {\n if (item.path === name) {\n return true\n }\n if (item.children) {\n found = found || this.exists(item.children, name)\n }\n }\n return found\n },\n success: function () {\n if (this.type === 'open') {\n this.openSuccess()\n } else {\n this.saveSuccess()\n }\n },\n openSuccess: function () {\n // Disable the buttons because the API call can take a bit\n this.disableButtons = true\n Api.get(`${this.apiUrl}/${this.selectedFile}`)\n .then((response) => {\n const file = {\n name: this.selectedFile,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.$emit('file', { file, locked, breakpoints })\n this.clear()\n })\n .catch((error) => {\n this.$emit('error', `Failed to open ${this.selectedFile}. ${error}`)\n this.clear()\n })\n },\n saveSuccess: function () {\n const found = this.exists(this.items, this.selectedFile)\n if (found) {\n this.$dialog\n .confirm(`Are you sure you want to overwrite: ${this.selectedFile}`, {\n okText: 'Overwrite',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n this.$emit('filename', this.selectedFile)\n this.clear()\n })\n } else {\n this.$emit('filename', this.selectedFile)\n this.clear()\n }\n },\n insertFile: function (root, level, path) {\n var parts = path.split('/')\n // When there is only 1 part we're at the root so push the filename\n if (parts.length === 1) {\n root.push({\n id: this.id,\n name: parts[0],\n file: 'ruby',\n path: this.filepath,\n })\n this.id++\n return\n }\n // Look for the first part of the path\n const index = root.findIndex((item) => item.name === parts[0])\n if (index === -1) {\n // Name not found so push the item and add a children array\n root.push({\n id: this.id,\n name: parts[0],\n children: [],\n path: this.filepath.split('/').slice(0, level).join('/'),\n })\n this.id++\n this.insertFile(\n root[root.length - 1].children, // Start from the node we just added\n level + 1,\n parts.slice(1).join('/') // Strip the first part of the path\n )\n } else {\n // We already have something at this level so recursively\n // call the insertPart using the node we found and adjust the path\n this.insertFile(\n root[index].children,\n level + 1,\n parts.slice(1).join('/')\n )\n }\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FileOpenSaveDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FileOpenSaveDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileOpenSaveDialog.vue?vue&type=template&id=16b9fb88&\"\nimport script from \"./FileOpenSaveDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./FileOpenSaveDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.addEnvironment.apply(null, arguments)}}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\"Environment Variables\")]),_c('v-spacer')],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{staticClass:\"mb-2\",attrs:{\"dense\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"search\",\"type\":\"text\",\"data-test\":\"search\",\"prepend-icon\":\"mdi-magnify\",\"clear-icon\":\"mdi-close-circle-outline\",\"clearable\":\"\",\"autofocus\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-data-table',{attrs:{\"item-key\":\"name\",\"hide-default-header\":\"\",\"data-test\":\"env-table\",\"search\":_vm.search,\"headers\":_vm.headers,\"items\":_vm.environment,\"items-per-page\":5,\"footer-props\":{ 'items-per-page-options': [5] }},scopedSlots:_vm._u([{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{staticClass:\"mt-1\",attrs:{\"icon\":\"\",\"data-test\":\"item-delete\"},on:{\"click\":function($event){return _vm.deleteEnvironment(item)}}},[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)]}}])}),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Key\",\"data-test\":\"env-key\"},model:{value:(_vm.key),callback:function ($$v) {_vm.key=$$v},expression:\"key\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Value\",\"data-test\":\"env-value\"},model:{value:(_vm.keyValue),callback:function ($$v) {_vm.keyValue=$$v},expression:\"keyValue\"}})],1)],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"type\":\"submit\",\"color\":\"primary\",\"data-test\":\"add-env\",\"disabled\":!_vm.key || !_vm.keyValue},on:{\"click\":function($event){$event.preventDefault();return _vm.addEnvironment.apply(null, arguments)}}},[_vm._v(\" Add \")])],1)],1)])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <form v-on:submit.prevent=\"addEnvironment\">\n <v-system-bar>\n <v-spacer />\n <span>Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"pa-3\">\n <v-row dense class=\"mb-2\">\n <v-text-field\n v-model=\"search\"\n label=\"search\"\n type=\"text\"\n data-test=\"search\"\n prepend-icon=\"mdi-magnify\"\n clear-icon=\"mdi-close-circle-outline\"\n clearable\n autofocus\n single-line\n hide-details\n />\n </v-row>\n <v-data-table\n item-key=\"name\"\n hide-default-header\n data-test=\"env-table\"\n :search=\"search\"\n :headers=\"headers\"\n :items=\"environment\"\n :items-per-page=\"5\"\n :footer-props=\"{ 'items-per-page-options': [5] }\"\n >\n <template v-slot:item.actions=\"{ item }\">\n <v-btn\n @click=\"deleteEnvironment(item)\"\n icon\n class=\"mt-1\"\n data-test=\"item-delete\"\n >\n <v-icon>mdi-delete</v-icon>\n </v-btn>\n </template>\n </v-data-table>\n <v-row dense>\n <v-col>\n <v-text-field v-model=\"key\" label=\"Key\" data-test=\"env-key\" />\n </v-col>\n <v-col>\n <v-text-field v-model=\"keyValue\" label=\"Value\" data-test=\"env-value\" />\n </v-col>\n </v-row>\n <v-row dense>\n <v-btn\n @click.prevent=\"addEnvironment\"\n block\n type=\"submit\"\n color=\"primary\"\n data-test=\"add-env\"\n :disabled=\"!key || !keyValue\"\n >\n Add\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n alert: '',\n alertType: 'success',\n showAlert: false,\n search: '',\n key: '',\n keyValue: '',\n environment: [],\n headers: [\n {\n text: 'Key',\n value: 'key',\n },\n {\n text: 'Value',\n value: 'value',\n },\n {\n text: 'Actions',\n value: 'actions',\n align: 'end',\n sortable: false,\n },\n ],\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n mounted() {\n this.update()\n },\n methods: {\n alertHandler: function (event) {\n // console.log('alertHandler', event)\n this.alert = event.text\n this.alertType = event.type\n this.showAlert = true\n },\n update: function () {\n Api.get('/cosmos-api/environment')\n .then((response) => {\n this.environment = response.data\n })\n .catch((error) => {\n // TODO: $error.something\n })\n },\n addEnvironment: function () {\n Api.post('/cosmos-api/environment', {\n data: {\n key: this.key.toUpperCase(),\n value: this.keyValue,\n },\n })\n .then((response) => {\n const alertEvent = {\n text: `New environment variable: ${response.data.name}`,\n type: 'success',\n }\n this.update()\n })\n .catch((error) => {\n const alertEvent = {\n text: `Failed to add environment variable: ${error}`,\n type: 'error',\n }\n this.alertHandler(alertEvent)\n })\n this.key = ''\n this.keyValue = ''\n },\n deleteEnvironment: function (env) {\n this.$dialog\n .confirm(`Are you sure you want to delete: ${env.key}=${env.value}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete(`/cosmos-api/environment/${env.name}`)\n })\n .then((response) => {\n const alertEvent = {\n text: `Removed environment variable: ${env.name}`,\n type: 'success',\n }\n this.alertHandler(alertEvent)\n this.update()\n })\n .catch((error) => {\n const alertEvent = {\n text: `Failed to delete environment: ${error}`,\n type: 'error',\n }\n this.alertHandler(alertEvent)\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EnvironmentDialog.vue?vue&type=template&id=1a404e68&\"\nimport script from \"./EnvironmentDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./EnvironmentDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":_vm.width},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\" mdi-download \")])],1)]}}])},[_c('span',[_vm._v(\" Download \")])])],1)],1),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('span',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.text))])])]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" :width=\"width\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> {{ title }} </span>\n <v-spacer />\n <div class=\"mx-2\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"downloadIcon\" @click=\"download\">\n mdi-download\n </v-icon>\n </div>\n </template>\n <span> Download </span>\n </v-tooltip>\n </div>\n </v-system-bar>\n <v-card-text>\n <div class=\"pa-3\">\n <span style=\"white-space: pre-wrap\">{{ text }}</span>\n </div>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn class=\"mx-2\" color=\"primary\" @click=\"show = !show\"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n text: String,\n title: String,\n width: 800,\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n download: function () {\n const blob = new Blob([this.text], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', `${this.title}.txt`)\n link.click()\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SimpleTextDialog.vue?vue&type=template&id=8003a1c6&\"\nimport script from \"./SimpleTextDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./SimpleTextDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('mounting-portal',{attrs:{\"mount-to\":\"#cosmos-menu\",\"append\":\"\"}},[_c('div',{staticClass:\"v-toolbar__content\"},[_vm._l((_vm.menus),function(menu,i){return _c('v-menu',{key:i,attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"mx-1\",attrs:{\"outlined\":\"\",\"data-test\":_vm.formatDT((_vm.title + \" \" + (menu.label)))}},'v-btn',attrs,false),on),[_c('span',{domProps:{\"textContent\":_vm._s(menu.label)}}),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-menu-down \")])],1)]}}],null,true)},[_c('v-list',[_c('v-radio-group',{staticClass:\"ma-0 pa-0\",attrs:{\"value\":menu.radioGroup,\"hide-details\":\"\",\"dense\":\"\"}},[_vm._l((menu.items),function(option,j){return [(option.divider)?_c('v-divider',{key:j}):_c('v-list-item',{key:j,attrs:{\"disabled\":option.disabled,\"data-test\":_vm.formatDT((_vm.title + \" \" + (menu.label) + \" \" + (option.label)))},on:{\"click\":option.command}},[(option.radio)?_c('v-list-item-action',[_c('v-radio',{attrs:{\"color\":\"secondary\",\"label\":option.label,\"value\":option.label}})],1):_vm._e(),(option.checkbox)?_c('v-list-item-action',[_c('v-checkbox',{attrs:{\"color\":\"secondary\",\"label\":option.label,\"value\":option.label},model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:\"checked\"}})],1):_vm._e(),(option.icon)?_c('v-list-item-icon',[_c('v-icon',{attrs:{\"disabled\":option.disabled},domProps:{\"textContent\":_vm._s(option.icon)}})],1):_vm._e(),(!option.radio && !option.checkbox)?_c('v-list-item-title',{style:('cursor: pointer;' + (option.disabled ? 'opacity: 0.2' : '')),domProps:{\"textContent\":_vm._s(option.label)}}):_vm._e()],1)]})],2)],1)],1)}),_c('v-spacer'),_c('v-toolbar-title',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer')],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <mounting-portal mount-to=\"#cosmos-menu\" append>\n <div class=\"v-toolbar__content\">\n <v-menu offset-y v-for=\"(menu, i) in menus\" :key=\"i\">\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n outlined\n v-bind=\"attrs\"\n v-on=\"on\"\n class=\"mx-1\"\n :data-test=\"formatDT(`${title} ${menu.label}`)\"\n >\n <span v-text=\"menu.label\" />\n <v-icon right> mdi-menu-down </v-icon>\n </v-btn>\n </template>\n <v-list>\n <!-- The radio-group is necessary in case the application wants radio buttons -->\n <v-radio-group\n :value=\"menu.radioGroup\"\n hide-details\n dense\n class=\"ma-0 pa-0\"\n >\n <template v-for=\"(option, j) in menu.items\">\n <v-divider v-if=\"option.divider\" :key=\"j\" />\n <v-list-item\n v-else\n @click=\"option.command\"\n :key=\"j\"\n :disabled=\"option.disabled\"\n :data-test=\"formatDT(`${title} ${menu.label} ${option.label}`)\"\n >\n <v-list-item-action\n v-if=\"option.radio\"\n >\n <v-radio\n color=\"secondary\"\n :label=\"option.label\"\n :value=\"option.label\"\n />\n </v-list-item-action>\n <v-list-item-action\n v-if=\"option.checkbox\"\n >\n <v-checkbox\n v-model=\"checked\"\n color=\"secondary\"\n :label=\"option.label\"\n :value=\"option.label\"\n />\n </v-list-item-action>\n <v-list-item-icon v-if=\"option.icon\">\n <v-icon v-text=\"option.icon\" :disabled=\"option.disabled\" />\n </v-list-item-icon>\n <v-list-item-title\n v-if=\"!option.radio && !option.checkbox\"\n :style=\"\n 'cursor: pointer;' + (option.disabled ? 'opacity: 0.2' : '')\n \"\n v-text=\"option.label\"\n />\n </v-list-item>\n </template>\n </v-radio-group>\n </v-list>\n </v-menu>\n <v-spacer />\n <v-toolbar-title v-text=\"title\" />\n <v-spacer />\n </div>\n </mounting-portal>\n</template>\n\n<script>\nexport default {\n props: {\n menus: {\n type: Array,\n default: function () {\n return []\n },\n },\n title: {\n type: String,\n default: '',\n },\n },\n methods: {\n // Convert the string to a standard data-test format\n formatDT: function(string) {\n return string.replaceAll(' ', '-').toLowerCase()\n },\n }\n}\n</script>\n\n<style scoped>\n.v-list >>> .v-label {\n margin-left: 5px;\n}\n.v-list-item__icon {\n /* For some reason the default margin-right is huge */\n margin-right: 15px !important;\n}\n.v-list-item__title {\n color: white;\n}\n</style>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TopBar.vue?vue&type=template&id=e3bb7458&scoped=true&\"\nimport script from \"./TopBar.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TopBar.vue?vue&type=style&index=0&id=e3bb7458&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e3bb7458\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submitHandler.apply(null, arguments)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" User Input Required \")]),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-row',[_c('v-card-title',{domProps:{\"textContent\":_vm._s(_vm.question)}})],1),_c('v-row',{staticClass:\"my-1\"},[_c('v-text-field',{attrs:{\"autofocus\":\"\",\"data-test\":\"ask-value-input\",\"type\":_vm.password ? 'password' : 'text',\"rules\":_vm.rules},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}})],1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-1\",attrs:{\"outlined\":\"\",\"data-test\":\"ask-cancel\"},on:{\"click\":_vm.cancelHandler}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-1\",attrs:{\"color\":\"primary\",\"type\":\"submit\",\"data-test\":\"ask-cancel\",\"disabled\":!_vm.valid},on:{\"click\":function($event){$event.preventDefault();return _vm.submitHandler.apply(null, arguments)}}},[_vm._v(\" Ok \")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <v-form v-model=\"valid\" v-on:submit.prevent=\"submitHandler\">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-row>\n <v-card-title v-text=\"question\" />\n </v-row>\n <v-row class=\"my-1\">\n <v-text-field\n v-model=\"inputValue\"\n autofocus\n data-test=\"ask-value-input\"\n :type=\"password ? 'password' : 'text'\"\n :rules=\"rules\"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click=\"cancelHandler\"\n outlined\n class=\"mx-1\"\n data-test=\"ask-cancel\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent=\"submitHandler\"\n class=\"mx-1\"\n color=\"primary\"\n type=\"submit\"\n data-test=\"ask-cancel\"\n :disabled=\"!valid\"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: '',\n valid: false,\n rules: [(v) => !!v || 'Required'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit('response', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit('response', 'Cancel')\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AskDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AskDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AskDialog.vue?vue&type=template&id=cc458030&\"\nimport script from \"./AskDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./AskDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',_vm._l((_vm.text),function(line,index){return _c('v-row',{key:index,attrs:{\"no-gutters\":\"\"}},[_c('span',{domProps:{\"textContent\":_vm._s(line)}})])}),1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <!-- INFO -->\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span v-text=\"title\" />\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-row no-gutters v-for=\"(line, index) in text\" :key=\"index\">\n <span v-text=\"line\" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color=\"primary\" @click=\"show = !show\"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InformationDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InformationDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InformationDialog.vue?vue&type=template&id=57dfdd96&\"\nimport script from \"./InformationDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./InformationDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" Input Metadata \")]),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-row',[_c('v-card-title',[_vm._v(\" Target: \"+_vm._s(_vm.target)+\" \")])],1),_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")]),_c('th',{staticClass:\"text-right\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"new-metadata-icon\"},on:{\"click\":_vm.newMetadata}},[_vm._v(\" mdi-plus \")])],1)]}}])},[_c('span',[_vm._v(\" New Metadata \")])])],1)]),_vm._l((_vm.metadata),function(meta,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"key-\" + i)},model:{value:(meta.key),callback:function ($$v) {_vm.$set(meta, \"key\", $$v)},expression:\"meta.key\"}})],1),_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"value-\" + i)},model:{value:(meta.value),callback:function ($$v) {_vm.$set(meta, \"value\", $$v)},expression:\"meta.value\"}})],1),_c('td',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"delete-metadata-icon\"},on:{\"click\":function($event){return _vm.rm(i)}}},[_vm._v(\" mdi-delete \")])],1)]}}],null,true)},[_c('span',[_vm._v(\" Delete Metadata \")])])],1)])]})],2)]),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.lastUpdated),expression:\"lastUpdated\"}]},[_c('v-col',[_c('span',{staticClass:\"pt-3\"},[_vm._v(\" Last update: \"+_vm._s(_vm.lastUpdated)+\" \")])])],1),_c('v-row',[_c('v-col',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.inputError),expression:\"inputError\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.inputError)}})])],1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"metadata-dialog-cancel\"},on:{\"click\":_vm.cancel}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"metadata-dialog-save\",\"disabled\":!!_vm.inputError},on:{\"click\":_vm.updateMetadata}},[_vm._v(\" Update \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport axios from './axios.js'\n\nexport class CosmosApi {\n id = 1\n\n constructor() {}\n\n // This is hacky Json-rpc for now. Should probably use a jsonrpc library.\n async exec(method, params, kwparams = {}) {\n try {\n await CosmosAuth.updateToken(CosmosAuth.defaultMinValidity)\n } catch (error) {\n CosmosAuth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = localStorage.scope\n const response = await axios.post(\n '/cosmos-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.cosmosToken,\n 'Content-Type': 'application/json-rpc',\n },\n }\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n //console.log(error)\n throw err\n }\n }\n\n decode_cosmos_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_cosmos_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n connect_interface(interface_name) {\n return this.exec('connect_interface', [interface_name])\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_all_cmd_info() {\n return this.exec('get_all_cmd_info', [])\n }\n\n get_all_tlm_info() {\n return this.exec('get_all_tlm_info', [])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_all_packet_logger_info() {\n return this.exec('get_all_packet_logger_info', [])\n }\n\n start_logging() {\n return this.exec('start_logging', [])\n }\n\n stop_logging() {\n return this.exec('stop_logging', [])\n }\n\n start_cmd_log(log_writer_name) {\n return this.exec('start_cmd_log', [log_writer_name])\n }\n\n start_tlm_log(log_writer_name) {\n return this.exec('start_tlm_log', [log_writer_name])\n }\n\n stop_cmd_log(log_writer_name) {\n return this.exec('stop_cmd_log', [log_writer_name])\n }\n\n stop_tlm_log(log_writer_name) {\n return this.exec('stop_tlm_log', [log_writer_name])\n }\n\n get_server_status() {\n return this.exec('get_server_status', [])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n get_background_tasks() {\n return this.exec('get_background_tasks', [])\n }\n\n start_background_task(name) {\n return this.exec('start_background_task', [name])\n }\n\n stop_background_task(name) {\n return this.exec('stop_background_task', [name])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_oldest_logfile() {\n return this.exec('get_oldest_logfile', [])\n }\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n // Called by PacketViewerComponent\n async get_tlm_packet(target_name, packet_name, value_type) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_cosmos_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n // Called by PacketViewerComponent\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n // Called by CmdTlmServer Tlm Packets tab\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n // Called by CosmosScreenComponent\n async get_tlm_values(items) {\n const data = await this.exec('get_tlm_values', [items])\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_cosmos_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n // Called by LimitsbarWidget\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n // Called by LimitsMonitorComponent\n async tlm(target_name, packet_name, item_name) {\n const data = await this.exec('tlm', [target_name, packet_name, item_name])\n var converted = this.decode_cosmos_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED'\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n // Called by CmdTlmServer Cmd Packets tab\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_cosmos_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(method, [target_name, command_name, param_list])\n }\n\n // Called by CmdSenderComponent\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name)\n } else {\n return this._cmd('cmd', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list\n )\n }\n }\n\n // Called by CmdSenderComponent\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n // Called by CmdSenderComponent\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n}\n","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Input Metadata </span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-row>\n <v-card-title> Target: {{ target }} </v-card-title>\n </v-row>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n <th class=\"text-right\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"new-metadata-icon\"\n @click=\"newMetadata\"\n >\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span> New Metadata </span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for=\"(meta, i) in metadata\">\n <tr :key=\"`tr-${i}`\">\n <td>\n <v-text-field\n v-model=\"meta.key\"\n type=\"text\"\n dense\n :data-test=\"`key-${i}`\"\n />\n </td>\n <td>\n <v-text-field\n v-model=\"meta.value\"\n type=\"text\"\n dense\n :data-test=\"`value-${i}`\"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"delete-metadata-icon\"\n @click=\"rm(i)\"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Metadata </span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n <v-row v-show=\"lastUpdated\">\n <v-col>\n <span class=\"pt-3\"> Last update: {{ lastUpdated }} </span>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <span class=\"red--text\" v-show=\"inputError\" v-text=\"inputError\" />\n </v-col>\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click=\"cancel\"\n class=\"mx-2\"\n outlined\n data-test=\"metadata-dialog-cancel\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click=\"updateMetadata\"\n class=\"mx-2\"\n color=\"primary\"\n data-test=\"metadata-dialog-save\"\n :disabled=\"!!inputError\"\n >\n Update\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport { CosmosApi } from '@cosmosc2/tool-common/src/services/cosmos-api'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n target: {\n type: String,\n required: true,\n },\n },\n data() {\n return {\n lastUpdated: null,\n metadata: [],\n }\n },\n mounted: function () {\n this.getMetadata()\n },\n computed: {\n inputError: function () {\n if (this.metadata.length < 1) {\n return 'Please enter a value in the metadata table.'\n }\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === '' || meta.value === ''\n )\n if (emptyKeyValue) {\n return 'Missing or empty key, value in the metadata table.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateMetadata: function () {\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const target = this.target\n const color = '#003784'\n Api.post('/cosmos-api/metadata', {\n data: { color, target, metadata },\n }).then((response) => {\n this.$emit('response', metadata)\n })\n },\n cancel: function () {\n this.show = !this.show\n },\n getMetadata: function () {\n Api.get(`/cosmos-api/metadata/_get/${this.target}`).then((response) => {\n if (response.status !== 200) {\n this.lastUpdated = null\n this.metadata = []\n } else {\n this.lastUpdated = new Date(response.data.updated_at / 1000000)\n this.updateValues(response.data.metadata)\n }\n })\n },\n updateValues: function (metaValues) {\n const targetMetadata = Object.keys(metaValues).map((k) => {\n return { key: k, value: metaValues[k] }\n })\n this.metadata = targetMetadata\n },\n newMetadata: function () {\n this.metadata.push({\n key: '',\n value: '',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InputMetadataDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InputMetadataDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InputMetadataDialog.vue?vue&type=template&id=71d87685&\"\nimport script from \"./InputMetadataDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./InputMetadataDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',{domProps:{\"textContent\":_vm._s(_vm.title)}}),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[(_vm.subtitle)?_c('v-row',[_c('v-card-subtitle',{domProps:{\"textContent\":_vm._s(_vm.subtitle)}})],1):_vm._e(),_c('v-row',{staticClass:\"mt-1\"},[_c('span',{domProps:{\"textContent\":_vm._s(_vm.message)}})]),(_vm.details)?_c('v-row',{staticClass:\"mt-1\"},[_c('span',{domProps:{\"textContent\":_vm._s(_vm.details)}})]):_vm._e()],1)],1),(_vm.layout === 'combo')?_c('div',[_c('v-row',{staticClass:\"ma-2\"},[_c('v-select',{staticClass:\"ma-1\",attrs:{\"label\":\"Select\",\"color\":\"secondary\",\"data-test\":\"prompt-select\",\"items\":_vm.computedButtons},on:{\"change\":function($event){_vm.selectOkDisabled = false}},model:{value:(_vm.selectedItem),callback:function ($$v) {_vm.selectedItem=$$v},expression:\"selectedItem\"}})],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"ma-1\",attrs:{\"outlined\":\"\",\"data-test\":\"prompt-cancel\"},on:{\"click\":_vm.cancelHandler}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"ma-1\",attrs:{\"color\":\"primary\",\"data-test\":\"prompt-ok\",\"disabled\":_vm.selectOkDisabled},on:{\"click\":_vm.submitHandler}},[_vm._v(\" Ok \")])],1)],1):_c('div',[_c('v-card-actions',{class:_vm.layoutClass},[_c('v-spacer'),_c('v-btn',{staticClass:\"ma-1\",attrs:{\"outlined\":\"\",\"data-test\":\"prompt-cancel\"},on:{\"click\":_vm.cancelHandler}},[_vm._v(\" Cancel \")]),_vm._l((_vm.computedButtons),function(button,index){return _c('div',{key:index},[_c('v-btn',{staticClass:\"ma-1\",attrs:{\"data-test\":(\"prompt-\" + (button.text)),\"color\":button.value ? 'primary' : ''},on:{\"click\":function($event){return _vm.submitWrapper(button.value)}}},[_vm._v(\" \"+_vm._s(button.text)+\" \")])],1)})],2)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog persistent v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span v-text=\"title\" />\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-row v-if=\"subtitle\">\n <v-card-subtitle v-text=\"subtitle\" />\n </v-row>\n <v-row class=\"mt-1\">\n <span v-text=\"message\" />\n </v-row>\n <v-row v-if=\"details\" class=\"mt-1\">\n <span v-text=\"details\" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if=\"layout === 'combo'\">\n <v-row class=\"ma-2\">\n <v-select\n @change=\"selectOkDisabled = false\"\n v-model=\"selectedItem\"\n label=\"Select\"\n color=\"secondary\"\n class=\"ma-1\"\n data-test=\"prompt-select\"\n :items=\"computedButtons\"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click=\"cancelHandler\"\n outlined\n data-test=\"prompt-cancel\"\n class=\"ma-1\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click=\"submitHandler\"\n class=\"ma-1\"\n color=\"primary\"\n data-test=\"prompt-ok\"\n :disabled=\"selectOkDisabled\"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class=\"layoutClass\">\n <v-spacer />\n <v-btn\n @click=\"cancelHandler\"\n outlined\n data-test=\"prompt-cancel\"\n class=\"ma-1\"\n >\n Cancel\n </v-btn>\n <div v-for=\"(button, index) in computedButtons\" :key=\"index\">\n <v-btn\n @click=\"submitWrapper(button.value)\"\n class=\"ma-1\"\n :data-test=\"`prompt-${button.text}`\"\n :color=\"button.value ? 'primary' : ''\"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: 'Prompt Dialog',\n },\n subtitle: {\n type: String,\n default: '',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: '',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: 'horizontal', // Also 'vertical' or 'combo' when means ComboBox\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n computedButtons() {\n if (this.buttons.length === 0) {\n return [\n { text: 'No', value: false },\n { text: 'Yes', value: true },\n ]\n } else {\n return this.buttons\n }\n },\n layoutClass() {\n let layout = 'd-flex align-start'\n if (this.layout === 'vertical') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit('response', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit('response', 'Cancel')\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PromptDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PromptDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptDialog.vue?vue&type=template&id=04f423fe&\"\nimport script from \"./PromptDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" Script Results \")]),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-textarea',{attrs:{\"readonly\":\"\",\"hide-details\":\"\",\"dense\":\"\",\"auto-grow\":\"\",\"value\":_vm.text}})],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\"},on:{\"click\":_vm.downloadResults}},[_vm._v(\" Download \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-textarea readonly hide-details dense auto-grow :value=\"text\" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class=\"mx-2\" outlined @click=\"downloadResults\"> Download </v-btn>\n <v-btn class=\"mx-2\" color=\"primary\" @click=\"show = !show\"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from 'date-fns'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n 'download',\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss') + '_suite_results.txt'\n )\n link.click()\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ResultsDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ResultsDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResultsDialog.vue?vue&type=template&id=84e4ea2e&\"\nimport script from \"./ResultsDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ResultsDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" Start Environment Configuration \")]),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('environment-chooser',{model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"environment-dialog-cancel\"},on:{\"click\":_vm.cancel}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"environment-dialog-save\",\"disabled\":!!_vm.inputError},on:{\"click\":_vm.updateEnvironment}},[_vm._v(\" Save \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('span',[_vm._v(\" Select from Cosmos environment variables \")])]),_c('v-row',{staticClass:\"ma-0\"},[_c('v-select',{attrs:{\"persistent-hint\":\"\",\"return-object\":\"\",\"label\":\"Select Environment Options\",\"hint\":\"Inject Environment Variables\",\"items\":_vm.environmentItems},on:{\"change\":_vm.addEnvironmentItem},scopedSlots:_vm._u([{key:\"selection\",fn:function(){return [_c('div',[_c('span',[_vm._v(\" Select Environment Options \")])])]},proxy:true},{key:\"item\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',[_c('span',{domProps:{\"textContent\":_vm._s(((item.key) + \"=\" + (item.value)))}})])]}}]),model:{value:(_vm.deadSelect),callback:function ($$v) {_vm.deadSelect=$$v},expression:\"deadSelect\"}})],1),_c('div',{staticClass:\"mt-2\"}),_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")]),_c('th',{staticClass:\"text-right\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"new-metadata-icon\"},on:{\"click\":_vm.newEnvironment}},[_vm._v(\" mdi-plus \")])],1)]}}])},[_c('span',[_vm._v(\" Add Environment \")])])],1)]),_vm._l((_vm.selected),function(env,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',[_c('v-text-field',{attrs:{\"dense\":\"\",\"type\":\"text\",\"readonly\":env.readonly,\"data-test\":(\"key-\" + i)},model:{value:(env.key),callback:function ($$v) {_vm.$set(env, \"key\", $$v)},expression:\"env.key\"}})],1),_c('td',[_c('v-text-field',{attrs:{\"dense\":\"\",\"type\":\"text\",\"readonly\":env.readonly,\"data-test\":(\"value-\" + i)},model:{value:(env.value),callback:function ($$v) {_vm.$set(env, \"value\", $$v)},expression:\"env.value\"}})],1),_c('td',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":(\"remove-env-icon-\" + i)},on:{\"click\":function($event){return _vm.rm(i)}}},[_vm._v(\" mdi-delete \")])],1)]}}],null,true)},[_c('span',[_vm._v(\" Delete Environment \")])])],1)])]})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-row no-gutters>\n <span> Select from Cosmos environment variables </span>\n </v-row>\n <v-row class=\"ma-0\">\n <v-select\n v-model=\"deadSelect\"\n @change=\"addEnvironmentItem\"\n persistent-hint\n return-object\n label=\"Select Environment Options\"\n hint=\"Inject Environment Variables\"\n :items=\"environmentItems\"\n >\n <template v-slot:selection=\"\">\n <div>\n <span> Select Environment Options </span>\n </div>\n </template>\n <template v-slot:item=\"{ item }\">\n <div>\n <span v-text=\"`${item.key}=${item.value}`\" />\n </div>\n </template>\n </v-select>\n </v-row>\n <div class=\"mt-2\" />\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n <th class=\"text-right\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon data-test=\"new-metadata-icon\" @click=\"newEnvironment\">\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span> Add Environment </span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for=\"(env, i) in selected\">\n <tr :key=\"`tr-${i}`\">\n <td>\n <v-text-field\n v-model=\"env.key\"\n dense\n type=\"text\"\n :readonly=\"env.readonly\"\n :data-test=\"`key-${i}`\"\n />\n </td>\n <td>\n <v-text-field\n v-model=\"env.value\"\n dense\n type=\"text\"\n :readonly=\"env.readonly\"\n :data-test=\"`value-${i}`\"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon :data-test=\"`remove-env-icon-${i}`\" @click=\"rm(i)\">\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Environment </span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n </div>\n</template>\n\n<script>\nimport Api from '../services/api'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n deadSelect: null,\n environmentOptions: [],\n }\n },\n mounted() {\n this.getEnvironment()\n },\n computed: {\n selected: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n environmentItems: function () {\n return this.environmentOptions.filter(\n (env) => !this.selected.find((s) => s.key === env.key)\n )\n },\n },\n methods: {\n getEnvironment: function () {\n Api.get('/cosmos-api/environment').then((response) => {\n this.environmentOptions = response.data\n })\n },\n addEnvironmentItem: function (event) {\n this.selected.push({\n key: event.key,\n value: event.value,\n readonly: true,\n })\n const envIndex = this.environmentOptions.findIndex(\n (env) => env.key === event.key && env.value === event.value\n )\n this.environmentOptions.splice(envIndex, envIndex >= 0 ? 1 : 0)\n this.deadSelect = null\n },\n newEnvironment: function () {\n this.selected.push({\n key: '',\n value: '',\n readonly: false,\n })\n },\n rm: function (index) {\n const env = this.selected.splice(index, 1)[0]\n if (env && env.readonly) {\n this.environmentOptions.push(env)\n }\n },\n },\n}\n</script>\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentChooser.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EnvironmentChooser.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EnvironmentChooser.vue?vue&type=template&id=48ad9972&\"\nimport script from \"./EnvironmentChooser.vue?vue&type=script&lang=js&\"\nexport * from \"./EnvironmentChooser.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Start Environment Configuration </span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <environment-chooser v-model=\"selected\" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click=\"cancel\"\n class=\"mx-2\"\n outlined\n data-test=\"environment-dialog-cancel\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click=\"updateEnvironment\"\n class=\"mx-2\"\n color=\"primary\"\n data-test=\"environment-dialog-save\"\n :disabled=\"!!inputError\"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from '@cosmosc2/tool-common/src/components/EnvironmentChooser'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit('environment', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptEnvironmentDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptEnvironmentDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ScriptEnvironmentDialog.vue?vue&type=template&id=0750faea&\"\nimport script from \"./ScriptEnvironmentDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./ScriptEnvironmentDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_c('span',[_vm._v(\" Start Metadata Configuration \")]),_c('v-spacer')],1),_c('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-row',[_c('v-col',[_c('v-select',{attrs:{\"items\":_vm.targets,\"label\":\"Target\",\"data-test\":\"meta-select-tgt\"},model:{value:(_vm.target),callback:function ($$v) {_vm.target=$$v},expression:\"target\"}})],1)],1),_c('v-simple-table',{attrs:{\"dense\":\"\"}},[_c('tbody',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\"Key\")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\"Value\")]),_c('th',{staticClass:\"text-right\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"new-metadata-icon\"},on:{\"click\":_vm.newMetadata}},[_vm._v(\" mdi-plus \")])],1)]}}])},[_c('span',[_vm._v(\" New Metadata \")])])],1)]),_vm._l((_vm.metadata),function(meta,i){return [_c('tr',{key:(\"tr-\" + i)},[_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"key-\" + i)},model:{value:(meta.key),callback:function ($$v) {_vm.$set(meta, \"key\", $$v)},expression:\"meta.key\"}})],1),_c('td',[_c('v-text-field',{attrs:{\"type\":\"text\",\"dense\":\"\",\"data-test\":(\"value-\" + i)},model:{value:(meta.value),callback:function ($$v) {_vm.$set(meta, \"value\", $$v)},expression:\"meta.value\"}})],1),_c('td',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"delete-metadata-icon\"},on:{\"click\":function($event){return _vm.rm(i)}}},[_vm._v(\" mdi-delete \")])],1)]}}],null,true)},[_c('span',[_vm._v(\" Delete Metadata \")])])],1)])]})],2)]),_c('v-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.lastUpdated),expression:\"lastUpdated\"}]},[_c('v-col',[_c('span',{staticClass:\"pt-3\"},[_vm._v(\" Last update: \"+_vm._s(_vm.lastUpdated)+\" \")])])],1),_c('v-row',[_c('v-col',[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.inputError),expression:\"inputError\"}],staticClass:\"red--text\",domProps:{\"textContent\":_vm._s(_vm.inputError)}})])],1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"outlined\":\"\",\"data-test\":\"metadata-dialog-cancel\"},on:{\"click\":_vm.cancel}},[_vm._v(\" Cancel \")]),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"metadata-dialog-save\",\"disabled\":!!_vm.inputError},on:{\"click\":_vm.updateMetadata}},[_vm._v(\" Update \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <v-dialog v-model=\"show\" width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Start Metadata Configuration </span>\n <v-spacer />\n </v-system-bar>\n <div class=\"pa-2\">\n <v-card-text>\n <v-row>\n <v-col>\n <v-select\n v-model=\"target\"\n :items=\"targets\"\n label=\"Target\"\n data-test=\"meta-select-tgt\"\n />\n </v-col>\n </v-row>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class=\"text-left\">Key</th>\n <th class=\"text-left\">Value</th>\n <th class=\"text-right\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"new-metadata-icon\"\n @click=\"newMetadata\"\n >\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span> New Metadata </span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for=\"(meta, i) in metadata\">\n <tr :key=\"`tr-${i}`\">\n <td>\n <v-text-field\n v-model=\"meta.key\"\n type=\"text\"\n dense\n :data-test=\"`key-${i}`\"\n />\n </td>\n <td>\n <v-text-field\n v-model=\"meta.value\"\n type=\"text\"\n dense\n :data-test=\"`value-${i}`\"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-icon\n data-test=\"delete-metadata-icon\"\n @click=\"rm(i)\"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span> Delete Metadata </span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n <v-row v-show=\"lastUpdated\">\n <v-col>\n <span class=\"pt-3\"> Last update: {{ lastUpdated }} </span>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <span class=\"red--text\" v-show=\"inputError\" v-text=\"inputError\" />\n </v-col>\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click=\"cancel\"\n class=\"mx-2\"\n outlined\n data-test=\"metadata-dialog-cancel\"\n >\n Cancel\n </v-btn>\n <v-btn\n @click=\"updateMetadata\"\n class=\"mx-2\"\n color=\"primary\"\n data-test=\"metadata-dialog-save\"\n :disabled=\"!!inputError\"\n >\n Update\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport { CosmosApi } from '@cosmosc2/tool-common/src/services/cosmos-api'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputTarget: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n lastUpdated: null,\n metadata: [],\n target: null,\n targets: [],\n }\n },\n mounted: function () {\n this.updateTargets()\n },\n watch: {\n target: function () {\n this.getMetadata()\n },\n },\n computed: {\n inputError: function () {\n // Don't check for this.metadata.length < 1 because we have to allow for deletes\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === '' || meta.value === ''\n )\n if (emptyKeyValue) {\n return 'Missing or empty key, value in the metadata table.'\n }\n return null\n },\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n updateMetadata: function () {\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const target = this.target\n const color = '#003784'\n Api.post('/cosmos-api/metadata', {\n data: { color, target, metadata },\n }).then((response) => {\n this.$notify.normal({\n title: 'Updated Metadata',\n body: `Metadata updated on ${this.target} (${response.data.start})`,\n })\n })\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n updateTargets: function () {\n new CosmosApi().get_target_list().then((data) => {\n this.targets = data\n this.targets.unshift(localStorage.scope)\n this.target = this.targets[0]\n })\n },\n getMetadata: function () {\n Api.get(`/cosmos-api/metadata/_get/${this.target}`).then((response) => {\n if (response.status !== 200) {\n this.metadata = []\n this.lastUpdated = null\n } else {\n this.lastUpdated = new Date(response.data.updated_at / 1000000)\n this.updateValues(response.data.metadata)\n }\n })\n },\n updateValues: function (metaValues) {\n const targetMetadata = Object.keys(metaValues).map((k) => {\n return { key: k, value: metaValues[k] }\n })\n this.metadata = targetMetadata\n },\n newMetadata: function () {\n this.metadata.push({\n key: '',\n value: '',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UpdateMetadataDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./UpdateMetadataDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UpdateMetadataDialog.vue?vue&type=template&id=6a2589e6&\"\nimport script from \"./UpdateMetadataDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./UpdateMetadataDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{attrs:{\"id\":\"tr-container\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"label\":\"Pause on Error\",\"value\":\"pauseOnError\",\"hide-details\":\"\",\"data-test\":\"pause-on-error\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"label\":\"Manual\",\"value\":\"manual\",\"hide-details\":\"\",\"data-test\":\"manual\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-select',{staticClass:\"mr-2 mb-2\",attrs:{\"label\":\"Suite:\",\"hide-details\":\"\",\"dense\":\"\",\"items\":_vm.suites,\"data-test\":\"select-suite\"},on:{\"change\":_vm.suiteChanged},model:{value:(_vm.suite),callback:function ($$v) {_vm.suite=$$v},expression:\"suite\"}})],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"disabled\":_vm.disableButtons,\"data-test\":\"start-suite\"},on:{\"click\":function($event){return _vm.$emit('button', { method: 'start', suite: _vm.suite, options: _vm.options })}}},[_vm._v(\" Start \")]),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"data-test\":\"setup-suite\",\"disabled\":_vm.disableButtons || !_vm.setupSuiteEnabled},on:{\"click\":function($event){return _vm.$emit('button', { method: 'setup', suite: _vm.suite, options: _vm.options })}}},[_vm._v(\" Setup \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"data-test\":\"teardown-suite\",\"disabled\":_vm.disableButtons || !_vm.teardownSuiteEnabled},on:{\"click\":function($event){return _vm.$emit('button', { method: 'teardown', suite: _vm.suite, options: _vm.options })}}},[_vm._v(\" Teardown \")])],1)],1)],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"label\":\"Continue after Error\",\"value\":\"continueAfterError\",\"hide-details\":\"\",\"data-test\":\"continue-after-error\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"label\":\"Loop\",\"value\":\"loop\",\"hide-details\":\"\",\"data-test\":\"loop\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-select',{staticClass:\"mr-2 mb-2\",attrs:{\"label\":\"Group:\",\"hide-details\":\"\",\"dense\":\"\",\"items\":_vm.groups,\"data-test\":\"select-group\"},on:{\"change\":_vm.groupChanged},model:{value:(_vm.group),callback:function ($$v) {_vm.group=$$v},expression:\"group\"}})],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"disabled\":_vm.disableButtons,\"data-test\":\"start-group\"},on:{\"click\":function($event){return _vm.$emit('button', { method: 'start', suite: _vm.suite, group: _vm.group, options: _vm.options })}}},[_vm._v(\" Start \")]),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"data-test\":\"setup-group\",\"disabled\":_vm.disableButtons || !_vm.setupGroupEnabled},on:{\"click\":function($event){return _vm.$emit('button', { method: 'setup', suite: _vm.suite, group: _vm.group, options: _vm.options })}}},[_vm._v(\" Setup \")]),_c('v-btn',{attrs:{\"color\":\"primary\",\"data-test\":\"teardown-group\",\"disabled\":_vm.disableButtons || !_vm.teardownGroupEnabled},on:{\"click\":function($event){return _vm.$emit('button', { method: 'teardown', suite: _vm.suite, group: _vm.group, options: _vm.options })}}},[_vm._v(\" Teardown \")])],1)],1)],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"4\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"label\":\"Abort after Error\",\"value\":\"abortAfterError\",\"hide-details\":\"\",\"data-test\":\"abort-after-error\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-checkbox',{attrs:{\"disabled\":!_vm.options.includes('loop'),\"label\":\"Break Loop on Error\",\"value\":\"breakLoopOnError\",\"hide-details\":\"\",\"data-test\":\"break-loop-on-error\"},model:{value:(_vm.options),callback:function ($$v) {_vm.options=$$v},expression:\"options\"}})],1)],1)],1),_c('v-col',{attrs:{\"cols\":\"8\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"end\"}},[_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('v-select',{staticClass:\"mr-2 mb-2\",attrs:{\"label\":\"Script:\",\"hide-details\":\"\",\"dense\":\"\",\"items\":_vm.scripts,\"data-test\":\"select-script\"},on:{\"change\":_vm.scriptChanged},model:{value:(_vm.script),callback:function ($$v) {_vm.script=$$v},expression:\"script\"}})],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{attrs:{\"color\":\"primary\",\"disabled\":_vm.disableButtons,\"data-test\":\"start-script\"},on:{\"click\":function($event){return _vm.$emit('button', {\n method: 'start',\n suite: _vm.suite,\n group: _vm.group,\n script: _vm.script,\n options: _vm.options,\n })}}},[_vm._v(\" Start \")]),_c('div',{staticStyle:{\"width\":\"300px\"}})],1)],1)],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <div id=\"tr-container\">\n <v-row no-gutters align=\"center\">\n <v-col cols=\"4\">\n <v-row no-gutters>\n <v-col cols=\"6\">\n <v-checkbox\n v-model=\"options\"\n label=\"Pause on Error\"\n value=\"pauseOnError\"\n hide-details\n data-test=\"pause-on-error\"\n />\n </v-col>\n <v-col cols=\"6\">\n <v-checkbox\n v-model=\"options\"\n label=\"Manual\"\n value=\"manual\"\n hide-details\n data-test=\"manual\"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols=\"8\">\n <v-row no-gutters justify=\"end\">\n <v-col cols=\"5\">\n <v-select\n label=\"Suite:\"\n class=\"mr-2 mb-2\"\n hide-details\n dense\n @change=\"suiteChanged\"\n :items=\"suites\"\n v-model=\"suite\"\n data-test=\"select-suite\"\n />\n </v-col>\n <v-col cols=\"auto\">\n <v-btn\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"disableButtons\"\n @click=\"$emit('button', { method: 'start', suite, options })\"\n data-test=\"start-suite\"\n >\n Start\n </v-btn>\n <v-btn\n color=\"primary\"\n class=\"mr-2\"\n @click=\"$emit('button', { method: 'setup', suite, options })\"\n data-test=\"setup-suite\"\n :disabled=\"disableButtons || !setupSuiteEnabled\"\n >\n Setup\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"$emit('button', { method: 'teardown', suite, options })\"\n data-test=\"teardown-suite\"\n :disabled=\"disableButtons || !teardownSuiteEnabled\"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align=\"center\">\n <v-col cols=\"4\">\n <v-row no-gutters>\n <v-col cols=\"6\">\n <v-checkbox\n v-model=\"options\"\n label=\"Continue after Error\"\n value=\"continueAfterError\"\n hide-details\n data-test=\"continue-after-error\"\n />\n </v-col>\n <v-col cols=\"6\">\n <v-checkbox\n v-model=\"options\"\n label=\"Loop\"\n value=\"loop\"\n hide-details\n data-test=\"loop\"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols=\"8\">\n <v-row no-gutters justify=\"end\">\n <v-col cols=\"5\">\n <v-select\n label=\"Group:\"\n class=\"mr-2 mb-2\"\n hide-details\n dense\n @change=\"groupChanged\"\n :items=\"groups\"\n v-model=\"group\"\n data-test=\"select-group\"\n />\n </v-col>\n <v-col cols=\"auto\">\n <v-btn\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"disableButtons\"\n @click=\"\n $emit('button', { method: 'start', suite, group, options })\n \"\n data-test=\"start-group\"\n >\n Start\n </v-btn>\n <v-btn\n color=\"primary\"\n class=\"mr-2\"\n @click=\"\n $emit('button', { method: 'setup', suite, group, options })\n \"\n data-test=\"setup-group\"\n :disabled=\"disableButtons || !setupGroupEnabled\"\n >\n Setup\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"\n $emit('button', { method: 'teardown', suite, group, options })\n \"\n data-test=\"teardown-group\"\n :disabled=\"disableButtons || !teardownGroupEnabled\"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align=\"center\">\n <v-col cols=\"4\">\n <v-row no-gutters>\n <v-col cols=\"6\">\n <v-checkbox\n v-model=\"options\"\n label=\"Abort after Error\"\n value=\"abortAfterError\"\n hide-details\n data-test=\"abort-after-error\"\n />\n </v-col>\n <v-col cols=\"6\">\n <v-checkbox\n :disabled=\"!options.includes('loop')\"\n v-model=\"options\"\n label=\"Break Loop on Error\"\n value=\"breakLoopOnError\"\n hide-details\n data-test=\"break-loop-on-error\"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols=\"8\">\n <v-row no-gutters justify=\"end\">\n <v-col cols=\"5\">\n <v-select\n label=\"Script:\"\n class=\"mr-2 mb-2\"\n hide-details\n dense\n @change=\"scriptChanged\"\n :items=\"scripts\"\n v-model=\"script\"\n data-test=\"select-script\"\n />\n </v-col>\n <v-col cols=\"auto\">\n <v-btn\n color=\"primary\"\n :disabled=\"disableButtons\"\n @click=\"\n $emit('button', {\n method: 'start',\n suite,\n group,\n script,\n options,\n })\n \"\n data-test=\"start-script\"\n >\n Start\n </v-btn>\n <!-- TODO: Don't like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts -->\n <div style=\"width: 300px\" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: '',\n group: '',\n script: '',\n options: ['pauseOnError', 'manual', 'continueAfterError'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = ''\n this.script = ''\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = ''\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SuiteRunner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SuiteRunner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SuiteRunner.vue?vue&type=template&id=e427c8ec&scoped=true&\"\nimport script from \"./SuiteRunner.vue?vue&type=script&lang=js&\"\nexport * from \"./SuiteRunner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SuiteRunner.vue?vue&type=style&index=0&id=e427c8ec&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e427c8ec\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',[_c('v-card-title',[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"icon\":\"\",\"data-test\":\"download-log\"},on:{\"click\":_vm.downloadLog}},[_c('v-icon',[_vm._v(\" mdi-download \")])],1)],1)]}}])},[_c('span',[_vm._v(\" Download Log \")])]),_vm._v(\" Log Messages \"),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"icon\":\"\",\"data-test\":\"clear-log\"},on:{\"click\":_vm.clearLog}},[_c('v-icon',[_vm._v(\" mdi-delete \")])],1)],1)]}}])},[_c('span',[_vm._v(\" Clear Log \")])])],1),_c('v-card-subtitle',[_c('v-text-field',{attrs:{\"single-line\":\"\",\"hide-details\":\"\",\"autofocus\":\"\",\"label\":\"Search\",\"data-test\":\"search-output-messages\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.messages,\"search\":_vm.search,\"calculate-widths\":\"\",\"disable-pagination\":\"\",\"hide-default-footer\":\"\",\"multi-sort\":\"\",\"dense\":\"\",\"height\":\"45vh\",\"data-test\":\"output-messages\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn\n icon\n class=\"mx-2\"\n data-test=\"download-log\"\n @click=\"downloadLog\"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Log Messages\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\">\n <v-btn icon class=\"mx-2\" data-test=\"clear-log\" @click=\"clearLog\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-card-subtitle>\n <v-text-field\n v-model=\"search\"\n single-line\n hide-details\n autofocus\n label=\"Search\"\n data-test=\"search-output-messages\"\n />\n </v-card-subtitle>\n <v-data-table\n :headers=\"headers\"\n :items=\"messages\"\n :search=\"search\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n height=\"45vh\"\n data-test=\"output-messages\"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from 'date-fns'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: '',\n headers: [{ text: 'Message', value: 'message' }],\n }\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit('input', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join('\\n')\n const blob = new Blob([output], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n 'download',\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss') + '_sr_message_log.txt'\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm('Are you sure you want to clear the logs?', {\n okText: 'Clear',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n this.messages = []\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptLogMessages.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptLogMessages.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ScriptLogMessages.vue?vue&type=template&id=37836792&\"\nimport script from \"./ScriptLogMessages.vue?vue&type=script&lang=js&\"\nexport * from \"./ScriptLogMessages.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*\n# Copyright 2021 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport Api from '@cosmosc2/tool-common/src/services/api'\n\nconst getKeywords = (type) => {\n return Api.get(`/cosmos-api/autocomplete/keywords/${type}`)\n}\n\nconst getAutocompleteData = (type) => {\n return Api.get(`/cosmos-api/autocomplete/data/${type}`)\n}\n\n// This should probably go in some higher up util library thing place\nconst groupBy = (array, lambda) => {\n return array.reduce((groups, item) => {\n const key = lambda(item)\n if (groups[key]) {\n groups[key].push(item)\n } else {\n groups[key] = [item]\n }\n return groups\n }, {})\n}\n\nexport { getKeywords, getAutocompleteData, groupBy }\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport { getKeywords, getAutocompleteData } from './utilities'\n\nconst toMethodCallSyntaxRegex = (word) => {\n // create regex to find the opening of a ruby method call\n const prefix = '(^|[{\\\\(\\\\s])' // Allowable characters before the method name: start of line or { or ( or a space\n const opening = '[\\\\s\\\\(][\\'\"]' // Opening sequence for a method call and a string argument: ( or a space, then ' or \"\n const params = '(\\\\S+\\\\s?){0,3}' // Only allow up to a few tokens after the keyword to avoid autocompleteception\n return new RegExp(`${prefix}${word}${opening}${params}$`) // ensure end of line because it's sliced to the current cursor position\n}\n\nexport default class PacketCompleter {\n constructor(\n type,\n dataReadyCallback = () => {},\n expressionsReadyCallback = () => {}\n ) {\n this.keywordExpressions = [] // Keywords that trigger the autocomplete feature\n this.autocompleteData = [] // Data to populate the autocomplete list\n\n getKeywords(type).then((response) => {\n this.keywordExpressions = response.data.map(toMethodCallSyntaxRegex)\n expressionsReadyCallback()\n })\n getAutocompleteData(type).then((response) => {\n this.autocompleteData = response.data\n dataReadyCallback()\n })\n }\n\n getCompletions = function (editor, session, position, prefix, callback) {\n let matches = []\n const lineBeforeCursor = session.doc.$lines[position.row].slice(\n 0,\n position.column\n )\n if (\n this.keywordExpressions.some((regex) => lineBeforeCursor.match(regex))\n ) {\n matches = this.autocompleteData\n }\n\n callback(null, [\n ...matches,\n\n // Uncomment to also return the built-in autocomplete words (but I found they're not very good and just get in the way when using live autocomplete)\n // ...session.$mode.$highlightRules.$keywordList.map((word) => ({\n // caption: word,\n // value: word,\n // meta: 'keyword',\n // })),\n ])\n }\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport PacketCompleter from './packetCompleter.js'\n\nexport default class CmdCompleter extends PacketCompleter {\n constructor() {\n super('cmd')\n }\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport PacketCompleter from './packetCompleter.js'\n\nexport default class TlmCompleter extends PacketCompleter {\n constructor() {\n super('tlm', () => {\n // The data returned by the API is usable as-is, but grouping it this way makes it easier\n // to search through all the packets first, and then for an item within that packet.\n this.groupedPacketData = this.autocompleteData.reduce((groups, item) => {\n const packetName = item.caption.match(/\\S+\\s\\S+/)[0] // First two tokens, e.g. \"INST ADCS\" OF \"INST ADCS POSX\"\n const itemName = item.snippet.replace(`${packetName} `, '')\n const amendedItem = {\n caption: itemName,\n snippet: itemName,\n meta: 'item',\n }\n\n if (groups[packetName]) {\n groups[packetName].push(amendedItem)\n } else {\n groups[packetName] = [amendedItem]\n }\n return groups\n }, {})\n this.packets = Object.keys(this.groupedPacketData).map((packetName) => {\n return {\n caption: packetName,\n snippet: packetName,\n meta: 'packet',\n }\n })\n })\n }\n\n // Override the parent's getCompletions to take advantage of the grouping by packet done in the constructor\n getCompletions = function (editor, session, position, prefix, callback) {\n let matches = []\n const lineBeforeCursor = session.doc.$lines[position.row].slice(\n 0,\n position.column\n )\n if (\n this.keywordExpressions.some((regex) => lineBeforeCursor.match(regex))\n ) {\n const foundPacket = Object.keys(this.groupedPacketData).find(\n (packetName) => lineBeforeCursor.includes(packetName)\n )\n if (foundPacket) {\n matches = this.groupedPacketData[foundPacket]\n } else {\n matches = this.packets\n }\n }\n\n callback(null, matches)\n }\n}\n","/*\n# Copyright 2021 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport { CosmosApi } from '@cosmosc2/tool-common/src/services/cosmos-api'\nimport { getKeywords, groupBy } from './utilities'\n\nconst toKeywordRegex = (word) => {\n // create regex to find the opening of a ruby method call\n const prefix = '(^|[{\\\\(\\\\s])' // Allowable characters before the method name: start of line or { or ( or a space\n const call = '((\\\\s.+)|(\\\\(.+\\\\)))' // A method call and its arguments\n return new RegExp(`${prefix}${word}${call}`)\n}\nconst interpolatedStringRegex = /#\\{.+\\}/\nconst alternateSyntaxRegex = /['\"],\\s?['\"]/\n\nexport default class MnemonicChecker {\n constructor() {\n this.api = new CosmosApi()\n\n this.targets = {}\n this.api.get_target_list().then((response) => {\n response.forEach((target) => {\n this.targets[target] = {\n cmd: null,\n tlm: null,\n }\n })\n })\n\n this.cmdKeywordExpressions = []\n getKeywords('cmd').then((response) => {\n this.cmdKeywordExpressions = response.data.map(toKeywordRegex)\n })\n\n this.tlmKeywordExpressions = []\n getKeywords('tlm').then((response) => {\n this.tlmKeywordExpressions = response.data.map(toKeywordRegex)\n })\n }\n\n checkText = async function (text) {\n const { linesToCheck, linesToSkip } = text.split('\\n').reduce(\n (result, line, index) => {\n line = line.trim()\n if (line.match(/^#/)) {\n return result\n }\n const cmdMatch = this.cmdKeywordExpressions.reduce((found, regex) => {\n return found || line.match(regex)\n }, null)\n const tlmMatch = this.tlmKeywordExpressions.reduce((found, regex) => {\n return found || line.match(regex)\n }, null)\n if (!cmdMatch && !tlmMatch) {\n return result\n }\n\n const matchStr = (cmdMatch || tlmMatch)[0]\n const mnemonicMatch = matchStr\n .substring(matchStr.match(/[\\(\\s)]/).index + 1) // Trim off leading `cmd(` or whatever\n .replace(/\\)\\s*$/, '') // and the closing ) if it's there\n\n if (mnemonicMatch.match(interpolatedStringRegex)) {\n result.linesToSkip.push(index + 1)\n return result\n }\n\n const usingAlternateSyntax = !!mnemonicMatch.match(alternateSyntaxRegex)\n const mnemonicParts = mnemonicMatch.split(\n usingAlternateSyntax ? ',' : ' '\n )\n if (mnemonicParts.length < 2) {\n return result // TODO: is this right? Maybe put an error on lineObj?\n }\n\n const mnemonic = {\n target: mnemonicParts[0],\n packet: mnemonicParts[1],\n }\n if (tlmMatch) {\n mnemonic.item = mnemonicParts[2]\n } else {\n const mnemonicParams = mnemonicParts.slice(2)\n if (usingAlternateSyntax) {\n mnemonic.params = mnemonicParams.map(\n (param) => param.split('=>')[0]\n )\n } else {\n mnemonic.params = mnemonicParams.filter((token, index) => index % 2)\n }\n }\n\n // Clean up the quotes and whitespace from the parts of the mnemonic\n for (const property in mnemonic) {\n if (typeof mnemonic[property] === 'string') {\n mnemonic[property] = mnemonic[property].replace(/['\"]/g, '').trim()\n } else {\n mnemonic[property] = mnemonic[property].map((item) =>\n item.replace(/['\"]/g, '').trim()\n )\n }\n }\n\n result.linesToCheck.push({\n line,\n mnemonic,\n lineNumber: index + 1,\n })\n return result\n },\n { linesToCheck: [], linesToSkip: [] }\n )\n\n const problems = await this._checkLines(linesToCheck)\n return {\n skipped: linesToSkip.sort(),\n problems: problems.sort((a, b) => a.lineNumber - b.lineNumber),\n }\n }\n\n _checkLines = async (linesToCheck) => {\n const problemLines = []\n const targetGroups = groupBy(\n linesToCheck,\n (lineObj) => lineObj.mnemonic.target\n )\n for (const target in targetGroups) {\n if (!this.targets[target]) {\n for (const lineObj of targetGroups[target]) {\n problemLines.push({\n ...lineObj,\n error: `Target \"${target}\" does not exist.`,\n })\n }\n continue\n }\n const packetGroups = groupBy(\n targetGroups[target],\n (lineObj) => lineObj.mnemonic.packet\n )\n for (const packet in packetGroups) {\n for (const lineObj of packetGroups[packet]) {\n const cmdOrTlm = lineObj.mnemonic.item ? 'tlm' : 'cmd'\n if (!this.targets[target][cmdOrTlm]) {\n const method = lineObj.mnemonic.item\n ? 'get_all_telemetry'\n : 'get_all_commands'\n const response = await this.api[method](target)\n this.targets[target][cmdOrTlm] = response.reduce(\n (result, packetInfo) => {\n result[packetInfo.packet_name] = packetInfo.items.map(\n (item) => item.name\n )\n return result\n },\n {}\n )\n }\n\n const items = this.targets[target][cmdOrTlm][packet]\n if (!items) {\n problemLines.push({\n ...lineObj,\n error: `${\n cmdOrTlm === 'tlm' ? 'Packet' : 'Command'\n } \"${target} ${packet}\" does not exist.`,\n })\n continue\n }\n if (lineObj.mnemonic.item) {\n if (!items.some((item) => item === lineObj.mnemonic.item)) {\n problemLines.push({\n ...lineObj,\n error: `Item \"${target} ${packet} ${lineObj.mnemonic.item}\" does not exist.`,\n })\n continue\n }\n } else {\n for (const param of lineObj.mnemonic.params) {\n if (!items.some((item) => item === param)) {\n problemLines.push({\n ...lineObj,\n error: `Command \"${target} ${packet}\" param \"${param}\" does not exist.`,\n })\n continue\n }\n }\n }\n }\n }\n }\n return problemLines\n }\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nexport default class RegexAnnotator {\n #id\n #editor\n #pattern\n #text\n #type\n\n constructor(editor, { pattern, text, type }) {\n this.#id = `regexAnnotator-${Math.floor(Math.random() * 10000000)}`\n this.#editor = editor\n this.#pattern = pattern\n this.#text = text\n this.#type = type\n }\n\n // Re-annotate the entire document\n refresh = () => {\n const session = this.#editor.session\n this.#removeAllAnnotations(session)\n const event = {\n lines: session.doc.$lines,\n action: 'insert',\n start: { row: 0 },\n end: { row: session.doc.$lines.length },\n }\n this.annotate(event, session)\n }\n\n // Update annotations for the changed lines\n annotate = ($event, session) => {\n if ($event.lines.length > 1) {\n // They created or deleted a line (or multiple lines), so first need to shift all the existing annotations\n switch ($event.action) {\n case 'insert':\n this.#shiftAnnotations(\n session,\n $event.start.row,\n $event.lines.length - 1\n )\n break\n case 'remove':\n this.#shiftAnnotations(\n session,\n $event.start.row + 1,\n -$event.lines.length + 1\n )\n break\n }\n }\n for (let row = $event.start.row; row <= $event.end.row; row++) {\n let column = session.doc.$lines[row]?.match(this.#pattern)?.index\n if (column !== undefined) {\n column !== 0 && (column += 1) // Account for a leading space that might've been included in the match\n this.#addAnnotation(session, {\n row,\n column, // I don't think our editor theme shows the column for annotations, but others do\n text: this.#text,\n type: this.#type,\n cosmosId: this.#id,\n })\n } else if ($event.action === 'remove') {\n this.#deleteAnnotationsForRow(session, row)\n }\n }\n }\n\n #addAnnotation = (session, newAnnotation) => {\n this.#deleteAnnotationsForRow(session, newAnnotation.row) // Reset this row first for the new annotation\n session.setAnnotations([...session.getAnnotations(), newAnnotation])\n }\n\n #deleteAnnotationsForRow = (session, row) => {\n session.setAnnotations(\n session\n .getAnnotations()\n .filter(\n (annotation) =>\n annotation.cosmosId !== this.#id || annotation.row !== row\n )\n )\n }\n\n #shiftAnnotations = (session, row, count) => {\n session.setAnnotations(\n session.getAnnotations().map((annotation) => {\n if (annotation.row > row) {\n annotation.row += count\n }\n return annotation\n })\n )\n }\n\n #removeAllAnnotations = (session) => {\n session.setAnnotations(\n session\n .getAnnotations()\n .filter((annotation) => annotation.cosmosId !== this.#id)\n )\n }\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n*/\n\nimport RegexAnnotator from './regexAnnotator.js'\n\nexport default class SleepAnnotator extends RegexAnnotator {\n constructor(editor) {\n const prefix = '(^|[{\\\\s])' // Allowable characters before the keyword: start of line or { or a space\n const keyword = 'sleep' // The keyword this annotation looks for\n const suffix = '[\\\\(\\\\s]' // Allowable characters after the keyword: ( or a space\n super(editor, {\n pattern: new RegExp(`${prefix}${keyword}${suffix}`),\n text: 'Use `wait` instead of `sleep` in COSMOS scripts', // because we override wait to make it work better, but not sleep\n type: 'warning',\n })\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-card-title',[_vm._v(\" Running Scripts \")]),_c('v-card-text',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-2\"},[_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.getRunningScripts}},[_vm._v(\"Refresh\")])],1),_c('div',{staticClass:\"col-10\"},[_c('v-text-field',{staticClass:\"pt-0\",attrs:{\"append-icon\":\"mdi-magnify\",\"label\":\"Search\",\"single-line\":\"\",\"hide-details\":\"\",\"data-test\":\"running-search\"},model:{value:(_vm.runningSearch),callback:function ($$v) {_vm.runningSearch=$$v},expression:\"runningSearch\"}})],1)])]),_c('v-data-table',{attrs:{\"headers\":_vm.runningHeaders,\"items\":_vm.runningScripts,\"search\":_vm.runningSearch,\"calculate-widths\":\"\",\"disable-pagination\":\"\",\"hide-default-footer\":\"\",\"multi-sort\":\"\",\"data-test\":\"running-scripts\"},scopedSlots:_vm._u([{key:\"item.connect\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){return _vm.connectScript(item)}}},[_c('span',[_vm._v(\"Connect\")]),_c('v-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.connectInNewTab),expression:\"connectInNewTab\"}],attrs:{\"right\":\"\"}},[_vm._v(\" mdi-open-in-new \")])],1)]}},{key:\"item.stop\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){return _vm.stopScript(item)}}},[_c('span',[_vm._v(\"Stop\")]),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-close-circle-outline \")])],1)]}},{key:\"item.delete\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){return _vm.deleteScript(item)}}},[_c('span',[_vm._v(\"Delete\")]),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-alert-octagon-outline \")])],1)]}}])})],1),_c('v-card',{staticClass:\"mt-3\",attrs:{\"flat\":\"\"}},[_c('v-card-title',[_vm._v(\" Completed Scripts \")]),_c('v-card-text',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-2\"},[_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.getCompletedScripts}},[_vm._v(\"Refresh\")])],1),_c('div',{staticClass:\"col-10\"},[_c('v-text-field',{staticClass:\"pt-0\",attrs:{\"append-icon\":\"mdi-magnify\",\"label\":\"Search\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.completedSearch),callback:function ($$v) {_vm.completedSearch=$$v},expression:\"completedSearch\"}})],1)])]),_c('v-data-table',{attrs:{\"headers\":_vm.completedHeaders,\"items\":_vm.completedScripts,\"search\":_vm.completedSearch,\"calculate-widths\":\"\",\"hide-default-footer\":\"\",\"multi-sort\":\"\",\"data-test\":\"completed-scripts\"},scopedSlots:_vm._u([{key:\"item.download\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"color\":\"primary\",\"disabled\":_vm.downloadScript,\"loading\":_vm.downloadScript && _vm.downloadScript.name === item.name},on:{\"click\":function($event){return _vm.downloadScriptLog(item)}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}],null,true)},[_c('span',[_vm._v(\"Download Log\")]),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-file-download-outline \")])],1)]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <v-card flat>\n <v-card-title> Running Scripts </v-card-title>\n <v-card-text>\n <div class=\"row\">\n <div class=\"col-2\">\n <v-btn color=\"primary\" @click=\"getRunningScripts\">Refresh</v-btn>\n </div>\n <div class=\"col-10\">\n <v-text-field\n v-model=\"runningSearch\"\n class=\"pt-0\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n data-test=\"running-search\"\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers=\"runningHeaders\"\n :items=\"runningScripts\"\n :search=\"runningSearch\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n data-test=\"running-scripts\"\n >\n <template v-slot:item.connect=\"{ item }\">\n <v-btn color=\"primary\" @click=\"connectScript(item)\">\n <span>Connect</span>\n <v-icon right v-show=\"connectInNewTab\"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop=\"{ item }\">\n <v-btn color=\"primary\" @click=\"stopScript(item)\">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete=\"{ item }\">\n <v-btn color=\"primary\" @click=\"deleteScript(item)\">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card class=\"mt-3\" flat>\n <v-card-title> Completed Scripts </v-card-title>\n <v-card-text>\n <div class=\"row\">\n <div class=\"col-2\">\n <v-btn color=\"primary\" @click=\"getCompletedScripts\">Refresh</v-btn>\n </div>\n <div class=\"col-10\">\n <v-text-field\n v-model=\"completedSearch\"\n class=\"pt-0\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers=\"completedHeaders\"\n :items=\"completedScripts\"\n :search=\"completedSearch\"\n calculate-widths\n hide-default-footer\n multi-sort\n data-test=\"completed-scripts\"\n >\n <template v-slot:item.download=\"{ item }\">\n <v-btn\n color=\"primary\"\n :disabled=\"downloadScript\"\n :loading=\"downloadScript && downloadScript.name === item.name\"\n @click=\"downloadScriptLog(item)\"\n >\n <span>Download Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from '@cosmosc2/tool-common/src/services/api'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: '',\n runningScripts: [],\n runningHeaders: [\n {\n text: 'Connect',\n value: 'connect',\n sortable: false,\n filterable: false,\n },\n { text: 'Id', value: 'id' },\n { text: 'Name', value: 'name' },\n { text: 'Start Time', value: 'start_time' },\n {\n text: 'Stop',\n value: 'stop',\n sortable: false,\n filterable: false,\n },\n {\n text: 'Force Quit',\n value: 'delete',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: '',\n completedScripts: [],\n completedHeaders: [\n { text: 'Name', value: 'name' },\n { text: 'Start Time', value: 'start' },\n {\n text: 'Download Log',\n value: 'download',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get('/script-api/running-script').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n Api.get('/script-api/completed-scripts').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n const destination = {\n name: 'ScriptRunner',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, '_blank')\n } else {\n this.$router.push(destination)\n this.$emit('close')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: 'Stop',\n cancelText: 'Cancel',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n 'Did you try to stop the script first to allow the script to stop gracefully?',\n {\n okText: 'Force Quit',\n cancelText: 'Cancel',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/cosmos-api/storage/download/${encodeURIComponent(\n script.log\n )}?bucket=logs`\n )\n .then((response) => {\n const filenameParts = script.log.split('/')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = response.data.url\n link.setAttribute('download', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the Minio 'logs' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RunningScripts.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RunningScripts.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RunningScripts.vue?vue&type=template&id=2a736c65&\"\nimport script from \"./RunningScripts.vue?vue&type=script&lang=js&\"\nexport * from \"./RunningScripts.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n-->\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-col cols=\"8\">\n <v-row no-gutters>\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-select\n outlined\n dense\n hide-details\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n v-model=\"fullFilename\"\n @change=\"fileNameChanged\"\n id=\"filename\"\n data-test=\"filename\"\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div\n v-else\n style=\"width: 40px; height: 40px\"\n class=\"ml-2 mr-2\"\n ></div>\n </v-row>\n </v-col>\n\n <!-- Disable the Start button when Suite Runner controls are showing -->\n <v-col cols=\"4\">\n <v-row no-gutters>\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"startOrGoDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span> Open Environment Dialog </span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </v-col>\n </v-row>\n </div>\n <!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize -->\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div id=\"editorbox\" class=\"pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre id=\"editor\" @contextmenu.prevent=\"showExecuteSelectionMenu\"></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n :key=\"item.label\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" />\n </div>\n </multipane>\n <!--- MENUS --->\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <input-metadata-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :target=\"inputMetadata.target\"\n @response=\"inputMetadata.callback\"\n />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <update-metadata-dialog\n v-if=\"showUpdateMetadata\"\n v-model=\"showUpdateMetadata\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showStartedScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showStartedScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport ActionCable from 'actioncable'\nimport Api from '@cosmosc2/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { toDate, format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@cosmosc2/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@cosmosc2/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@cosmosc2/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@cosmosc2/tool-common/src/components/TopBar'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport InputMetadataDialog from '@/tools/ScriptRunner/Dialogs/InputMetadataDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport UpdateMetadataDialog from '@/tools/ScriptRunner/Dialogs/UpdateMetadataDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n InformationDialog,\n InputMetadataDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n UpdateMetadataDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: ' ',\n scriptId: ' ',\n startOrGoButton: START,\n startOrGoDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showUpdateMetadata: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n messages: [],\n maxArrayLength: 30,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n target: null,\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showStartedScripts: false,\n activePromptId: '',\n }\n },\n computed: {\n fileList: function () {\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename)\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n return this.filename //`${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'View Started Scripts',\n icon: 'mdi-run',\n command: () => {\n this.showStartedScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Show Environment',\n icon: 'mdi-library',\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Show Metadata',\n icon: 'mdi-calendar',\n command: () => {\n this.showUpdateMetadata = !this.showUpdateMetadata\n },\n },\n {\n divider: true,\n },\n {\n label: 'Ruby Syntax Check',\n icon: 'mdi-language-ruby',\n command: () => {\n this.rubySyntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'View Instrumented Script',\n icon: 'mdi-code-braces-box',\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Show Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId || this.scriptId === ' ',\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear these breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n },\n created: function () {\n window.onbeforeunload = this.unlockFile\n },\n mounted: async function () {\n this.editor = ace.edit('editor')\n this.editor.setTheme('ace/theme/twilight')\n this.editor.session.setMode('ace/mode/ruby')\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = ActionCable.createConsumer('/script-api/cable')\n await this.tryLoadRunningScript(this.$route.params.id)\n this.autoSaveInterval = setInterval(() => {\n // Only save if modified and visible (e.g. not open in another tab)\n if (\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n this.saveFile('auto')\n }\n }, 60000) // Save every minute\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.autoSaveInterval != null) {\n clearInterval(this.autoSaveInterval)\n }\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n fileNameChanged(filename) {\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1\n ),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n this.filename = filename\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: '404 Not Found',\n body: `Failed to load running script id: ${id}`,\n })\n } else {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n executeText: function (text, breakpoints = []) {\n if (this.state === 'error') {\n // Execute via debugger\n const lines = text.split('\\n')\n for (const line of lines) {\n this.debug = line.trim()\n this.debugKeydown({ key: 'Enter' })\n }\n } else {\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss') + '_temp.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(\n `/script-api/scripts/${selectionTempFilename}/run`,\n {\n data: {\n environment: this.scriptEnvironment.env,\n },\n }\n )\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n }\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n if (\n $event.domEvent.which === 1 && // left click\n $event.domEvent.path[0].classList.contains('ace_gutter-cell') // on a line number\n ) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n keydown(event) {\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveFile()\n } else if (\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveAs()\n }\n },\n onChange(event) {\n // Don't track changes when we're read-only (we're running)\n if (this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n scriptStart(id) {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.scriptId = id\n this.editor.setReadOnly(true)\n this.subscription = this.cable.subscriptions.create(\n { channel: 'RunningScriptChannel', id: this.scriptId },\n {\n received: (data) => this.received(data),\n }\n )\n },\n scriptComplete() {\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.fatal = false\n this.scriptId = null\n this.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n start(event, suiteRunner = null) {\n this.saveFile('start')\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data }).then((response) => {\n this.scriptStart(response.data)\n })\n },\n go(event, suiteRunner = null) {\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n received(data) {\n // console.log(data) // Uncomment for debugging\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n this.currentFilename = data.filename\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine'\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n break\n case 'output':\n this.messages.unshift({ message: data.line })\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = [] // Reset buttons so 'Yes', 'No' are used by default\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.combo = true\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'input_metadata':\n this.inputMetadata.target = data.args[0]\n this.inputMetadata.show = true\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n },\n })\n }\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.filename = NEW_FILENAME\n this.clearBreakpoints()\n this.editor.session.setValue('')\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n },\n openFile() {\n this.fileOpen = true\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }) {\n this.files = {} // Clear the cached file list\n this.unlockFile() // first unlock what was just being edited\n this.suiteRunner = false\n // Split off the ' *' which indicates a file is modified on the server\n this.filename = file.name.split('*')[0]\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.lockedBy = locked\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n saveFile(type = 'menu') {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n } else {\n if (this.tempFilename === null) {\n this.tempFilename =\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss') + '_temp.rb'\n }\n this.showSave = true\n Api.post(`/script-api/scripts/${this.tempFilename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n })\n .catch((error) => {\n this.showSave = false\n })\n }\n } else {\n // Save a file by posting the new contents\n this.showSave = true\n Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n }\n this.lockFile() // Ensure this file is locked for editing\n },\n saveAs() {\n this.showSaveAs = true\n },\n saveAsFilename(filename) {\n this.filename = filename\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n this.saveFile()\n },\n delete() {\n // TODO: Delete instead of post\n this.$dialog\n .confirm(`Permanently delete file: ${this.filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${this.filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n rubySyntaxCheck() {\n Api.post('/script-api/scripts/syntax', {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n },\n}\n</script>\n\n<style scoped>\n#sr-controls {\n padding-top: 0px;\n padding-bottom: 5px;\n padding-left: 0px;\n padding-right: 0px;\n}\n#editorbox {\n height: 50vh;\n}\n#editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state >>> input {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n</style>\n","import mod from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptRunner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptRunner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ScriptRunner.vue?vue&type=template&id=631ea251&scoped=true&\"\nimport script from \"./ScriptRunner.vue?vue&type=script&lang=js&\"\nexport * from \"./ScriptRunner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ScriptRunner.vue?vue&type=style&index=0&id=631ea251&scoped=true&lang=css&\"\nimport style1 from \"./ScriptRunner.vue?vue&type=style&index=1&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"631ea251\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-list[data-v-e3bb7458] .v-label{margin-left:5px}.v-list-item__icon[data-v-e3bb7458]{margin-right:15px!important}.v-list-item__title[data-v-e3bb7458]{color:#fff}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"#sr-controls[data-v-631ea251]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}#editorbox[data-v-631ea251]{height:50vh}#editor[data-v-631ea251]{height:100%;width:100%;font-size:16px}#editor[data-v-631ea251],hr[data-v-631ea251]{position:relative}hr[data-v-631ea251]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-631ea251] input{text-transform:capitalize}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"#tr-container[data-v-e427c8ec]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TopBar.vue?vue&type=style&index=0&id=e3bb7458&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"a2f2c426\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptRunner.vue?vue&type=style&index=0&id=631ea251&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"ce77f99a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12[0].rules[0].use[3]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ScriptRunner.vue?vue&type=style&index=1&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"51f24f25\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!../../../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!../../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[4]!../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SuiteRunner.vue?vue&type=style&index=0&id=e427c8ec&lang=scss&scoped=true&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"d8346b44\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","menus","title","alertType","scopedSlots","_u","key","fn","ref","_b","on","$event","showAlert","_v","model","value","callback","$$v","expression","_s","alertText","confirmLocalUnlock","showReadOnlyToast","lockedBy","suiteMap","disableSuiteButtons","suiteRunnerButton","_e","staticClass","fileList","length","fileNameChanged","fullFilename","staticStyle","scriptId","state","startOrGoButton","startOrGoDisabled","startHandler","_g","environmentIconColor","scriptEnvironment","show","environmentIcon","go","pauseOrRetryDisabled","pauseOrRetry","pauseOrRetryButton","stopDisabled","stop","editor","resize","showSave","preventDefault","showExecuteSelectionMenu","apply","arguments","menuX","menuY","executeSelectionMenu","_l","item","label","command","step","debugKeydown","debug","messages","setFile","setError","fileOpen","filenameOrBlank","saveAsFilename","showSaveAs","showEnvironment","ask","question","default","password","answerRequired","$set","information","text","inputMetadata","target","prompt","subtitle","message","details","buttons","layout","results","env","environmentHandler","showUpdateMetadata","suiteError","showSuiteError","showStartedScripts","fileModified","staticRenderFns","vueInstance","Vue","axiosInstance","axios","baseURL","location","origin","timeout","params","interceptors","response","use","error","status","localStorage","cosmosToken","CosmosAuth","login","href","body","data","exception","class","$notify","serious","request","method","url","headers","noAuth","noScope","updateToken","defaultMinValidity","scope","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","success","handleSearch","search","items","type","activeFile","open","file","tree","selectedFile","directives","name","rawName","domProps","disableButtons","submit","props","String","required","validator","indexOf","apiUrl","requireTargetParentDir","Boolean","inputFilename","id","targets","computed","set","$emit","validFilenameRegex","RegExp","created","Api","then","catch","methods","clear","overwrite","input","$refs","updateAll","exists","root","found","openSuccess","saveSuccess","contents","locked","breakpoints","$dialog","confirm","okText","cancelText","insertFile","parts","split","push","filepath","index","children","slice","level","join","component","addEnvironment","environment","deleteEnvironment","keyValue","alert","align","sortable","mounted","update","alertHandler","event","toUpperCase","width","download","link","URL","createObjectURL","blob","setAttribute","click","menu","i","formatDT","radioGroup","option","j","disabled","checked","icon","radio","checkbox","style","Array","string","replaceAll","toLowerCase","submitHandler","valid","rules","inputValue","cancelHandler","line","newMetadata","meta","rm","lastUpdated","inputError","cancel","updateMetadata","CosmosApi","kwparams","jsonrpc","keyword_params","Authorization","result","err","Error","val","json_class","raw","NaN","Infinity","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","exec","interface_name","router_name","packet","log_writer_name","limits_set","target_name","packet_name","value_type","len","converted","decode_cosmos_type","item_name","command_name","parameter_name","param_list","Object","prototype","hasOwnProperty","call","encode_cosmos_type","undefined","_cmd","tool","ignored","array","components","metadata","getMetadata","emptyKeyValue","element","color","updateValues","targetMetadata","splice","computedButtons","selectOkDisabled","selectedItem","layoutClass","button","submitWrapper","output","downloadResults","format","selected","updateEnvironment","environmentItems","addEnvironmentItem","proxy","deadSelect","newEnvironment","readonly","environmentOptions","getEnvironment","filter","envIndex","EnvironmentChooser","inputEnvironment","loadEnvironment","inputTarget","updateTargets","watch","get_target_list","options","suites","suiteChanged","suite","setupSuiteEnabled","teardownSuiteEnabled","groups","groupChanged","group","setupGroupEnabled","teardownGroupEnabled","includes","scripts","scriptChanged","script","initSuites","handler","updateSuiteMap","deep","keys","downloadLog","clearLog","getKeywords","getAutocompleteData","groupBy","lambda","reduce","toMethodCallSyntaxRegex","word","prefix","opening","PacketCompleter","dataReadyCallback","expressionsReadyCallback","session","position","matches","lineBeforeCursor","doc","$lines","row","column","keywordExpressions","some","regex","match","autocompleteData","map","CmdCompleter","TlmCompleter","groupedPacketData","packetName","caption","itemName","snippet","replace","amendedItem","packets","foundPacket","find","toKeywordRegex","interpolatedStringRegex","alternateSyntaxRegex","MnemonicChecker","trim","cmdMatch","cmdKeywordExpressions","tlmMatch","tlmKeywordExpressions","matchStr","mnemonicMatch","substring","linesToSkip","usingAlternateSyntax","mnemonicParts","mnemonic","mnemonicParams","param","token","property","linesToCheck","lineNumber","_checkLines","problems","skipped","sort","a","b","problemLines","targetGroups","lineObj","packetGroups","cmdOrTlm","api","packetInfo","forEach","cmd","tlm","RegexAnnotator","pattern","lines","action","start","end","annotate","cosmosId","newAnnotation","setAnnotations","getAnnotations","annotation","count","Math","floor","random","SleepAnnotator","keyword","suffix","getRunningScripts","runningSearch","runningHeaders","runningScripts","connectScript","stopScript","deleteScript","getCompletedScripts","completedSearch","completedHeaders","completedScripts","downloadScript","downloadScriptLog","tabId","curTab","connectInNewTab","filterable","window","$router","destination","encodeURIComponent","FileOpenSaveDialog","EnvironmentDialog","Multipane","MultipaneResizer","TopBar","AskDialog","InformationDialog","InputMetadataDialog","PromptDialog","ResultsDialog","ScriptEnvironmentDialog","UpdateMetadataDialog","SimpleTextDialog","SuiteRunner","RunningScripts","ScriptLogMessages","suiteRunner","currentFilename","START","PAUSE","showDebug","debugHistory","debugHistoryIndex","showDisconnect","files","filename","NEW_FILENAME","tempFilename","areYouSure","subscription","cable","fatal","maxArrayLength","Range","require","mnemonicChecker","activePromptId","filenames","readOnly","divider","executeSelectionMenuItems","setReadOnly","onbeforeunload","unlockFile","sleepAnnotator","document","beforeDestroy","destroy","container","remove","destroyed","autoSaveInterval","clearInterval","unsubscribe","disconnect","beforeRouteUpdate","to","tryLoadRunningScript","next","setValue","content","restoreBreakpoints","clearSelection","removeAllMarkers","addMarker","gotoLine","lineNo","loadRunningScript","tryLoadSuites","pageX","pageY","runFromCursor","getLines","executeText","executeSelection","selectionTempFilename","clearBreakpoints","toggleBreakpoint","getBreakpoints","clearBreakpoint","setBreakpoint","updateBreakpoints","offset","rowsToUpdate","reverse","rowsToDelete","getBreakpointRows","deleteAllBreakpoints","keydown","saveFile","onChange","getReadOnly","getUndoManager","canUndo","checkMnemonics","checkText","html","scriptStart","GO","subscriptions","create","channel","received","scriptComplete","line_no","RETRY","existing","unshift","pop","handleScript","report","promptDialogCallback","answer","prompt_id","prompt_complete","args","toString","kwargs","informative","combo","newFile","openFile","saveAs","getValue","setTimeout","lockFile","rubySyntaxCheck","showInstrumented","showCallStack","toggleDebug","toggleDisconnect","allMarkers","___CSS_LOADER_EXPORT___","module","__esModule","locals","exports","add"],"sourceRoot":""}