8 lines
1.8 KiB
JavaScript
8 lines
1.8 KiB
JavaScript
/*!
|
|
* vue-github-badge v1.0.1
|
|
* (c) 2017-present egoist <0x142857@gmail.com>
|
|
* Released under the MIT License.
|
|
*/
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.GitHubBadge=e()}(this,function(){"use strict";function t(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}var e=/^(attrs|props|on|nativeOn|class|style|hook)$/,i=function(i){return i.reduce(function(i,r){var n,o,s,a,f;for(s in r)if(n=i[s],o=r[s],n&&e.test(s))if("class"===s&&("string"==typeof n&&(f=n,i[s]=n={},n[f]=!0),"string"==typeof o&&(f=o,r[s]=o={},o[f]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)n[a]=t(n[a],o[a]);else if(Array.isArray(n))i[s]=n.concat(o);else if(Array.isArray(o))i[s]=[n].concat(o);else for(a in o)n[a]=o[a];else i[s]=r[s];return i},{})};return{name:"github-badge",functional:!0,props:{slug:{type:String,required:!0},width:{type:Number,default:36},height:{type:Number,default:36},fill:{type:String,default:"black"}},render:function(t,e){var r=e.props,n=r.slug,o=r.height,s=r.width,a=r.fill;return t("a",i([{style:{position:"fixed",top:"1rem",right:"1rem",zIndex:9999},attrs:{href:"https://github.com/"+n,target:"_blank"}},e.data]),[t("svg",{attrs:{id:"i-github",viewBox:"0 0 64 64",width:o,height:s}},[t("path",{attrs:{"stroke-width":"0",fill:a,d:"M32 0 C14 0 0 14 0 32 0 53 19 62 22 62 24 62 24 61 24 60 L24 55 C17 57 14 53 13 50 13 50 13 49 11 47 10 46 6 44 10 44 13 44 15 48 15 48 18 52 22 51 24 50 24 48 26 46 26 46 18 45 12 42 12 31 12 27 13 24 15 22 15 22 13 18 15 13 15 13 20 13 24 17 27 15 37 15 40 17 44 13 49 13 49 13 51 20 49 22 49 22 51 24 52 27 52 31 52 42 45 45 38 46 39 47 40 49 40 52 L40 60 C40 61 40 62 42 62 45 62 64 53 64 32 64 14 50 0 32 0 Z"}},[])])])}}});
|
|
//# sourceMappingURL=vue-github-badge.min.js.map
|