-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 1.46 KB
/
index.js
1
(function(){"use strict";var f=function(){var e=this,i=e.$createElement,s=e._self._c||i;return s("div",{class:{currentColor:e.content.color==="text",dark:e.content.color==="dark",light:e.content.color==="light",small:e.content.size==="small",medium:e.content.size==="medium",large:e.content.size==="large",full:e.content.size==="full"},domProps:{innerHTML:e._s(e.file)}})},d=[],z="";function v(e,i,s,g,r,a,c,$){var n=typeof e=="function"?e.options:e;i&&(n.render=i,n.staticRenderFns=s,n._compiled=!0),g&&(n.functional=!0),a&&(n._scopeId="data-v-"+a);var o;if(c?(o=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!t&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},n._ssrRegister=o):r&&(o=$?function(){r.call(this,(n.functional?this.parent:this).$root.$options.shadowRoot)}:r),o)if(n.functional){n._injectStyles=o;var R=n.render;n.render=function(y,u){return o.call(u),R(y,u)}}else{var _=n.beforeCreate;n.beforeCreate=_?[].concat(_,o):[o]}return{exports:e,options:n}}const h={data(){return{file:null}},async mounted(){try{const e=await this.$api.get("file-content",{file:this.content.icon[0].uuid});this.file=e.code}catch(e){console.error(e)}}},l={};var p=v(h,f,d,!1,m,null,null,null);function m(e){for(let i in l)this[i]=l[i]}var C=function(){return p.exports}();window.panel.plugin("nerdcel/icon-sprite",{blocks:{icon:C}})})();