Skip to content

Commit ba3cd21

Browse files
committed
Merge branch 'hotfix/minor-fixes'
2 parents 482e5bd + 5d1f710 commit ba3cd21

File tree

104 files changed

+6501
-11684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+6501
-11684
lines changed

Angular4_CLI_Full_Project/package-lock.json

-9,720
This file was deleted.

Angular4_CLI_Full_Project/package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,41 @@
1616
},
1717
"private": true,
1818
"dependencies": {
19-
"@angular/common": "4.3.4",
20-
"@angular/compiler": "4.3.4",
21-
"@angular/core": "4.3.4",
22-
"@angular/forms": "4.3.4",
23-
"@angular/http": "4.3.4",
24-
"@angular/platform-browser": "4.3.4",
25-
"@angular/platform-browser-dynamic": "4.3.4",
26-
"@angular/router": "4.3.4",
27-
"@angular/upgrade": "4.3.4",
19+
"@angular/common": "4.3.6",
20+
"@angular/compiler": "4.3.6",
21+
"@angular/core": "4.3.6",
22+
"@angular/forms": "4.3.6",
23+
"@angular/http": "4.3.6",
24+
"@angular/platform-browser": "4.3.6",
25+
"@angular/platform-browser-dynamic": "4.3.6",
26+
"@angular/router": "4.3.6",
27+
"@angular/upgrade": "4.3.6",
2828
"core-js": "2.5.0",
2929
"rxjs": "5.4.3",
3030
"ts-helpers": "1.1.2",
31-
"zone.js": "0.8.16",
31+
"zone.js": "0.8.17",
3232
"chart.js": "2.6.0",
33-
"ngx-bootstrap": "1.8.1",
33+
"ngx-bootstrap": "1.9.1",
3434
"ng2-charts": "1.6.0",
3535
"moment": "2.18.1"
3636
},
3737
"devDependencies": {
38-
"@angular/cli": "1.3.0",
39-
"@angular/compiler-cli": "4.3.4",
40-
"@types/jasmine": "2.5.53",
41-
"@types/node": "8.0.20",
38+
"@angular/cli": "1.3.2",
39+
"@angular/compiler-cli": "4.3.6",
40+
"@types/jasmine": "2.5.54",
41+
"@types/node": "8.0.26",
4242
"codelyzer": "3.1.2",
43-
"jasmine-core": "2.7.0",
44-
"jasmine-spec-reporter": "4.2.0",
45-
"karma": "1.7.0",
43+
"jasmine-core": "2.8.0",
44+
"jasmine-spec-reporter": "4.2.1",
45+
"karma": "1.7.1",
4646
"karma-chrome-launcher": "2.2.0",
4747
"karma-cli": "1.0.1",
4848
"karma-jasmine": "1.1.0",
4949
"karma-jasmine-html-reporter": "0.2.2",
5050
"karma-coverage-istanbul-reporter": "1.3.0",
5151
"protractor": "5.1.2",
5252
"ts-node": "3.3.0",
53-
"tslint": "5.6.0",
53+
"tslint": "5.7.0",
5454
"typescript": "2.4.2"
5555
},
5656
"engines": {

Angular4_CLI_Full_Project/src/app/app.module.ts

+48-17
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,55 @@ import { NgModule } from '@angular/core';
33
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
44

55
import { AppComponent } from './app.component';
6-
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
7-
import { TabsModule } from 'ngx-bootstrap/tabs';
8-
import { NAV_DROPDOWN_DIRECTIVES } from './shared/nav-dropdown.directive';
96

10-
import { ChartsModule } from 'ng2-charts/ng2-charts';
11-
import { SIDEBAR_TOGGLE_DIRECTIVES } from './shared/sidebar.directive';
12-
import { AsideToggleDirective } from './shared/aside.directive';
13-
import { BreadcrumbsComponent } from './shared/breadcrumb.component';
7+
// Import containers
8+
import {
9+
FullLayout,
10+
SimpleLayout
11+
} from './containers';
12+
13+
const APP_CONTAINERS = [
14+
FullLayout,
15+
SimpleLayout
16+
]
17+
18+
// Import components
19+
import {
20+
AppAside,
21+
AppBreadcrumbs,
22+
AppFooter,
23+
AppHeader,
24+
AppSidebar
25+
} from './components';
26+
27+
const APP_COMPONENTS = [
28+
AppAside,
29+
AppBreadcrumbs,
30+
AppFooter,
31+
AppHeader,
32+
AppSidebar
33+
]
1434

15-
// Routing Module
35+
// Import directives
36+
import {
37+
AsideToggleDirective,
38+
NAV_DROPDOWN_DIRECTIVES,
39+
SIDEBAR_TOGGLE_DIRECTIVES
40+
} from './directives';
41+
42+
const APP_DIRECTIVES = [
43+
AsideToggleDirective,
44+
NAV_DROPDOWN_DIRECTIVES,
45+
SIDEBAR_TOGGLE_DIRECTIVES
46+
]
47+
48+
// Import routing module
1649
import { AppRoutingModule } from './app.routing';
1750

18-
// Layouts
19-
import { FullLayoutComponent } from './layouts/full-layout.component';
20-
import { SimpleLayoutComponent } from './layouts/simple-layout.component';
51+
// Import 3rd party components
52+
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
53+
import { TabsModule } from 'ngx-bootstrap/tabs';
54+
import { ChartsModule } from 'ng2-charts/ng2-charts';
2155

2256
@NgModule({
2357
imports: [
@@ -29,12 +63,9 @@ import { SimpleLayoutComponent } from './layouts/simple-layout.component';
2963
],
3064
declarations: [
3165
AppComponent,
32-
FullLayoutComponent,
33-
SimpleLayoutComponent,
34-
NAV_DROPDOWN_DIRECTIVES,
35-
BreadcrumbsComponent,
36-
SIDEBAR_TOGGLE_DIRECTIVES,
37-
AsideToggleDirective,
66+
...APP_CONTAINERS,
67+
...APP_COMPONENTS,
68+
...APP_DIRECTIVES
3869
],
3970
providers: [{
4071
provide: LocationStrategy,

Angular4_CLI_Full_Project/src/app/app.routing.ts

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33

4-
// Layouts
5-
import { FullLayoutComponent } from './layouts/full-layout.component';
6-
import { SimpleLayoutComponent } from './layouts/simple-layout.component';
4+
// Import Containers
5+
import {
6+
FullLayout,
7+
SimpleLayout
8+
} from './containers';
79

810
export const routes: Routes = [
911
{
@@ -13,43 +15,43 @@ export const routes: Routes = [
1315
},
1416
{
1517
path: '',
16-
component: FullLayoutComponent,
18+
component: FullLayout,
1719
data: {
1820
title: 'Home'
1921
},
2022
children: [
2123
{
2224
path: 'dashboard',
23-
loadChildren: './dashboard/dashboard.module#DashboardModule'
25+
loadChildren: './views/dashboard/dashboard.module#DashboardModule'
2426
},
2527
{
2628
path: 'components',
27-
loadChildren: './components/components.module#ComponentsModule'
29+
loadChildren: './views/components/components.module#ComponentsModule'
2830
},
2931
{
3032
path: 'icons',
31-
loadChildren: './icons/icons.module#IconsModule'
33+
loadChildren: './views/icons/icons.module#IconsModule'
3234
},
3335
{
3436
path: 'widgets',
35-
loadChildren: './widgets/widgets.module#WidgetsModule'
37+
loadChildren: './views/widgets/widgets.module#WidgetsModule'
3638
},
3739
{
3840
path: 'charts',
39-
loadChildren: './chartjs/chartjs.module#ChartJSModule'
41+
loadChildren: './views/chartjs/chartjs.module#ChartJSModule'
4042
}
4143
]
4244
},
4345
{
4446
path: 'pages',
45-
component: SimpleLayoutComponent,
47+
component: SimpleLayout,
4648
data: {
4749
title: 'Pages'
4850
},
4951
children: [
5052
{
5153
path: '',
52-
loadChildren: './pages/pages.module#PagesModule',
54+
loadChildren: './views/pages/pages.module#PagesModule',
5355
}
5456
]
5557
}

0 commit comments

Comments
 (0)