Skip to content

Commit 416b903

Browse files
authored
Merge pull request #124 from coreui/dev-vnext
v2.2.1
2 parents d0fce9b + fbbdc67 commit 416b903

File tree

10 files changed

+49
-13
lines changed

10 files changed

+49
-13
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
## [angular](./README.md) version `changelog`
22

3+
###### `v2.2.1`
4+
- fix(routes): add default routes
5+
- fix(colors): class order for `bg-blue`
6+
- refactor(dafault-layout): observer add `attributeFilter` prop & `disconnect()`
7+
- update: `@coreui/angular` to `2.2.1`
8+
- update: `core-js` to `2.6.0`
9+
- update: `@types/node` to `10.12.12`
10+
- update: `@angular/cli` to `7.1.1`
11+
- update: `@angular-devkit/build-angular` to `0.11.1`
12+
- update: `@types/jasmine` to `3.3.1`
13+
314
###### `v2.2.0`
415
- chore: update Angular to `^7.1.0` see: https://update.angular.io/
516
- update: `@angular/animations` to `^7.1.1`

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-angular-admin-template",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "CoreUI Free Angular 2+ Admin Template",
55
"author": {
66
"name": "Łukasz Holeczek",
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"ng": "ng",
2222
"start": "ng serve",
23-
"build": "ng build",
23+
"build": "ng build --prod --aot --buildOptimizer --commonChunk --vendorChunk --optimization --progress",
2424
"test": "ng test",
2525
"lint": "ng lint",
2626
"e2e": "ng e2e"
@@ -36,13 +36,13 @@
3636
"@angular/platform-browser": "^7.1.1",
3737
"@angular/platform-browser-dynamic": "^7.1.1",
3838
"@angular/router": "^7.1.1",
39-
"@coreui/angular": "^2.2.0",
39+
"@coreui/angular": "^2.2.1",
4040
"@coreui/coreui": "^2.1.3",
4141
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
4242
"@coreui/icons": "0.3.0",
4343
"bootstrap": "^4.1.3",
4444
"chart.js": "^2.7.3",
45-
"core-js": "^2.5.7",
45+
"core-js": "^2.6.0",
4646
"flag-icon-css": "^3.2.1",
4747
"font-awesome": "^4.7.0",
4848
"moment": "^2.22.2",
@@ -58,13 +58,13 @@
5858
"zone.js": "^0.8.26"
5959
},
6060
"devDependencies": {
61-
"@angular-devkit/build-angular": "~0.11.0",
62-
"@angular/cli": "^7.1.0",
61+
"@angular-devkit/build-angular": "^0.11.1",
62+
"@angular/cli": "^7.1.1",
6363
"@angular/compiler-cli": "^7.1.1",
6464
"@angular/language-service": "^7.1.1",
65-
"@types/jasmine": "^3.3.0",
65+
"@types/jasmine": "^3.3.1",
6666
"@types/jasminewd2": "^2.0.6",
67-
"@types/node": "^10.12.11",
67+
"@types/node": "^10.12.12",
6868
"codelyzer": "^4.5.0",
6969
"jasmine-core": "^3.3.0",
7070
"jasmine-spec-reporter": "^4.2.1",

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Component, Input } from '@angular/core';
1+
import {Component, OnDestroy} from '@angular/core';
22
import { navItems } from './../../_nav';
33

44
@Component({
55
selector: 'app-dashboard',
66
templateUrl: './default-layout.component.html'
77
})
8-
export class DefaultLayoutComponent {
8+
export class DefaultLayoutComponent implements OnDestroy {
99
public navItems = navItems;
1010
public sidebarMinimized = true;
1111
private changes: MutationObserver;
@@ -17,7 +17,12 @@ export class DefaultLayoutComponent {
1717
});
1818

1919
this.changes.observe(<Element>this.element, {
20-
attributes: true
20+
attributes: true,
21+
attributeFilter: [ 'class' ]
2122
});
2223
}
24+
25+
ngOnDestroy(): void {
26+
this.changes.disconnect();
27+
}
2328
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const routes: Routes = [
2020
title: 'Base'
2121
},
2222
children: [
23+
{
24+
path: '',
25+
redirectTo: 'cards'
26+
},
2327
{
2428
path: 'cards',
2529
component: CardsComponent,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const routes: Routes = [
1212
title: 'Buttons'
1313
},
1414
children: [
15+
{
16+
path: '',
17+
redirectTo: 'buttons'
18+
},
1519
{
1620
path: 'buttons',
1721
component: ButtonsComponent,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const routes: Routes = [
1313
title: 'Icons'
1414
},
1515
children: [
16+
{
17+
path: '',
18+
redirectTo: 'coreui-icons'
19+
},
1620
{
1721
path: 'coreui-icons',
1822
component: CoreUIIconsComponent,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const routes: Routes = [
1212
title: 'Notifications'
1313
},
1414
children: [
15+
{
16+
path: '',
17+
redirectTo: 'alerts'
18+
},
1519
{
1620
path: 'alerts',
1721
component: AlertsComponent,

src/app/views/theme/colors.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h6>Gray 900 Color</h6>
9292
<div class="card-body">
9393
<div class="row">
9494
<div class="col-xl-2 col-md-3 col-sm-4 col-6 mb-4">
95-
<div class="mb-3 bg-blue theme-color w-75 rounded mb-2" style="padding-top:75%"></div>
95+
<div class="bg-blue theme-color mb-3 w-75 rounded mb-2" style="padding-top:75%"></div>
9696
<h6>Blue Color</h6>
9797
</div>
9898
<div class="col-xl-2 col-md-3 col-sm-4 col-6 mb-4">

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const routes: Routes = [
1111
title: 'Theme'
1212
},
1313
children: [
14+
{
15+
path: '',
16+
redirectTo: 'colors'
17+
},
1418
{
1519
path: 'colors',
1620
component: ColorsComponent,

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
* CoreUI - Free Angular Admin Template
3-
* @version v2.0.0
3+
* @version v2.2.1
44
* @link https://coreui.io/angular/
55
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
66
* Licensed under MIT (https://coreui.io/license)

0 commit comments

Comments
 (0)