openc3-cosmos-tool-admin 5.7.2 → 5.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/js/126.js +2 -0
  3. data/tools/admin/js/126.js.map +1 -0
  4. data/tools/admin/js/133.js +2 -0
  5. data/tools/admin/js/133.js.map +1 -0
  6. data/tools/admin/js/208.js +2 -0
  7. data/tools/admin/js/208.js.map +1 -0
  8. data/tools/admin/js/224.js +2 -0
  9. data/tools/admin/js/{511.js.map → 224.js.map} +1 -1
  10. data/tools/admin/js/{759.js → 226.js} +2 -2
  11. data/tools/admin/js/226.js.map +1 -0
  12. data/tools/admin/js/358.js +2 -0
  13. data/tools/admin/js/358.js.map +1 -0
  14. data/tools/admin/js/398.js +2 -0
  15. data/tools/admin/js/398.js.map +1 -0
  16. data/tools/admin/js/{812.js → 446.js} +2 -2
  17. data/tools/admin/js/{812.js.map → 446.js.map} +1 -1
  18. data/tools/admin/js/559.js +1 -1
  19. data/tools/admin/js/559.js.map +1 -1
  20. data/tools/admin/js/561.js +2 -0
  21. data/tools/admin/js/{222.js.map → 561.js.map} +1 -1
  22. data/tools/admin/js/635.js +2 -0
  23. data/tools/admin/js/635.js.map +1 -0
  24. data/tools/admin/js/644.js +2 -0
  25. data/tools/admin/js/644.js.map +1 -0
  26. data/tools/admin/js/730.js +2 -0
  27. data/tools/admin/js/730.js.map +1 -0
  28. data/tools/admin/js/{497.js → 782.js} +2 -2
  29. data/tools/admin/js/782.js.map +1 -0
  30. data/tools/admin/js/837.js +2 -2
  31. data/tools/admin/js/837.js.map +1 -1
  32. data/tools/admin/js/876.js +3 -3
  33. data/tools/admin/js/876.js.map +1 -1
  34. data/tools/admin/js/{309.js → 895.js} +2 -2
  35. data/tools/admin/js/895.js.map +1 -0
  36. data/tools/admin/js/999.js +2 -0
  37. data/tools/admin/js/{355.js.map → 999.js.map} +1 -1
  38. data/tools/admin/js/app.js +1 -1
  39. data/tools/admin/js/app.js.map +1 -1
  40. metadata +32 -32
  41. data/tools/admin/js/13.js +0 -2
  42. data/tools/admin/js/13.js.map +0 -1
  43. data/tools/admin/js/19.js +0 -2
  44. data/tools/admin/js/19.js.map +0 -1
  45. data/tools/admin/js/222.js +0 -2
  46. data/tools/admin/js/253.js +0 -2
  47. data/tools/admin/js/253.js.map +0 -1
  48. data/tools/admin/js/262.js +0 -2
  49. data/tools/admin/js/262.js.map +0 -1
  50. data/tools/admin/js/309.js.map +0 -1
  51. data/tools/admin/js/324.js +0 -2
  52. data/tools/admin/js/324.js.map +0 -1
  53. data/tools/admin/js/355.js +0 -2
  54. data/tools/admin/js/374.js +0 -2
  55. data/tools/admin/js/374.js.map +0 -1
  56. data/tools/admin/js/497.js.map +0 -1
  57. data/tools/admin/js/511.js +0 -2
  58. data/tools/admin/js/659.js +0 -2
  59. data/tools/admin/js/659.js.map +0 -1
  60. data/tools/admin/js/731.js +0 -2
  61. data/tools/admin/js/731.js.map +0 -1
  62. data/tools/admin/js/759.js.map +0 -1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.2
4
+ version: 5.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-16 00:00:00.000000000 Z
12
+ date: 2023-05-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " This plugin adds the OpenC3 COSMOS Administrative interface tool\n"
15
15
  email:
@@ -26,44 +26,44 @@ files:
26
26
  - tools/admin/index.html
27
27
  - tools/admin/js/109.js
28
28
  - tools/admin/js/109.js.map
29
- - tools/admin/js/13.js
30
- - tools/admin/js/13.js.map
31
- - tools/admin/js/19.js
32
- - tools/admin/js/19.js.map
33
- - tools/admin/js/222.js
34
- - tools/admin/js/222.js.map
35
- - tools/admin/js/253.js
36
- - tools/admin/js/253.js.map
37
- - tools/admin/js/262.js
38
- - tools/admin/js/262.js.map
39
- - tools/admin/js/309.js
40
- - tools/admin/js/309.js.map
41
- - tools/admin/js/324.js
42
- - tools/admin/js/324.js.map
43
- - tools/admin/js/355.js
44
- - tools/admin/js/355.js.map
45
- - tools/admin/js/374.js
46
- - tools/admin/js/374.js.map
29
+ - tools/admin/js/126.js
30
+ - tools/admin/js/126.js.map
31
+ - tools/admin/js/133.js
32
+ - tools/admin/js/133.js.map
33
+ - tools/admin/js/208.js
34
+ - tools/admin/js/208.js.map
35
+ - tools/admin/js/224.js
36
+ - tools/admin/js/224.js.map
37
+ - tools/admin/js/226.js
38
+ - tools/admin/js/226.js.map
39
+ - tools/admin/js/358.js
40
+ - tools/admin/js/358.js.map
47
41
  - tools/admin/js/388.js
48
42
  - tools/admin/js/388.js.map
49
- - tools/admin/js/497.js
50
- - tools/admin/js/497.js.map
51
- - tools/admin/js/511.js
52
- - tools/admin/js/511.js.map
43
+ - tools/admin/js/398.js
44
+ - tools/admin/js/398.js.map
45
+ - tools/admin/js/446.js
46
+ - tools/admin/js/446.js.map
53
47
  - tools/admin/js/559.js
54
48
  - tools/admin/js/559.js.map
55
- - tools/admin/js/659.js
56
- - tools/admin/js/659.js.map
57
- - tools/admin/js/731.js
58
- - tools/admin/js/731.js.map
59
- - tools/admin/js/759.js
60
- - tools/admin/js/759.js.map
61
- - tools/admin/js/812.js
62
- - tools/admin/js/812.js.map
49
+ - tools/admin/js/561.js
50
+ - tools/admin/js/561.js.map
51
+ - tools/admin/js/635.js
52
+ - tools/admin/js/635.js.map
53
+ - tools/admin/js/644.js
54
+ - tools/admin/js/644.js.map
55
+ - tools/admin/js/730.js
56
+ - tools/admin/js/730.js.map
57
+ - tools/admin/js/782.js
58
+ - tools/admin/js/782.js.map
63
59
  - tools/admin/js/837.js
64
60
  - tools/admin/js/837.js.map
65
61
  - tools/admin/js/876.js
66
62
  - tools/admin/js/876.js.map
63
+ - tools/admin/js/895.js
64
+ - tools/admin/js/895.js.map
65
+ - tools/admin/js/999.js
66
+ - tools/admin/js/999.js.map
67
67
  - tools/admin/js/app.js
68
68
  - tools/admin/js/app.js.map
69
69
  homepage: https://github.com/OpenC3/openc3
