feat: update npm packages

This commit is contained in:
Sergey Andrievskiy 2021-08-06 18:48:35 +03:00 committed by d.strigo
parent f6d9ec88ad
commit 7a22737611
321 changed files with 19716 additions and 84 deletions

View file

@ -0,0 +1,23 @@
import { Component, OnInit } from '@angular/core';
import { NgxMenuService } from '../../../@theme/services/menu.service';
@Component({
selector: 'ngx-components-overview-block',
styleUrls: ['./components-overview-block.component.scss'],
templateUrl: './components-overview-block.component.html',
})
export class NgxComponentsOverviewBlockComponent implements OnInit {
components: { name: string; icon: string; link: string }[];
constructor(private menu: NgxMenuService) {}
ngOnInit() {
this.components = this.menu
.getPreparedMenu('/docs')
.find(({ title }) => title === 'Components')
.children
.slice(1)
.map(({ data: { name, icon, type }, link }) => ({ name, icon, link, group: type === 'group' }));
}
}