From 4c42b717b760f408ea775d75abbacea3ca63ce0e Mon Sep 17 00:00:00 2001 From: Jack Flukinger Date: Wed, 2 Mar 2022 19:34:59 -0600 Subject: [PATCH 1/2] Add important debug message --- ui/dist/css/{app.620d0115.css => app.0d1776b7.css} | 2 +- ui/dist/index.html | 2 +- ui/dist/js/app.3f69df0b.js | 2 -- ui/dist/js/app.3f69df0b.js.map | 1 - ui/dist/js/app.d7baae31.js | 2 ++ ui/dist/js/app.d7baae31.js.map | 1 + ui/src/components/Graph/Graph.vue | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename ui/dist/css/{app.620d0115.css => app.0d1776b7.css} (93%) delete mode 100644 ui/dist/js/app.3f69df0b.js delete mode 100644 ui/dist/js/app.3f69df0b.js.map create mode 100644 ui/dist/js/app.d7baae31.js create mode 100644 ui/dist/js/app.d7baae31.js.map diff --git a/ui/dist/css/app.620d0115.css b/ui/dist/css/app.0d1776b7.css similarity index 93% rename from ui/dist/css/app.620d0115.css rename to ui/dist/css/app.0d1776b7.css index 37f62d4..9eebc1b 100644 --- a/ui/dist/css/app.620d0115.css +++ b/ui/dist/css/app.0d1776b7.css @@ -1 +1 @@ -.title[data-v-bfab64d6]{padding:0}#resource-details[data-v-4e3cd299]{position:sticky;top:1em;min-width:0}.tab-container[data-v-4e3cd299]{max-height:70vh;overflow:scroll}fieldset[data-v-4e3cd299]{margin-bottom:2em}.tabs a[data-v-4e3cd299]:hover{cursor:pointer}.resource-detail[data-v-4e3cd299],.tab-container[data-v-4e3cd299]{padding:1em 0}.tabs .disabled[data-v-4e3cd299]:hover{cursor:not-allowed;border-bottom:4px solid var(--color-lightGrey)}p[data-v-4e3cd299]{word-break:break-all;white-space:normal}a[data-v-4e3cd299]{font-weight:700;border-width:4px!important}.key[data-v-4e3cd299]{font-weight:700;font-size:.9em;text-transform:uppercase;margin:0}dd[data-v-4e3cd299]{display:inline-block}dt.value[data-v-4e3cd299]{margin:.5em 0 1em 0;padding:.5em;font-size:1em;background-color:#f4ecff;color:#000;display:flex;align-items:center;justify-content:space-between}.resource-id[data-v-4e3cd299]{word-wrap:break-word;overflow:hidden;width:100%}.resource-action[data-v-4e3cd299]{float:right}.is-child-resource[data-v-4e3cd299]{display:block}.is-child-resource[data-v-4e3cd299],.unknown-value[data-v-4e3cd299]{text-align:center;font-weight:700;font-style:italic}.copy-button[data-v-4e3cd299]{font-size:.9em;padding:1rem;align-items:flex-end;background-color:#8450ba;color:#fff;font-weight:700}.copy-button[data-v-4e3cd299]:hover{cursor:pointer}#cytoscape-div{height:1000px!important;background-color:#f8f8f8!important}.node{width:14em;font-size:2em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;padding:.5em .5em;border-radius:.25em;background-color:#fff;color:#000;font-weight:700;cursor:pointer;border:5px solid #d3d3d3}.node:hover{transform:scale(1.02)}.resource-type{width:20em;font-size:2em;height:100%}.create{background-color:#28a745}.create,.delete{color:#fff;font-weight:700;border:0}.delete{background-color:#e40707}.update{background-color:#1d7ada;color:#fff}.replace,.update{font-weight:700;border:0}.replace{background-color:#ffc107;color:#000}.output{background-color:#fff7e0;border:5px solid #ffc107}.output,.variable{color:#000;font-weight:700}.variable{background-color:#e1f0ff;border:5px solid #1d7ada}.data{background-color:#ffecec;border:5px solid #dc477d;color:#000}.data,.locals{font-weight:700}.locals{background-color:#000;color:#fff;border:0}fieldset[data-v-11c2dcd0]{margin-bottom:2em}.graph-enter-active[data-v-11c2dcd0],.graph-enter-active legend[data-v-11c2dcd0],.graph-leave-active[data-v-11c2dcd0],.graph-leave-active legend[data-v-11c2dcd0]{transition:all .2s ease;overflow:hidden}.graph-enter[data-v-11c2dcd0],.graph-enter legend[data-v-11c2dcd0],.graph-leave-to[data-v-11c2dcd0],.graph-leave-to legend[data-v-11c2dcd0]{height:0;padding:0;margin:0;opacity:0}.card[data-v-2a9b2d96]{margin:.5em 0;border-radius:0;border-width:2px;font-weight:400}.tag[data-v-2a9b2d96]{border:1px solid var(--color-grey)}.card.child[data-v-2a9b2d96]{margin:0 -1.3em}.card.child[data-v-2a9b2d96]:hover{border-width:2px;border-left:0 solid;border-right:0 solid;filter:brightness(.95)}.col[data-v-2a9b2d96]{margin-bottom:0}.resource-main[data-v-2a9b2d96]:hover{cursor:pointer;filter:brightness(.95)}.child.resource-main[data-v-2a9b2d96]{border-left:1px solid;border-right:1px solid}.dark .resource-main[data-v-2a9b2d96]:hover{cursor:pointer;background-color:#0d032b}.dark .child.resource-main[data-v-2a9b2d96]{background-color:#1c1c3f}.dark .child.resource-main[data-v-2a9b2d96]:hover{background-color:#131342!important}.resource-col[data-v-2a9b2d96]{margin-left:.1em}.resource-action[data-v-2a9b2d96]{float:left;margin:0;margin-right:.5em}.file-expand-icon[data-v-2a9b2d96],.resource-action-icon[data-v-2a9b2d96]{width:1em;padding-top:.1em}.dark .multi-tag[data-v-2a9b2d96]{filter:invert(100%)}.resource-name[data-v-2a9b2d96]{width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.provider-icon-tag[data-v-2a9b2d96]{float:left;margin:0 1em 0 0!important;font-weight:700}.provider-icon[data-v-2a9b2d96]{float:left;width:1.75em;margin:-.2em .5em 0 -.3em!important}.provider-resource-name[data-v-2a9b2d96]{width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.line-number[data-v-2a9b2d96]{display:inline-block;min-width:2em}.resources-enter-active[data-v-2a9b2d96],.resources-leave-active[data-v-2a9b2d96]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-2a9b2d96],.resources-leave-to[data-v-2a9b2d96]{height:0;padding:0;margin:0;opacity:0}.module[data-v-2a9b2d96]{border:2px solid #8450ba}.resource-card.create[data-v-2a9b2d96]{border-color:#28a745}.resource-card.output[data-v-2a9b2d96]{border-color:#ffc107}.resource-card.delete[data-v-2a9b2d96]{border-color:#e40707}.resource-card.update[data-v-2a9b2d96]{border-color:#1d7ada}.resource-card.replace[data-v-2a9b2d96]{border-color:#ffc107}.resource-type-card[data-v-2a9b2d96]{margin-top:.5em!important}.file[data-v-3d7b7730]{margin-bottom:1em}.file-name[data-v-3d7b7730]{margin-bottom:0;margin-top:.25em}.file-name[data-v-3d7b7730]:hover{cursor:pointer}.resources-enter-active[data-v-3d7b7730],.resources-leave-active[data-v-3d7b7730]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-3d7b7730],.resources-leave-to[data-v-3d7b7730]{height:0;padding:0;margin:0;opacity:0}.file-expand-icon[data-v-3d7b7730]{width:1em;padding-top:.1em;margin-left:1.4em}fieldset[data-v-1cda27d5]{margin-bottom:2em}#app[data-v-5cf12920]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0 auto;margin-top:60px;width:90%}.node[data-v-5cf12920]{display:inline-block;margin:0 1%;width:48%;font-size:.9em}.module[data-v-5cf12920]{border:5px solid #8450ba;color:#8450ba} \ No newline at end of file +.title[data-v-bfab64d6]{padding:0}#resource-details[data-v-4e3cd299]{position:sticky;top:1em;min-width:0}.tab-container[data-v-4e3cd299]{max-height:70vh;overflow:scroll}fieldset[data-v-4e3cd299]{margin-bottom:2em}.tabs a[data-v-4e3cd299]:hover{cursor:pointer}.resource-detail[data-v-4e3cd299],.tab-container[data-v-4e3cd299]{padding:1em 0}.tabs .disabled[data-v-4e3cd299]:hover{cursor:not-allowed;border-bottom:4px solid var(--color-lightGrey)}p[data-v-4e3cd299]{word-break:break-all;white-space:normal}a[data-v-4e3cd299]{font-weight:700;border-width:4px!important}.key[data-v-4e3cd299]{font-weight:700;font-size:.9em;text-transform:uppercase;margin:0}dd[data-v-4e3cd299]{display:inline-block}dt.value[data-v-4e3cd299]{margin:.5em 0 1em 0;padding:.5em;font-size:1em;background-color:#f4ecff;color:#000;display:flex;align-items:center;justify-content:space-between}.resource-id[data-v-4e3cd299]{word-wrap:break-word;overflow:hidden;width:100%}.resource-action[data-v-4e3cd299]{float:right}.is-child-resource[data-v-4e3cd299]{display:block}.is-child-resource[data-v-4e3cd299],.unknown-value[data-v-4e3cd299]{text-align:center;font-weight:700;font-style:italic}.copy-button[data-v-4e3cd299]{font-size:.9em;padding:1rem;align-items:flex-end;background-color:#8450ba;color:#fff;font-weight:700}.copy-button[data-v-4e3cd299]:hover{cursor:pointer}#cytoscape-div{height:1000px!important;background-color:#f8f8f8!important}.node{width:14em;font-size:2em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;padding:.5em .5em;border-radius:.25em;background-color:#fff;color:#000;font-weight:700;cursor:pointer;border:5px solid #d3d3d3}.node:hover{transform:scale(1.02)}.resource-type{width:20em;font-size:2em;height:100%}.create{background-color:#28a745}.create,.delete{color:#fff;font-weight:700;border:0}.delete{background-color:#e40707}.update{background-color:#1d7ada;color:#fff}.replace,.update{font-weight:700;border:0}.replace{background-color:#ffc107;color:#000}.output{background-color:#fff7e0;border:5px solid #ffc107}.output,.variable{color:#000;font-weight:700}.variable{background-color:#e1f0ff;border:5px solid #1d7ada}.data{background-color:#ffecec;border:5px solid #dc477d;color:#000}.data,.locals{font-weight:700}.locals{background-color:#000;color:#fff;border:0}fieldset[data-v-619b55a0]{margin-bottom:2em}.graph-enter-active[data-v-619b55a0],.graph-enter-active legend[data-v-619b55a0],.graph-leave-active[data-v-619b55a0],.graph-leave-active legend[data-v-619b55a0]{transition:all .2s ease;overflow:hidden}.graph-enter[data-v-619b55a0],.graph-enter legend[data-v-619b55a0],.graph-leave-to[data-v-619b55a0],.graph-leave-to legend[data-v-619b55a0]{height:0;padding:0;margin:0;opacity:0}.card[data-v-2a9b2d96]{margin:.5em 0;border-radius:0;border-width:2px;font-weight:400}.tag[data-v-2a9b2d96]{border:1px solid var(--color-grey)}.card.child[data-v-2a9b2d96]{margin:0 -1.3em}.card.child[data-v-2a9b2d96]:hover{border-width:2px;border-left:0 solid;border-right:0 solid;filter:brightness(.95)}.col[data-v-2a9b2d96]{margin-bottom:0}.resource-main[data-v-2a9b2d96]:hover{cursor:pointer;filter:brightness(.95)}.child.resource-main[data-v-2a9b2d96]{border-left:1px solid;border-right:1px solid}.dark .resource-main[data-v-2a9b2d96]:hover{cursor:pointer;background-color:#0d032b}.dark .child.resource-main[data-v-2a9b2d96]{background-color:#1c1c3f}.dark .child.resource-main[data-v-2a9b2d96]:hover{background-color:#131342!important}.resource-col[data-v-2a9b2d96]{margin-left:.1em}.resource-action[data-v-2a9b2d96]{float:left;margin:0;margin-right:.5em}.file-expand-icon[data-v-2a9b2d96],.resource-action-icon[data-v-2a9b2d96]{width:1em;padding-top:.1em}.dark .multi-tag[data-v-2a9b2d96]{filter:invert(100%)}.resource-name[data-v-2a9b2d96]{width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.provider-icon-tag[data-v-2a9b2d96]{float:left;margin:0 1em 0 0!important;font-weight:700}.provider-icon[data-v-2a9b2d96]{float:left;width:1.75em;margin:-.2em .5em 0 -.3em!important}.provider-resource-name[data-v-2a9b2d96]{width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.line-number[data-v-2a9b2d96]{display:inline-block;min-width:2em}.resources-enter-active[data-v-2a9b2d96],.resources-leave-active[data-v-2a9b2d96]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-2a9b2d96],.resources-leave-to[data-v-2a9b2d96]{height:0;padding:0;margin:0;opacity:0}.module[data-v-2a9b2d96]{border:2px solid #8450ba}.resource-card.create[data-v-2a9b2d96]{border-color:#28a745}.resource-card.output[data-v-2a9b2d96]{border-color:#ffc107}.resource-card.delete[data-v-2a9b2d96]{border-color:#e40707}.resource-card.update[data-v-2a9b2d96]{border-color:#1d7ada}.resource-card.replace[data-v-2a9b2d96]{border-color:#ffc107}.resource-type-card[data-v-2a9b2d96]{margin-top:.5em!important}.file[data-v-3d7b7730]{margin-bottom:1em}.file-name[data-v-3d7b7730]{margin-bottom:0;margin-top:.25em}.file-name[data-v-3d7b7730]:hover{cursor:pointer}.resources-enter-active[data-v-3d7b7730],.resources-leave-active[data-v-3d7b7730]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-3d7b7730],.resources-leave-to[data-v-3d7b7730]{height:0;padding:0;margin:0;opacity:0}.file-expand-icon[data-v-3d7b7730]{width:1em;padding-top:.1em;margin-left:1.4em}fieldset[data-v-1cda27d5]{margin-bottom:2em}#app[data-v-5cf12920]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0 auto;margin-top:60px;width:90%}.node[data-v-5cf12920]{display:inline-block;margin:0 1%;width:48%;font-size:.9em}.module[data-v-5cf12920]{border:5px solid #8450ba;color:#8450ba} \ No newline at end of file diff --git a/ui/dist/index.html b/ui/dist/index.html index c7ff6d8..8efb156 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -1 +1 @@ -ui
\ No newline at end of file +ui
\ No newline at end of file diff --git a/ui/dist/js/app.3f69df0b.js b/ui/dist/js/app.3f69df0b.js deleted file mode 100644 index bfb3abe..0000000 --- a/ui/dist/js/app.3f69df0b.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){function t(t){for(var n,s,c=t[0],i=t[1],l=t[2],u=0,f=[];u1?"replace":n.actions[0]),r.before=n.before?n.before:null,r.after=n.after?n.after:{},"string"===typeof r.before&&(r.before={value:r.before}),"string"===typeof r.after&&(r.after={value:r.after}),n["after_unknown"]&&(r.after["value"]={unknown:!0}),r}return r={}}if(t.states[e]&&t.states[e].change){var o=t.states[e].change;o.actions&&(r.action=o.actions.length>1?"replace":o.actions[0]),r.before=o.before?o.before:{},r.after=o.after?o.after:{},o["after_unknown"]&&Object.keys(o["after_unknown"]).forEach((function(e){r.after[e]={unknown:!0}}))}return r}},computed:{resource:function(){var e="";e=this.resourceID.startsWith("Resources/")?this.resourceID.split("/").join("."):this.resourceID.split("/").slice(-2).join(".");var t=e.split("."),r=t.length-1,n=t.join(".");return this.resourceID.startsWith("Resources/")&&(n=t.slice(1).join(".")),{fileName:"".concat(t[0],".").concat(t[1]),id:n,resource_type:t[r-1],resource_name:t[r]}},primitiveType:function(){switch(this.resource.resource_type){case"output":case"var":case"local":return this.resource.resource_type;default:return this.resource.id.startsWith("data.")?"data":"resource"}},isChild:function(){return null!=this.resource.id.match(/\[[^[\]]*\]$/g)},hasNoState:function(){return this.resource.id.includes("var.")},resourceConfig:function(){return this.getResourceConfig(this.resource.id,this.overview,this.isChild)},resourceChange:function(){return this.getResourceChange(this.resource.id,this.overview)}},watch:{resourceID:function(e){e.includes("var.")&&(this.curTab="config")}},mounted:function(){var e=this;"undefined"!==typeof rso?this.overview=rso:v.a.get("/api/rso").then((function(t){e.overview=t.data}))}},_=y,C=(r("081a"),Object(d["a"])(_,p,h,!1,null,"4e3cd299",null)),w=C.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"graph"}},[r("fieldset",[r("legend",[e._v("Graph")]),r("cytoscape",{ref:"cy",attrs:{config:e.config,preConfig:e.preConfig}})],1)])},k=[],R=(r("d81d"),r("8a79"),r("4de4"),r("21a6")),T=r("8df5"),I=r.n(T),j=r("2701"),O=r.n(j),$=r("cc5f"),N=r.n($),P={autounselectify:!0,style:[{selector:"node",style:{label:"data(label)",width:"500px","font-family":"Avenir, Helvetica, Arial, sans-serif","font-size":"2em"}},{selector:"edge",css:{"curve-style":"taxi","line-fill":"linear-gradient","line-gradient-stop-colors":"data(gradient)","line-dash-offset":24,width:10}},{selector:".basename",style:{padding:"200px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","min-height":"400px","border-width":2,"border-color":"white","background-color":"#f4ecff"}},{selector:".fname",style:{padding:"100px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","border-width":1,"border-color":"lightgrey","background-color":"white"}},{selector:".provider",style:{"text-valign":"center","text-halign":"center",padding:"1em",shape:"roundrectangle","border-width":0,color:"white","background-color":"black"}},{selector:".module",style:{padding:"100px","font-weight":"bold","text-margin-y":60,shape:"roundrectangle",color:"#8450ba","border-width":10,"border-color":"#8450ba","background-color":"white"}},{selector:".data-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".data-name",css:{"background-color":"#ffecec",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#dc477d",label:"data(label)"}},{selector:".output",css:{"background-color":"#fff7e0",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#ffc107",label:"data(label)"}},{selector:".variable",css:{"background-color":"#e1f0ff",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#1d7ada",label:"data(label)"}},{selector:".locals",css:{"background-color":"black",color:"white","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"black",label:"data(label)"}},{selector:".resource-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-parent",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-name",css:{"text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":0,color:"white","background-color":"#8450ba","text-wrap":"ellipsis","text-max-width":500}},{selector:".create",css:{"background-color":"#28a745",color:"white","font-weight":"bold"}},{selector:".delete",css:{"background-color":"#e40707",color:"white","font-weight":"bold"}},{selector:".update",css:{"background-color":"#1d7ada",color:"white","font-weight":"bold"}},{selector:".replace",css:{"background-color":"#ffc107",color:"black","font-weight":"bold"}},{selector:".no-op",css:{color:"black","border-opacity":1,"font-weight":"bold","border-width":"5px","border-color":"lightgray","background-color":"white"}},{selector:".invisible",css:{opacity:"0"}},{selector:".semitransp",css:{opacity:"0.4"}},{selector:"edge.semitransp",css:{opacity:"0"}},{selector:".visible",css:{opacity:"1"}},{selector:".dashed",css:{"line-style":"dashed","line-dash-pattern":[20,20]}}]},G={name:"Graph",data:function(){return{selectedNode:"",config:P,graph:{}}},methods:{preConfig:function(e){e.use(I.a),e.use(O.a),"function"!==typeof e("core","nodeHtmlLabel")&&e.use(N.a)},renderGraph:function(){var e=this,t=this.$refs.cy.instance,r=t.elements(),n=this.graph.nodes.map((function(e){return e.data.id}));t.remove(r),this.graph.nodes.forEach((function(e){t.add(e)})),this.graph.edges.forEach((function(e){if(!e.data.id.includes("-variable")&&!e.data.id.includes("-output")){var r=e.data.target;while(!n.includes(r)){if(r=r.split("."),r.length<2)return void console.warn("edge target",e.data.target,"not found in nodes");r.pop(),r=r.join(".")}e.data.target=r,t.add(e)}})),this.runLayouts(),t.on("click","node",(function(t){for(var r=t.target,n={id:r.data().id,in:[],out:[]},o=r.connectedEdges(),a=0;a\n \n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainNav.vue?vue&type=template&id=bfab64d6&scoped=true&\"\nimport script from \"./MainNav.vue?vue&type=script&lang=js&\"\nexport * from \"./MainNav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bfab64d6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',{attrs:{\"id\":\"resource-details\"}},[_c('legend',[_vm._v(\"Details\")]),_c('div',{staticClass:\"resource-detail\"},[(!_vm.resourceID)?_c('div',[_c('span',[_vm._v(\"Please select a resource on your right.\")])]):_c('div',[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(_vm.primitiveType))]),(_vm.resourceChange.action)?_c('span',{staticClass:\"tag is-small resource-action\"},[_vm._v(_vm._s(_vm.resourceChange.action))]):_vm._e(),_c('dt',{staticClass:\"value resource-id\"},[_vm._v(\" \"+_vm._s(_vm.resource.id)+\" \"),_c('button',{ref:\"rid\",staticClass:\"copy-button\",on:{\"click\":function($event){return _vm.copyText(_vm.resource.id, 'rid')}}},[_vm._v(\" Copy \")])]),_c('nav',{staticClass:\"tabs is-full\"},[_c('a',{class:{ active: _vm.curTab === 'config' },on:{\"click\":function($event){return _vm.selectTab('config')}}},[_vm._v(\"Config\")]),_c('a',{class:{ active: _vm.curTab === 'current', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('current')}}},[_vm._v(\"Current State\")]),_c('a',{class:{ active: _vm.curTab === 'proposed', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('proposed')}}},[_vm._v(\"Proposed State\")])]),(_vm.curTab === 'config')?_c('div',{staticClass:\"tab-container\"},[(\n _vm.resourceConfig.isChild == 'rover-for-each-child-resource-true'\n )?_c('span',{staticClass:\"is-child-resource\"},[_vm._v(\"Please check parent resource\")]):_vm._l((_vm.resourceConfig),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_c('span',[_vm._v(_vm._s(_vm.getConfigValue(val)))]),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getConfigValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])})],2):_vm._e(),(_vm.curTab === 'current')?_c('div',{staticClass:\"tab-container\"},[(_vm.resourceChange.before)?_c('span',_vm._l((_vm.resourceChange.before),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_vm._v(\" \"+_vm._s(_vm.getBeforeValue(val))+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])}),0):_c('span',[_vm._v(\"Resource doesn't currently exist.\")])]):_vm._e(),(_vm.curTab === 'proposed')?_c('div',{staticClass:\"tab-container\"},_vm._l((_vm.resourceChange.after),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),(val)?_c('dt',{staticClass:\"value\",class:{ 'unknown-value': val.unknown }},[_vm._v(\" \"+_vm._s(val.unknown ? \"Value Unknown\" : val)+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])]):_c('dt',{staticClass:\"value\"},[_vm._v(\"null\")])])}),0):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceDetail.vue?vue&type=template&id=4e3cd299&scoped=true&\"\nimport script from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceDetail.vue?vue&type=style&index=0&id=4e3cd299&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e3cd299\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"graph\"}},[_c('fieldset',[_c('legend',[_vm._v(\"Graph\")]),_c('cytoscape',{ref:\"cy\",attrs:{\"config\":_vm.config,\"preConfig\":_vm.preConfig}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Graph.vue?vue&type=template&id=11c2dcd0&scoped=true&\"\nimport script from \"./Graph.vue?vue&type=script&lang=js&\"\nexport * from \"./Graph.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Graph.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./Graph.vue?vue&type=style&index=1&id=11c2dcd0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11c2dcd0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',[_c('legend',[_vm._v(\"Resources\")]),_c('File'),_vm._l((_vm.map.root),function(properties,fileName){return _c('div',{key:fileName},[_c('File',{attrs:{\"fileName\":fileName,\"resources\":properties.children},on:{\"selectResource\":_vm.selectResource}})],1)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.fileName)?_c('div',{staticClass:\"file\"},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"file-expand-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}}),_c('div',{staticClass:\"col-11 file-name\"},[_c('strong',{staticClass:\"text-lowercase\"},[_vm._v(_vm._s(_vm.fileName))])])]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.selectResource}}):_vm._e()],1)]})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card resource-main\",class:[\n _vm.isChild ? 'child' : '',\n (\"resource-card \" + (_vm.content.type)),\n _vm.content.change_action != null ? _vm.content.change_action : '',\n _vm.content.change_action != null ? '' : 'resource-type-card' ]},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){return _vm.handleClick(_vm.id)}}},[_c('div',{staticClass:\"col col-6 resource-col\"},[_c('p',{staticClass:\"is-small resource-action\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"multi-tag resource-action-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}})]),_c('p',{staticClass:\"resource-name\"},[_vm._v(\" \"+_vm._s(_vm.content.name)+\" \")])]),_c('div',{staticClass:\"col col-4\"},[(_vm.resourceProvider)?[(_vm.providerIcon[_vm.resourceProvider])?_c('img',{staticClass:\"provider-icon\",attrs:{\"src\":_vm.providerIcon[_vm.resourceProvider]}}):_c('span',{staticClass:\"tag is-small provider-icon-tag\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider[0])+\" \")])]:_vm._e(),_c('p',{staticClass:\"provider-resource-name\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider ? (_vm.resourceProvider + \".\") : \"\")+_vm._s(_vm.content.resource_type ? _vm.content.resource_type : \"\")+\" \")])],2),(_vm.content.line)?_c('div',{staticClass:\"col col-2 text-right\"},[_vm._v(\" Line: # \"),_c('span',{staticClass:\"line-number\"},[_vm._v(_vm._s(_vm.content.line))])]):_vm._e()]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.handleClick}}):_vm._e()],1)]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceCard.vue?vue&type=template&id=2a9b2d96&scoped=true&\"\nimport script from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9b2d96\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./File.vue?vue&type=template&id=3d7b7730&scoped=true&\"\nimport script from \"./File.vue?vue&type=script&lang=js&\"\nexport * from \"./File.vue?vue&type=script&lang=js&\"\nimport style0 from \"./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d7b7730\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Explorer.vue?vue&type=template&id=1cda27d5&scoped=true&\"\nimport script from \"./Explorer.vue?vue&type=script&lang=js&\"\nexport * from \"./Explorer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1cda27d5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5cf12920&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cf12920\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport App from './App.vue';\nimport VueCytoscape from 'vue-cytoscape';\nimport VueMeta from 'vue-meta';\n\nVue.use(VueCytoscape);\nVue.use(VueMeta);\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n","module.exports = __webpack_public_path__ + \"img/alert-triangle.d88bf755.svg\";","module.exports = __webpack_public_path__ + \"img/minus.f2deefda.svg\";","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/plus.b121a385.svg\";","module.exports = __webpack_public_path__ + \"img/gcp.2bdb5143.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/aws.082444af.png\";","module.exports = __webpack_public_path__ + \"img/refresh-cw.286819b2.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/arrow-up-circle.c7e27cfe.svg\";","module.exports = __webpack_public_path__ + \"img/helm.0d1950ff.png\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=1&id=11c2dcd0&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/azure.0386fb3d.png\";"],"sourceRoot":""} \ No newline at end of file diff --git a/ui/dist/js/app.d7baae31.js b/ui/dist/js/app.d7baae31.js new file mode 100644 index 0000000..7ba2746 --- /dev/null +++ b/ui/dist/js/app.d7baae31.js @@ -0,0 +1,2 @@ +(function(e){function t(t){for(var n,s,c=t[0],i=t[1],l=t[2],u=0,f=[];u1?"replace":n.actions[0]),r.before=n.before?n.before:null,r.after=n.after?n.after:{},"string"===typeof r.before&&(r.before={value:r.before}),"string"===typeof r.after&&(r.after={value:r.after}),n["after_unknown"]&&(r.after["value"]={unknown:!0}),r}return r={}}if(t.states[e]&&t.states[e].change){var o=t.states[e].change;o.actions&&(r.action=o.actions.length>1?"replace":o.actions[0]),r.before=o.before?o.before:{},r.after=o.after?o.after:{},o["after_unknown"]&&Object.keys(o["after_unknown"]).forEach((function(e){r.after[e]={unknown:!0}}))}return r}},computed:{resource:function(){var e="";e=this.resourceID.startsWith("Resources/")?this.resourceID.split("/").join("."):this.resourceID.split("/").slice(-2).join(".");var t=e.split("."),r=t.length-1,n=t.join(".");return this.resourceID.startsWith("Resources/")&&(n=t.slice(1).join(".")),{fileName:"".concat(t[0],".").concat(t[1]),id:n,resource_type:t[r-1],resource_name:t[r]}},primitiveType:function(){switch(this.resource.resource_type){case"output":case"var":case"local":return this.resource.resource_type;default:return this.resource.id.startsWith("data.")?"data":"resource"}},isChild:function(){return null!=this.resource.id.match(/\[[^[\]]*\]$/g)},hasNoState:function(){return this.resource.id.includes("var.")},resourceConfig:function(){return this.getResourceConfig(this.resource.id,this.overview,this.isChild)},resourceChange:function(){return this.getResourceChange(this.resource.id,this.overview)}},watch:{resourceID:function(e){e.includes("var.")&&(this.curTab="config")}},mounted:function(){var e=this;"undefined"!==typeof rso?this.overview=rso:v.a.get("/api/rso").then((function(t){e.overview=t.data}))}},_=y,C=(r("081a"),Object(d["a"])(_,p,h,!1,null,"4e3cd299",null)),w=C.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"graph"}},[r("fieldset",[r("legend",[e._v("Graph")]),r("cytoscape",{ref:"cy",attrs:{config:e.config,preConfig:e.preConfig}})],1)])},k=[],R=(r("d81d"),r("8a79"),r("4de4"),r("21a6")),T=r("8df5"),I=r.n(T),j=r("2701"),O=r.n(j),$=r("cc5f"),N=r.n($),P={autounselectify:!0,style:[{selector:"node",style:{label:"data(label)",width:"500px","font-family":"Avenir, Helvetica, Arial, sans-serif","font-size":"2em"}},{selector:"edge",css:{"curve-style":"taxi","line-fill":"linear-gradient","line-gradient-stop-colors":"data(gradient)","line-dash-offset":24,width:10}},{selector:".basename",style:{padding:"200px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","min-height":"400px","border-width":2,"border-color":"white","background-color":"#f4ecff"}},{selector:".fname",style:{padding:"100px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","border-width":1,"border-color":"lightgrey","background-color":"white"}},{selector:".provider",style:{"text-valign":"center","text-halign":"center",padding:"1em",shape:"roundrectangle","border-width":0,color:"white","background-color":"black"}},{selector:".module",style:{padding:"100px","font-weight":"bold","text-margin-y":60,shape:"roundrectangle",color:"#8450ba","border-width":10,"border-color":"#8450ba","background-color":"white"}},{selector:".data-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".data-name",css:{"background-color":"#ffecec",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#dc477d",label:"data(label)"}},{selector:".output",css:{"background-color":"#fff7e0",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#ffc107",label:"data(label)"}},{selector:".variable",css:{"background-color":"#e1f0ff",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#1d7ada",label:"data(label)"}},{selector:".locals",css:{"background-color":"black",color:"white","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"black",label:"data(label)"}},{selector:".resource-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-parent",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-name",css:{"text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":0,color:"white","background-color":"#8450ba","text-wrap":"ellipsis","text-max-width":500}},{selector:".create",css:{"background-color":"#28a745",color:"white","font-weight":"bold"}},{selector:".delete",css:{"background-color":"#e40707",color:"white","font-weight":"bold"}},{selector:".update",css:{"background-color":"#1d7ada",color:"white","font-weight":"bold"}},{selector:".replace",css:{"background-color":"#ffc107",color:"black","font-weight":"bold"}},{selector:".no-op",css:{color:"black","border-opacity":1,"font-weight":"bold","border-width":"5px","border-color":"lightgray","background-color":"white"}},{selector:".invisible",css:{opacity:"0"}},{selector:".semitransp",css:{opacity:"0.4"}},{selector:"edge.semitransp",css:{opacity:"0"}},{selector:".visible",css:{opacity:"1"}},{selector:".dashed",css:{"line-style":"dashed","line-dash-pattern":[20,20]}}]},G={name:"Graph",data:function(){return{selectedNode:"",config:P,graph:{}}},methods:{preConfig:function(e){e.use(I.a),e.use(O.a),"function"!==typeof e("core","nodeHtmlLabel")&&e.use(N.a)},renderGraph:function(){var e=this,t=this.$refs.cy.instance,r=t.elements(),n=this.graph.nodes.map((function(e){return e.data.id}));t.remove(r),this.graph.nodes.forEach((function(e){t.add(e)})),this.graph.edges.forEach((function(e){if(!e.data.id.includes("-variable")&&!e.data.id.includes("-output")){var r=e.data.target;while(!n.includes(r)){if(r=r.split("."),r.length<2)return void console.warn("edge target",e.data.target,"not found in nodes");r.pop(),r=r.join(".")}e.data.target=r,t.add(e)}})),this.runLayouts(),t.on("click","node",(function(t){for(var r=t.target,n={id:r.data().id,in:[],out:[]},o=r.connectedEdges(),a=0;a\n \n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainNav.vue?vue&type=template&id=bfab64d6&scoped=true&\"\nimport script from \"./MainNav.vue?vue&type=script&lang=js&\"\nexport * from \"./MainNav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bfab64d6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',{attrs:{\"id\":\"resource-details\"}},[_c('legend',[_vm._v(\"Details\")]),_c('div',{staticClass:\"resource-detail\"},[(!_vm.resourceID)?_c('div',[_c('span',[_vm._v(\"Please select a resource on your right.\")])]):_c('div',[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(_vm.primitiveType))]),(_vm.resourceChange.action)?_c('span',{staticClass:\"tag is-small resource-action\"},[_vm._v(_vm._s(_vm.resourceChange.action))]):_vm._e(),_c('dt',{staticClass:\"value resource-id\"},[_vm._v(\" \"+_vm._s(_vm.resource.id)+\" \"),_c('button',{ref:\"rid\",staticClass:\"copy-button\",on:{\"click\":function($event){return _vm.copyText(_vm.resource.id, 'rid')}}},[_vm._v(\" Copy \")])]),_c('nav',{staticClass:\"tabs is-full\"},[_c('a',{class:{ active: _vm.curTab === 'config' },on:{\"click\":function($event){return _vm.selectTab('config')}}},[_vm._v(\"Config\")]),_c('a',{class:{ active: _vm.curTab === 'current', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('current')}}},[_vm._v(\"Current State\")]),_c('a',{class:{ active: _vm.curTab === 'proposed', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('proposed')}}},[_vm._v(\"Proposed State\")])]),(_vm.curTab === 'config')?_c('div',{staticClass:\"tab-container\"},[(\n _vm.resourceConfig.isChild == 'rover-for-each-child-resource-true'\n )?_c('span',{staticClass:\"is-child-resource\"},[_vm._v(\"Please check parent resource\")]):_vm._l((_vm.resourceConfig),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_c('span',[_vm._v(_vm._s(_vm.getConfigValue(val)))]),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getConfigValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])})],2):_vm._e(),(_vm.curTab === 'current')?_c('div',{staticClass:\"tab-container\"},[(_vm.resourceChange.before)?_c('span',_vm._l((_vm.resourceChange.before),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_vm._v(\" \"+_vm._s(_vm.getBeforeValue(val))+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])}),0):_c('span',[_vm._v(\"Resource doesn't currently exist.\")])]):_vm._e(),(_vm.curTab === 'proposed')?_c('div',{staticClass:\"tab-container\"},_vm._l((_vm.resourceChange.after),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),(val)?_c('dt',{staticClass:\"value\",class:{ 'unknown-value': val.unknown }},[_vm._v(\" \"+_vm._s(val.unknown ? \"Value Unknown\" : val)+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])]):_c('dt',{staticClass:\"value\"},[_vm._v(\"null\")])])}),0):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceDetail.vue?vue&type=template&id=4e3cd299&scoped=true&\"\nimport script from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceDetail.vue?vue&type=style&index=0&id=4e3cd299&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e3cd299\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"graph\"}},[_c('fieldset',[_c('legend',[_vm._v(\"Graph\")]),_c('cytoscape',{ref:\"cy\",attrs:{\"config\":_vm.config,\"preConfig\":_vm.preConfig}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Graph.vue?vue&type=template&id=619b55a0&scoped=true&\"\nimport script from \"./Graph.vue?vue&type=script&lang=js&\"\nexport * from \"./Graph.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Graph.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./Graph.vue?vue&type=style&index=1&id=619b55a0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"619b55a0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',[_c('legend',[_vm._v(\"Resources\")]),_c('File'),_vm._l((_vm.map.root),function(properties,fileName){return _c('div',{key:fileName},[_c('File',{attrs:{\"fileName\":fileName,\"resources\":properties.children},on:{\"selectResource\":_vm.selectResource}})],1)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.fileName)?_c('div',{staticClass:\"file\"},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"file-expand-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}}),_c('div',{staticClass:\"col-11 file-name\"},[_c('strong',{staticClass:\"text-lowercase\"},[_vm._v(_vm._s(_vm.fileName))])])]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.selectResource}}):_vm._e()],1)]})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card resource-main\",class:[\n _vm.isChild ? 'child' : '',\n (\"resource-card \" + (_vm.content.type)),\n _vm.content.change_action != null ? _vm.content.change_action : '',\n _vm.content.change_action != null ? '' : 'resource-type-card' ]},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){return _vm.handleClick(_vm.id)}}},[_c('div',{staticClass:\"col col-6 resource-col\"},[_c('p',{staticClass:\"is-small resource-action\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"multi-tag resource-action-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}})]),_c('p',{staticClass:\"resource-name\"},[_vm._v(\" \"+_vm._s(_vm.content.name)+\" \")])]),_c('div',{staticClass:\"col col-4\"},[(_vm.resourceProvider)?[(_vm.providerIcon[_vm.resourceProvider])?_c('img',{staticClass:\"provider-icon\",attrs:{\"src\":_vm.providerIcon[_vm.resourceProvider]}}):_c('span',{staticClass:\"tag is-small provider-icon-tag\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider[0])+\" \")])]:_vm._e(),_c('p',{staticClass:\"provider-resource-name\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider ? (_vm.resourceProvider + \".\") : \"\")+_vm._s(_vm.content.resource_type ? _vm.content.resource_type : \"\")+\" \")])],2),(_vm.content.line)?_c('div',{staticClass:\"col col-2 text-right\"},[_vm._v(\" Line: # \"),_c('span',{staticClass:\"line-number\"},[_vm._v(_vm._s(_vm.content.line))])]):_vm._e()]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.handleClick}}):_vm._e()],1)]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceCard.vue?vue&type=template&id=2a9b2d96&scoped=true&\"\nimport script from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9b2d96\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./File.vue?vue&type=template&id=3d7b7730&scoped=true&\"\nimport script from \"./File.vue?vue&type=script&lang=js&\"\nexport * from \"./File.vue?vue&type=script&lang=js&\"\nimport style0 from \"./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d7b7730\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Explorer.vue?vue&type=template&id=1cda27d5&scoped=true&\"\nimport script from \"./Explorer.vue?vue&type=script&lang=js&\"\nexport * from \"./Explorer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1cda27d5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5cf12920&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cf12920\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport App from './App.vue';\nimport VueCytoscape from 'vue-cytoscape';\nimport VueMeta from 'vue-meta';\n\nVue.use(VueCytoscape);\nVue.use(VueMeta);\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n","module.exports = __webpack_public_path__ + \"img/alert-triangle.d88bf755.svg\";","module.exports = __webpack_public_path__ + \"img/minus.f2deefda.svg\";","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/plus.b121a385.svg\";","module.exports = __webpack_public_path__ + \"img/gcp.2bdb5143.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=1&id=619b55a0&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/aws.082444af.png\";","module.exports = __webpack_public_path__ + \"img/refresh-cw.286819b2.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/arrow-up-circle.c7e27cfe.svg\";","module.exports = __webpack_public_path__ + \"img/helm.0d1950ff.png\";","module.exports = __webpack_public_path__ + \"img/azure.0386fb3d.png\";"],"sourceRoot":""} \ No newline at end of file diff --git a/ui/src/components/Graph/Graph.vue b/ui/src/components/Graph/Graph.vue index 15ab819..77b2bbd 100644 --- a/ui/src/components/Graph/Graph.vue +++ b/ui/src/components/Graph/Graph.vue @@ -511,7 +511,7 @@ export default { } else { axios.get(`/api/graph`).then((response) => { this.graph = response.data; - //console.log(this.graph) + console.log(this.graph) this.renderGraph(); }); } From 1eb3540a0147d1b7f2cc2b3e02e00b175224c1c1 Mon Sep 17 00:00:00 2001 From: Jack Flukinger Date: Fri, 4 Mar 2022 22:35:22 -0600 Subject: [PATCH 2/2] Fix same resource type in multiple files in same module --- .gitignore | 6 ++++-- .../multiple-files-same-resource-type-test/file-one.tf | 4 ++++ .../multiple-files-same-resource-type-test/file-two.tf | 4 ++++ graph.go | 10 +++++++++- ui/dist/css/{app.0d1776b7.css => app.620d0115.css} | 2 +- ui/dist/index.html | 2 +- ui/dist/js/app.3f69df0b.js | 2 ++ ui/dist/js/app.3f69df0b.js.map | 1 + ui/dist/js/app.d7baae31.js | 2 -- ui/dist/js/app.d7baae31.js.map | 1 - ui/src/components/Graph/Graph.vue | 2 +- 11 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 example/multiple-files-same-resource-type-test/file-one.tf create mode 100644 example/multiple-files-same-resource-type-test/file-two.tf rename ui/dist/css/{app.0d1776b7.css => app.620d0115.css} (93%) create mode 100644 ui/dist/js/app.3f69df0b.js create mode 100644 ui/dist/js/app.3f69df0b.js.map delete mode 100644 ui/dist/js/app.d7baae31.js delete mode 100644 ui/dist/js/app.d7baae31.js.map diff --git a/.gitignore b/.gitignore index dc828b9..2fbb82f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -rover +build/rover .DS_Store rover.zip plan.out @@ -6,4 +6,6 @@ plan.out # Ignore generated terraform files .terraform** -.idea/ \ No newline at end of file +.idea/ + +build/ \ No newline at end of file diff --git a/example/multiple-files-same-resource-type-test/file-one.tf b/example/multiple-files-same-resource-type-test/file-one.tf new file mode 100644 index 0000000..4886113 --- /dev/null +++ b/example/multiple-files-same-resource-type-test/file-one.tf @@ -0,0 +1,4 @@ +resource "random_integer" "one" { + min = 1 + max = 3 +} \ No newline at end of file diff --git a/example/multiple-files-same-resource-type-test/file-two.tf b/example/multiple-files-same-resource-type-test/file-two.tf new file mode 100644 index 0000000..2ed8e73 --- /dev/null +++ b/example/multiple-files-same-resource-type-test/file-two.tf @@ -0,0 +1,4 @@ +resource "random_integer" "two" { + min = 1 + max = 4 +} \ No newline at end of file diff --git a/graph.go b/graph.go index c1185ea..2490d1f 100644 --- a/graph.go +++ b/graph.go @@ -113,10 +113,17 @@ func (r *rover) addNodes(base string, parent string, nodeMap map[string]Node, re label := l[len(l)-1] midParent := parent + if midParent == mid { - midParent = strings.TrimSuffix(midParent, fmt.Sprintf(".%v", label)) + midParent = nodeMap[midParent].Data.Parent + } + + if nodeMap[midParent].Data.Type == ResourceTypeFile { + mid = fmt.Sprintf("%s {%s}", mid, nodeMap[parent].Data.Label) } + //fmt.Printf(midParent + " - " + mid + "\n") + // Append resource type nmo = append(nmo, mid) nodeMap[mid] = Node{ @@ -145,6 +152,7 @@ func (r *rover) addNodes(base string, parent string, nodeMap map[string]Node, re }, Classes: fmt.Sprintf("%s-name %s", re.Type, mrChange), } + //fmt.Printf(id + " - " + mid + "\n") nmo = append(nmo, r.addNodes(base, id, nodeMap, re.Children)...) diff --git a/ui/dist/css/app.0d1776b7.css b/ui/dist/css/app.620d0115.css similarity index 93% rename from ui/dist/css/app.0d1776b7.css rename to ui/dist/css/app.620d0115.css index 9eebc1b..37f62d4 100644 --- a/ui/dist/css/app.0d1776b7.css +++ b/ui/dist/css/app.620d0115.css @@ -1 +1 @@ -.title[data-v-bfab64d6]{padding:0}#resource-details[data-v-4e3cd299]{position:sticky;top:1em;min-width:0}.tab-container[data-v-4e3cd299]{max-height:70vh;overflow:scroll}fieldset[data-v-4e3cd299]{margin-bottom:2em}.tabs a[data-v-4e3cd299]:hover{cursor:pointer}.resource-detail[data-v-4e3cd299],.tab-container[data-v-4e3cd299]{padding:1em 0}.tabs .disabled[data-v-4e3cd299]:hover{cursor:not-allowed;border-bottom:4px solid var(--color-lightGrey)}p[data-v-4e3cd299]{word-break:break-all;white-space:normal}a[data-v-4e3cd299]{font-weight:700;border-width:4px!important}.key[data-v-4e3cd299]{font-weight:700;font-size:.9em;text-transform:uppercase;margin:0}dd[data-v-4e3cd299]{display:inline-block}dt.value[data-v-4e3cd299]{margin:.5em 0 1em 0;padding:.5em;font-size:1em;background-color:#f4ecff;color:#000;display:flex;align-items:center;justify-content:space-between}.resource-id[data-v-4e3cd299]{word-wrap:break-word;overflow:hidden;width:100%}.resource-action[data-v-4e3cd299]{float:right}.is-child-resource[data-v-4e3cd299]{display:block}.is-child-resource[data-v-4e3cd299],.unknown-value[data-v-4e3cd299]{text-align:center;font-weight:700;font-style:italic}.copy-button[data-v-4e3cd299]{font-size:.9em;padding:1rem;align-items:flex-end;background-color:#8450ba;color:#fff;font-weight:700}.copy-button[data-v-4e3cd299]:hover{cursor:pointer}#cytoscape-div{height:1000px!important;background-color:#f8f8f8!important}.node{width:14em;font-size:2em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;padding:.5em .5em;border-radius:.25em;background-color:#fff;color:#000;font-weight:700;cursor:pointer;border:5px solid #d3d3d3}.node:hover{transform:scale(1.02)}.resource-type{width:20em;font-size:2em;height:100%}.create{background-color:#28a745}.create,.delete{color:#fff;font-weight:700;border:0}.delete{background-color:#e40707}.update{background-color:#1d7ada;color:#fff}.replace,.update{font-weight:700;border:0}.replace{background-color:#ffc107;color:#000}.output{background-color:#fff7e0;border:5px solid #ffc107}.output,.variable{color:#000;font-weight:700}.variable{background-color:#e1f0ff;border:5px solid #1d7ada}.data{background-color:#ffecec;border:5px solid #dc477d;color:#000}.data,.locals{font-weight:700}.locals{background-color:#000;color:#fff;border:0}fieldset[data-v-619b55a0]{margin-bottom:2em}.graph-enter-active[data-v-619b55a0],.graph-enter-active legend[data-v-619b55a0],.graph-leave-active[data-v-619b55a0],.graph-leave-active legend[data-v-619b55a0]{transition:all .2s ease;overflow:hidden}.graph-enter[data-v-619b55a0],.graph-enter legend[data-v-619b55a0],.graph-leave-to[data-v-619b55a0],.graph-leave-to legend[data-v-619b55a0]{height:0;padding:0;margin:0;opacity:0}.card[data-v-2a9b2d96]{margin:.5em 0;border-radius:0;border-width:2px;font-weight:400}.tag[data-v-2a9b2d96]{border:1px solid var(--color-grey)}.card.child[data-v-2a9b2d96]{margin:0 -1.3em}.card.child[data-v-2a9b2d96]:hover{border-width:2px;border-left:0 solid;border-right:0 solid;filter:brightness(.95)}.col[data-v-2a9b2d96]{margin-bottom:0}.resource-main[data-v-2a9b2d96]:hover{cursor:pointer;filter:brightness(.95)}.child.resource-main[data-v-2a9b2d96]{border-left:1px solid;border-right:1px solid}.dark .resource-main[data-v-2a9b2d96]:hover{cursor:pointer;background-color:#0d032b}.dark .child.resource-main[data-v-2a9b2d96]{background-color:#1c1c3f}.dark .child.resource-main[data-v-2a9b2d96]:hover{background-color:#131342!important}.resource-col[data-v-2a9b2d96]{margin-left:.1em}.resource-action[data-v-2a9b2d96]{float:left;margin:0;margin-right:.5em}.file-expand-icon[data-v-2a9b2d96],.resource-action-icon[data-v-2a9b2d96]{width:1em;padding-top:.1em}.dark .multi-tag[data-v-2a9b2d96]{filter:invert(100%)}.resource-name[data-v-2a9b2d96]{width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.provider-icon-tag[data-v-2a9b2d96]{float:left;margin:0 1em 0 0!important;font-weight:700}.provider-icon[data-v-2a9b2d96]{float:left;width:1.75em;margin:-.2em .5em 0 -.3em!important}.provider-resource-name[data-v-2a9b2d96]{width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.line-number[data-v-2a9b2d96]{display:inline-block;min-width:2em}.resources-enter-active[data-v-2a9b2d96],.resources-leave-active[data-v-2a9b2d96]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-2a9b2d96],.resources-leave-to[data-v-2a9b2d96]{height:0;padding:0;margin:0;opacity:0}.module[data-v-2a9b2d96]{border:2px solid #8450ba}.resource-card.create[data-v-2a9b2d96]{border-color:#28a745}.resource-card.output[data-v-2a9b2d96]{border-color:#ffc107}.resource-card.delete[data-v-2a9b2d96]{border-color:#e40707}.resource-card.update[data-v-2a9b2d96]{border-color:#1d7ada}.resource-card.replace[data-v-2a9b2d96]{border-color:#ffc107}.resource-type-card[data-v-2a9b2d96]{margin-top:.5em!important}.file[data-v-3d7b7730]{margin-bottom:1em}.file-name[data-v-3d7b7730]{margin-bottom:0;margin-top:.25em}.file-name[data-v-3d7b7730]:hover{cursor:pointer}.resources-enter-active[data-v-3d7b7730],.resources-leave-active[data-v-3d7b7730]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-3d7b7730],.resources-leave-to[data-v-3d7b7730]{height:0;padding:0;margin:0;opacity:0}.file-expand-icon[data-v-3d7b7730]{width:1em;padding-top:.1em;margin-left:1.4em}fieldset[data-v-1cda27d5]{margin-bottom:2em}#app[data-v-5cf12920]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0 auto;margin-top:60px;width:90%}.node[data-v-5cf12920]{display:inline-block;margin:0 1%;width:48%;font-size:.9em}.module[data-v-5cf12920]{border:5px solid #8450ba;color:#8450ba} \ No newline at end of file +.title[data-v-bfab64d6]{padding:0}#resource-details[data-v-4e3cd299]{position:sticky;top:1em;min-width:0}.tab-container[data-v-4e3cd299]{max-height:70vh;overflow:scroll}fieldset[data-v-4e3cd299]{margin-bottom:2em}.tabs a[data-v-4e3cd299]:hover{cursor:pointer}.resource-detail[data-v-4e3cd299],.tab-container[data-v-4e3cd299]{padding:1em 0}.tabs .disabled[data-v-4e3cd299]:hover{cursor:not-allowed;border-bottom:4px solid var(--color-lightGrey)}p[data-v-4e3cd299]{word-break:break-all;white-space:normal}a[data-v-4e3cd299]{font-weight:700;border-width:4px!important}.key[data-v-4e3cd299]{font-weight:700;font-size:.9em;text-transform:uppercase;margin:0}dd[data-v-4e3cd299]{display:inline-block}dt.value[data-v-4e3cd299]{margin:.5em 0 1em 0;padding:.5em;font-size:1em;background-color:#f4ecff;color:#000;display:flex;align-items:center;justify-content:space-between}.resource-id[data-v-4e3cd299]{word-wrap:break-word;overflow:hidden;width:100%}.resource-action[data-v-4e3cd299]{float:right}.is-child-resource[data-v-4e3cd299]{display:block}.is-child-resource[data-v-4e3cd299],.unknown-value[data-v-4e3cd299]{text-align:center;font-weight:700;font-style:italic}.copy-button[data-v-4e3cd299]{font-size:.9em;padding:1rem;align-items:flex-end;background-color:#8450ba;color:#fff;font-weight:700}.copy-button[data-v-4e3cd299]:hover{cursor:pointer}#cytoscape-div{height:1000px!important;background-color:#f8f8f8!important}.node{width:14em;font-size:2em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;padding:.5em .5em;border-radius:.25em;background-color:#fff;color:#000;font-weight:700;cursor:pointer;border:5px solid #d3d3d3}.node:hover{transform:scale(1.02)}.resource-type{width:20em;font-size:2em;height:100%}.create{background-color:#28a745}.create,.delete{color:#fff;font-weight:700;border:0}.delete{background-color:#e40707}.update{background-color:#1d7ada;color:#fff}.replace,.update{font-weight:700;border:0}.replace{background-color:#ffc107;color:#000}.output{background-color:#fff7e0;border:5px solid #ffc107}.output,.variable{color:#000;font-weight:700}.variable{background-color:#e1f0ff;border:5px solid #1d7ada}.data{background-color:#ffecec;border:5px solid #dc477d;color:#000}.data,.locals{font-weight:700}.locals{background-color:#000;color:#fff;border:0}fieldset[data-v-11c2dcd0]{margin-bottom:2em}.graph-enter-active[data-v-11c2dcd0],.graph-enter-active legend[data-v-11c2dcd0],.graph-leave-active[data-v-11c2dcd0],.graph-leave-active legend[data-v-11c2dcd0]{transition:all .2s ease;overflow:hidden}.graph-enter[data-v-11c2dcd0],.graph-enter legend[data-v-11c2dcd0],.graph-leave-to[data-v-11c2dcd0],.graph-leave-to legend[data-v-11c2dcd0]{height:0;padding:0;margin:0;opacity:0}.card[data-v-2a9b2d96]{margin:.5em 0;border-radius:0;border-width:2px;font-weight:400}.tag[data-v-2a9b2d96]{border:1px solid var(--color-grey)}.card.child[data-v-2a9b2d96]{margin:0 -1.3em}.card.child[data-v-2a9b2d96]:hover{border-width:2px;border-left:0 solid;border-right:0 solid;filter:brightness(.95)}.col[data-v-2a9b2d96]{margin-bottom:0}.resource-main[data-v-2a9b2d96]:hover{cursor:pointer;filter:brightness(.95)}.child.resource-main[data-v-2a9b2d96]{border-left:1px solid;border-right:1px solid}.dark .resource-main[data-v-2a9b2d96]:hover{cursor:pointer;background-color:#0d032b}.dark .child.resource-main[data-v-2a9b2d96]{background-color:#1c1c3f}.dark .child.resource-main[data-v-2a9b2d96]:hover{background-color:#131342!important}.resource-col[data-v-2a9b2d96]{margin-left:.1em}.resource-action[data-v-2a9b2d96]{float:left;margin:0;margin-right:.5em}.file-expand-icon[data-v-2a9b2d96],.resource-action-icon[data-v-2a9b2d96]{width:1em;padding-top:.1em}.dark .multi-tag[data-v-2a9b2d96]{filter:invert(100%)}.resource-name[data-v-2a9b2d96]{width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.provider-icon-tag[data-v-2a9b2d96]{float:left;margin:0 1em 0 0!important;font-weight:700}.provider-icon[data-v-2a9b2d96]{float:left;width:1.75em;margin:-.2em .5em 0 -.3em!important}.provider-resource-name[data-v-2a9b2d96]{width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;float:left}.line-number[data-v-2a9b2d96]{display:inline-block;min-width:2em}.resources-enter-active[data-v-2a9b2d96],.resources-leave-active[data-v-2a9b2d96]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-2a9b2d96],.resources-leave-to[data-v-2a9b2d96]{height:0;padding:0;margin:0;opacity:0}.module[data-v-2a9b2d96]{border:2px solid #8450ba}.resource-card.create[data-v-2a9b2d96]{border-color:#28a745}.resource-card.output[data-v-2a9b2d96]{border-color:#ffc107}.resource-card.delete[data-v-2a9b2d96]{border-color:#e40707}.resource-card.update[data-v-2a9b2d96]{border-color:#1d7ada}.resource-card.replace[data-v-2a9b2d96]{border-color:#ffc107}.resource-type-card[data-v-2a9b2d96]{margin-top:.5em!important}.file[data-v-3d7b7730]{margin-bottom:1em}.file-name[data-v-3d7b7730]{margin-bottom:0;margin-top:.25em}.file-name[data-v-3d7b7730]:hover{cursor:pointer}.resources-enter-active[data-v-3d7b7730],.resources-leave-active[data-v-3d7b7730]{transition:all .2s ease;overflow:hidden}.resources-enter[data-v-3d7b7730],.resources-leave-to[data-v-3d7b7730]{height:0;padding:0;margin:0;opacity:0}.file-expand-icon[data-v-3d7b7730]{width:1em;padding-top:.1em;margin-left:1.4em}fieldset[data-v-1cda27d5]{margin-bottom:2em}#app[data-v-5cf12920]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0 auto;margin-top:60px;width:90%}.node[data-v-5cf12920]{display:inline-block;margin:0 1%;width:48%;font-size:.9em}.module[data-v-5cf12920]{border:5px solid #8450ba;color:#8450ba} \ No newline at end of file diff --git a/ui/dist/index.html b/ui/dist/index.html index 8efb156..c7ff6d8 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -1 +1 @@ -ui
\ No newline at end of file +ui
\ No newline at end of file diff --git a/ui/dist/js/app.3f69df0b.js b/ui/dist/js/app.3f69df0b.js new file mode 100644 index 0000000..bfb3abe --- /dev/null +++ b/ui/dist/js/app.3f69df0b.js @@ -0,0 +1,2 @@ +(function(e){function t(t){for(var n,s,c=t[0],i=t[1],l=t[2],u=0,f=[];u1?"replace":n.actions[0]),r.before=n.before?n.before:null,r.after=n.after?n.after:{},"string"===typeof r.before&&(r.before={value:r.before}),"string"===typeof r.after&&(r.after={value:r.after}),n["after_unknown"]&&(r.after["value"]={unknown:!0}),r}return r={}}if(t.states[e]&&t.states[e].change){var o=t.states[e].change;o.actions&&(r.action=o.actions.length>1?"replace":o.actions[0]),r.before=o.before?o.before:{},r.after=o.after?o.after:{},o["after_unknown"]&&Object.keys(o["after_unknown"]).forEach((function(e){r.after[e]={unknown:!0}}))}return r}},computed:{resource:function(){var e="";e=this.resourceID.startsWith("Resources/")?this.resourceID.split("/").join("."):this.resourceID.split("/").slice(-2).join(".");var t=e.split("."),r=t.length-1,n=t.join(".");return this.resourceID.startsWith("Resources/")&&(n=t.slice(1).join(".")),{fileName:"".concat(t[0],".").concat(t[1]),id:n,resource_type:t[r-1],resource_name:t[r]}},primitiveType:function(){switch(this.resource.resource_type){case"output":case"var":case"local":return this.resource.resource_type;default:return this.resource.id.startsWith("data.")?"data":"resource"}},isChild:function(){return null!=this.resource.id.match(/\[[^[\]]*\]$/g)},hasNoState:function(){return this.resource.id.includes("var.")},resourceConfig:function(){return this.getResourceConfig(this.resource.id,this.overview,this.isChild)},resourceChange:function(){return this.getResourceChange(this.resource.id,this.overview)}},watch:{resourceID:function(e){e.includes("var.")&&(this.curTab="config")}},mounted:function(){var e=this;"undefined"!==typeof rso?this.overview=rso:v.a.get("/api/rso").then((function(t){e.overview=t.data}))}},_=y,C=(r("081a"),Object(d["a"])(_,p,h,!1,null,"4e3cd299",null)),w=C.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"graph"}},[r("fieldset",[r("legend",[e._v("Graph")]),r("cytoscape",{ref:"cy",attrs:{config:e.config,preConfig:e.preConfig}})],1)])},k=[],R=(r("d81d"),r("8a79"),r("4de4"),r("21a6")),T=r("8df5"),I=r.n(T),j=r("2701"),O=r.n(j),$=r("cc5f"),N=r.n($),P={autounselectify:!0,style:[{selector:"node",style:{label:"data(label)",width:"500px","font-family":"Avenir, Helvetica, Arial, sans-serif","font-size":"2em"}},{selector:"edge",css:{"curve-style":"taxi","line-fill":"linear-gradient","line-gradient-stop-colors":"data(gradient)","line-dash-offset":24,width:10}},{selector:".basename",style:{padding:"200px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","min-height":"400px","border-width":2,"border-color":"white","background-color":"#f4ecff"}},{selector:".fname",style:{padding:"100px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","border-width":1,"border-color":"lightgrey","background-color":"white"}},{selector:".provider",style:{"text-valign":"center","text-halign":"center",padding:"1em",shape:"roundrectangle","border-width":0,color:"white","background-color":"black"}},{selector:".module",style:{padding:"100px","font-weight":"bold","text-margin-y":60,shape:"roundrectangle",color:"#8450ba","border-width":10,"border-color":"#8450ba","background-color":"white"}},{selector:".data-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".data-name",css:{"background-color":"#ffecec",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#dc477d",label:"data(label)"}},{selector:".output",css:{"background-color":"#fff7e0",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#ffc107",label:"data(label)"}},{selector:".variable",css:{"background-color":"#e1f0ff",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#1d7ada",label:"data(label)"}},{selector:".locals",css:{"background-color":"black",color:"white","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"black",label:"data(label)"}},{selector:".resource-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-parent",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-name",css:{"text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":0,color:"white","background-color":"#8450ba","text-wrap":"ellipsis","text-max-width":500}},{selector:".create",css:{"background-color":"#28a745",color:"white","font-weight":"bold"}},{selector:".delete",css:{"background-color":"#e40707",color:"white","font-weight":"bold"}},{selector:".update",css:{"background-color":"#1d7ada",color:"white","font-weight":"bold"}},{selector:".replace",css:{"background-color":"#ffc107",color:"black","font-weight":"bold"}},{selector:".no-op",css:{color:"black","border-opacity":1,"font-weight":"bold","border-width":"5px","border-color":"lightgray","background-color":"white"}},{selector:".invisible",css:{opacity:"0"}},{selector:".semitransp",css:{opacity:"0.4"}},{selector:"edge.semitransp",css:{opacity:"0"}},{selector:".visible",css:{opacity:"1"}},{selector:".dashed",css:{"line-style":"dashed","line-dash-pattern":[20,20]}}]},G={name:"Graph",data:function(){return{selectedNode:"",config:P,graph:{}}},methods:{preConfig:function(e){e.use(I.a),e.use(O.a),"function"!==typeof e("core","nodeHtmlLabel")&&e.use(N.a)},renderGraph:function(){var e=this,t=this.$refs.cy.instance,r=t.elements(),n=this.graph.nodes.map((function(e){return e.data.id}));t.remove(r),this.graph.nodes.forEach((function(e){t.add(e)})),this.graph.edges.forEach((function(e){if(!e.data.id.includes("-variable")&&!e.data.id.includes("-output")){var r=e.data.target;while(!n.includes(r)){if(r=r.split("."),r.length<2)return void console.warn("edge target",e.data.target,"not found in nodes");r.pop(),r=r.join(".")}e.data.target=r,t.add(e)}})),this.runLayouts(),t.on("click","node",(function(t){for(var r=t.target,n={id:r.data().id,in:[],out:[]},o=r.connectedEdges(),a=0;a\n
\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainNav.vue?vue&type=template&id=bfab64d6&scoped=true&\"\nimport script from \"./MainNav.vue?vue&type=script&lang=js&\"\nexport * from \"./MainNav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bfab64d6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',{attrs:{\"id\":\"resource-details\"}},[_c('legend',[_vm._v(\"Details\")]),_c('div',{staticClass:\"resource-detail\"},[(!_vm.resourceID)?_c('div',[_c('span',[_vm._v(\"Please select a resource on your right.\")])]):_c('div',[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(_vm.primitiveType))]),(_vm.resourceChange.action)?_c('span',{staticClass:\"tag is-small resource-action\"},[_vm._v(_vm._s(_vm.resourceChange.action))]):_vm._e(),_c('dt',{staticClass:\"value resource-id\"},[_vm._v(\" \"+_vm._s(_vm.resource.id)+\" \"),_c('button',{ref:\"rid\",staticClass:\"copy-button\",on:{\"click\":function($event){return _vm.copyText(_vm.resource.id, 'rid')}}},[_vm._v(\" Copy \")])]),_c('nav',{staticClass:\"tabs is-full\"},[_c('a',{class:{ active: _vm.curTab === 'config' },on:{\"click\":function($event){return _vm.selectTab('config')}}},[_vm._v(\"Config\")]),_c('a',{class:{ active: _vm.curTab === 'current', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('current')}}},[_vm._v(\"Current State\")]),_c('a',{class:{ active: _vm.curTab === 'proposed', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('proposed')}}},[_vm._v(\"Proposed State\")])]),(_vm.curTab === 'config')?_c('div',{staticClass:\"tab-container\"},[(\n _vm.resourceConfig.isChild == 'rover-for-each-child-resource-true'\n )?_c('span',{staticClass:\"is-child-resource\"},[_vm._v(\"Please check parent resource\")]):_vm._l((_vm.resourceConfig),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_c('span',[_vm._v(_vm._s(_vm.getConfigValue(val)))]),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getConfigValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])})],2):_vm._e(),(_vm.curTab === 'current')?_c('div',{staticClass:\"tab-container\"},[(_vm.resourceChange.before)?_c('span',_vm._l((_vm.resourceChange.before),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_vm._v(\" \"+_vm._s(_vm.getBeforeValue(val))+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])}),0):_c('span',[_vm._v(\"Resource doesn't currently exist.\")])]):_vm._e(),(_vm.curTab === 'proposed')?_c('div',{staticClass:\"tab-container\"},_vm._l((_vm.resourceChange.after),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),(val)?_c('dt',{staticClass:\"value\",class:{ 'unknown-value': val.unknown }},[_vm._v(\" \"+_vm._s(val.unknown ? \"Value Unknown\" : val)+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])]):_c('dt',{staticClass:\"value\"},[_vm._v(\"null\")])])}),0):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceDetail.vue?vue&type=template&id=4e3cd299&scoped=true&\"\nimport script from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceDetail.vue?vue&type=style&index=0&id=4e3cd299&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e3cd299\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"graph\"}},[_c('fieldset',[_c('legend',[_vm._v(\"Graph\")]),_c('cytoscape',{ref:\"cy\",attrs:{\"config\":_vm.config,\"preConfig\":_vm.preConfig}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Graph.vue?vue&type=template&id=11c2dcd0&scoped=true&\"\nimport script from \"./Graph.vue?vue&type=script&lang=js&\"\nexport * from \"./Graph.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Graph.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./Graph.vue?vue&type=style&index=1&id=11c2dcd0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11c2dcd0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',[_c('legend',[_vm._v(\"Resources\")]),_c('File'),_vm._l((_vm.map.root),function(properties,fileName){return _c('div',{key:fileName},[_c('File',{attrs:{\"fileName\":fileName,\"resources\":properties.children},on:{\"selectResource\":_vm.selectResource}})],1)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.fileName)?_c('div',{staticClass:\"file\"},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"file-expand-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}}),_c('div',{staticClass:\"col-11 file-name\"},[_c('strong',{staticClass:\"text-lowercase\"},[_vm._v(_vm._s(_vm.fileName))])])]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.selectResource}}):_vm._e()],1)]})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card resource-main\",class:[\n _vm.isChild ? 'child' : '',\n (\"resource-card \" + (_vm.content.type)),\n _vm.content.change_action != null ? _vm.content.change_action : '',\n _vm.content.change_action != null ? '' : 'resource-type-card' ]},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){return _vm.handleClick(_vm.id)}}},[_c('div',{staticClass:\"col col-6 resource-col\"},[_c('p',{staticClass:\"is-small resource-action\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"multi-tag resource-action-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}})]),_c('p',{staticClass:\"resource-name\"},[_vm._v(\" \"+_vm._s(_vm.content.name)+\" \")])]),_c('div',{staticClass:\"col col-4\"},[(_vm.resourceProvider)?[(_vm.providerIcon[_vm.resourceProvider])?_c('img',{staticClass:\"provider-icon\",attrs:{\"src\":_vm.providerIcon[_vm.resourceProvider]}}):_c('span',{staticClass:\"tag is-small provider-icon-tag\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider[0])+\" \")])]:_vm._e(),_c('p',{staticClass:\"provider-resource-name\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider ? (_vm.resourceProvider + \".\") : \"\")+_vm._s(_vm.content.resource_type ? _vm.content.resource_type : \"\")+\" \")])],2),(_vm.content.line)?_c('div',{staticClass:\"col col-2 text-right\"},[_vm._v(\" Line: # \"),_c('span',{staticClass:\"line-number\"},[_vm._v(_vm._s(_vm.content.line))])]):_vm._e()]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.handleClick}}):_vm._e()],1)]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceCard.vue?vue&type=template&id=2a9b2d96&scoped=true&\"\nimport script from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9b2d96\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./File.vue?vue&type=template&id=3d7b7730&scoped=true&\"\nimport script from \"./File.vue?vue&type=script&lang=js&\"\nexport * from \"./File.vue?vue&type=script&lang=js&\"\nimport style0 from \"./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d7b7730\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Explorer.vue?vue&type=template&id=1cda27d5&scoped=true&\"\nimport script from \"./Explorer.vue?vue&type=script&lang=js&\"\nexport * from \"./Explorer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1cda27d5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5cf12920&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cf12920\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport App from './App.vue';\nimport VueCytoscape from 'vue-cytoscape';\nimport VueMeta from 'vue-meta';\n\nVue.use(VueCytoscape);\nVue.use(VueMeta);\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n","module.exports = __webpack_public_path__ + \"img/alert-triangle.d88bf755.svg\";","module.exports = __webpack_public_path__ + \"img/minus.f2deefda.svg\";","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/plus.b121a385.svg\";","module.exports = __webpack_public_path__ + \"img/gcp.2bdb5143.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/aws.082444af.png\";","module.exports = __webpack_public_path__ + \"img/refresh-cw.286819b2.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/arrow-up-circle.c7e27cfe.svg\";","module.exports = __webpack_public_path__ + \"img/helm.0d1950ff.png\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=1&id=11c2dcd0&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/azure.0386fb3d.png\";"],"sourceRoot":""} \ No newline at end of file diff --git a/ui/dist/js/app.d7baae31.js b/ui/dist/js/app.d7baae31.js deleted file mode 100644 index 7ba2746..0000000 --- a/ui/dist/js/app.d7baae31.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){function t(t){for(var n,s,c=t[0],i=t[1],l=t[2],u=0,f=[];u1?"replace":n.actions[0]),r.before=n.before?n.before:null,r.after=n.after?n.after:{},"string"===typeof r.before&&(r.before={value:r.before}),"string"===typeof r.after&&(r.after={value:r.after}),n["after_unknown"]&&(r.after["value"]={unknown:!0}),r}return r={}}if(t.states[e]&&t.states[e].change){var o=t.states[e].change;o.actions&&(r.action=o.actions.length>1?"replace":o.actions[0]),r.before=o.before?o.before:{},r.after=o.after?o.after:{},o["after_unknown"]&&Object.keys(o["after_unknown"]).forEach((function(e){r.after[e]={unknown:!0}}))}return r}},computed:{resource:function(){var e="";e=this.resourceID.startsWith("Resources/")?this.resourceID.split("/").join("."):this.resourceID.split("/").slice(-2).join(".");var t=e.split("."),r=t.length-1,n=t.join(".");return this.resourceID.startsWith("Resources/")&&(n=t.slice(1).join(".")),{fileName:"".concat(t[0],".").concat(t[1]),id:n,resource_type:t[r-1],resource_name:t[r]}},primitiveType:function(){switch(this.resource.resource_type){case"output":case"var":case"local":return this.resource.resource_type;default:return this.resource.id.startsWith("data.")?"data":"resource"}},isChild:function(){return null!=this.resource.id.match(/\[[^[\]]*\]$/g)},hasNoState:function(){return this.resource.id.includes("var.")},resourceConfig:function(){return this.getResourceConfig(this.resource.id,this.overview,this.isChild)},resourceChange:function(){return this.getResourceChange(this.resource.id,this.overview)}},watch:{resourceID:function(e){e.includes("var.")&&(this.curTab="config")}},mounted:function(){var e=this;"undefined"!==typeof rso?this.overview=rso:v.a.get("/api/rso").then((function(t){e.overview=t.data}))}},_=y,C=(r("081a"),Object(d["a"])(_,p,h,!1,null,"4e3cd299",null)),w=C.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"graph"}},[r("fieldset",[r("legend",[e._v("Graph")]),r("cytoscape",{ref:"cy",attrs:{config:e.config,preConfig:e.preConfig}})],1)])},k=[],R=(r("d81d"),r("8a79"),r("4de4"),r("21a6")),T=r("8df5"),I=r.n(T),j=r("2701"),O=r.n(j),$=r("cc5f"),N=r.n($),P={autounselectify:!0,style:[{selector:"node",style:{label:"data(label)",width:"500px","font-family":"Avenir, Helvetica, Arial, sans-serif","font-size":"2em"}},{selector:"edge",css:{"curve-style":"taxi","line-fill":"linear-gradient","line-gradient-stop-colors":"data(gradient)","line-dash-offset":24,width:10}},{selector:".basename",style:{padding:"200px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","min-height":"400px","border-width":2,"border-color":"white","background-color":"#f4ecff"}},{selector:".fname",style:{padding:"100px","text-margin-y":75,"font-weight":"bold",shape:"roundrectangle","border-width":1,"border-color":"lightgrey","background-color":"white"}},{selector:".provider",style:{"text-valign":"center","text-halign":"center",padding:"1em",shape:"roundrectangle","border-width":0,color:"white","background-color":"black"}},{selector:".module",style:{padding:"100px","font-weight":"bold","text-margin-y":60,shape:"roundrectangle",color:"#8450ba","border-width":10,"border-color":"#8450ba","background-color":"white"}},{selector:".data-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".data-name",css:{"background-color":"#ffecec",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#dc477d",label:"data(label)"}},{selector:".output",css:{"background-color":"#fff7e0",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#ffc107",label:"data(label)"}},{selector:".variable",css:{"background-color":"#e1f0ff",color:"black","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"#1d7ada",label:"data(label)"}},{selector:".locals",css:{"background-color":"black",color:"white","font-weight":"bold","text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":1,"border-width":5,"border-color":"black",label:"data(label)"}},{selector:".resource-type",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-parent",style:{padding:"10%",width:"label","font-weight":"bold","text-background-color":"white","text-background-opacity":1,"text-background-padding":"2em","text-margin-y":15,shape:"roundrectangle","border-width":"5px","border-color":"black","background-color":"white"}},{selector:".resource-name",css:{"text-valign":"center","text-halign":"center",padding:"1.5em",shape:"roundrectangle","border-opacity":0,color:"white","background-color":"#8450ba","text-wrap":"ellipsis","text-max-width":500}},{selector:".create",css:{"background-color":"#28a745",color:"white","font-weight":"bold"}},{selector:".delete",css:{"background-color":"#e40707",color:"white","font-weight":"bold"}},{selector:".update",css:{"background-color":"#1d7ada",color:"white","font-weight":"bold"}},{selector:".replace",css:{"background-color":"#ffc107",color:"black","font-weight":"bold"}},{selector:".no-op",css:{color:"black","border-opacity":1,"font-weight":"bold","border-width":"5px","border-color":"lightgray","background-color":"white"}},{selector:".invisible",css:{opacity:"0"}},{selector:".semitransp",css:{opacity:"0.4"}},{selector:"edge.semitransp",css:{opacity:"0"}},{selector:".visible",css:{opacity:"1"}},{selector:".dashed",css:{"line-style":"dashed","line-dash-pattern":[20,20]}}]},G={name:"Graph",data:function(){return{selectedNode:"",config:P,graph:{}}},methods:{preConfig:function(e){e.use(I.a),e.use(O.a),"function"!==typeof e("core","nodeHtmlLabel")&&e.use(N.a)},renderGraph:function(){var e=this,t=this.$refs.cy.instance,r=t.elements(),n=this.graph.nodes.map((function(e){return e.data.id}));t.remove(r),this.graph.nodes.forEach((function(e){t.add(e)})),this.graph.edges.forEach((function(e){if(!e.data.id.includes("-variable")&&!e.data.id.includes("-output")){var r=e.data.target;while(!n.includes(r)){if(r=r.split("."),r.length<2)return void console.warn("edge target",e.data.target,"not found in nodes");r.pop(),r=r.join(".")}e.data.target=r,t.add(e)}})),this.runLayouts(),t.on("click","node",(function(t){for(var r=t.target,n={id:r.data().id,in:[],out:[]},o=r.connectedEdges(),a=0;a\n \n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainNav.vue?vue&type=template&id=bfab64d6&scoped=true&\"\nimport script from \"./MainNav.vue?vue&type=script&lang=js&\"\nexport * from \"./MainNav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bfab64d6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',{attrs:{\"id\":\"resource-details\"}},[_c('legend',[_vm._v(\"Details\")]),_c('div',{staticClass:\"resource-detail\"},[(!_vm.resourceID)?_c('div',[_c('span',[_vm._v(\"Please select a resource on your right.\")])]):_c('div',[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(_vm.primitiveType))]),(_vm.resourceChange.action)?_c('span',{staticClass:\"tag is-small resource-action\"},[_vm._v(_vm._s(_vm.resourceChange.action))]):_vm._e(),_c('dt',{staticClass:\"value resource-id\"},[_vm._v(\" \"+_vm._s(_vm.resource.id)+\" \"),_c('button',{ref:\"rid\",staticClass:\"copy-button\",on:{\"click\":function($event){return _vm.copyText(_vm.resource.id, 'rid')}}},[_vm._v(\" Copy \")])]),_c('nav',{staticClass:\"tabs is-full\"},[_c('a',{class:{ active: _vm.curTab === 'config' },on:{\"click\":function($event){return _vm.selectTab('config')}}},[_vm._v(\"Config\")]),_c('a',{class:{ active: _vm.curTab === 'current', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('current')}}},[_vm._v(\"Current State\")]),_c('a',{class:{ active: _vm.curTab === 'proposed', disabled: _vm.hasNoState },on:{\"click\":function($event){return _vm.selectTab('proposed')}}},[_vm._v(\"Proposed State\")])]),(_vm.curTab === 'config')?_c('div',{staticClass:\"tab-container\"},[(\n _vm.resourceConfig.isChild == 'rover-for-each-child-resource-true'\n )?_c('span',{staticClass:\"is-child-resource\"},[_vm._v(\"Please check parent resource\")]):_vm._l((_vm.resourceConfig),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_c('span',[_vm._v(_vm._s(_vm.getConfigValue(val)))]),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getConfigValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])})],2):_vm._e(),(_vm.curTab === 'current')?_c('div',{staticClass:\"tab-container\"},[(_vm.resourceChange.before)?_c('span',_vm._l((_vm.resourceChange.before),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),_c('dt',{staticClass:\"value\"},[_vm._v(\" \"+_vm._s(_vm.getBeforeValue(val))+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])])])}),0):_c('span',[_vm._v(\"Resource doesn't currently exist.\")])]):_vm._e(),(_vm.curTab === 'proposed')?_c('div',{staticClass:\"tab-container\"},_vm._l((_vm.resourceChange.after),function(val,k){return _c('div',{key:k},[_c('dd',{staticClass:\"key\"},[_vm._v(_vm._s(k))]),(val)?_c('dt',{staticClass:\"value\",class:{ 'unknown-value': val.unknown }},[_vm._v(\" \"+_vm._s(val.unknown ? \"Value Unknown\" : val)+\" \"),_c('button',{ref:((_vm.resource.id) + \"-\" + k),refInFor:true,staticClass:\"copy-button\",on:{\"click\":function($event){_vm.copyText(_vm.getBeforeValue(val), ((_vm.resource.id) + \"-\" + k))}}},[_vm._v(\" Copy \")])]):_c('dt',{staticClass:\"value\"},[_vm._v(\"null\")])])}),0):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceDetail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceDetail.vue?vue&type=template&id=4e3cd299&scoped=true&\"\nimport script from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceDetail.vue?vue&type=style&index=0&id=4e3cd299&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e3cd299\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"graph\"}},[_c('fieldset',[_c('legend',[_vm._v(\"Graph\")]),_c('cytoscape',{ref:\"cy\",attrs:{\"config\":_vm.config,\"preConfig\":_vm.preConfig}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Graph.vue?vue&type=template&id=619b55a0&scoped=true&\"\nimport script from \"./Graph.vue?vue&type=script&lang=js&\"\nexport * from \"./Graph.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Graph.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./Graph.vue?vue&type=style&index=1&id=619b55a0&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"619b55a0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',[_c('legend',[_vm._v(\"Resources\")]),_c('File'),_vm._l((_vm.map.root),function(properties,fileName){return _c('div',{key:fileName},[_c('File',{attrs:{\"fileName\":fileName,\"resources\":properties.children},on:{\"selectResource\":_vm.selectResource}})],1)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.fileName)?_c('div',{staticClass:\"file\"},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"file-expand-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}}),_c('div',{staticClass:\"col-11 file-name\"},[_c('strong',{staticClass:\"text-lowercase\"},[_vm._v(_vm._s(_vm.fileName))])])]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.selectResource}}):_vm._e()],1)]})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card resource-main\",class:[\n _vm.isChild ? 'child' : '',\n (\"resource-card \" + (_vm.content.type)),\n _vm.content.change_action != null ? _vm.content.change_action : '',\n _vm.content.change_action != null ? '' : 'resource-type-card' ]},[_c('div',{staticClass:\"row\",on:{\"click\":function($event){return _vm.handleClick(_vm.id)}}},[_c('div',{staticClass:\"col col-6 resource-col\"},[_c('p',{staticClass:\"is-small resource-action\",on:{\"click\":function($event){_vm.showChildren = !_vm.showChildren}}},[_c('img',{staticClass:\"multi-tag resource-action-icon\",attrs:{\"src\":_vm.expandIcons[_vm.expandIcon]}})]),_c('p',{staticClass:\"resource-name\"},[_vm._v(\" \"+_vm._s(_vm.content.name)+\" \")])]),_c('div',{staticClass:\"col col-4\"},[(_vm.resourceProvider)?[(_vm.providerIcon[_vm.resourceProvider])?_c('img',{staticClass:\"provider-icon\",attrs:{\"src\":_vm.providerIcon[_vm.resourceProvider]}}):_c('span',{staticClass:\"tag is-small provider-icon-tag\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider[0])+\" \")])]:_vm._e(),_c('p',{staticClass:\"provider-resource-name\"},[_vm._v(\" \"+_vm._s(_vm.resourceProvider ? (_vm.resourceProvider + \".\") : \"\")+_vm._s(_vm.content.resource_type ? _vm.content.resource_type : \"\")+\" \")])],2),(_vm.content.line)?_c('div',{staticClass:\"col col-2 text-right\"},[_vm._v(\" Line: # \"),_c('span',{staticClass:\"line-number\"},[_vm._v(_vm._s(_vm.content.line))])]):_vm._e()]),_vm._l((_vm.sortedResources),function(resource){return [_c('transition-group',{key:resource[0],attrs:{\"name\":\"resources\"}},[(_vm.showChildren)?_c('resource-card',{key:resource[0],attrs:{\"id\":resource[0],\"content\":resource[1],\"isChild\":false,\"handle-click\":_vm.handleClick}}):_vm._e()],1)]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceCard.vue?vue&type=template&id=2a9b2d96&scoped=true&\"\nimport script from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9b2d96\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./File.vue?vue&type=template&id=3d7b7730&scoped=true&\"\nimport script from \"./File.vue?vue&type=script&lang=js&\"\nexport * from \"./File.vue?vue&type=script&lang=js&\"\nimport style0 from \"./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d7b7730\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Explorer.vue?vue&type=template&id=1cda27d5&scoped=true&\"\nimport script from \"./Explorer.vue?vue&type=script&lang=js&\"\nexport * from \"./Explorer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1cda27d5\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5cf12920&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cf12920\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue';\nimport App from './App.vue';\nimport VueCytoscape from 'vue-cytoscape';\nimport VueMeta from 'vue-meta';\n\nVue.use(VueCytoscape);\nVue.use(VueMeta);\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n","module.exports = __webpack_public_path__ + \"img/alert-triangle.d88bf755.svg\";","module.exports = __webpack_public_path__ + \"img/minus.f2deefda.svg\";","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=5cf12920&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Explorer.vue?vue&type=style&index=0&id=1cda27d5&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/plus.b121a385.svg\";","module.exports = __webpack_public_path__ + \"img/gcp.2bdb5143.png\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./File.vue?vue&type=style&index=0&id=3d7b7730&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=1&id=619b55a0&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCard.vue?vue&type=style&index=0&id=2a9b2d96&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/aws.082444af.png\";","module.exports = __webpack_public_path__ + \"img/refresh-cw.286819b2.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Graph.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainNav.vue?vue&type=style&index=0&id=bfab64d6&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/arrow-up-circle.c7e27cfe.svg\";","module.exports = __webpack_public_path__ + \"img/helm.0d1950ff.png\";","module.exports = __webpack_public_path__ + \"img/azure.0386fb3d.png\";"],"sourceRoot":""} \ No newline at end of file diff --git a/ui/src/components/Graph/Graph.vue b/ui/src/components/Graph/Graph.vue index 77b2bbd..15ab819 100644 --- a/ui/src/components/Graph/Graph.vue +++ b/ui/src/components/Graph/Graph.vue @@ -511,7 +511,7 @@ export default { } else { axios.get(`/api/graph`).then((response) => { this.graph = response.data; - console.log(this.graph) + //console.log(this.graph) this.renderGraph(); }); }