data/tools/admin/js/13.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[13],{6129:function(e,t,n){var a=n(6964),s=n(5789),o=n(9502),r=n(9373),c=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t,n){var a,o,c,i,l,u,d,p,v,f,h=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=h.length>2&&void 0!==h[2]?h[2]:{},o=a.data,c=a.params,i=void 0===c?{}:c,l=a.headers,u=a.noAuth,d=void 0!==u&&u,p=a.noScope,v=void 0!==p&&p,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:f=e.sent,f&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return v||i["scope"]||(i["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:n,data:o,params:i,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),i={Accept:"application/json"},l=(0,a.Z)((0,a.Z)({},i),{},{"Content-Type":"application/json"});t["Z"]={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("get",e,{params:n,headers:s,noScope:o,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("put",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.params,s=t.headers,o=void 0===s?l:s,r=t.noScope,i=t.noAuth;return c("post",e,{data:n,params:a,headers:o,noScope:r,noAuth:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,a=t.headers,s=void 0===a?i:a,o=t.noScope,r=t.noAuth;return c("delete",e,{params:n,headers:s,noScope:o,noAuth:r})}}},9373:function(e,t,n){n(9529),n(1235),n(8188),n(8233);var a=n(9644),s=n.n(a),o=n(4091),r=new o["default"],c=s().create({baseURL:location.origin,timeout:6e4,params:{}});c.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,a,s,o,c,i,l,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var p="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(p+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(a=n.config)&&void 0!==a&&a.data&&(p+="".concat(e.response.config.data," ")),null!==(s=e.response)&&void 0!==s&&null!==(o=s.data)&&void 0!==o&&o.message)p+="".concat(e.response.data.message);else if(null!==(c=e.response)&&void 0!==c&&null!==(i=c.data)&&void 0!==i&&i.exception)p+="".concat(e.response.data.exception);else if(null!==(l=e.response)&&void 0!==l&&null!==(u=l.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(p+="".concat(e.response.data.error.class," ")),p+="".concat(e.response.data.error.message);else{var v;p+="".concat(null===(v=e.response)||void 0===v?void 0:v.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),e}throw e})),t["Z"]=c},5013:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=function(){var e=this,t=e._self._c;return t("div",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{"show-size":"",accept:"*",label:"Click to select a file to create a secret from or enter a secret value"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1),t("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-text-field",{staticClass:"px-2",attrs:{label:"Secret Name"},model:{value:e.secretName,callback:function(t){e.secretName=t},expression:"secretName"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-text-field",{attrs:{disabled:e.file,label:"Secret Value"},model:{value:e.secretValue,callback:function(t){e.secretValue=t},expression:"secretValue"}})],1),t("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"secretUpload",disabled:""===e.secretName||null==e.file&&""===e.secretValue,loading:e.loadingSecret},on:{click:function(t){return e.upload()}},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}])},[t("v-icon",{attrs:{left:"",dark:""}},[e._v("mdi-cloud-upload")]),t("span",[e._v(" Set ")])],1)],1)],1),t("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:e.alertType},model:{value:e.showAlert,callback:function(t){e.showAlert=t},expression:"showAlert"}},[e._v(e._s(e.alert))]),t("v-list",{attrs:{"data-test":"secretList"}},e._l(e.secrets,(function(n,a){return t("div",{key:a},[t("v-list-item",[t("v-list-item-content",[t("v-list-item-title",[e._v(e._s(n))])],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(a){var s=a.on,o=a.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.deleteSecret(n)}}},"v-icon",o,!1),s),[e._v(" mdi-delete ")])]}}],null,!0)},[t("span",[e._v("Delete Secret")])])],1)],1),a<e.secrets.length-1?t("v-divider",{key:a}):e._e()],1)})),0)],1)},s=[],o=n(6129),r={data:function(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted:function(){this.update()},methods:{update:function(){var e=this;o.Z.get("/openc3-api/secrets").then((function(t){e.secrets=t.data}))},upload:function(){var e=this;this.loadingSecret=!0;var t=null;if(this.file){var n=new FormData;n.append("file",this.file,this.file.name),t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:n})}else t=o.Z.post("/openc3-api/secrets/".concat(this.secretName),{data:{value:this.secretValue}});t.then((function(t){e.loadingSecret=!1,e.file=null,e.secretName="",e.secretValue="",e.update()})).catch((function(t){e.loadingSecret=!1}))},deleteSecret:function(e){var t=this;this.$dialog.confirm("Are you sure you want to remove: ".concat(e),{okText:"Delete",cancelText:"Cancel"}).then((function(t){return o.Z["delete"]("/openc3-api/secrets/".concat(e))})).then((function(n){t.alert="Removed secret ".concat(e),t.alertType="success",t.showAlert=!0,setTimeout((function(){t.showAlert=!1}),5e3),t.update()}))}}},c=r,i=n(3287),l=(0,i.Z)(c,a,s,!1,null,null,null),u=l.exports}}]);
2
- //# sourceMappingURL=13.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js/13.js","mappings":"4LAwBMA,EAAO,eAAAC,GAAAC,EAAAA,EAAAA,IAAAC,EAAAA,EAAAA,KAAAC,MAAG,SAAAC,EACdC,EACAC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAAhB,EAAAA,EAAAA,KAAAiB,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAC0D,GAD1Df,EAAAU,EAAAM,OAAA,QAAAC,IAAAP,EAAA,GAAAA,EAAA,GAC+D,CAAC,EAAjET,EAAID,EAAJC,KAAIC,EAAAF,EAAEG,OAAAA,OAAM,IAAAD,EAAG,CAAC,EAACA,EAAEE,EAAOJ,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AAAJ,GAAA,IAAAmB,EAAA,KACA,KAAAC,QACAC,QAAA,oCAAAhE,OAAA2C,GAAA,CACAsB,OAAA,SACAC,WAAA,WAEAxE,MAAA,SAAAyE,GACA,OAAAb,EAAAA,EAAAA,UAAA,uBAAAtD,OAAA2C,GACA,IACAjD,MAAA,SAAAd,GACAkF,EAAAtB,MAAA,kBAAAxC,OAAA2C,GACAmB,EAAAzB,UAAA,UACAyB,EAAAxB,WAAA,EACA8B,YAAA,WACAN,EAAAxB,WAAA,CACA,QACAwB,EAAAX,QACA,GACA,ICjKkY,I,UCO9XkB,GAAY,OACd,EACA3D,EACAuC,GACA,EACA,KACA,KACA,MAIF,EAAeoB,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?8ad7","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/SecretsTab.vue?2850"],"sourcesContent":["/*\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# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\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 let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\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","/*\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# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\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: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\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 if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"show-size\":\"\",\"accept\":\"*\",\"label\":\"Click to select a file to create a secret from or enter a secret value\"},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1),_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Secret Name\"},model:{value:(_vm.secretName),callback:function ($$v) {_vm.secretName=$$v},expression:\"secretName\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.file,\"label\":\"Secret Value\"},model:{value:(_vm.secretValue),callback:function ($$v) {_vm.secretValue=$$v},expression:\"secretValue\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"secretUpload\",\"disabled\":_vm.secretName === '' || (_vm.file == null && _vm.secretValue === ''),\"loading\":_vm.loadingSecret},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_c('span',[_vm._v(\" Set \")])],1)],1)],1),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_c('v-list',{attrs:{\"data-test\":\"secretList\"}},_vm._l((_vm.secrets),function(secret,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(secret))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteSecret(secret)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-delete \")])]}}],null,true)},[_c('span',[_vm._v(\"Delete Secret\")])])],1)],1),(index < _vm.secrets.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SecretsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SecretsTab.vue?vue&type=template&id=4e4a65e7&\"\nimport script from \"./SecretsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./SecretsTab.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"],"names":["request","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","method","url","_ref2","data","_ref2$params","params","headers","_ref2$noAuth","noAuth","_ref2$noScope","noScope","refreshed","_args","arguments","wrap","_context","prev","next","length","undefined","OpenC3Auth","updateToken","defaultMinValidity","sent","setTokens","t0","login","localStorage","openc3Token","window","openc3Scope","abrupt","axios","stop","_x","_x2","apply","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","_objectSpread","get","path","_ref3","_ref3$headers","put","_ref4","_ref4$headers","post","_ref5","_ref5$headers","delete","_ref6","_ref6$headers","vueInstance","Vue","axiosInstance","baseURL","location","origin","timeout","interceptors","response","use","error","_error$response","_error$response2","_error$response2$conf","_error$response3","_error$response3$data","_error$response4","_error$response4$data","_error$response5","_error$response5$data","_error$response5$data2","status","then","includes","toString","Promise","reject","body","concat","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","ref","staticClass","model","value","file","callback","$$v","expression","staticStyle","secretName","secretValue","loadingSecret","on","$event","upload","scopedSlots","_u","key","fn","_v","proxy","alertType","showAlert","_s","alert","_l","secrets","secret","index","_g","_b","deleteSecret","_e","staticRenderFns","mounted","update","methods","_this","Api","_this2","promise","formData","FormData","append","name","catch","_this3","$dialog","confirm","okText","cancelText","dialog","setTimeout","component"],"sourceRoot":""}
data/tools/admin/js/19.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[19],{5019:function(t,o,n){n.r(o),n.d(o,{default:function(){return p}});var e=function(){var t=this,o=t._self._c;return o("div",[o("v-row",{staticStyle:{"padding-left":"10px"},attrs:{"no-gutters":"",align:"center"}},[o("v-col",{attrs:{cols:"3"}},[o("v-btn",{attrs:{block:"",color:"primary","data-test":"toolAdd",disabled:!t.name||!t.url||!t.icon},on:{click:function(o){return t.add()}}},[t._v(" Add "),o("v-icon",{attrs:{right:"",dark:""}},[t._v(t._s(t.icon))])],1)],1),o("v-col",{attrs:{cols:"3"}},[o("v-text-field",{staticClass:"px-2",attrs:{label:"Tool Icon"},model:{value:t.icon,callback:function(o){t.icon=o},expression:"icon"}})],1),o("v-col",{attrs:{cols:"3"}},[o("v-text-field",{staticClass:"px-2",attrs:{label:"Tool Name"},model:{value:t.name,callback:function(o){t.name=o},expression:"name"}})],1),o("v-col",{staticClass:"px-2",attrs:{cols:"3"}},[o("v-text-field",{attrs:{label:"Tool Url"},model:{value:t.url,callback:function(o){t.url=o},expression:"url"}})],1)],1),o("span",{staticClass:"text-body1 pa-3"},[t._v("Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.")]),o("v-list",{attrs:{"data-test":"toolList",id:"toollist"}},t._l(t.tools,(function(n,e){return o("div",{key:n},[o("v-list-item",{class:{filter:"Base"===n||"Admin"===n}},[o("v-list-item-icon",[o("v-icon",[t._v(" mdi-drag-horizontal ")])],1),o("v-list-item-content",[o("v-list-item-title",[t._v(t._s(n))])],1),o("v-list-item-icon",[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[o("v-icon",t._g(t._b({on:{click:function(o){return t.editTool(n)}}},"v-icon",i,!1),l),[t._v(" mdi-pencil ")])]}}],null,!0)},[o("span",[t._v("Edit Tool")])])],1),o("v-list-item-icon",[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[o("v-icon",t._g(t._b({on:{click:function(o){return t.deleteTool(n)}}},"v-icon",i,!1),l),[t._v(" mdi-delete ")])]}}],null,!0)},[o("span",[t._v("Delete Tool")])])],1)],1),e<t.tools.length-1?o("v-divider",{key:e}):t._e()],1)})),0),t.showDialog?o("edit-dialog",{attrs:{content:t.jsonContent,type:"Tool",name:t.dialogTitle},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(o){t.showDialog=o},expression:"showDialog"}}):t._e()],1)},l=[],i=(n(6710),n(6129)),a=n(5524),s=n(1921),c={components:{EditDialog:a.Z},data:function(){return{name:null,icon:"$astro-add-small",url:null,tools:[],jsonContent:"",dialogTitle:"",showDialog:!1,tool_id:null}},mounted:function(){this.update();var t=document.getElementById("toollist");s.ZP.create(t,{filter:".filter",onUpdate:this.sortChanged})},methods:{sortChanged:function(t){var o=this;i.Z.post("/openc3-api/tools/position/".concat(this.tools[t.oldIndex]),{data:{position:t.newIndex},params:{scope:"DEFAULT"}}).then((function(n){o.$notify.normal({title:"Reordered tool ".concat(o.tools[t.oldIndex])}),o.update()}))},update:function(){var t=this;i.Z.get("/openc3-api/tools",{params:{scope:"DEFAULT"}}).then((function(o){t.tools=o.data,t.name="",t.url=""}))},add:function(){var t=this;i.Z.post("/openc3-api/tools",{data:{id:this.name,json:JSON.stringify({name:this.name,icon:this.icon,url:this.url,window:"NEW"})},params:{scope:"DEFAULT"}}).then((function(o){t.$notify.normal({title:"Added tool ".concat(t.name)}),t.update()}))},editTool:function(t){var o=this;i.Z.get("/openc3-api/tools/".concat(t),{params:{scope:"DEFAULT"}}).then((function(n){o.tool_id=t,o.jsonContent=JSON.stringify(n.data,null,"\t"),o.dialogTitle=t,o.showDialog=!0}))},dialogCallback:function(t){var o=this;if(this.showDialog=!1,null!==t){var n=JSON.parse(t),e="put",l="/openc3-api/tools/".concat(this.tool_id);n["name"]!==this.tool_id&&(e="post",l="/openc3-api/tools"),i.Z[e](l,{data:{json:t},params:{scope:"DEFAULT"}}).then((function(t){o.$notify.normal({title:"Modified tool ".concat(n["name"])}),o.update()}))}},deleteTool:function(t){var o=this;this.$dialog.confirm("Are you sure you want to remove: ".concat(t),{okText:"Delete",cancelText:"Cancel"}).then((function(o){return i.Z["delete"]("/openc3-api/tools/".concat(t),{params:{scope:"DEFAULT"}})})).then((function(n){o.$notify.normal({title:"Removed tool ".concat(t)}),o.update()}))}}},r=c,d=n(3287),u=(0,d.Z)(r,e,l,!1,null,null,null),p=u.exports}}]);
2
- //# sourceMappingURL=19.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js/19.js","mappings":"6LAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACE,YAAY,CAAC,eAAe,QAAQC,MAAM,CAAC,aAAa,GAAG,MAAQ,WAAW,CAACH,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,MAAM,CAACH,EAAG,QAAQ,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,UAAU,YAAY,UAAU,UAAYL,EAAIM,OAASN,EAAIO,MAAQP,EAAIQ,MAAMC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,SAAA3B,GAAA,IAAAuE,EAAA,KACAnB,EAAAA,EAAAA,IAAA,qBAAAC,OAAArD,GAAA,CACAyD,OAAA,CAAAC,MAAA,aACAC,MAAA,SAAAC,GACAW,EAAA/B,QAAAxC,EACAuE,EAAAtC,YAAAmC,KAAAC,UAAAT,EAAArB,KAAA,WACAgC,EAAArC,YAAAlC,EACAuE,EAAAvC,YAAA,CACA,GACA,EACAG,eAAA,SAAAqC,GAAA,IAAAC,EAAA,KAEA,GADA,KAAAzC,YAAA,EACA,OAAAwC,EAAA,CACA,IAAAE,EAAAN,KAAAO,MAAAH,GACAI,EAAA,MACA3E,EAAA,qBAAAoD,OAAA,KAAAb,SACAkC,EAAA,eAAAlC,UACAoC,EAAA,OACA3E,EAAA,qBAGAmD,EAAAA,EAAAwB,GAAA3E,EAAA,CACAsC,KAAA,CACA4B,KAAAK,GAEAf,OAAA,CAAAC,MAAA,aACAC,MAAA,SAAAC,GACAa,EAAAZ,QAAAC,OAAA,CACAC,MAAA,iBAAAV,OAAAqB,EAAA,WAEAD,EAAA/B,QACA,GACA,CACA,EACAb,WAAA,SAAA7B,GAAA,IAAA6E,EAAA,KACA,KAAAC,QACAC,QAAA,oCAAA1B,OAAArD,GAAA,CACAgF,OAAA,SACAC,WAAA,WAEAtB,MAAA,SAAAuB,GACA,OAAA9B,EAAAA,EAAAA,UAAA,qBAAAC,OAAArD,GAAA,CACAyD,OAAA,CAAAC,MAAA,YAEA,IACAC,MAAA,SAAAC,GACAiB,EAAAhB,QAAAC,OAAA,CACAC,MAAA,gBAAAV,OAAArD,KAEA6E,EAAAnC,QACA,GACA,ICxNgY,I,UCO5XyC,GAAY,OACd,EACA1F,EACA2C,GACA,EACA,KACA,KACA,MAIF,EAAe+C,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?7535","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/ToolsTab.vue?720e"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{staticStyle:{\"padding-left\":\"10px\"},attrs:{\"no-gutters\":\"\",\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\",\"data-test\":\"toolAdd\",\"disabled\":!_vm.name || !_vm.url || !_vm.icon},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\" Add \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(_vm._s(_vm.icon))])],1)],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Tool Icon\"},model:{value:(_vm.icon),callback:function ($$v) {_vm.icon=$$v},expression:\"icon\"}})],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-text-field',{staticClass:\"px-2\",attrs:{\"label\":\"Tool Name\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1),_c('v-col',{staticClass:\"px-2\",attrs:{\"cols\":\"3\"}},[_c('v-text-field',{attrs:{\"label\":\"Tool Url\"},model:{value:(_vm.url),callback:function ($$v) {_vm.url=$$v},expression:\"url\"}})],1)],1),_c('span',{staticClass:\"text-body1 pa-3\"},[_vm._v(\"Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.\")]),_c('v-list',{attrs:{\"data-test\":\"toolList\",\"id\":\"toollist\"}},_vm._l((_vm.tools),function(tool,index){return _c('div',{key:tool},[_c('v-list-item',{class:{ filter: tool === 'Base' || tool === 'Admin' }},[_c('v-list-item-icon',[_c('v-icon',[_vm._v(\" mdi-drag-horizontal \")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(tool))])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.editTool(tool)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-pencil \")])]}}],null,true)},[_c('span',[_vm._v(\"Edit Tool\")])])],1),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deleteTool(tool)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-delete \")])]}}],null,true)},[_c('span',[_vm._v(\"Delete Tool\")])])],1)],1),(index < _vm.tools.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Tool\",\"name\":_vm.dialogTitle},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ToolsTab.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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ToolsTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ToolsTab.vue?vue&type=template&id=213a8100&\"\nimport script from \"./ToolsTab.vue?vue&type=script&lang=js&\"\nexport * from \"./ToolsTab.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"],"names":["render","_vm","this","_c","_self","staticStyle","attrs","name","url","icon","on","$event","add","_v","_s","staticClass","model","value","callback","$$v","expression","_l","tools","tool","index","key","class","filter","scopedSlots","_u","fn","_ref","_g","_b","editTool","_ref2","deleteTool","length","_e","showDialog","jsonContent","dialogTitle","dialogCallback","staticRenderFns","components","EditDialog","data","tool_id","mounted","update","el","document","getElementById","Sortable","onUpdate","sortChanged","methods","evt","_this","Api","concat","oldIndex","position","newIndex","params","scope","then","response","$notify","normal","title","_this2","_this3","id","json","JSON","stringify","window","_this4","content","_this5","parsed","parse","method","_this6","$dialog","confirm","okText","cancelText","dialog","component"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[222],{6129:function(e,t,o){"use strict";var n=o(6964),a=o(5789),s=o(9502),r=o(9373),i=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t,o){var n,s,i,d,l,c,u,p,h,v,f=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=f.length>2&&void 0!==f[2]?f[2]:{},s=n.data,i=n.params,d=void 0===i?{}:i,l=n.headers,c=n.noAuth,u=void 0!==c&&c,p=n.noScope,h=void 0!==p&&p,u){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:v=e.sent,v&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:l["Authorization"]=localStorage.openc3Token;case 13:return h||d["scope"]||(d["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:o,data:s,params:d,headers:l}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,o){return e.apply(this,arguments)}}(),d={Accept:"application/json"},l=(0,n.Z)((0,n.Z)({},d),{},{"Content-Type":"application/json"});t["Z"]={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.params,n=t.headers,a=void 0===n?d:n,s=t.noScope,r=t.noAuth;return i("get",e,{params:o,headers:a,noScope:s,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.data,n=t.params,a=t.headers,s=void 0===a?l:a,r=t.noScope,d=t.noAuth;return i("put",e,{data:o,params:n,headers:s,noScope:r,noAuth:d})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.data,n=t.params,a=t.headers,s=void 0===a?l:a,r=t.noScope,d=t.noAuth;return i("post",e,{data:o,params:n,headers:s,noScope:r,noAuth:d})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.params,n=t.headers,a=void 0===n?d:n,s=t.noScope,r=t.noAuth;return i("delete",e,{params:o,headers:a,noScope:s,noAuth:r})}}},9373:function(e,t,o){"use strict";o(9529),o(1235),o(8188),o(8233);var n=o(9644),a=o.n(n),s=o(4091),r=new s["default"],i=a().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,o,n,a,s,i,d,l,c,u;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var p="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(p+="".concat(e.response.statusText," ")),null!==(o=e.response)&&void 0!==o&&null!==(n=o.config)&&void 0!==n&&n.data&&(p+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)p+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(d=i.data)&&void 0!==d&&d.exception)p+="".concat(e.response.data.exception);else if(null!==(l=e.response)&&void 0!==l&&null!==(c=l.data)&&void 0!==c&&null!==(u=c.error)&&void 0!==u&&u.message)e.response.data.error.class&&(p+="".concat(e.response.data.error.class," ")),p+="".concat(e.response.data.error.message);else{var h;p+="".concat(null===(h=e.response)||void 0===h?void 0:h.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:p}),e}throw e})),t["Z"]=i},5524:function(e,t,o){"use strict";o.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:!e.readonly,width:"80vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",{domProps:{textContent:e._s(e.title)}}),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(o){var n=o.on,a=o.attrs;return[t("div",e._g(e._b({},"div",a,!1),n),[t("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download ")])])],1)],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[e.readonly?e._e():t("div",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a file. ")]),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"3"}},[t("v-btn",{attrs:{block:"",color:"success",disabled:!e.file||e.loadingFile||e.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},on:{click:e.loadFile},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",[e._v("Loading...")])]},proxy:!0}],null,!1,2673048543)},[e._v(" Load ")])],1),t("v-col",{attrs:{cols:"9"}},[t("v-file-input",{attrs:{accept:".json",label:"Click to select .json file.",disabled:e.readonly},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1)],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("pre",{ref:"editor",staticClass:"editor"})]),t("v-row",{staticClass:"my-3"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"editCancelBtn"},on:{click:function(t){return t.preventDefault(),e.close.apply(null,arguments)}}},[e._v(" Cancel ")]),e.readonly?e._e():t("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!e.error||e.readonly}},[e._v(" Save ")])],1)],1)])],1)])],1)},a=[],s=(o(8178),o(8188),o(8673),o(6886),o(4121),o(523),o(5095)),r=(o(1411),o(8367),o(419),o(3923),o(2375),{props:{content:{type:String,required:!0},type:String,name:String,value:Boolean,readonly:Boolean},data:function(){return{editor:null}},mounted:function(){var e=this.buildPluginMode();this.editor=s.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeDestroy:function(){this.editor&&this.editor.destroy()},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"".concat(this.type,": ").concat(this.name)},error:function(){return this.editor&&""===this.editor.getValue()&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download","".concat(this.type.toLowerCase(),"_").concat(this.name.toLowerCase(),".json")),t.click()},buildPluginMode:function(){var e=s.require("ace/lib/oop"),t=s.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=s.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,n=s.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=s.require("ace/mode/folding/ruby").FoldMode,r=function(){this.HighlightRules=t,this.$outdent=new o,this.$behaviour=new n,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},i=s.require("ace/mode/ruby").Mode;return e.inherits(r,i),function(){this.$id="ace/mode/openc3"}.call(r.prototype),r}}}),i=r,d=(o(2890),o(3287)),l=(0,d.Z)(i,n,a,!1,null,"6ad8a8fe",null),c=l.exports},9555:function(e,t,o){"use strict";o.r(t);var n=o(3467),a=o.n(n),s=o(8715),r=o.n(s),i=r()(a());i.push([e.id,".editor[data-v-6ad8a8fe]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-6ad8a8fe]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-6ad8a8fe] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=i},2890:function(e,t,o){var n=o(9555);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var a=o(3514).Z;a("34b86d5a",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
- //# sourceMappingURL=222.js.map
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[253],{4502:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return k}});var n=function(){var t=this,e=t._self._c;return e("div",[e("v-list",{attrs:{"data-test":"microserviceList"}},t._l(t.microservices,(function(o,n){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(o))]),t.microservice_status[o]?e("v-list-item-subtitle",[t._v(" Updated: "+t._s(t.formatDate(t.microservice_status[o].updated_at))+", State: "+t._s(t.microservice_status[o].state)+", Count: "+t._s(t.microservice_status[o].count)+" ")]):t._e()],1),t.microservice_status[o]?e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!!t.microservice_status[o].error,expression:"!!microservice_status[microservice].error"}]},[e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var i=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroserviceError(o)}}},"v-icon",r,!1),i),[t._v(" mdi-alert ")])]}}],null,!0)},[e("span",[t._v("View Error")])])],1)],1)]):t._e(),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var i=n.on,r=n.attrs;return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showMicroservice(o)}}},"v-icon",r,!1),i),[t._v(" mdi-eye ")])]}}],null,!0)},[e("span",[t._v("Edit Microservice")])])],1)],1),n<t.microservices.length-1?e("v-divider",{key:n}):t._e()],1)})),0),t.showDialog?e("edit-dialog",{attrs:{content:t.jsonContent,type:"Microservice",name:t.dialogTitle,readonly:""},on:{submit:t.dialogCallback},model:{value:t.showDialog,callback:function(e){t.showDialog=e},expression:"showDialog"}}):t._e(),t.showError?e("text-box-dialog",{attrs:{text:t.jsonContent,title:t.dialogTitle},model:{value:t.showError,callback:function(e){t.showError=e},expression:"showError"}}):t._e()],1)},i=[],r=(o(6710),o(8995),o(7388)),s=o(6700),a=o(6129),c=o(5524),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[t._v(" "+t._s(t.title)+" ")]),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(o){var n=o.on,i=o.attrs;return[e("div",t._g(t._b({},"div",i,!1),n),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v(" mdi-download ")])],1)]}}])},[e("span",[t._v(" Download ")])])],1)],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-textarea",{attrs:{readonly:"",rows:"15","data-test":"dialogText"},model:{value:t.dialogText,callback:function(e){t.dialogText=e},expression:"dialogText"}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},u=[],d=(o(8188),o(8673),o(6886),o(4121),o(523),{props:{value:Boolean,text:String,title:String},computed:{dialogText:function(){return this.text},show:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{download:function(){var t=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download","".concat(this.title,"__error.txt")),e.click()}}}),g=d,h=o(3287),m=(0,h.Z)(g,l,u,!1,null,null,null),v=m.exports,f={components:{EditDialog:c.Z,TextBoxDialog:v},data:function(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1}},mounted:function(){this.update()},methods:{update:function(){var t=this;a.Z.get("/openc3-api/microservice_status/all").then((function(e){t.microservice_status=e.data})),a.Z.get("/openc3-api/microservices").then((function(e){t.microservices=e.data}))},showMicroservice:function(t){var e=this;a.Z.get("/openc3-api/microservices/".concat(t)).then((function(o){e.microservice_id=t,e.dialogTitle=t,e.jsonContent=JSON.stringify(o.data,null,"\t"),e.showDialog=!0}))},showMicroserviceError:function(t){this.dialogTitle=t;var e=this.microservice_status[t].error;this.jsonContent=JSON.stringify(e,null,"\t"),this.showError=!0},formatDate:function(t){return(0,r.Z)((0,s.Z)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(t){var e=this;if(this.showDialog=!1,null!==t){var o=JSON.parse(t),n="put",i="/openc3-api/microservices/".concat(this.microservice_id);o["name"]!==this.microservice_id&&(n="post",i="/openc3-api/microservices"),a.Z[n](i,{data:{json:t}}).then((function(t){e.alert="Modified Microservice",e.alertType="success",e.showAlert=!0,setTimeout((function(){e.showAlert=!1}),5e3),e.update()}))}}}},p=f,_=(0,h.Z)(p,n,i,!1,null,null,null),k=_.exports},8367:function(t,e,o){t=o.nmd(t),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(t,e,o){"use strict";var n=t("../lib/oop"),i=t("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};n.inherits(r,i),e.JsonHighlightRules=r})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(t,e,o){"use strict";var n=t("../range").Range,i=function(){};(function(){this.checkOutdent=function(t,e){return!!/^\s+$/.test(t)&&/^\s*\}/.test(e)},this.autoOutdent=function(t,e){var o=t.getLine(e),i=o.match(/^(\s*\})/);if(!i)return 0;var r=i[1].length,s=t.findMatchingBracket({row:e,column:r});if(!s||s.row==e)return 0;var a=this.$getIndent(t.getLine(s.row));t.replace(new n(e,0,e,r-1),a)},this.$getIndent=function(t){return t.match(/^\s*/)[0]}}).call(i.prototype),e.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(t,e,o){"use strict";var n=t("../../lib/oop"),i=t("../../range").Range,r=t("./fold_mode").FoldMode,s=e.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};n.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,e,o){var n=t.getLine(o);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var i=this._getFoldWidgetBase(t,e,o);return!i&&this.startRegionRe.test(n)?"start":i},this.getFoldWidgetRange=function(t,e,o,n){var i=t.getLine(o);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(t,i,o);var r=i.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(t,r[1],o,s);var a=t.getCommentFoldRange(o,s+r[0].length,1);return a&&!a.isMultiLine()&&(n?a=this.getSectionRange(t,o):"all"!=e&&(a=null)),a}if("markbegin"!==e){r=i.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(t,r[1],o,s):t.getCommentFoldRange(o,s,-1)}}},this.getSectionRange=function(t,e){var o=t.getLine(e),n=o.search(/\S/),r=e,s=o.length;e+=1;var a=e,c=t.getLength();while(++e<c){o=t.getLine(e);var l=o.search(/\S/);if(-1!==l){if(n>l)break;var u=this.getFoldWidgetRange(t,"all",e);if(u){if(u.start.row<=r)break;if(u.isMultiLine())e=u.end.row;else if(n==l)break}a=e}}return new i(r,s,a,t.getLine(a).length)},this.getCommentRegionBlock=function(t,e,o){var n=e.search(/\s*$/),r=t.getLength(),s=o,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++o<r){e=t.getLine(o);var l=a.exec(e);if(l&&(l[1]?c--:c++,!c))break}var u=o;if(u>s)return new i(s,n,u,e.length)}}.call(s.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(t,e,o){"use strict";var n=t("../lib/oop"),i=t("./text").Mode,r=t("./json_highlight_rules").JsonHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,a=t("./behaviour/cstyle").CstyleBehaviour,c=t("./folding/cstyle").FoldMode,l=t("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new a,this.foldingRules=new c};n.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,e,o){var n=this.$getIndent(e);if("start"==t){var i=e.match(/^.*[\{\(\[]\s*$/);i&&(n+=o)}return n},this.checkOutdent=function(t,e,o){return this.$outdent.checkOutdent(e,o)},this.autoOutdent=function(t,e,o){this.$outdent.autoOutdent(e,o)},this.createWorker=function(t){var e=new l(["ace"],"ace/mode/json_worker","JsonWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",(function(e){t.setAnnotations(e.data)})),e.on("terminate",(function(){t.clearAnnotations()})),e},this.$id="ace/mode/json"}.call(u.prototype),e.Mode=u})),function(){ace.require(["ace/mode/json"],(function(e){t&&(t.exports=e)}))}()}}]);
2
- //# sourceMappingURL=253.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js/253.js","mappings":"8LAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,YAAY,qBAAqBJ,EAAIK,GAAIL,EAAIM,eAAe,SAASC,EAAaC,GAAO,OAAON,EAAG,MAAM,CAACO,IAAIF,GAAc,CAACL,EAAG,cAAc,CAACA,EAAG,sBAAsB,CAACA,EAAG,oBAAoB,CAACF,EAAIU,GAAGV,EAAIW,GAAGJ,MAAkBP,EAAIY,oBAAoBL,GAAeL,EAAG,uBAAuB,CAACF,EAAIU,GAAG,aAAaV,EAAIW,GAAGX,EAAIa,WAAWb,EAAIY,oBAAoBL,GAAcO,aAAa,YAAYd,EAAIW,GAAGX,EAAIY,oBAAoBL,GAAcQ,OAAO,YAAYf,EAAIW,GAAGX,EAAIY,oBAAoBL,GAAcS,OAAO,OAAOhB,EAAIiB,MAAM,GAAIjB,EAAIY,oBAAoBL,GAAeL,EAAG,MAAM,CAACA,EAAG,MAAM,CAACgB,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,QAASrB,EAAIY,oBAAoBL,GAAce,MAAOC,WAAW,+CAA+C,CAACrB,EAAG,mBAAmB,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,OAAS,IAAIoB,YAAYxB,EAAIyB,GAAG,CAAC,CAAChB,IAAI,YAAYiB,GAAG,SAAAC,GAAuB,IAAZC,EAAED,EAAFC,GAAIxB,EAAKuB,EAALvB,MAAS,MAAO,CAACF,EAAG,SAASF,EAAI6B,GAAG7B,EAAI8B,GAAG,CAACF,GAAG,CAAC,MAAQ,SAAS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,GAAG,IAAIC,EAAEzG,KAAKkI,WAAW3B,GAAG,GAAM,SAAHlB,EAAW,CAAC,IAAIqB,EAAEH,EAAEqB,MAAM,mBAAmBlB,IAAID,GAAGD,EAAE,CAAC,OAAOC,CAAC,EAAEzG,KAAKwH,aAAa,SAASnC,EAAEkB,EAAEC,GAAG,OAAOxG,KAAKmK,SAAS3C,aAAajB,EAAEC,EAAE,EAAExG,KAAK0H,YAAY,SAASrC,EAAEkB,EAAEC,GAAGxG,KAAKmK,SAASzC,YAAYnB,EAAEC,EAAE,EAAExG,KAAKyK,aAAa,SAASpF,GAAG,IAAIkB,EAAE,IAAIqD,EAAE,CAAC,OAAO,uBAAuB,cAAc,OAAOrD,EAAEmE,iBAAiBrF,EAAEsF,eAAepE,EAAE5E,GAAG,YAAW,SAAS4E,GAAGlB,EAAEuF,eAAerE,EAAE7B,KAAK,IAAG6B,EAAE5E,GAAG,aAAY,WAAW0D,EAAEwF,kBAAkB,IAAGtE,CAAC,EAAEvG,KAAK8K,IAAI,eAAe,EAAE1C,KAAKyB,EAAExB,WAAW9B,EAAEwD,KAAKF,CAAC,IAAmB,WACtqKxD,IAAI0E,QAAQ,CAAC,kBAAkB,SAASC,GAC2BC,IAC3DA,EAAOC,QAAUF,EAEzB,GACH,CANyqK,E","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?cc45","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/TextBoxDialog.vue?3d0e","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?f7ec","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/MicroservicesTab.vue?d392","webpack://@openc3/cosmos-tool-admin/../../node_modules/ace-builds/src-min-noconflict/mode-json.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-list',{attrs:{\"data-test\":\"microserviceList\"}},_vm._l((_vm.microservices),function(microservice,index){return _c('div',{key:microservice},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(microservice))]),(_vm.microservice_status[microservice])?_c('v-list-item-subtitle',[_vm._v(\" Updated: \"+_vm._s(_vm.formatDate(_vm.microservice_status[microservice].updated_at))+\", State: \"+_vm._s(_vm.microservice_status[microservice].state)+\", Count: \"+_vm._s(_vm.microservice_status[microservice].count)+\" \")]):_vm._e()],1),(_vm.microservice_status[microservice])?_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.microservice_status[microservice].error),expression:\"!!microservice_status[microservice].error\"}]},[_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showMicroserviceError(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-alert \")])]}}],null,true)},[_c('span',[_vm._v(\"View Error\")])])],1)],1)]):_vm._e(),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showMicroservice(microservice)}}},'v-icon',attrs,false),on),[_vm._v(\" mdi-eye \")])]}}],null,true)},[_c('span',[_vm._v(\"Edit Microservice\")])])],1)],1),(index < _vm.microservices.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0),(_vm.showDialog)?_c('edit-dialog',{attrs:{\"content\":_vm.jsonContent,\"type\":\"Microservice\",\"name\":_vm.dialogTitle,\"readonly\":\"\"},on:{\"submit\":_vm.dialogCallback},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}}):_vm._e(),(_vm.showError)?_c('text-box-dialog',{attrs:{\"text\":_vm.jsonContent,\"title\":_vm.dialogTitle},model:{value:(_vm.showError),callback:function ($$v) {_vm.showError=$$v},expression:\"showError\"}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;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(\" \"+_vm._s(_vm.title)+\" \")]),_c('v-spacer'),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_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('div',{staticClass:\"pa-2\"},[_c('v-card-text',[_c('v-textarea',{attrs:{\"readonly\":\"\",\"rows\":\"15\",\"data-test\":\"dialogText\"},model:{value:(_vm.dialogText),callback:function ($$v) {_vm.dialogText=$$v},expression:\"dialogText\"}})],1)],1),_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)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TextBoxDialog.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.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TextBoxDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TextBoxDialog.vue?vue&type=template&id=0c8e9db0&\"\nimport script from \"./TextBoxDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TextBoxDialog.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","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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MicroservicesTab.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.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MicroservicesTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MicroservicesTab.vue?vue&type=template&id=50d12d70&\"\nimport script from \"./MicroservicesTab.vue?vue&type=script&lang=js&\"\nexport * from \"./MicroservicesTab.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","ace.define(\"ace/mode/json_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text_highlight_rules\").TextHighlightRules,s=function(){this.$rules={start:[{token:\"variable\",regex:'[\"](?:(?:\\\\\\\\.)|(?:[^\"\\\\\\\\]))*?[\"]\\\\s*(?=:)'},{token:\"string\",regex:'\"',next:\"string\"},{token:\"constant.numeric\",regex:\"0[xX][0-9a-fA-F]+\\\\b\"},{token:\"constant.numeric\",regex:\"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"},{token:\"constant.language.boolean\",regex:\"(?:true|false)\\\\b\"},{token:\"text\",regex:\"['](?:(?:\\\\\\\\.)|(?:[^'\\\\\\\\]))*?[']\"},{token:\"comment\",regex:\"\\\\/\\\\/.*$\"},{token:\"comment.start\",regex:\"\\\\/\\\\*\",next:\"comment\"},{token:\"paren.lparen\",regex:\"[[({]\"},{token:\"paren.rparen\",regex:\"[\\\\])}]\"},{token:\"punctuation.operator\",regex:/[,]/},{token:\"text\",regex:\"\\\\s+\"}],string:[{token:\"constant.language.escape\",regex:/\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[\"\\\\\\/bfnrt])/},{token:\"string\",regex:'\"|$',next:\"start\"},{defaultToken:\"string\"}],comment:[{token:\"comment.end\",regex:\"\\\\*\\\\/\",next:\"start\"},{defaultToken:\"comment\"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),ace.define(\"ace/mode/matching_brace_outdent\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\\s+$/.test(e)?/^\\s*\\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\\s*\\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define(\"ace/mode/folding/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/mode/folding/fold_mode\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/oop\"),i=e(\"../../range\").Range,s=e(\"./fold_mode\").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\\|[^|]*?$/,\"|\"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\\|[^|]*?$/,\"|\"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\\{\\[\\(])[^\\}\\]\\)]*$|^\\s*(\\/\\*)/,this.foldingStopMarker=/^[^\\[\\{\\(]*([\\}\\]\\)])|^[\\s\\*]*(\\*\\/)/,this.singleLineBlockCommentRe=/^\\s*(\\/\\*).*\\*\\/\\s*$/,this.tripleStarBlockCommentRe=/^\\s*(\\/\\*\\*\\*).*\\*\\/\\s*$/,this.startRegionRe=/^\\s*(\\/\\*|\\/\\/)#?region\\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return\"\";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?\"start\":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!=\"all\"&&(u=null)),u}if(t===\"markbegin\")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,\"all\",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\\s*$/),s=e.getLength(),o=n,u=/^\\s*(?:\\/\\*|\\/\\/|--)#?(end)?region\\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),ace.define(\"ace/mode/json\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/json_highlight_rules\",\"ace/mode/matching_brace_outdent\",\"ace/mode/behaviour/cstyle\",\"ace/mode/folding/cstyle\",\"ace/worker/worker_client\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text\").Mode,s=e(\"./json_highlight_rules\").JsonHighlightRules,o=e(\"./matching_brace_outdent\").MatchingBraceOutdent,u=e(\"./behaviour/cstyle\").CstyleBehaviour,a=e(\"./folding/cstyle\").FoldMode,f=e(\"../worker/worker_client\").WorkerClient,l=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new u,this.foldingRules=new a};r.inherits(l,i),function(){this.lineCommentStart=\"//\",this.blockComment={start:\"/*\",end:\"*/\"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if(e==\"start\"){var i=t.match(/^.*[\\{\\(\\[]\\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new f([\"ace\"],\"ace/mode/json_worker\",\"JsonWorker\");return t.attachToDocument(e.getDocument()),t.on(\"annotate\",function(t){e.setAnnotations(t.data)}),t.on(\"terminate\",function(){e.clearAnnotations()}),t},this.$id=\"ace/mode/json\"}.call(l.prototype),t.Mode=l}); (function() {\n ace.require([\"ace/mode/json\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["render","_vm","this","_c","_self","attrs","_l","microservices","microservice","index","key","_v","_s","microservice_status","formatDate","updated_at","state","count","_e","directives","name","rawName","value","error","expression","scopedSlots","_u","fn","_ref","on","_g","_b","$event","showMicroserviceError","_ref2","showMicroservice","length","showDialog","jsonContent","dialogTitle","dialogCallback","model","callback","$$v","showError","staticRenderFns","show","title","staticClass","download","dialogText","props","Boolean","text","String","computed","get","set","$emit","methods","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","setAttribute","concat","click","component","components","EditDialog","TextBoxDialog","data","microservice_id","mounted","update","_this","Api","then","response","_this2","JSON","stringify","e","nanoSecs","format","toDate","parseInt","content","_this3","parsed","parse","method","url","json","alert","alertType","showAlert","setTimeout","ace","define","t","n","r","i","TextHighlightRules","s","$rules","start","token","regex","next","string","defaultToken","comment","inherits","JsonHighlightRules","Range","checkOutdent","test","autoOutdent","getLine","match","o","findMatchingBracket","row","column","u","$getIndent","replace","call","prototype","MatchingBraceOutdent","FoldMode","foldingStartMarker","RegExp","source","foldingStopMarker","end","singleLineBlockCommentRe","tripleStarBlockCommentRe","startRegionRe","_getFoldWidgetBase","getFoldWidget","getFoldWidgetRange","getCommentRegionBlock","openingBracketBlock","getCommentFoldRange","isMultiLine","getSectionRange","closingBracketBlock","search","a","getLength","f","l","exec","Mode","CstyleBehaviour","WorkerClient","HighlightRules","$outdent","$behaviour","foldingRules","lineCommentStart","blockComment","getNextLineIndent","createWorker","attachToDocument","getDocument","setAnnotations","clearAnnotations","$id","require","m","module","exports"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[262],{8312:function(e,t,r){var n=r(4768);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},7321:function(e,t,r){var n=r(5968),s=2147483647,i=36,a=1,o=26,h=38,u=700,l=72,c=128,f="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=i-a,d=RangeError,w=n(g.exec),y=Math.floor,b=String.fromCharCode,U=n("".charCodeAt),P=n([].join),k=n([].push),R=n("".replace),S=n("".split),L=n("".toLowerCase),q=function(e){var t=[],r=0,n=e.length;while(r<n){var s=U(e,r++);if(s>=55296&&s<=56319&&r<n){var i=U(e,r++);56320==(64512&i)?k(t,((1023&s)<<10)+(1023&i)+65536):(k(t,s),r--)}else k(t,s)}return t},H=function(e){return e+22+75*(e<26)},B=function(e,t,r){var n=0;e=r?y(e/u):e>>1,e+=y(e/t);while(e>v*o>>1)e=y(e/v),n+=i;return y(n+(v+1)*e/(e+h))},x=function(e){var t=[];e=q(e);var r,n,h=e.length,u=c,p=0,g=l;for(r=0;r<e.length;r++)n=e[r],n<128&&k(t,b(n));var v=t.length,w=v;v&&k(t,f);while(w<h){var U=s;for(r=0;r<e.length;r++)n=e[r],n>=u&&n<U&&(U=n);var R=w+1;if(U-u>y((s-p)/R))throw d(m);for(p+=(U-u)*R,u=U,r=0;r<e.length;r++){if(n=e[r],n<u&&++p>s)throw d(m);if(n==u){var S=p,L=i;while(1){var x=L<=g?a:L>=g+o?o:L-g;if(S<x)break;var A=S-x,C=i-x;k(t,b(H(x+A%C))),S=y(A/C),L+=i}k(t,b(H(S))),g=B(p,R,w==v),p=0,w++}}p++,u++}return P(t,"")};e.exports=function(e){var t,r,n=[],s=S(R(L(e),g,"."),".");for(t=0;t<s.length;t++)r=s[t],k(n,w(p,r)?"xn--"+x(r):r);return P(n,".")}},4144:function(e,t,r){var n=r(4229),s=r(95),i=r(7400),a=r(4231),o=s("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),a&&!e.toJSON||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2653:function(e,t,r){"use strict";r(5735);var n=r(3103),s=r(9859),i=r(266),a=r(5968),o=r(7400),h=r(4144),u=r(4768),l=r(6616),c=r(8312),f=r(4555),p=r(2247),g=r(6407),m=r(7728),v=r(6733),d=r(8270),w=r(7636),y=r(1589),b=r(1176),U=r(5052),P=r(3326),k=r(2391),R=r(5358),S=r(8403),L=r(8830),q=r(7579),H=r(95),B=r(3867),x=H("iterator"),A="URLSearchParams",C=A+"Iterator",O=g.set,z=g.getterFor(A),j=g.getterFor(C),E=Object.getOwnPropertyDescriptor,I=function(e){if(!o)return s[e];var t=E(s,e);return t&&t.value},F=I("fetch"),_=I("Request"),$=I("Headers"),M=_&&_.prototype,Q=$&&$.prototype,T=s.RegExp,D=s.TypeError,G=s.decodeURIComponent,J=s.encodeURIComponent,N=a("".charAt),K=a([].join),V=a([].push),W=a("".replace),X=a([].shift),Y=a([].splice),Z=a("".split),ee=a("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=T("((?:%[\\da-f]{2}){"+e+"})","gi"))},se=function(e){try{return G(e)}catch(t){return e}},ie=function(e){var t=W(e,te," "),r=4;try{return G(t)}catch(n){while(r)t=W(t,ne(r--),se);return t}},ae=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(e){return oe[e]},ue=function(e){return W(J(e),ae,he)},le=p((function(e,t){O(this,{type:C,iterator:S(z(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(U(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===N(e,0)?ee(e,1):e:P(e)))};ce.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,s,a,o,h,u=L(e);if(u){t=S(e,u),r=t.next;while(!(n=i(r,t)).done){if(s=S(b(n.value)),a=s.next,(o=i(a,s)).done||(h=i(a,s)).done||!i(a,s).done)throw D("Expected sequence with length 2");V(this.entries,{key:P(o.value),value:P(h.value)})}}else for(var l in e)d(e,l)&&V(this.entries,{key:l,value:P(e[l])})},parseQuery:function(e){if(e){var t,r,n=Z(e,"&"),s=0;while(s<n.length)t=n[s++],t.length&&(r=Z(t,"="),V(this.entries,{key:ie(X(r)),value:ie(K(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],n=0;while(n<t.length)e=t[n++],V(r,ue(e.key)+"="+ue(e.value));return K(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){m(this,pe);var e=arguments.length>0?arguments[0]:void 0,t=O(this,new ce(e));o||(this.length=t.entries.length)},pe=fe.prototype;if(c(pe,{append:function(e,t){q(arguments.length,2);var r=z(this);V(r.entries,{key:P(e),value:P(t)}),o||this.length++,r.updateURL()},delete:function(e){q(arguments.length,1);var t=z(this),r=t.entries,n=P(e),s=0;while(s<r.length)r[s].key===n?Y(r,s,1):s++;o||(this.length=r.length),t.updateURL()},get:function(e){q(arguments.length,1);for(var t=z(this).entries,r=P(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){q(arguments.length,1);for(var t=z(this).entries,r=P(e),n=[],s=0;s<t.length;s++)t[s].key===r&&V(n,t[s].value);return n},has:function(e){q(arguments.length,1);var t=z(this).entries,r=P(e),n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var r,n=z(this),s=n.entries,i=!1,a=P(e),h=P(t),u=0;u<s.length;u++)r=s[u],r.key===a&&(i?Y(s,u--,1):(i=!0,r.value=h));i||V(s,{key:a,value:h}),o||(this.length=s.length),n.updateURL()},sort:function(){var e=z(this);B(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=z(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),s=0;while(s<r.length)t=r[s++],n(t.value,t.key,this)},keys:function(){return new le(this,"keys")},values:function(){return new le(this,"values")},entries:function(){return new le(this,"entries")}},{enumerable:!0}),u(pe,x,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return z(this).serialize()}),{enumerable:!0}),o&&l(pe,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),f(fe,A),n({global:!0,constructor:!0,forced:!h},{URLSearchParams:fe}),!h&&v($)){var ge=a(Q.has),me=a(Q.set),ve=function(e){if(U(e)){var t,r=e.body;if(y(r)===A)return t=e.headers?new $(e.headers):new $,ge(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:R(0,P(r)),headers:R(0,t)})}return e};if(v(F)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ve(arguments[1]):{})}}),v(_)){var de=function(e){return m(this,M),new _(e,arguments.length>1?ve(arguments[1]):{})};M.constructor=de,de.prototype=M,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:de})}}e.exports={URLSearchParams:fe,getState:z}},523:function(e,t,r){r(2653)},5340:function(e,t,r){"use strict";r(8673);var n,s=r(3103),i=r(7400),a=r(4144),o=r(9859),h=r(7636),u=r(5968),l=r(4768),c=r(6616),f=r(7728),p=r(8270),g=r(47),m=r(507),v=r(9794),d=r(966).codeAt,w=r(7321),y=r(3326),b=r(4555),U=r(7579),P=r(2653),k=r(6407),R=k.set,S=k.getterFor("URL"),L=P.URLSearchParams,q=P.getState,H=o.URL,B=o.TypeError,x=o.parseInt,A=Math.floor,C=Math.pow,O=u("".charAt),z=u(/./.exec),j=u([].join),E=u(1..toString),I=u([].pop),F=u([].push),_=u("".replace),$=u([].shift),M=u("".split),Q=u("".slice),T=u("".toLowerCase),D=u([].unshift),G="Invalid authority",J="Invalid scheme",N="Invalid host",K="Invalid port",V=/[a-z]/i,W=/[\d+-.a-z]/i,X=/\d/,Y=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,r,n,s,i,a,o,h=M(e,".");if(h.length&&""==h[h.length-1]&&h.length--,t=h.length,t>4)return e;for(r=[],n=0;n<t;n++){if(s=h[n],""==s)return e;if(i=10,s.length>1&&"0"==O(s,0)&&(i=z(Y,s)?16:8,s=Q(s,8==i?1:2)),""===s)a=0;else{if(!z(10==i?ee:8==i?Z:te,s))return e;a=x(s,i)}F(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(o=I(r),n=0;n<r.length;n++)o+=r[n]*C(256,3-n);return o},he=function(e){var t,r,n,s,i,a,o,h=[0,0,0,0,0,0,0,0],u=0,l=null,c=0,f=function(){return O(e,c)};if(":"==f()){if(":"!=O(e,1))return;c+=2,u++,l=u}while(f()){if(8==u)return;if(":"!=f()){t=r=0;while(r<4&&z(te,f()))t=16*t+x(f(),16),c++,r++;if("."==f()){if(0==r)return;if(c-=r,u>6)return;n=0;while(f()){if(s=null,n>0){if(!("."==f()&&n<4))return;c++}if(!z(X,f()))return;while(z(X,f())){if(i=x(f(),10),null===s)s=i;else{if(0==s)return;s=10*s+i}if(s>255)return;c++}h[u]=256*h[u]+s,n++,2!=n&&4!=n||u++}if(4!=n)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;h[u++]=t}else{if(null!==l)return;c++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)o=h[u],h[u--]=h[l+a-1],h[l+--a]=o}else if(8!=u)return;return h},ue=function(e){for(var t=null,r=1,n=null,s=0,i=0;i<8;i++)0!==e[i]?(s>r&&(t=n,r=s),n=null,s=0):(null===n&&(n=i),++s);return s>r&&(t=n,r=s),t},le=function(e){var t,r,n,s;if("number"==typeof e){for(t=[],r=0;r<4;r++)D(t,e%256),e=A(e/256);return j(t,".")}if("object"==typeof e){for(t="",n=ue(e),r=0;r<8;r++)s&&0===e[r]||(s&&(s=!1),n===r?(t+=r?":":"::",s=!0):(t+=E(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},fe=g({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=g({},fe,{"#":1,"?":1,"{":1,"}":1}),ge=g({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=d(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var r;return 2==e.length&&z(V,O(e,0))&&(":"==(r=O(e,1))||!t&&"|"==r)},we=function(e){var t;return e.length>1&&de(Q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===T(e)},be=function(e){return e=T(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ue={},Pe={},ke={},Re={},Se={},Le={},qe={},He={},Be={},xe={},Ae={},Ce={},Oe={},ze={},je={},Ee={},Ie={},Fe={},_e={},$e={},Me={},Qe=function(e,t,r){var n,s,i,a=y(e);if(t){if(s=this.parse(a),s)throw B(s);this.searchParams=null}else{if(void 0!==r&&(n=new Qe(r,!0)),s=this.parse(a,null,n),s)throw B(s);i=q(new L),i.bindURL(this),this.searchParams=i}};Qe.prototype={type:"URL",parse:function(e,t,r){var s,i,a,o,h=this,u=t||Ue,l=0,c="",f=!1,g=!1,d=!1;e=y(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=_(e,se,""),e=_(e,ie,"$1")),e=_(e,ae,""),s=m(e);while(l<=s.length){switch(i=s[l],u){case Ue:if(!i||!z(V,i)){if(t)return J;u=ke;continue}c+=T(i),u=Pe;break;case Pe:if(i&&(z(W,i)||"+"==i||"-"==i||"."==i))c+=T(i);else{if(":"!=i){if(t)return J;c="",u=ke,l=0;continue}if(t&&(h.isSpecial()!=p(ve,c)||"file"==c&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=c,t)return void(h.isSpecial()&&ve[h.scheme]==h.port&&(h.port=null));c="","file"==h.scheme?u=ze:h.isSpecial()&&r&&r.scheme==h.scheme?u=Re:h.isSpecial()?u=He:"/"==s[l+1]?(u=Se,l++):(h.cannotBeABaseURL=!0,F(h.path,""),u=_e)}break;case ke:if(!r||r.cannotBeABaseURL&&"#"!=i)return J;if(r.cannotBeABaseURL&&"#"==i){h.scheme=r.scheme,h.path=v(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,u=Me;break}u="file"==r.scheme?ze:Le;continue;case Re:if("/"!=i||"/"!=s[l+1]){u=Le;continue}u=Be,l++;break;case Se:if("/"==i){u=xe;break}u=Fe;continue;case Le:if(h.scheme=r.scheme,i==n)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query=r.query;else if("/"==i||"\\"==i&&h.isSpecial())u=qe;else if("?"==i)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query="",u=$e;else{if("#"!=i){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.path.length--,u=Fe;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=v(r.path),h.query=r.query,h.fragment="",u=Me}break;case qe:if(!h.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,u=Fe;continue}u=xe}else u=Be;break;case He:if(u=Be,"/"!=i||"/"!=O(c,l+1))continue;l++;break;case Be:if("/"!=i&&"\\"!=i){u=xe;continue}break;case xe:if("@"==i){f&&(c="%40"+c),f=!0,a=m(c);for(var w=0;w<a.length;w++){var b=a[w];if(":"!=b||d){var U=me(b,ge);d?h.password+=U:h.username+=U}else d=!0}c=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()){if(f&&""==c)return G;l-=m(c).length+1,c="",u=Ae}else c+=i;break;case Ae:case Ce:if(t&&"file"==h.scheme){u=Ee;continue}if(":"!=i||g){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()){if(h.isSpecial()&&""==c)return N;if(t&&""==c&&(h.includesCredentials()||null!==h.port))return;if(o=h.parseHost(c),o)return o;if(c="",u=Ie,t)return;continue}"["==i?g=!0:"]"==i&&(g=!1),c+=i}else{if(""==c)return N;if(o=h.parseHost(c),o)return o;if(c="",u=Oe,t==Ce)return}break;case Oe:if(!z(X,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&h.isSpecial()||t){if(""!=c){var P=x(c,10);if(P>65535)return K;h.port=h.isSpecial()&&P===ve[h.scheme]?null:P,c=""}if(t)return;u=Ie;continue}return K}c+=i;break;case ze:if(h.scheme="file","/"==i||"\\"==i)u=je;else{if(!r||"file"!=r.scheme){u=Fe;continue}if(i==n)h.host=r.host,h.path=v(r.path),h.query=r.query;else if("?"==i)h.host=r.host,h.path=v(r.path),h.query="",u=$e;else{if("#"!=i){we(j(v(s,l),""))||(h.host=r.host,h.path=v(r.path),h.shortenPath()),u=Fe;continue}h.host=r.host,h.path=v(r.path),h.query=r.query,h.fragment="",u=Me}}break;case je:if("/"==i||"\\"==i){u=Ee;break}r&&"file"==r.scheme&&!we(j(v(s,l),""))&&(de(r.path[0],!0)?F(h.path,r.path[0]):h.host=r.host),u=Fe;continue;case Ee:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&de(c))u=Fe;else if(""==c){if(h.host="",t)return;u=Ie}else{if(o=h.parseHost(c),o)return o;if("localhost"==h.host&&(h.host=""),t)return;c="",u=Ie}continue}c+=i;break;case Ie:if(h.isSpecial()){if(u=Fe,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(u=Fe,"/"!=i))continue}else h.fragment="",u=Me;else h.query="",u=$e;break;case Fe:if(i==n||"/"==i||"\\"==i&&h.isSpecial()||!t&&("?"==i||"#"==i)){if(be(c)?(h.shortenPath(),"/"==i||"\\"==i&&h.isSpecial()||F(h.path,"")):ye(c)?"/"==i||"\\"==i&&h.isSpecial()||F(h.path,""):("file"==h.scheme&&!h.path.length&&de(c)&&(h.host&&(h.host=""),c=O(c,0)+":"),F(h.path,c)),c="","file"==h.scheme&&(i==n||"?"==i||"#"==i))while(h.path.length>1&&""===h.path[0])$(h.path);"?"==i?(h.query="",u=$e):"#"==i&&(h.fragment="",u=Me)}else c+=me(i,pe);break;case _e:"?"==i?(h.query="",u=$e):"#"==i?(h.fragment="",u=Me):i!=n&&(h.path[0]+=me(i,ce));break;case $e:t||"#"!=i?i!=n&&("'"==i&&h.isSpecial()?h.query+="%27":h.query+="#"==i?"%23":me(i,ce)):(h.fragment="",u=Me);break;case Me:i!=n&&(h.fragment+=me(i,fe));break}l++}},parseHost:function(e){var t,r,n;if("["==O(e,0)){if("]"!=O(e,e.length-1))return N;if(t=he(Q(e,1,-1)),!t)return N;this.host=t}else if(this.isSpecial()){if(e=w(e),z(re,e))return N;if(t=oe(e),null===t)return N;this.host=t}else{if(z(ne,e))return N;for(t="",r=m(e),n=0;n<r.length;n++)t+=me(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,s=e.host,i=e.port,a=e.path,o=e.query,h=e.fragment,u=t+":";return null!==s?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=le(s),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+j(a,"/"):"",null!==o&&(u+="?"+o),null!==h&&(u+="#"+h),u},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Te(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",Ue)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],ge)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],ge)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==O(e,0)&&(e=Q(e,1)),this.query="",this.parse(e,$e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==O(e,0)&&(e=Q(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Te=function(e){var t=f(this,De),r=U(arguments.length,1)>1?arguments[1]:void 0,n=R(t,new Qe(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},De=Te.prototype,Ge=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(c(De,"href",Ge("serialize","setHref")),c(De,"origin",Ge("getOrigin")),c(De,"protocol",Ge("getProtocol","setProtocol")),c(De,"username",Ge("getUsername","setUsername")),c(De,"password",Ge("getPassword","setPassword")),c(De,"host",Ge("getHost","setHost")),c(De,"hostname",Ge("getHostname","setHostname")),c(De,"port",Ge("getPort","setPort")),c(De,"pathname",Ge("getPathname","setPathname")),c(De,"search",Ge("getSearch","setSearch")),c(De,"searchParams",Ge("getSearchParams")),c(De,"hash",Ge("getHash","setHash"))),l(De,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(De,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),H){var Je=H.createObjectURL,Ne=H.revokeObjectURL;Je&&l(Te,"createObjectURL",h(Je,H)),Ne&&l(Te,"revokeObjectURL",h(Ne,H))}b(Te,"URL"),s({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Te})},4121:function(e,t,r){r(5340)}}]);
2
- //# sourceMappingURL=262.js.map