text: (window.webpackJsonp=window.webpackJsonp||[]).push([[8,12],{284:function(t,n,s){},321:function(t,n,s){"use strict";var e=s(284);s.n(e).a},322:function(t,n,s){},336:function(t,n,s){"use strict";s.r(n);var e={name:"ProjectItem",props:{options:{type:Object,default:function(){}}}},o=(s(321),s(3)),r=Object(o.a)(e,(function(){var t=this,n=t.$createElement,s=t._self._c||n;return s("div",{staticClass:"project-item"},[s("a",{staticClass:"project-item-card-wrap",attrs:{href:t.options.html_url,target:"_blank"}},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.options.name))]),t._v(" "),s("p",{staticClass:"card-description"},[t._v(t._s(t.options.description))]),t._v(" "),s("div",{staticClass:"card-footer"},[s("span",[s("i",{staticClass:"iconfont icon-code"}),t._v(t._s(t.options.language))]),t._v(" "),s("span",[s("i",{staticClass:"iconfont icon-xingxing"}),t._v(t._s(t.options.stargazers_count))]),t._v(" "),s("span",[s("i",{staticClass:"iconfont icon-fork"}),t._v(t._s(t.options.forks_count))])])])])}),[],!1,null,"180d44a2",null);n.default=r.exports},376:function(t,n,s){t.exports=s.p+"assets/img/loading.9111579b.svg"},379:function(t,n,s){"use strict";var e=s(322);s.n(e).a},395:function(t,n,s){"use strict";s.r(n);var e=s(287),o=(s(19),s(112),s(68)),r=function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch(n).then((function(t){return t.json()})));case 1:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),a=s(336),c=s(377),i={name:"Projects",components:{Common:e.a,ProjectItem:a.default},data:function(){return{projects:[],loading:!0}},mounted:function(){this.getProjects()},methods:{getProjects:function(){var t=this;this.loading=!0,r("https://api.github.com/users/zpj80231/repos").then((function(n){t.loading=!1;var s=Object(c.filter)(n,(function(t){return!t.private}));t.projects=Object(c.orderBy)(s,["stargazers_count","forks_count","name","created_at"],["desc","desc","asc","desc"])}))}}},u=(s(379),s(3)),p=Object(u.a)(i,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{},[e("Common",{attrs:{sidebar:!1,isComment:!1}},[e("section",{staticClass:"project"},[e("h1",{staticClass:"project-title"},[t._v("My Project")]),t._v(" "),e("h4",{staticClass:"project-subtitle"},[t._v("如果你觉得下面的项目可能还不错, 别忘了给个 start 吧！")]),t._v(" "),t.loading?e("section",{staticClass:"project-loading"},[e("img",{attrs:{src:s(376)}}),t._v(" "),e("span",[t._v("Loading...")])]):e("section",{staticClass:"project-container"},t._l(t.projects,(function(t,n){return e("article",{key:n},[e("project-item",{attrs:{options:t}})],1)})),0)])])],1)}),[],!1,null,"b5cdd316",null);n.default=p.exports}}]);