Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b01451

Browse files
committed
updated angular8,core-js,antd
1 parent9d61e8d commit4b01451

File tree

23 files changed

+1443
-1151
lines changed

23 files changed

+1443
-1151
lines changed

‎README.md‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
#Angular7 for CMS
1+
#Angular8 for CMS
22

33
###Project Technical Structure
44
***
5-
*angular7
5+
*Angular8
66
* ng-zorro-antd
7-
* angular/router
8-
* angular/http
9-
* rxjs
10-
* webpack4
11-
* less
7+
* Angular/router
8+
* Angular/http
9+
* Rxjs
10+
* WebSocket
11+
* Webpack4
12+
* Less
1213

1314
###Install
1415

1516
***
1617
project address: (`git clone`)
1718

1819
```
19-
git clone git@github.com:xpioneer/cms-fe-angular7.git
20+
git clone git@github.com:xpioneer/cms-fe-angular8.git
2021
```
2122
install node_modules with`yarn`
2223

‎conf/webpack.dev.conf.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path'),
66

77
const_PROD_=process.env.NODE_ENV==='production'
88

9-
config.mode=_PROD_ ?'development' :'none'
9+
config.mode='development'
1010
config.devServer={
1111
port:'9100',
1212
host:'localhost',

‎conf/webpack.dll.conf.js‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎conf/webpack.prod.conf.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const path = require('path'),
99

1010
const_PROD_=process.env.NODE_ENV==='production'
1111

12-
config.mode=_PROD_ ?'production' :'none'
12+
config.mode='production'
1313
config.plugins=(config.plugins||[]).concat([
1414
newCleanWebpackPlugin(['dist/*'],
1515
{

‎package.json‎

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name":"CMS-FE",
33
"version":"1.2.0",
4-
"description":"angular6 for CMS",
4+
"description":"angular8 for CMS",
55
"main":"index.js",
66
"author":"xpioneer",
77
"keywords": [
8-
"angular6",
8+
"angular8",
99
"HttpInterceptor",
1010
"lazyload",
11+
"WebSocket",
1112
"ng-zorro-antd",
1213
"loadChildren"
1314
],
@@ -22,28 +23,28 @@
2223
"lintfix":"NODE_ENV=development node_modules/.bin/tslint -c tslint.json -p tsconfig.json --fix --force"
2324
},
2425
"dependencies": {
25-
"@angular/animations":"^7.1.4",
26-
"@angular/common":"^7.1.4",
27-
"@angular/compiler":"^7.1.4",
28-
"@angular/core":"^7.1.4",
29-
"@angular/forms":"^7.1.4",
30-
"@angular/http":"^7.1.4",
31-
"@angular/platform-browser":"^7.1.4",
32-
"@angular/platform-browser-dynamic":"^7.1.4",
33-
"@angular/router":"^7.1.4",
34-
"core-js":"^2.6.1",
26+
"@angular/animations":"^8.0.2",
27+
"@angular/common":"^8.0.2",
28+
"@angular/compiler":"^8.0.2",
29+
"@angular/core":"^8.0.2",
30+
"@angular/forms":"^8.0.2",
31+
"@angular/http":"^7.2.15",
32+
"@angular/platform-browser":"^8.0.2",
33+
"@angular/platform-browser-dynamic":"^8.0.2",
34+
"@angular/router":"^8.0.2",
35+
"core-js":"^3.1.4",
3536
"echarts":"^3.8.5",
3637
"moment":"^2.22.2",
37-
"ng-zorro-antd":"^7.0.0-rc.3",
38+
"ng-zorro-antd":"^7.5.1",
3839
"quill":"^1.3.2",
3940
"reflect-metadata":"^0.1.12",
40-
"rxjs":"^6.2.2",
41-
"rxjs-compat":"^6.2.2",
42-
"zone.js":"^0.8.26"
41+
"rxjs":"^6.5.2",
42+
"rxjs-compat":"^6.5.2",
43+
"zone.js":"^0.9.1"
4344
},
4445
"devDependencies": {
45-
"@angular/compiler-cli":"^7.1.4",
46-
"@ngtools/webpack":"^7.1.4",
46+
"@angular/compiler-cli":"^8.0.2",
47+
"@ngtools/webpack":"^8.0.3",
4748
"@types/node":"^8.0.24",
4849
"autoprefixer":"^7.1.4",
4950
"clean-webpack-plugin":"^0.1.16",
@@ -62,11 +63,11 @@
6263
"sw-precache-webpack-plugin":"^0.11.5",
6364
"tslint":"^5.11.0",
6465
"tslint-loader":"^3.6.0",
65-
"typescript":"3.1.3",
66+
"typescript":"3.4.5",
6667
"uglifyjs-webpack-plugin":"^1.2.7",
6768
"url-loader":"^1.0.1",
68-
"webpack":"^4.16.1",
69-
"webpack-cli":"^3.1.0",
70-
"webpack-dev-server":"^3.1.4"
69+
"webpack":"^4.35.0",
70+
"webpack-cli":"^3.3.4",
71+
"webpack-dev-server":"^3.7.2"
7172
}
7273
}

‎src/app/article/addarticle/addarticle.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AddArticleService } from './addarticle.service';
1313
exportclassAddArticleComponentimplementsOnInit{
1414
publicisConfirmLoading=false;
1515
publicaddArticle:ArticleModel=newArticleModel();
16-
@ViewChild('form')privateform:NgForm;
16+
@ViewChild('form',{static:false})privateform:NgForm;
1717

1818
publictagList:ITag[]=[];
1919
publiccheckedTag:object={};

‎src/app/article/editarticle/editarticle.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { EditArticleService } from './editarticle.service';
1313
exportclassEditArticleComponentimplementsOnInit{
1414
publicisConfirmLoading=false;
1515
publicmainModel:ArticleModel=newArticleModel();
16-
@ViewChild('form')privateform:NgForm;
16+
@ViewChild('form',{static:false})privateform:NgForm;
1717

1818
publictagList:ITag[]=[];
1919
public_tagList:object[]=[];

‎src/app/articletype/addarticletype/addarticletype.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AddArticleTypeService } from './addarticletype.service';
1313
exportclassAddArticleTypeComponentimplementsOnInit{
1414
publicisConfirmLoading=false;
1515
publicaddArticleType:ArticleTypeModel=newArticleTypeModel();
16-
@ViewChild('form')privateform:NgForm;
16+
@ViewChild('form',{static:false})privateform:NgForm;
1717

1818
constructor(
1919
privaterouter:Router,

‎src/app/articletype/editarticletype/editarticletype.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { EditArticleTypeService } from './editarticletype.service';
1313
exportclassEditArticleTypeComponentimplementsOnInit{
1414
publicisConfirmLoading=false;
1515
publiceditArticleType:ArticleTypeModel=newArticleTypeModel();
16-
@ViewChild('form')privateform:NgForm;
16+
@ViewChild('form',{static:false})privateform:NgForm;
1717

1818
constructor(
1919
privaterouter:Router,

‎src/app/charts/chart.component.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ require('echarts/lib/component/legend/ScrollableLegendView');
2727
})
2828
exportclassChartComponent{
2929
//@ViewChild('form') private form: NgForm;
30-
@ViewChild('systemLog')publicsystemLog:ElementRef;
31-
@ViewChild('systemLogDate')publicsystemLogDate:ElementRef;
32-
@ViewChild('articleType')publicarticleType:ElementRef;
33-
@ViewChild('tag')publictag:ElementRef;
30+
@ViewChild('systemLog',{static:false})publicsystemLog:ElementRef;
31+
@ViewChild('systemLogDate',{static:false})publicsystemLogDate:ElementRef;
32+
@ViewChild('articleType',{static:false})publicarticleType:ElementRef;
33+
@ViewChild('tag',{static:false})publictag:ElementRef;
3434
//@ViewChild('test') public testChart: ElementRef;
3535

3636
publicdisable:boolean=false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp