v-github-activity
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,1 @@ | ||
var e=function(e){return fetch("https://api.github.com/users/"+e).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},t=function(e){return fetch("https://api.github.com/users/"+e+"/events").then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},n={name:"github-feed",props:{login:{required:!0,default:"amaury-tobias"}},data:function(){return{user:{},events:[],loading:!1,error:!1}},created:function(){var n=this;e(this.login).then(function(e){n.user=e,t(n.login).then(function(e){n.loading=!1,n.error=!1,n.events=e}).catch(function(e){console.warn(e),n.loading=!1,n.error=!0})}).catch(function(e){console.warn(e),n.loading=!1,n.error=!0})}};var a,s=function(e,t,n,a,s,i,o,r,v,l){"boolean"!=typeof o&&(v=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),a&&(d._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,v(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var m=d.render;d.render=function(e,t){return c.call(t),m(e,t)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,c):[c]}return n},i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var o={};var r=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feed"},[n("div",{staticClass:"header-wrapper"},[n("div",{staticClass:"header"},[n("octicon",{staticClass:"github-icon",attrs:{name:"mark-github",scale:"3"}}),e._v(" "),n("a",{staticClass:"github-profile",attrs:{href:e.user.html_url,target:"_blank"}},[n("div",{staticStyle:{"font-size":"26px","line-height":"30px"}},[e._v("\n "+e._s(e.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"github-username"},[e._v("\n "+e._s(e.user.login)+"\n ")])])],1)]),e._v(" "),n("div",{staticClass:"events-wrapper"},[n("div",{staticClass:"feed-list"},[n("div",{staticClass:"event-list"},e._l(e.events,function(t){return n("div",{key:t.id},["PushEvent"===t.type?n("push-event",{attrs:{event:t}}):e._e(),e._v(" "),"PullRequestEvent"===t.type?n("pull-request-event",{attrs:{event:t}}):e._e(),e._v(" "),"CreateEvent"===t.type?n("create-event",{attrs:{event:t}}):e._e(),e._v(" "),"WatchEvent"===t.type?n("watch-event",{attrs:{event:t}}):e._e(),e._v(" "),"DeleteEvent"===t.type?n("delete-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssuesEvent"===t.type?n("issues-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssueCommentEvent"===t.type?n("issue-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"ForkEvent"===t.type?n("fork-event",{attrs:{event:t}}):e._e(),e._v(" "),"CommitCommentEvent"===t.type?n("commit-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"PublicEvent"===t.type?n("public-event",{attrs:{event:t}}):e._e()],1)}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-08fdbf04_0",{source:".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}",map:void 0,media:void 0})},n,void 0,!1,void 0,function(e){return function(e,t){return function(e,t){var n=i?t.media||"default":e,s=o[n]||(o[n]={ids:new Set,styles:[]});if(!s.ids.has(e)){s.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),s.element||(s.element=document.createElement("style"),s.element.type="text/css",t.media&&s.element.setAttribute("media",t.media),void 0===a&&(a=document.head||document.getElementsByTagName("head")[0]),a.appendChild(s.element)),"styleSheet"in s.element)s.styles.push(r),s.element.styleSheet.cssText=s.styles.filter(Boolean).join("\n");else{var v=s.ids.size-1,l=document.createTextNode(r),c=s.element.childNodes;c[v]&&s.element.removeChild(c[v]),c.length?s.element.insertBefore(l,c[v]):s.element.appendChild(l)}}}(e,t)}},void 0),v=function(e,t){t=t||{};var n=new Date(e).getTime()-Date.now(),a=Math.abs(n);if(a<6e4)return"just now";var s,i,o={year:a/31536e6,month:a%31536e6/2592e6,day:a%2592e6/864e5,hour:a%864e5/36e5,minute:a%36e5/6e4},r=[],v=t.max||6e4;for(s in o)r.length<v&&((i=Math.floor(o[s]))||t.zero)&&r.push(i+" "+(1==i?s:s+"s"));return v=", ",(s=r.length)>1&&t.and&&(2==s&&(v=" "),r[--s]="and "+r[s]),i=r.join(v),t.suffix&&(i+=n<0?" ago":" from now"),i},l=function(e){return e.substr(e.length-6)},c=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-push"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n pushed to\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/tree/"+e.branch(e.event.payload.ref),target:"_blank"}},[e._v(e._s(e.branch(e.event.payload.ref)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",e._l(e.event.payload.commits,function(t){return n("li",{key:t.sha,staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+t.sha,target:"_blank"}},[e._v(e._s(e.hash(t.sha)))]),e._v("\n "+e._s(t.message)+"\n ")])}),0)],1)},staticRenderFns:[]},void 0,{name:"push-event",props:{event:{required:!0}},methods:{fromNow:v,hash:l,branch:function(e){return e.replace("refs/heads/","")}}},void 0,!1,void 0,void 0,void 0),d=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"git-pull-request"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" pull request"),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.pull_request.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e.event.payload.pull_request.merged?n("b",[e._v("[MERGED]")]):e._e(),e._v("\n "+e._s(e.event.payload.pull_request.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"pull-request-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),m=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repository"===e.event.payload.ref_type?"repo":"git-branch"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n created "+e._s(e.event.payload.ref_type)+"\n "),"repository"!==e.event.payload.ref_type?n("span",[n("a",{staticClass:"event-link",attrs:{href:e.link(e.event),target:"_blank"}},[e._v(e._s(e.event.payload.ref))]),e._v("\n at")]):e._e(),e._v(" "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"create-event",props:{event:{required:!0}},methods:{fromNow:v,link:function(e){return"branch"===e.payload.ref_type?"https://github.com/"+e.repo.name+"/tree/"+e.payload.ref:"https://github.com/"+e.repo.name+"/releases/tag/"+e.payload.ref}}},void 0,!1,void 0,void 0,void 0),_=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"trashcan"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n deleted "+e._s(e.event.payload.ref_type)+"\n "),n("a",{staticClass:"event-link",attrs:{href:"#"}},[e._v(e._s(e.event.payload.ref))]),e._v(" at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"delete-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),p=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon octicon octicon-star dashboard-event-icon",attrs:{name:"star"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n starred\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"watch-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),u=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"opened"===e.event.payload.action?"octicon-issue-opened":"octicon-issue-closed"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" issue\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e._v("\n "+e._s(e.event.payload.issue.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"issues-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),h=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon octicon dashboard-event-icon octicon-comment",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on "+e._s(e.event.payload.issue.pull_request?"pull request":"issue")+"\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"issue-comment-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),f=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-forked"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n forked\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))]),e._v("\n to\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.forkee.html_url,target:"_blank"}},[e._v(e._s(e.event.payload.forkee.full_name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"fork-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),b=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on commit\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+e.event.payload.comment.commit_id,target:"_blank"}},[e._v("\n "+e._s(e.hash(e.event.payload.comment.commit_id)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"commit-comment-event",props:{event:{required:!0}},methods:{fromNow:v,hash:l}},void 0,!1,void 0,void 0,void 0),g=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"radio-tower"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n open sourced\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"public-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0);function y(e){e.component("github-feed",r),e.component("push-event",c),e.component("pull-request-event",d),e.component("create-event",m),e.component("watch-event",p),e.component("delete-event",_),e.component("issues-event",u),e.component("issue-comment-event",h),e.component("commit-comment-event",b),e.component("fork-event",f),e.component("public-event",g)}var C={install:y},x=null;"undefined"!=typeof window?x=window.Vue:"undefined"!=typeof global&&(x=global.Vue),x&&x.use(C);export default C;export{b as CommitCommentEvent,m as CreateEvent,_ as DeleteEvent,f as ForkEvent,r as GithubFeed,h as IssueCommentEvent,u as IssuesEvent,g as PublicEvent,d as PullRequestEvent,c as PushEvent,p as WatchEvent,y as install}; | ||
var e=function(e){return fetch("https://api.github.com/users/"+e).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},t=function(e){return fetch("https://api.github.com/users/"+e+"/events").then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},n={name:"github-feed",props:{login:{required:!0}},data:function(){return{user:{},events:[],loading:!1,error:!1}},created:function(){var n=this;e(this.login).then(function(e){n.user=e,t(n.login).then(function(e){n.loading=!1,n.error=!1,n.events=e}).catch(function(e){console.warn(e),n.loading=!1,n.error=!0})}).catch(function(e){console.warn(e),n.loading=!1,n.error=!0})}};var a,s=function(e,t,n,a,s,i,o,r,v,l){"boolean"!=typeof o&&(v=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),a&&(d._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,v(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var _=d.render;d.render=function(e,t){return c.call(t),_(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,c):[c]}return n},i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var o={};var r=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feed"},[n("div",{staticClass:"header-wrapper"},[n("div",{staticClass:"header"},[n("octicon",{staticClass:"github-icon",attrs:{name:"mark-github",scale:"3"}}),e._v(" "),n("a",{staticClass:"github-profile",attrs:{href:e.user.html_url,target:"_blank"}},[n("div",{staticStyle:{"font-size":"26px","line-height":"30px"}},[e._v("\n "+e._s(e.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"github-username"},[e._v("\n "+e._s(e.user.login)+"\n ")])])],1)]),e._v(" "),n("div",{staticClass:"events-wrapper"},[n("div",{staticClass:"feed-list"},[n("div",{staticClass:"event-list"},e._l(e.events,function(t){return n("div",{key:t.id},["PushEvent"===t.type?n("push-event",{attrs:{event:t}}):e._e(),e._v(" "),"PullRequestEvent"===t.type?n("pull-request-event",{attrs:{event:t}}):e._e(),e._v(" "),"CreateEvent"===t.type?n("create-event",{attrs:{event:t}}):e._e(),e._v(" "),"WatchEvent"===t.type?n("watch-event",{attrs:{event:t}}):e._e(),e._v(" "),"DeleteEvent"===t.type?n("delete-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssuesEvent"===t.type?n("issues-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssueCommentEvent"===t.type?n("issue-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"ForkEvent"===t.type?n("fork-event",{attrs:{event:t}}):e._e(),e._v(" "),"CommitCommentEvent"===t.type?n("commit-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"PublicEvent"===t.type?n("public-event",{attrs:{event:t}}):e._e()],1)}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-413f8d63_0",{source:".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}",map:void 0,media:void 0})},n,void 0,!1,void 0,function(e){return function(e,t){return function(e,t){var n=i?t.media||"default":e,s=o[n]||(o[n]={ids:new Set,styles:[]});if(!s.ids.has(e)){s.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),s.element||(s.element=document.createElement("style"),s.element.type="text/css",t.media&&s.element.setAttribute("media",t.media),void 0===a&&(a=document.head||document.getElementsByTagName("head")[0]),a.appendChild(s.element)),"styleSheet"in s.element)s.styles.push(r),s.element.styleSheet.cssText=s.styles.filter(Boolean).join("\n");else{var v=s.ids.size-1,l=document.createTextNode(r),c=s.element.childNodes;c[v]&&s.element.removeChild(c[v]),c.length?s.element.insertBefore(l,c[v]):s.element.appendChild(l)}}}(e,t)}},void 0),v=function(e,t){t=t||{};var n=new Date(e).getTime()-Date.now(),a=Math.abs(n);if(a<6e4)return"just now";var s,i,o={year:a/31536e6,month:a%31536e6/2592e6,day:a%2592e6/864e5,hour:a%864e5/36e5,minute:a%36e5/6e4},r=[],v=t.max||6e4;for(s in o)r.length<v&&((i=Math.floor(o[s]))||t.zero)&&r.push(i+" "+(1==i?s:s+"s"));return v=", ",(s=r.length)>1&&t.and&&(2==s&&(v=" "),r[--s]="and "+r[s]),i=r.join(v),t.suffix&&(i+=n<0?" ago":" from now"),i},l=function(e){return e.substr(e.length-6)},c=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-push"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n pushed to\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/tree/"+e.branch(e.event.payload.ref),target:"_blank"}},[e._v(e._s(e.branch(e.event.payload.ref)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",e._l(e.event.payload.commits,function(t){return n("li",{key:t.sha,staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+t.sha,target:"_blank"}},[e._v(e._s(e.hash(t.sha)))]),e._v("\n "+e._s(t.message)+"\n ")])}),0)],1)},staticRenderFns:[]},void 0,{name:"push-event",props:{event:{required:!0}},methods:{fromNow:v,hash:l,branch:function(e){return e.replace("refs/heads/","")}}},void 0,!1,void 0,void 0,void 0),d=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"git-pull-request"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" pull request"),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.pull_request.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e.event.payload.pull_request.merged?n("b",[e._v("[MERGED]")]):e._e(),e._v("\n "+e._s(e.event.payload.pull_request.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"pull-request-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),_=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repository"===e.event.payload.ref_type?"repo":"git-branch"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n created "+e._s(e.event.payload.ref_type)+"\n "),"repository"!==e.event.payload.ref_type?n("span",[n("a",{staticClass:"event-link",attrs:{href:e.link(e.event),target:"_blank"}},[e._v(e._s(e.event.payload.ref))]),e._v("\n at")]):e._e(),e._v(" "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"create-event",props:{event:{required:!0}},methods:{fromNow:v,link:function(e){return"branch"===e.payload.ref_type?"https://github.com/"+e.repo.name+"/tree/"+e.payload.ref:"https://github.com/"+e.repo.name+"/releases/tag/"+e.payload.ref}}},void 0,!1,void 0,void 0,void 0),m=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"trashcan"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n deleted "+e._s(e.event.payload.ref_type)+"\n "),n("a",{staticClass:"event-link",attrs:{href:"#"}},[e._v(e._s(e.event.payload.ref))]),e._v(" at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"delete-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),p=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon octicon octicon-star dashboard-event-icon",attrs:{name:"star"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n starred\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"watch-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),u=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"opened"===e.event.payload.action?"octicon-issue-opened":"octicon-issue-closed"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" issue\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e._v("\n "+e._s(e.event.payload.issue.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"issues-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),h=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon octicon dashboard-event-icon octicon-comment",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on "+e._s(e.event.payload.issue.pull_request?"pull request":"issue")+"\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"issue-comment-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),f=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-forked"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n forked\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))]),e._v("\n to\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.forkee.html_url,target:"_blank"}},[e._v(e._s(e.event.payload.forkee.full_name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"fork-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0),b=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on commit\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+e.event.payload.comment.commit_id,target:"_blank"}},[e._v("\n "+e._s(e.hash(e.event.payload.comment.commit_id)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"commit-comment-event",props:{event:{required:!0}},methods:{fromNow:v,hash:l}},void 0,!1,void 0,void 0,void 0),g=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"radio-tower"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n open sourced\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"public-event",props:{event:{required:!0}},methods:{fromNow:v}},void 0,!1,void 0,void 0,void 0);function y(e){e.component("github-feed",r),e.component("push-event",c),e.component("pull-request-event",d),e.component("create-event",_),e.component("watch-event",p),e.component("delete-event",m),e.component("issues-event",u),e.component("issue-comment-event",h),e.component("commit-comment-event",b),e.component("fork-event",f),e.component("public-event",g)}var C={install:y},x=null;"undefined"!=typeof window?x=window.Vue:"undefined"!=typeof global&&(x=global.Vue),x&&x.use(C);export default C;export{b as CommitCommentEvent,_ as CreateEvent,m as DeleteEvent,f as ForkEvent,r as GithubFeed,h as IssueCommentEvent,u as IssuesEvent,g as PublicEvent,d as PullRequestEvent,c as PushEvent,p as WatchEvent,y as install}; |
@@ -1,1 +0,1 @@ | ||
var githubFeed=function(e){"use strict";var t=function(e){return fetch("https://api.github.com/users/"+e).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},n=function(e){return fetch("https://api.github.com/users/"+e+"/events").then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},a={name:"github-feed",props:{login:{required:!0,default:"amaury-tobias"}},data:function(){return{user:{},events:[],loading:!1,error:!1}},created:function(){var e=this;t(this.login).then(function(t){e.user=t,n(e.login).then(function(t){e.loading=!1,e.error=!1,e.events=t}).catch(function(t){console.warn(t),e.loading=!1,e.error=!0})}).catch(function(t){console.warn(t),e.loading=!1,e.error=!0})}};var s,i=function(e,t,n,a,s,i,o,r,v,l){"boolean"!=typeof o&&(v=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),a&&(d._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,v(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var m=d.render;d.render=function(e,t){return c.call(t),m(e,t)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,c):[c]}return n},o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var r={};var v=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feed"},[n("div",{staticClass:"header-wrapper"},[n("div",{staticClass:"header"},[n("octicon",{staticClass:"github-icon",attrs:{name:"mark-github",scale:"3"}}),e._v(" "),n("a",{staticClass:"github-profile",attrs:{href:e.user.html_url,target:"_blank"}},[n("div",{staticStyle:{"font-size":"26px","line-height":"30px"}},[e._v("\n "+e._s(e.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"github-username"},[e._v("\n "+e._s(e.user.login)+"\n ")])])],1)]),e._v(" "),n("div",{staticClass:"events-wrapper"},[n("div",{staticClass:"feed-list"},[n("div",{staticClass:"event-list"},e._l(e.events,function(t){return n("div",{key:t.id},["PushEvent"===t.type?n("push-event",{attrs:{event:t}}):e._e(),e._v(" "),"PullRequestEvent"===t.type?n("pull-request-event",{attrs:{event:t}}):e._e(),e._v(" "),"CreateEvent"===t.type?n("create-event",{attrs:{event:t}}):e._e(),e._v(" "),"WatchEvent"===t.type?n("watch-event",{attrs:{event:t}}):e._e(),e._v(" "),"DeleteEvent"===t.type?n("delete-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssuesEvent"===t.type?n("issues-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssueCommentEvent"===t.type?n("issue-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"ForkEvent"===t.type?n("fork-event",{attrs:{event:t}}):e._e(),e._v(" "),"CommitCommentEvent"===t.type?n("commit-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"PublicEvent"===t.type?n("public-event",{attrs:{event:t}}):e._e()],1)}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-08fdbf04_0",{source:".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}",map:void 0,media:void 0})},a,void 0,!1,void 0,function(e){return function(e,t){return function(e,t){var n=o?t.media||"default":e,a=r[n]||(r[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var i=t.source;if(t.map&&(i+="\n/*# sourceURL="+t.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(i),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var v=a.ids.size-1,l=document.createTextNode(i),c=a.element.childNodes;c[v]&&a.element.removeChild(c[v]),c.length?a.element.insertBefore(l,c[v]):a.element.appendChild(l)}}}(e,t)}},void 0),l=function(e,t){t=t||{};var n=new Date(e).getTime()-Date.now(),a=Math.abs(n);if(a<6e4)return"just now";var s,i,o={year:a/31536e6,month:a%31536e6/2592e6,day:a%2592e6/864e5,hour:a%864e5/36e5,minute:a%36e5/6e4},r=[],v=t.max||6e4;for(s in o)r.length<v&&((i=Math.floor(o[s]))||t.zero)&&r.push(i+" "+(1==i?s:s+"s"));return v=", ",(s=r.length)>1&&t.and&&(2==s&&(v=" "),r[--s]="and "+r[s]),i=r.join(v),t.suffix&&(i+=n<0?" ago":" from now"),i},c=function(e){return e.substr(e.length-6)},d=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-push"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n pushed to\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/tree/"+e.branch(e.event.payload.ref),target:"_blank"}},[e._v(e._s(e.branch(e.event.payload.ref)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",e._l(e.event.payload.commits,function(t){return n("li",{key:t.sha,staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+t.sha,target:"_blank"}},[e._v(e._s(e.hash(t.sha)))]),e._v("\n "+e._s(t.message)+"\n ")])}),0)],1)},staticRenderFns:[]},void 0,{name:"push-event",props:{event:{required:!0}},methods:{fromNow:l,hash:c,branch:function(e){return e.replace("refs/heads/","")}}},void 0,!1,void 0,void 0,void 0),m=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"git-pull-request"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" pull request"),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.pull_request.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e.event.payload.pull_request.merged?n("b",[e._v("[MERGED]")]):e._e(),e._v("\n "+e._s(e.event.payload.pull_request.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"pull-request-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),_=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repository"===e.event.payload.ref_type?"repo":"git-branch"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n created "+e._s(e.event.payload.ref_type)+"\n "),"repository"!==e.event.payload.ref_type?n("span",[n("a",{staticClass:"event-link",attrs:{href:e.link(e.event),target:"_blank"}},[e._v(e._s(e.event.payload.ref))]),e._v("\n at")]):e._e(),e._v(" "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"create-event",props:{event:{required:!0}},methods:{fromNow:l,link:function(e){return"branch"===e.payload.ref_type?"https://github.com/"+e.repo.name+"/tree/"+e.payload.ref:"https://github.com/"+e.repo.name+"/releases/tag/"+e.payload.ref}}},void 0,!1,void 0,void 0,void 0),p=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"trashcan"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n deleted "+e._s(e.event.payload.ref_type)+"\n "),n("a",{staticClass:"event-link",attrs:{href:"#"}},[e._v(e._s(e.event.payload.ref))]),e._v(" at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"delete-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),u=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon octicon octicon-star dashboard-event-icon",attrs:{name:"star"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n starred\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"watch-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),h=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"opened"===e.event.payload.action?"octicon-issue-opened":"octicon-issue-closed"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" issue\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e._v("\n "+e._s(e.event.payload.issue.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"issues-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),f=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon octicon dashboard-event-icon octicon-comment",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on "+e._s(e.event.payload.issue.pull_request?"pull request":"issue")+"\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"issue-comment-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),b=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-forked"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n forked\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))]),e._v("\n to\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.forkee.html_url,target:"_blank"}},[e._v(e._s(e.event.payload.forkee.full_name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"fork-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),g=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on commit\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+e.event.payload.comment.commit_id,target:"_blank"}},[e._v("\n "+e._s(e.hash(e.event.payload.comment.commit_id)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"commit-comment-event",props:{event:{required:!0}},methods:{fromNow:l,hash:c}},void 0,!1,void 0,void 0,void 0),y=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"radio-tower"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n open sourced\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"public-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0);function C(e){e.component("github-feed",v),e.component("push-event",d),e.component("pull-request-event",m),e.component("create-event",_),e.component("watch-event",u),e.component("delete-event",p),e.component("issues-event",h),e.component("issue-comment-event",f),e.component("commit-comment-event",g),e.component("fork-event",b),e.component("public-event",y)}var k={install:C},x=null;return"undefined"!=typeof window?x=window.Vue:"undefined"!=typeof global&&(x=global.Vue),x&&x.use(k),e.CommitCommentEvent=g,e.CreateEvent=_,e.DeleteEvent=p,e.ForkEvent=b,e.GithubFeed=v,e.IssueCommentEvent=f,e.IssuesEvent=h,e.PublicEvent=y,e.PullRequestEvent=m,e.PushEvent=d,e.WatchEvent=u,e.default=k,e.install=C,e}({}); | ||
var githubFeed=function(e){"use strict";var t=function(e){return fetch("https://api.github.com/users/"+e).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},n=function(e){return fetch("https://api.github.com/users/"+e+"/events").then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return e})},a={name:"github-feed",props:{login:{required:!0}},data:function(){return{user:{},events:[],loading:!1,error:!1}},created:function(){var e=this;t(this.login).then(function(t){e.user=t,n(e.login).then(function(t){e.loading=!1,e.error=!1,e.events=t}).catch(function(t){console.warn(t),e.loading=!1,e.error=!0})}).catch(function(t){console.warn(t),e.loading=!1,e.error=!0})}};var s,i=function(e,t,n,a,s,i,o,r,v,l){"boolean"!=typeof o&&(v=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),a&&(d._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,v(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var m=d.render;d.render=function(e,t){return c.call(t),m(e,t)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,c):[c]}return n},o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var r={};var v=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feed"},[n("div",{staticClass:"header-wrapper"},[n("div",{staticClass:"header"},[n("octicon",{staticClass:"github-icon",attrs:{name:"mark-github",scale:"3"}}),e._v(" "),n("a",{staticClass:"github-profile",attrs:{href:e.user.html_url,target:"_blank"}},[n("div",{staticStyle:{"font-size":"26px","line-height":"30px"}},[e._v("\n "+e._s(e.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"github-username"},[e._v("\n "+e._s(e.user.login)+"\n ")])])],1)]),e._v(" "),n("div",{staticClass:"events-wrapper"},[n("div",{staticClass:"feed-list"},[n("div",{staticClass:"event-list"},e._l(e.events,function(t){return n("div",{key:t.id},["PushEvent"===t.type?n("push-event",{attrs:{event:t}}):e._e(),e._v(" "),"PullRequestEvent"===t.type?n("pull-request-event",{attrs:{event:t}}):e._e(),e._v(" "),"CreateEvent"===t.type?n("create-event",{attrs:{event:t}}):e._e(),e._v(" "),"WatchEvent"===t.type?n("watch-event",{attrs:{event:t}}):e._e(),e._v(" "),"DeleteEvent"===t.type?n("delete-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssuesEvent"===t.type?n("issues-event",{attrs:{event:t}}):e._e(),e._v(" "),"IssueCommentEvent"===t.type?n("issue-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"ForkEvent"===t.type?n("fork-event",{attrs:{event:t}}):e._e(),e._v(" "),"CommitCommentEvent"===t.type?n("commit-comment-event",{attrs:{event:t}}):e._e(),e._v(" "),"PublicEvent"===t.type?n("public-event",{attrs:{event:t}}):e._e()],1)}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-413f8d63_0",{source:".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}",map:void 0,media:void 0})},a,void 0,!1,void 0,function(e){return function(e,t){return function(e,t){var n=o?t.media||"default":e,a=r[n]||(r[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var i=t.source;if(t.map&&(i+="\n/*# sourceURL="+t.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(i),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var v=a.ids.size-1,l=document.createTextNode(i),c=a.element.childNodes;c[v]&&a.element.removeChild(c[v]),c.length?a.element.insertBefore(l,c[v]):a.element.appendChild(l)}}}(e,t)}},void 0),l=function(e,t){t=t||{};var n=new Date(e).getTime()-Date.now(),a=Math.abs(n);if(a<6e4)return"just now";var s,i,o={year:a/31536e6,month:a%31536e6/2592e6,day:a%2592e6/864e5,hour:a%864e5/36e5,minute:a%36e5/6e4},r=[],v=t.max||6e4;for(s in o)r.length<v&&((i=Math.floor(o[s]))||t.zero)&&r.push(i+" "+(1==i?s:s+"s"));return v=", ",(s=r.length)>1&&t.and&&(2==s&&(v=" "),r[--s]="and "+r[s]),i=r.join(v),t.suffix&&(i+=n<0?" ago":" from now"),i},c=function(e){return e.substr(e.length-6)},d=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-push"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n pushed to\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/tree/"+e.branch(e.event.payload.ref),target:"_blank"}},[e._v(e._s(e.branch(e.event.payload.ref)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",e._l(e.event.payload.commits,function(t){return n("li",{key:t.sha,staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+t.sha,target:"_blank"}},[e._v(e._s(e.hash(t.sha)))]),e._v("\n "+e._s(t.message)+"\n ")])}),0)],1)},staticRenderFns:[]},void 0,{name:"push-event",props:{event:{required:!0}},methods:{fromNow:l,hash:c,branch:function(e){return e.replace("refs/heads/","")}}},void 0,!1,void 0,void 0,void 0),m=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"git-pull-request"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" pull request"),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.pull_request.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e.event.payload.pull_request.merged?n("b",[e._v("[MERGED]")]):e._e(),e._v("\n "+e._s(e.event.payload.pull_request.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"pull-request-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),_=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repository"===e.event.payload.ref_type?"repo":"git-branch"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n created "+e._s(e.event.payload.ref_type)+"\n "),"repository"!==e.event.payload.ref_type?n("span",[n("a",{staticClass:"event-link",attrs:{href:e.link(e.event),target:"_blank"}},[e._v(e._s(e.event.payload.ref))]),e._v("\n at")]):e._e(),e._v(" "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"create-event",props:{event:{required:!0}},methods:{fromNow:l,link:function(e){return"branch"===e.payload.ref_type?"https://github.com/"+e.repo.name+"/tree/"+e.payload.ref:"https://github.com/"+e.repo.name+"/releases/tag/"+e.payload.ref}}},void 0,!1,void 0,void 0,void 0),p=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"trashcan"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n deleted "+e._s(e.event.payload.ref_type)+"\n "),n("a",{staticClass:"event-link",attrs:{href:"#"}},[e._v(e._s(e.event.payload.ref))]),e._v(" at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"delete-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),u=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon octicon octicon-star dashboard-event-icon",attrs:{name:"star"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n starred\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"watch-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),h=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"opened"===e.event.payload.action?"octicon-issue-opened":"octicon-issue-closed"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n "+e._s(e.event.payload.action)+" issue\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e(),e._v(" "),n("ul",[n("li",{staticClass:"event-text event-detail",staticStyle:{"list-style":"none"}},[e._v("\n "+e._s(e.event.payload.issue.title)+"\n ")])])],1)},staticRenderFns:[]},void 0,{name:"issues-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),f=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon octicon dashboard-event-icon octicon-comment",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on "+e._s(e.event.payload.issue.pull_request?"pull request":"issue")+"\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.issue.html_url,target:"_blank"}},[e._v("\n #"+e._s(e.event.payload.issue.number))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"issue-comment-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),b=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"repo-forked"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n forked\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))]),e._v("\n to\n "),n("a",{staticClass:"event-link",attrs:{href:e.event.payload.forkee.html_url,target:"_blank"}},[e._v(e._s(e.event.payload.forkee.full_name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"fork-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0),g=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event",staticStyle:{"padding-bottom":"0.5em !important"}},[n("octicon",{staticClass:"event-octicon",attrs:{name:"comment"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[n("a",{staticClass:"event-link",attrs:{href:e.event.payload.comment.html_url,target:"_blank"}},[e._v("\n commented\n ")]),e._v("\n on commit\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name+"/commit/"+e.event.payload.comment.commit_id,target:"_blank"}},[e._v("\n "+e._s(e.hash(e.event.payload.comment.commit_id)))]),e._v("\n at\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"commit-comment-event",props:{event:{required:!0}},methods:{fromNow:l,hash:c}},void 0,!1,void 0,void 0,void 0),y=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"github-event"},[n("octicon",{staticClass:"event-octicon",attrs:{name:"radio-tower"}}),e._v(" "),e.event?n("div",{staticClass:"event-text",staticStyle:{display:"inline-block"}},[n("a",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(e.event.actor.login))]),e._v(" "),n("b",[e._v("\n open sourced\n "),n("a",{staticClass:"event-link",attrs:{href:"https://github.com/"+e.event.repo.name,target:"_blank"}},[e._v(e._s(e.event.repo.name))])])]):e._e(),e._v(" "),e.event?n("div",{staticClass:"event-time"},[e._v("\n "+e._s(e.fromNow(e.event.created_at))+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"public-event",props:{event:{required:!0}},methods:{fromNow:l}},void 0,!1,void 0,void 0,void 0);function C(e){e.component("github-feed",v),e.component("push-event",d),e.component("pull-request-event",m),e.component("create-event",_),e.component("watch-event",u),e.component("delete-event",p),e.component("issues-event",h),e.component("issue-comment-event",f),e.component("commit-comment-event",g),e.component("fork-event",b),e.component("public-event",y)}var k={install:C},x=null;return"undefined"!=typeof window?x=window.Vue:"undefined"!=typeof global&&(x=global.Vue),x&&x.use(k),e.CommitCommentEvent=g,e.CreateEvent=_,e.DeleteEvent=p,e.ForkEvent=b,e.GithubFeed=v,e.IssueCommentEvent=f,e.IssuesEvent=h,e.PublicEvent=y,e.PullRequestEvent=m,e.PushEvent=d,e.WatchEvent=u,e.default=k,e.install=C,e}({}); |
@@ -19,3 +19,3 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var service = { | ||
props: { | ||
login: { required: true, default: 'amaury-tobias' } | ||
login: { required: true } | ||
}, | ||
@@ -197,3 +197,3 @@ data: function () { return ({ | ||
if (!inject) { return } | ||
inject("data-v-08fdbf04_0", { source: ".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}", map: undefined, media: undefined }); | ||
inject("data-v-413f8d63_0", { source: ".feed{position:relative;display:table;height:500px;min-height:200px;width:100%;min-width:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Arial,sans-serif;font-size:1rem;color:#373a3c}.header-wrapper{display:table-row;height:1px}.header{display:table-cell;top:1px;left:1px;padding:10px;border-bottom:1px solid #ddd}.github-icon{display:inline-flex;float:left;padding:9px 0 0;width:35px;height:35px}.github-username{font-size:20px;font-style:normal;font-weight:300;line-height:24px;color:#666}.github-profile{display:inline-flexbox;float:left;margin:0 auto;padding:6px 10px 5px;color:#495961;font-size:20px;text-decoration:none;margin-left:10px}.github-profile:hover{color:#495961;text-decoration:none}.events-wrapper{height:100%;display:table-row}.feed-list{overflow-y:auto;position:relative;display:table-cell}.event-list{overflow-y:scroll;max-height:500px;width:100%;min-height:100px}.github-event{border-top:1px solid #f1f1f1;padding:1em 0 0;padding:1.5em 0 1.5em 25px}.event-octicon{color:#bbb;margin-right:10px}.event-time{display:inline-block;font-size:12px;margin-left:3px;color:#bbb}.event-link{color:#1798d8}.event-link:hover{color:#1798d8}.event-text{font-size:13px}.event-detail{color:#666}@media only screen and (min-device-width:320px) and (max-device-width:480px) and (-webkit-min-device-pixel-ratio:2){.event-octicon{display:none!important}}", map: undefined, media: undefined }); | ||
@@ -204,3 +204,3 @@ }; | ||
/* module identifier */ | ||
var __vue_module_identifier__ = "data-v-08fdbf04"; | ||
var __vue_module_identifier__ = "data-v-413f8d63"; | ||
/* functional template */ | ||
@@ -207,0 +207,0 @@ var __vue_is_functional_template__ = false; |
{ | ||
"name": "v-github-activity", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Componente Vue para mostrar la actividad reciente de github", | ||
@@ -19,4 +19,4 @@ "author": "amaury.tobiasqr@gmail.com", | ||
"module": "dist/v-github-activity.esm.js", | ||
"browser": "dist/v-github-activity.min,js", | ||
"unpkg": "dist/v-github-activity.min,js", | ||
"browser": "dist/v-github-activity.min.js", | ||
"unpkg": "dist/v-github-activity.min.js", | ||
"files": [ | ||
@@ -32,3 +32,3 @@ "dist/*", | ||
"scripts": { | ||
"serve": "vue serve src/components/GithubFeed.vue", | ||
"serve": "vue-cli-service serve", | ||
"lint": "vue-cli-service lint", | ||
@@ -35,0 +35,0 @@ "test": "vue-cli-service test:unit", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
91359
24
834
8