openc3-cosmos-tool-iframe 5.14.1 → 5.15.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-iframe
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.14.1
4
+ version: 5.15.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: 2024-01-24 00:00:00.000000000 Z
12
+ date: 2024-03-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " This plugin adds support for display webpages as a tool in an Iframe\n"
15
15
  email:
@@ -24,10 +24,10 @@ files:
24
24
  - Rakefile
25
25
  - plugin.txt
26
26
  - tools/iframe/index.html
27
- - tools/iframe/js/540.js
28
- - tools/iframe/js/540.js.map
29
- - tools/iframe/js/848.js
30
- - tools/iframe/js/848.js.map
27
+ - tools/iframe/js/272.js
28
+ - tools/iframe/js/272.js.map
29
+ - tools/iframe/js/657.js
30
+ - tools/iframe/js/657.js.map
31
31
  - tools/iframe/js/app.js
32
32
  - tools/iframe/js/app.js.map
33
33
  homepage: https://github.com/OpenC3/cosmos
@@ -1,2 +0,0 @@
1
- "use strict";(self["webpackChunk_openc3_cosmos_tool_iframe"]=self["webpackChunk_openc3_cosmos_tool_iframe"]||[]).push([[540],{2540:(e,o,t)=>{t.r(o),t.d(o,{default:()=>c});var r=function(){var e=this,o=e._self._c;return o("v-card",[o("v-card-title",[e._v("404 Not Found Error")]),e._v(" "),o("v-card-text",[e._v("The requested URL "),o("code",[e._v(e._s(e.$route.fullPath))]),e._v(" was not\n routable.")])],1)},l=[],s=t(3483),_={},u=(0,s.Z)(_,r,l,!1,null,null,null);const c=u.exports}}]);
2
- //# sourceMappingURL=540.js.map
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_iframe"]=self["webpackChunk_openc3_cosmos_tool_iframe"]||[]).push([[848],{3848:(e,n,t)=>{"use strict";function o(){var e="/openc3/plugins/packages/openc3-cosmos-tool-iframe/src/tools/Iframe/Iframe.vue",n="79515c85eb5bdfe674921bc3d5052a8824cc0bb3",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-iframe/src/tools/Iframe/Iframe.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:434}},4:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1}},branchMap:{0:{loc:{start:{line:1,column:131},end:{line:1,column:430}},type:"cond-expr",locations:[{start:{line:1,column:141},end:{line:1,column:421}},{start:{line:1,column:422},end:{line:1,column:430}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"79515c85eb5bdfe674921bc3d5052a8824cc0bb3"},r=t[l]||(t[l]={});r[e]&&r[e].hash===n||(r[e]=i);var a=r[e];return o=function(){return a},a}t.r(n),t.d(n,{default:()=>b}),o(),o().s[0]++;var l=function(){o().f[0]++;var e=(o().s[1]++,this),n=(o().s[2]++,e._self._c);return o().s[3]++,n("div",[n("top-bar",{attrs:{title:e.title}}),e._v(" "),e.url?(o().b[0][0]++,n("div",{staticStyle:{display:"flex",width:"100%",height:"100%","flex-direction":"column",overflow:"hidden"}},[n("iframe",{staticStyle:{"flex-grow":"1",border:"none",margin:"0",padding:"0",height:"calc(100vh - 118px)"},attrs:{src:e.url,title:e.title}})])):(o().b[0][1]++,e._e())],1)},i=(o().s[4]++,[]),r=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{"align-self":"end"}},[n("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),n("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(t,o){return n("v-menu",{key:o,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:o,attrs:l}){return[n("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${t.label}`)}},"v-btn",l,!1),o),[n("span",{domProps:{textContent:e._s(t.label)}}),e._v(" "),n("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(o,l){return[o.divider?n("v-divider",{key:l}):o.subMenu&&o.subMenu.length>0?n("div",{key:l},[n("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:t,attrs:i}){return[n("v-list-item",e._g(e._b({key:l,attrs:{disabled:o.disabled}},"v-list-item",i,!1),t),[o.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:o.disabled}},[e._v(e._s(o.icon))])],1):e._e(),e._v(" "),o.radio||o.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(o.disabled?"opacity: 0.2":"")},[e._v(e._s(o.label)+"\n ")]),e._v(" "),n("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),n("v-list",e._l(o.subMenu,(function(t,o){return n("v-list-item",{key:o,on:{click:function(n){return e.subMenuClick(t)}}},[t.icon?n("v-list-item-icon",[n("v-icon",[e._v(e._s(t.icon))])],1):e._e(),e._v(" "),n("v-list-item-title",[e._v(e._s(t.label))])],1)})),1)],1)],1):n("v-list-item",{key:l,attrs:{disabled:o.disabled,"data-test":e.formatDT(`${e.title} ${t.label} ${o.label}`)},on:{click:function(e){return o.command(o)}}},[o.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:o.label,value:o.label}})],1):e._e(),e._v(" "),o.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:o.label},model:{value:o.checked,callback:function(n){e.$set(o,"checked",n)},expression:"option.checked"}})],1):e._e(),e._v(" "),o.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:o.disabled}},[e._v(e._s(o.icon))])],1):e._e(),e._v(" "),o.radio||o.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(o.disabled?"opacity: 0.2":"")},[e._v(e._s(o.label))])],1)]}))],2)],1)],1)})),1)],1)},a=[];t(1531),t(4597);const s={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},c=s;t(7886);var u=t(3483),d=(0,u.Z)(c,r,a,!1,null,"57d4fdd2",null);const m=d.exports;function p(){var e="/openc3/plugins/packages/openc3-cosmos-tool-iframe/src/tools/Iframe/Iframe.vue",n="6e2890984878c3fbd2de9aa87b48c491cde64131",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-iframe/src/tools/Iframe/Iframe.vue",statementMap:{0:{start:{line:9,column:4},end:{line:12,column:5}},1:{start:{line:15,column:4},end:{line:17,column:5}},2:{start:{line:16,column:6},end:{line:16,column:42}},3:{start:{line:18,column:4},end:{line:20,column:5}},4:{start:{line:19,column:6},end:{line:19,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:2},end:{line:8,column:3}},loc:{start:{line:8,column:9},end:{line:13,column:3}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:12},end:{line:21,column:3}},line:14}},branchMap:{0:{loc:{start:{line:15,column:4},end:{line:17,column:5}},type:"if",locations:[{start:{line:15,column:4},end:{line:17,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},1:{loc:{start:{line:15,column:8},end:{line:15,column:52}},type:"binary-expr",locations:[{start:{line:15,column:8},end:{line:15,column:25}},{start:{line:15,column:29},end:{line:15,column:52}}],line:15},2:{loc:{start:{line:18,column:4},end:{line:20,column:5}},type:"if",locations:[{start:{line:18,column:4},end:{line:20,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},3:{loc:{start:{line:18,column:8},end:{line:18,column:50}},type:"binary-expr",locations:[{start:{line:18,column:8},end:{line:18,column:25}},{start:{line:18,column:29},end:{line:18,column:50}}],line:18}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,sources:["Iframe.vue"],names:[],mappings:";AA+CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"Iframe.vue",sourceRoot:"src/tools/Iframe",sourcesContent:['\x3c!--\n# Copyright 2023 OpenC3, Inc.\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 file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :title="title" />\n <div\n v-if="url"\n style="\n display: flex;\n width: 100%;\n height: 100%;\n flex-direction: column;\n overflow: hidden;\n "\n >\n <iframe\n :src="url"\n :title="title"\n style="\n flex-grow: 1;\n border: none;\n margin: 0;\n padding: 0;\n height: calc(100vh - 118px);\n "\n ></iframe>\n </div>\n </div>\n</template>\n\n<script>\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\n\nexport default {\n components: {\n TopBar,\n },\n data() {\n return {\n title: \'Iframe\',\n url: null,\n }\n },\n created() {\n if (this.$route.query && this.$route.query.title) {\n this.title = this.$route.query.title\n }\n if (this.$route.query && this.$route.query.url) {\n this.url = this.$route.query.url\n }\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6e2890984878c3fbd2de9aa87b48c491cde64131"},i=t[o]||(t[o]={});i[e]&&i[e].hash===n||(i[e]=l);var r=i[e];return p=function(){return r},r}p();const f={components:{TopBar:m},data(){return p().f[0]++,p().s[0]++,{title:"Iframe",url:null}},created(){p().f[1]++,p().s[1]++,p().b[1][0]++,this.$route.query&&(p().b[1][1]++,this.$route.query.title)?(p().b[0][0]++,p().s[2]++,this.title=this.$route.query.title):p().b[0][1]++,p().s[3]++,p().b[3][0]++,this.$route.query&&(p().b[3][1]++,this.$route.query.url)?(p().b[2][0]++,p().s[4]++,this.url=this.$route.query.url):p().b[2][1]++}},v=f;var h=(0,u.Z)(v,l,i,!1,null,null,null);const b=h.exports},1468:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(9601),l=t.n(o),i=t(2609),r=t.n(i),a=r()(l());a.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const s=a},7886:(e,n,t)=>{var o=t(1468);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var l=t(3514).Z;l("7de62207",o,!0,{sourceMap:!1,shadowMode:!1})},9710:(e,n,t)=>{"use strict";var o=t(5309),l=t(2177),i=t(2032),r=i("match");e.exports=function(e){var n;return o(e)&&(void 0!==(n=e[r])?!!n:"RegExp"===l(e))}},976:(e,n,t)=>{"use strict";var o=t(8724),l=t(4678),i=t(6148),r=t(7929),a=RegExp.prototype;e.exports=function(e){var n=e.flags;return void 0!==n||"flags"in a||l(e,"flags")||!i(a,e)?n:o(r,e)}},4597:(e,n,t)=>{"use strict";var o=t(5532),l=t(8724),i=t(9668),r=t(1166),a=t(688),s=t(5268),c=t(9710),u=t(599),d=t(5383),m=t(976),p=t(6889),f=t(2032),v=t(6555),h=f("replace"),b=TypeError,_=i("".indexOf),A=i("".replace),g=i("".slice),y=Math.max;o({target:"String",proto:!0},{replaceAll:function(e,n){var t,o,i,f,x,C,k,w,I,$=r(this),T=0,M=0,S="";if(!s(e)){if(t=c(e),t&&(o=u(r(m(e))),!~_(o,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(i=d(e,h),i)return l(i,e,$,n);if(v&&t)return A(u($),e,n)}f=u($),x=u(e),C=a(n),C||(n=u(n)),k=x.length,w=y(1,k),T=_(f,x);while(-1!==T)I=C?u(n(x,T,f)):p(x,f,T,[],void 0,n),S+=g(f,M,T)+I,M=T+k,T=T+w>f.length?-1:_(f,x,T+w);return M<f.length&&(S+=g(f,M)),S}})}}]);
2
- //# sourceMappingURL=848.js.map