1 Star 0 Fork 0

丁伟东/ng-docs.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
resource-resource-list-module-ngfactory-es2015.1a11e2dbf59d1db5f041.js 4.57 KB
一键复制 编辑 原始数据 按行查看 历史
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{uway:function(l,n,u){"use strict";u.r(n);var t=u("8Y7J");class e{constructor(l,n){this.resourceService=n,this.scrollPos=0,this.location=l.pathname.replace(/^\/+/,"")}href(l){return this.location+"#"+l.id}ngOnInit(){this.resourceService.categories.subscribe(l=>this.categories=l)}onScroll(l){this.scrollPos=l&&(l.scrollTop||l.body.scrollTop)||0}}class r{constructor(){this.customElementComponent=e}}var o=u("SVse"),c=u("lJxs"),s=u("qZ0a");const i=u("jn67").a+"resources.json";class a{constructor(l){this.http=l,this.categories=this.getCategories()}getCategories(){const l=this.http.get(i).pipe(Object(c.a)(l=>(function(l){return Object.keys(l).map(n=>{const u=l[n];return{id:h(n),title:n,order:u.order,subCategories:b(u.subCategories,n)}}).sort(f)})(l)),Object(s.a)());return l.connect(),l}}function b(l,n){return Object.keys(l).map(u=>{const t=l[u];return{id:h(u),title:u,order:t.order,resources:p(t.resources,u,n)}}).sort(f)}function p(l,n,u){return Object.keys(l).map(t=>{const e=l[t];return e.category=u,e.subCategory=n,e.id=h(t),e}).sort(d)}function f(l,n){return l.order===n.order?d(l,n):l.order>n.order?1:-1}function d(l,n){return l.title.toUpperCase()>n.title.toUpperCase()?1:-1}function h(l){return l.toLowerCase().replace(/\s+/g,"-")}var g=t.nb({encapsulation:2,styles:[],data:{}});function m(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,6,"div",[["class","c-resource"]],null,null,null,null,null)),(l()(),t.pb(1,0,null,null,5,"a",[["class","l-flex--column resource-row-link"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(l()(),t.pb(2,0,null,null,4,"div",[],null,null,null,null,null)),(l()(),t.pb(3,0,null,null,1,"h4",[],null,null,null,null,null)),(l()(),t.Fb(4,null,["",""])),(l()(),t.pb(5,0,null,null,1,"p",[["class","resource-description"]],null,null,null,null,null)),(l()(),t.Fb(6,null,["",""]))],null,function(l,n){l(n,1,0,n.parent.context.$implicit.url),l(n,4,0,n.parent.context.$implicit.title),l(n,6,0,n.parent.context.$implicit.desc||"No Description")})}function x(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,2,"div",[],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,m)),t.ob(2,16384,null,0,o.k,[t.P,t.M],{ngIf:[0,"ngIf"]},null)],function(l,n){l(n,2,0,n.context.$implicit.rev)},null)}function v(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,5,"div",[],null,null,null,null,null)),(l()(),t.pb(1,0,null,null,0,"a",[["class","h-anchor-offset"]],[[8,"id",0]],null,null,null,null)),(l()(),t.pb(2,0,null,null,1,"h3",[["class","subcategory-title"]],null,null,null,null,null)),(l()(),t.Fb(3,null,["",""])),(l()(),t.fb(16777216,null,null,1,null,x)),t.ob(5,278528,null,0,o.j,[t.P,t.M,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,5,0,n.context.$implicit.resources)},function(l,n){l(n,1,0,t.rb(1,"",n.context.$implicit.id,"")),l(n,3,0,n.context.$implicit.title)})}function w(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,7,"div",[["class","showcase"]],null,null,null,null,null)),(l()(),t.pb(1,0,null,null,3,"header",[["class","c-resource-header"]],null,null,null,null,null)),(l()(),t.pb(2,0,null,null,0,"a",[["class","h-anchor-offset"]],[[8,"id",0]],null,null,null,null)),(l()(),t.pb(3,0,null,null,1,"h2",[],null,null,null,null,null)),(l()(),t.Fb(4,null,["",""])),(l()(),t.pb(5,0,null,null,2,"div",[["class","shadow-1"]],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,v)),t.ob(7,278528,null,0,o.j,[t.P,t.M,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,7,0,n.context.$implicit.subCategories)},function(l,n){l(n,2,0,t.rb(1,"",n.context.$implicit.id,"")),l(n,4,0,n.context.$implicit.title)})}function j(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,3,"div",[["class","resources-container"]],null,null,null,null,null)),(l()(),t.pb(1,0,null,null,2,"div",[["class","l-flex--column"]],null,null,null,null,null)),(l()(),t.fb(16777216,null,null,1,null,w)),t.ob(3,278528,null,0,o.j,[t.P,t.M,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,3,0,n.component.categories)},null)}function O(l){return t.Hb(0,[(l()(),t.pb(0,0,null,null,1,"aio-resource-list",[],null,[["window","scroll"]],function(l,n,u){var e=!0;return"window:scroll"===n&&(e=!1!==t.zb(l,1).onScroll(u.target)&&e),e},j,g)),t.ob(1,114688,null,0,e,[o.s,a],null,null)],function(l,n){l(n,1,0)},null)}var F=t.lb("aio-resource-list",e,O,{},{},[]),y=u("IheW");u.d(n,"ResourceListModuleNgFactory",function(){return C});var C=t.mb(r,[],function(l){return t.wb([t.xb(512,t.j,t.ab,[[8,[F]],[3,t.j],t.w]),t.xb(4608,o.m,o.l,[t.t,[2,o.B]]),t.xb(4608,a,a,[y.c]),t.xb(1073742336,o.c,o.c,[]),t.xb(1073742336,r,r,[])])})}}]);
//# sourceMappingURL=resource-resource-list-module-ngfactory-es2015.1a11e2dbf59d1db5f041.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