Skip to content

Commit 9c0e34d

Browse files
committed
update dependencies;
1 parent 328f159 commit 9c0e34d

File tree

5 files changed

+42
-36
lines changed

5 files changed

+42
-36
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ ng serve
4747

4848
# 效果图
4949

50+
![0.0.1_alpha](http://oqtn5nfde.bkt.clouddn.com/0.0.1_alpha.gif)
51+
5052
#### 人员管理
5153
![person-list](http://oqtn5nfde.bkt.clouddn.com/person-list.png)
5254

@@ -71,10 +73,6 @@ ng serve
7173
#### 地图
7274
![amap](http://oqtn5nfde.bkt.clouddn.com/amap.png)
7375

74-
#### 奇怪的报错
75-
如果运行时遇到下面这个错误,请到`share.module`下将`CKEditorModule`剪切后再黏贴,目前没搞明白为什么还有这种操作,如果你知道还请告诉我一下~
76-
![error](http://oqtn5nfde.bkt.clouddn.com/error.png)
77-
7876
PS: 个人项目,一些琐碎的细节没有实现;与后台交互使用的是mock-data,增删改也是模拟成功返回;
7977

8078

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular-mdl/core": "^4.0.3",
16-
"@angular/animations": "^4.1.3",
17-
"@angular/common": "^4.0.0",
18-
"@angular/compiler": "^4.0.0",
19-
"@angular/core": "^4.0.0",
20-
"@angular/forms": "^4.0.0",
21-
"@angular/http": "^4.0.0",
15+
"@angular-mdl/core": "4.0.8",
16+
"@angular/animations": "^4.2.2",
17+
"@angular/common": "^4.2.2",
18+
"@angular/compiler": "^4.2.2",
19+
"@angular/core": "^4.2.2",
20+
"@angular/forms": "^4.2.2",
21+
"@angular/http": "^4.2.2",
2222
"@angular/material": "^2.0.0-beta.6",
23-
"@angular/platform-browser": "^4.0.0",
24-
"@angular/platform-browser-dynamic": "^4.0.0",
25-
"@angular/router": "^4.0.0",
23+
"@angular/platform-browser": "^4.2.2",
24+
"@angular/platform-browser-dynamic": "^4.2.2",
25+
"@angular/router": "^4.2.2",
2626
"@types/hammerjs": "^2.0.34",
2727
"@types/jquery": "^2.0.45",
2828
"core-js": "^2.4.1",
@@ -34,17 +34,17 @@
3434
"material-design-icons": "^3.0.1",
3535
"material-design-lite": "^1.3.0",
3636
"moment": "^2.18.1",
37-
"ng2-ckeditor": "^1.1.7",
38-
"ng2-toastr": "^4.0.1",
37+
"ng2-ckeditor": "^1.1.8",
38+
"ng2-toastr": "^4.1.0",
3939
"ng2-translate": "^5.0.0",
40-
"ngx-echarts": "^1.2.0",
40+
"ngx-echarts": "^1.2.1",
4141
"rxjs": "^5.1.0",
4242
"zone.js": "^0.8.4",
4343
"ztree": "^3.5.24"
4444
},
4545
"devDependencies": {
46-
"@angular/cli": "1.0.3",
47-
"@angular/compiler-cli": "^4.0.0",
46+
"@angular/cli": "^1.1.1",
47+
"@angular/compiler-cli": "^4.2.2",
4848
"@types/jasmine": "2.5.38",
4949
"@types/node": "~6.0.60",
5050
"codelyzer": "~2.0.0",
@@ -59,6 +59,6 @@
5959
"protractor": "~5.1.0",
6060
"ts-node": "~2.0.0",
6161
"tslint": "~4.5.0",
62-
"typescript": "~2.2.0"
62+
"typescript": "^2.3.4"
6363
}
6464
}

src/app/app.routing.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { UserInfoComponent } from './user/user-info/user-info.component';
1313
import { UserChangePwdComponent } from './user/user-change-pwd/user-change-pwd.component';
1414
import { UserService } from './user/user.service';
1515

16-
// import { AppCkeditorComponent } from './share/app-ckeditor/app-ckeditor.component';
16+
import { AppCkeditorComponent } from './share/app-ckeditor/app-ckeditor.component';
1717
import { AppChartsComponent } from './share/app-charts/app-charts.component';
1818
import { AmapDemoComponent } from './share/app-amap/amap-demo.component';
1919
import { CalendarDemoComponent } from './share/app-calendar/calendar-demo.component';
@@ -66,10 +66,10 @@ const appRoutes: Routes = [
6666
path: 'charts',
6767
component: AppChartsComponent
6868
},
69-
// {
70-
// path: 'ckeditor',
71-
// component: AppCkeditorComponent
72-
// },
69+
{
70+
path: 'ckeditor',
71+
component: AppCkeditorComponent
72+
},
7373
{
7474
path: 'amap',
7575
component: AmapDemoComponent

src/app/share/share.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
66

77
import { MdlModule } from '@angular-mdl/core';
88
import { ToastModule } from 'ng2-toastr/ng2-toastr';
9-
// import { CKEditorModule } from 'ng2-ckeditor';
9+
import { CKEditorModule } from 'ng2-ckeditor';
1010

1111
import { AmapComponent } from './app-amap/amap/amap.component';
1212
import { CalendarComponent } from './app-calendar/calendar/calendar.component';
1313
import { AngularEchartsModule } from 'ngx-echarts';
1414

1515
import { FormControlComponent } from '../user/user-info/dynamic-form/form-control.component';
16-
// import { AppCkeditorComponent } from './app-ckeditor/app-ckeditor.component';
16+
import { AppCkeditorComponent } from './app-ckeditor/app-ckeditor.component';
1717
import { AppChartsComponent } from './app-charts/app-charts.component';
1818
import { AmapDemoComponent } from './app-amap/amap-demo.component';
1919
import { CalendarDemoComponent } from './app-calendar/calendar-demo.component';
@@ -31,13 +31,13 @@ import { AppJsplumbComponent } from './app-jsplumb/app-jsplumb.component';
3131
ReactiveFormsModule,
3232
MdlModule,
3333
ToastModule.forRoot(),
34-
// CKEditorModule,
34+
CKEditorModule,
3535
AngularEchartsModule,
3636
// RouterModule.forChild(shareRoutes)
3737
],
3838
declarations: [
3939
FormControlComponent,
40-
// AppCkeditorComponent,
40+
AppCkeditorComponent,
4141
AppChartsComponent,
4242
AmapComponent,
4343
AmapDemoComponent,
@@ -50,7 +50,7 @@ import { AppJsplumbComponent } from './app-jsplumb/app-jsplumb.component';
5050
exports: [
5151
MdlModule,
5252
FormControlComponent,
53-
// AppCkeditorComponent
53+
AppCkeditorComponent
5454
]
5555
})
5656
export class ShareModule { }

src/assets/mock-data/menu.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
[{
1+
[
2+
{
23
"name": "首页",
34
"icon": "home",
45
"link": "/home"
56
},
67
{
78
"name": "增改查删Demo",
89
"icon": "star",
9-
"submenu": [{
10-
"name": "人员管理",
11-
"icon": "person",
12-
"link": "/person-list"
13-
}]
10+
"submenu": [
11+
{
12+
"name": "人员管理",
13+
"icon": "person",
14+
"link": "/person-list"
15+
}
16+
]
1417
},
1518
{
1619
"name": "一些工具",
@@ -45,6 +48,11 @@
4548
"name": "流程图",
4649
"icon": "widgets",
4750
"link": "/jsplumb"
51+
},
52+
{
53+
"name": "文本编辑器",
54+
"icon": "mode_edit",
55+
"link": "/ckeditor"
4856
}
4957
]
5058
}

0 commit comments

Comments
 (0)