bnomei/kirby3-utm

View on GitHub
index.js

Summary

Maintainability
A
0 mins
Test Coverage
(function(){"use strict";const C="";function f(i,n,a,o,s,_,l,g){var r=typeof i=="function"?i.options:i;n&&(r.render=n,r.staticRenderFns=a,r._compiled=!0),o&&(r.functional=!0),_&&(r._scopeId="data-v-"+_);var e;if(l?(e=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!t&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},r._ssrRegister=e):s&&(e=g?function(){s.call(this,(r.functional?this.parent:this).$root.$options.shadowRoot)}:s),e)if(r.functional){r._injectStyles=e;var y=r.render;r.render=function(w,c){return e.call(c),y(w,c)}}else{var d=r.beforeCreate;r.beforeCreate=d?[].concat(d,e):[e]}return{exports:i,options:r}}const u={name:"Utmbar",props:{data:Array}};var h=function(){var n=this,a=n._self._c;return a("div",{staticClass:"utm-bar-wrapper"},n._l(n.data,function(o){return a("div",{class:o.theme,style:o.style,attrs:{title:o.date}},[a("div",{domProps:{innerHTML:n._s(o.amount)}})])}),0)},v=[],p=f(u,h,v,!1,null,null,null,null);const m=p.exports;panel.plugin("bnomei/utm",{fields:{utmbar:m},icons:{"utm-bars":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><g fill="currentColor" class="nc-icon-wrapper"><rect width="6" height="30" x="12" y="14" data-color="color-2" rx="1" ry="1"/><rect width="6" height="20" x="21" y="24" rx="1" ry="1"/><rect width="6" height="30" x="30" y="14" data-color="color-2" rx="1" ry="1"/><rect width="6" height="20" x="39" y="24" rx="1" ry="1"/><rect width="6" height="40" x="3" y="4" rx="1" ry="1"/></g></svg>'}})})();