1 Star 0 Fork 0

丁伟东/ng-docs.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
contributor-contributor-list-module-ngfactory.e31fda90aa9d09e31857.js 7.10 KB
一键复制 编辑 原始数据 按行查看 历史
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"ll+R":function(n,l,u){"use strict";u.r(l);var t=u("CcnG"),o=function(){function n(n,l){this.contributorService=n,this.locationService=l}return n.prototype.ngOnInit=function(){var n=this,l=this.locationService.search().group||"";this.contributorService.contributors.subscribe(function(u){n.groups=u,n.groupNames=u.map(function(n){return n.name}),n.selectGroup(l)})},n.prototype.selectGroup=function(n){n=n.toLowerCase(),this.selectedGroup=this.groups.find(function(l){return l.name.toLowerCase()===n})||this.groups[0],this.locationService.setSearch("",{group:this.selectedGroup.name})},n}(),r=function(){return function(){this.customElementComponent=o}}(),i=u("Mr+X"),e=u("SMsm"),c=u("Ip0R"),s=u("jn67"),a=function(){function n(){this.noPicture="_no-one.png",this.pictureBase=s.a+"images/bios/"}return n.prototype.flipCard=function(n){n.isFlipped=!n.isFlipped},n}(),b=t.pb({encapsulation:2,styles:[],data:{}});function p(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,1,"a",[["class","info-item"],["mat-button",""]],null,null,null,null,null)),(n()(),t.Fb(-1,null,[" View Bio "]))],null,null)}function f(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,2,"a",[["class","info-item icon"],["mat-icon-button",""],["target","_blank"]],[[8,"href",4]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==u.stopPropagation()&&t),t},null,null)),(n()(),t.rb(1,0,null,null,1,"mat-icon",[["class","mat-icon"],["role","img"],["svgIcon","logos:twitter"]],[[2,"mat-icon-inline",null]],null,null,i.b,i.a)),t.qb(2,9158656,null,0,e.b,[t.k,e.d,[8,null],[2,e.a]],{svgIcon:[0,"svgIcon"]},null)],function(n,l){n(l,2,0,"logos:twitter")},function(n,l){n(l,0,0,t.tb(1,"https://twitter.com/",l.component.person.twitter,"")),n(l,1,0,t.Ab(l,2).inline)})}function m(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,3,"a",[["class","info-item icon"],["mat-icon-button",""],["target","_blank"]],[[8,"href",4]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==u.stopPropagation()&&t),t},null,null)),(n()(),t.rb(1,0,null,null,2,"mat-icon",[["class","link-icon mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,i.b,i.a)),t.qb(2,9158656,null,0,e.b,[t.k,e.d,[8,null],[2,e.a]],null,null),(n()(),t.Fb(-1,0,["link"]))],function(n,l){n(l,2,0)},function(n,l){n(l,0,0,t.tb(1,"",l.component.person.website,"")),n(l,1,0,t.Ab(l,2).inline)})}function g(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,4,"div",[["class","card-back"]],null,[[null,"click"]],function(n,l,u){var t=!0,o=n.component;return"click"===l&&(t=!1!==o.flipCard(o.person)&&t),t},null,null)),(n()(),t.rb(1,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),t.Fb(2,null,["",""])),(n()(),t.rb(3,0,null,null,1,"p",[["class","contributor-bio"]],null,null,null,null,null)),(n()(),t.Fb(4,null,["",""]))],null,function(n,l){var u=l.component;n(l,2,0,u.person.name),n(l,4,0,u.person.bio)})}function d(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,15,"div",[["class","contributor-card"]],null,null,null,null,null)),t.qb(1,278528,null,0,c.i,[t.t,t.u,t.k,t.F],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t.Cb(2,{flipped:0}),(n()(),t.rb(3,0,null,null,10,"div",[["class","card-front"]],null,[[null,"click"]],function(n,l,u){var t=!0,o=n.component;return"click"===l&&(t=!1!==o.flipCard(o.person)&&t),t},null,null)),(n()(),t.rb(4,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),t.Fb(5,null,["",""])),(n()(),t.rb(6,0,null,null,7,"div",[["class","contributor-image"]],[[4,"background-image",null]],null,null,null,null)),(n()(),t.rb(7,0,null,null,6,"div",[["class","contributor-info"]],null,null,null,null,null)),(n()(),t.ib(16777216,null,null,1,null,p)),t.qb(9,16384,null,0,c.k,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(n()(),t.ib(16777216,null,null,1,null,f)),t.qb(11,16384,null,0,c.k,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(n()(),t.ib(16777216,null,null,1,null,m)),t.qb(13,16384,null,0,c.k,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(n()(),t.ib(16777216,null,null,1,null,g)),t.qb(15,16384,null,0,c.k,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(n,l){var u=l.component,t=n(l,2,0,u.person.isFlipped);n(l,1,0,"contributor-card",t),n(l,9,0,u.person.bio),n(l,11,0,u.person.twitter),n(l,13,0,u.person.website),n(l,15,0,u.person.isFlipped)},function(n,l){var u=l.component;n(l,5,0,u.person.name),n(l,6,0,"url("+u.pictureBase+(u.person.picture||u.noPicture)+")")})}var v=u("67Y/"),k=u("kR3u"),h=s.a+"contributors.json",y=["Angular","GDE"],O=function(){function n(n){this.http=n,this.contributors=this.getContributors()}return n.prototype.getContributors=function(){var n=this.http.get(h).pipe(Object(v.a)(function(n){var l={};return Object.keys(n).forEach(function(u){var t=n[u],o=t.group,r=l[o];r?r.push(t):l[o]=[t]}),l}),Object(v.a)(function(n){return Object.keys(n).map(function(l){var u=y.indexOf(l);return{name:l,order:-1===u?y.length:u,contributors:n[l].sort(F)}}).sort(w)}),Object(k.a)());return n.connect(),n},n}();function F(n,l){return n.name.toUpperCase()>l.name.toUpperCase()?1:-1}function w(n,l){return n.order===l.order?n.name>l.name?1:-1:n.order>l.order?1:-1}var C=u("/lUL"),I=t.pb({encapsulation:2,styles:[],data:{}});function q(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,1,"a",[["class","button mat-button filter-button"]],[[2,"selected",null]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==n.component.selectGroup(n.context.$implicit)&&t),t},null,null)),(n()(),t.Fb(1,null,["",""]))],null,function(n,l){n(l,0,0,l.context.$implicit==l.component.selectedGroup.name),n(l,1,0,l.context.$implicit)})}function j(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,1,"aio-contributor",[],null,null,null,d,b)),t.qb(1,49152,null,0,a,[],{person:[0,"person"]},null)],function(n,l){n(l,1,0,l.context.$implicit)},null)}function G(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,3,"section",[["class","grid-fluid"]],null,null,null,null,null)),(n()(),t.rb(1,0,null,null,2,"div",[["class","contributor-group"]],null,null,null,null,null)),(n()(),t.ib(16777216,null,null,1,null,j)),t.qb(3,278528,null,0,c.j,[t.R,t.O,t.t],{ngForOf:[0,"ngForOf"]},null)],function(n,l){n(l,3,0,l.component.selectedGroup.contributors)},null)}function H(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,2,"div",[["class","flex-center group-buttons"]],null,null,null,null,null)),(n()(),t.ib(16777216,null,null,1,null,q)),t.qb(2,278528,null,0,c.j,[t.R,t.O,t.t],{ngForOf:[0,"ngForOf"]},null),(n()(),t.ib(16777216,null,null,1,null,G)),t.qb(4,16384,null,0,c.k,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(n,l){var u=l.component;n(l,2,0,u.groupNames),n(l,4,0,u.selectedGroup)},null)}function R(n){return t.Hb(0,[(n()(),t.rb(0,0,null,null,1,"aio-contributor-list",[],null,null,null,H,I)),t.qb(1,114688,null,0,o,[O,C.a],null,null)],function(n,l){n(l,1,0)},null)}var x=t.nb("aio-contributor-list",o,R,{},{},[]),S=u("t/Na"),L=u("Fzqc"),N=u("Wf4p"),P=u("ZYjt");u.d(l,"ContributorListModuleNgFactory",function(){return $});var $=t.ob(r,[],function(n){return t.xb([t.yb(512,t.j,t.db,[[8,[x]],[3,t.j],t.y]),t.yb(4608,c.m,c.l,[t.v,[2,c.x]]),t.yb(4608,O,O,[S.c]),t.yb(1073742336,c.c,c.c,[]),t.yb(1073742336,L.a,L.a,[]),t.yb(1073742336,N.e,N.e,[[2,N.b],[2,P.g]]),t.yb(1073742336,e.c,e.c,[]),t.yb(1073742336,r,r,[])])})}}]);
//# sourceMappingURL=contributor-contributor-list-module-ngfactory.e31fda90aa9d09e31857.js.map
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tradewind_admin/ng-docs.github.io.git
git@gitee.com:tradewind_admin/ng-docs.github.io.git
tradewind_admin
ng-docs.github.io
ng-docs.github.io
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385