Skip to content

Commit 286e59f

Browse files
committed
chore: minor cleanups
1 parent d1dc934 commit 286e59f

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ CoreUI is built on top of Bootstrap 4 and supports popular frameworks.
5050

5151
| CoreUI Pro | Prime | Root | Alba | Leaf |
5252
| --- | --- | --- | --- | --- |
53-
| [![CoreUI Pro Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/pro/angular/) | [![Prime Admin Template](https://genesisui.com/assets/img/templates/prime1280.jpg)](https://genesisui.com/admin-templates/angular/prime/?support=1) | [![Root Admin Template](https://genesisui.com/assets/img/templates/root1280.jpg)](https://genesisui.com/admin-templates/angular/root/?support=1) | [![Alba Admin Template](https://genesisui.com/assets/img/templates/alba1280.jpg)](https://genesisui.com/admin-templates/angular/alba/?support=1) | [![Leaf Admin Template](https://genesisui.com/assets/img/templates/leaf1280.jpg)](https://genesisui.com/admin-templates/angular/leaf/?support=1)
54-
53+
| [![CoreUI Pro Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/pro/angular/)| [![Prime Admin Template](https://coreui.io/assets/img/responsive-prime.png)](https://coreui.io/admin-templates/angular/prime/?support=1)| [![Root Admin Template](https://coreui.io/assets/img/responsive-root.png)](https://coreui.io/admin-templates/angular/root/?support=1)| [![Alba Admin Template](https://coreui.io/assets/img/responsive-alba.png)](https://coreui.io/admin-templates/angular/alba/?support=1)| [![Leaf Admin Template](https://coreui.io/assets/img/responsive-leaf.png)](https://coreui.io/admin-templates/angular/leaf/?support=1)
5554
## Installation
5655

5756
### Clone repo

src/app/_nav.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
interface NavAttributes {
2+
[propName: string]: any;
3+
}
4+
interface NavWrapper {
5+
attributes: NavAttributes;
6+
element: string;
7+
}
8+
interface NavBadge {
9+
text: string;
10+
variant: string;
11+
}
12+
interface NavLabel {
13+
class?: string;
14+
variant: string;
15+
}
16+
117
export interface NavData {
218
name?: string;
319
url?: string;
420
icon?: string;
5-
badge?: any;
21+
badge?: NavBadge;
622
title?: boolean;
7-
children?: any;
23+
children?: NavData[];
824
variant?: string;
9-
attributes?: object;
25+
attributes?: NavAttributes;
1026
divider?: boolean;
1127
class?: string;
12-
label?: any;
13-
wrapper?: any;
28+
label?: NavLabel;
29+
wrapper?: NavWrapper;
1430
}
1531

1632
export const navItems: NavData[] = [

src/app/containers/default-layout/default-layout.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<app-header
2+
[navbarBrandRouterLink]="['/dashboard']"
23
[fixed]="true"
34
[navbarBrandFull]="{src: 'assets/img/brand/logo.svg', width: 89, height: 25, alt: 'CoreUI Logo'}"
45
[navbarBrandMinimized]="{src: 'assets/img/brand/sygnet.svg', width: 30, height: 30, alt: 'CoreUI Logo'}"

src/app/views/dashboard/dashboard-routing.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { NgModule } from '@angular/core';
2-
import { Routes,
3-
RouterModule } from '@angular/router';
2+
import { Routes, RouterModule } from '@angular/router';
43

54
import { DashboardComponent } from './dashboard.component';
65

src/polyfills.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import 'core-js/es6/regexp';
3333
import 'core-js/es6/map';
3434
import 'core-js/es6/weak-map';
3535
import 'core-js/es6/set';
36-
import "core-js/es7/array";
37-
import "core-js/es7/object";
36+
import 'core-js/es7/array';
37+
import 'core-js/es7/object';
3838

3939
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
4040
// import 'classlist.js'; // Run `npm install --save classlist.js`.

0 commit comments

Comments
 (0)