Skip to content

Commit 303f84b

Browse files
committed
fix: remove unused depencies
1 parent 97cc837 commit 303f84b

File tree

7 files changed

+2228
-2077
lines changed

7 files changed

+2228
-2077
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 xiayinchang
3+
Copyright (c) 2018 coderiver
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 40 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,34 @@
44
"description": "",
55
"scripts": {
66
"ng": "ng",
7-
"start": "npm run color-less && ng serve -o",
7+
"start": "npm run color-less && ng serve --proxy-config proxy.conf.json --host 0.0.0.0 -o",
88
"build": "npm run color-less && ng build --prod --build-optimizer",
99
"test": "ng test",
10-
"lint": "npm run lint:ts && npm run lint:style",
10+
"lint": "npm run lint:style",
1111
"e2e": "ng e2e",
12-
"watch": "ng serve --proxy-config proxy.conf.json --host 0.0.0.0 --disable-host-check",
1312
"postinstall": "node ./scripts/pug-rule-insert.js",
14-
"analyze": "npm run color-less && ng build --prod --build-optimizer --stats-json",
15-
"test-coverage": "ng test --code-coverage --watch=false",
1613
"color-less": "node scripts/color-less.js",
1714
"lint:ts": "ng lint",
1815
"lint:style": "stylelint \"{src}/**/*.less\" --syntax less",
1916
"lint-staged": "lint-staged",
2017
"tslint-check": "tslint-config-prettier-check ./tslint.json",
21-
"hmr": "ng serve -c=hmr",
18+
"hmr": "npm run color-less && ng serve -c=hmr",
2219
"test:coverage": "jest --runInBand --coverage",
2320
"test:snapshot": "jest --coverage -u",
2421
"test:watch": "jest --clearCache && jest --watch"
2522
},
26-
"author": "xiayinchang",
23+
"author": "coderiver",
2724
"license": "MIT",
2825
"dependencies": {
29-
"@angular/animations": "7.1.4",
30-
"@angular/cdk": "7.2.0",
31-
"@angular/common": "7.1.4",
32-
"@angular/compiler": "7.1.4",
33-
"@angular/core": "7.1.4",
34-
"@angular/flex-layout": "7.0.0-beta.22",
35-
"@angular/forms": "7.1.4",
36-
"@angular/http": "7.1.4",
37-
"@angular/material": "7.2.0",
38-
"@angular/platform-browser": "7.1.4",
39-
"@angular/platform-browser-dynamic": "7.1.4",
40-
"@angular/platform-server": "7.1.4",
41-
"@angular/router": "7.1.4",
26+
"@angular/animations": "7.2.0",
27+
"@angular/cdk": "7.2.1",
28+
"@angular/common": "7.2.0",
29+
"@angular/compiler": "7.2.0",
30+
"@angular/core": "7.2.0",
31+
"@angular/forms": "7.2.0",
32+
"@angular/platform-browser": "7.2.0",
33+
"@angular/platform-browser-dynamic": "7.2.0",
34+
"@angular/router": "7.2.0",
4235
"@delon/abc": "^7.0.0-rc.1",
4336
"@delon/acl": "^7.0.0-rc.1",
4437
"@delon/auth": "^7.0.0-rc.1",
@@ -48,68 +41,22 @@
4841
"@delon/mock": "^7.0.0-rc.1",
4942
"@delon/theme": "^7.0.0-rc.1",
5043
"@delon/util": "^7.0.0-rc.1",
51-
"ajv": "^6.4.0",
52-
"apollo-angular": "1.5.0",
53-
"apollo-angular-link-http": "1.4.0",
54-
"apollo-cache-inmemory": "1.3.12",
55-
"apollo-client": "2.4.8",
56-
"apollo-link-ws": "1.0.12",
57-
"apollo-server-express": "2.3.1",
58-
"body-parser": "1.18.3",
59-
"cookie-parser": "1.4.3",
60-
"core-js": "2.6.1",
61-
"express": "4.16.4",
62-
"glob": "7.1.3",
63-
"graphql": "14.0.2",
64-
"graphql-subscriptions": "1.0.0",
65-
"graphql-tag": "2.10.0",
66-
"graphql-tools": "4.0.3",
67-
"hammerjs": "2.0.8",
68-
"ng-alain": "^7.0.0-rc.1",
6944
"ng-zorro-antd": "^7.0.0-rc.2",
70-
"passport": "0.4.0",
71-
"passport-facebook-token": "3.3.0",
72-
"passport-google-plus-token": "2.1.0",
73-
"passport-jwt": "4.0.0",
74-
"passport-local": "1.0.0",
75-
"passport-twitter-token": "1.3.0",
76-
"redis": "2.8.0",
77-
"reflect-metadata": "0.1.12",
78-
"request": "2.88.0",
7945
"rxjs": "6.3.3",
80-
"rxjs-compat": "6.3.3",
8146
"screenfull": "^4.0.0",
82-
"subscriptions-transport-ws": "0.9.15",
83-
"ws": "6.1.2",
8447
"zone.js": "0.8.26"
8548
},
8649
"devDependencies": {
87-
"@angular-builders/jest": "^7.0.0",
88-
"@angular-devkit/build-angular": "0.11.4",
89-
"@angular/cli": "7.1.4",
90-
"@angular/compiler-cli": "7.1.4",
91-
"@angular/language-service": "7.1.4",
50+
"@angular-builders/jest": "^7.2.0",
51+
"@angular-devkit/build-angular": "0.12.1",
52+
"@angular/cli": "7.2.1",
53+
"@angular/compiler-cli": "7.2.0",
9254
"@angularclass/hmr": "^2.1.3",
93-
"@types/cookie-parser": "1.4.1",
94-
"@types/express": "4.16.0",
95-
"@types/glob": "7.1.1",
96-
"@types/graphql": "14.0.3",
97-
"@types/helmet": "0.0.42",
9855
"@types/jasmine": "^3.3.0",
9956
"@types/jasminewd2": "^2.0.6",
100-
"@types/jest": "^23.3.9",
101-
"@types/joi": "14.0.1",
102-
"@types/jsonwebtoken": "8.3.0",
103-
"@types/mongoose": "5.3.5",
10457
"@types/node": "^10.12.9",
105-
"@types/passport": "1.0.0",
106-
"@types/passport-jwt": "3.0.1",
107-
"@types/passport-local": "1.0.33",
108-
"@types/request": "2.48.1",
109-
"@types/ws": "6.0.1",
11058
"apply-loader": "^2.0.0",
111-
"codelyzer": "4.5.0",
112-
"concurrently": "4.1.0",
59+
"codelyzer": "^4.5.0",
11360
"editorconfig-tools": "^0.1.1",
11461
"husky": "^1.2.0",
11562
"istanbul-reports": "^2.0.1",
@@ -120,47 +67,39 @@
12067
"jest-sonar-reporter": "^2.0.0",
12168
"less-bundle-promise": "^1.0.7",
12269
"lint-staged": "^8.0.5",
123-
"ng-alain": "^7.0.0-rc.1",
12470
"ngx-wallaby-jest": "0.0.1",
125-
"node-sass": "4.11.0",
126-
"nodemon-webpack-plugin": "4.0.7",
12771
"prettier": "^1.12.1",
12872
"prettier-stylelint": "^0.4.2",
12973
"protractor": "5.4.2",
13074
"pug": "^2.0.3",
13175
"pug-jest": "^1.0.1",
13276
"pug-loader": "^2.4.0",
133-
"rimraf": "2.6.2",
13477
"stylelint": "^9.2.0",
135-
"stylelint-config-standard": "^18.2.0",
136-
"ts-loader": "5.3.2",
13778
"ts-node": "7.0.1",
138-
"tslint": "5.12.0",
79+
"tslint": "^5.12.0",
13980
"tslint-config-prettier": "^1.12.0",
140-
"tslint-language-service": "^0.9.9",
141-
"tslint-loader": "3.6.0",
142-
"typescript": "3.1.1",
143-
"webpack": "4.28.2",
144-
"webpack-cli": "3.1.2",
145-
"webpack-node-externals": "1.7.2"
81+
"typescript": "3.2.2",
82+
"webpack": "4.28.2"
14683
},
14784
"lint-staged": {
148-
"*.{cmd,html,json,md,sh,txt,xml,yml}": [
149-
"editorconfig-tools fix",
150-
"git add"
151-
],
152-
"*.ts": [
153-
"npm run lint:ts",
154-
"prettier --write",
155-
"git add"
156-
],
157-
"*.less": [
158-
"npm run lint:style",
159-
"prettier --write",
160-
"git add"
161-
],
162-
"ignore": [
163-
"src/assets/*"
164-
]
85+
"linters": {
86+
"*.{cmd,html,json,md,sh,txt,xml,yml}": [
87+
"editorconfig-tools fix",
88+
"git add"
89+
],
90+
"*.ts": [
91+
"npm run lint:ts",
92+
"prettier --write",
93+
"git add"
94+
],
95+
"*.less": [
96+
"npm run lint:style",
97+
"prettier --write",
98+
"git add"
99+
],
100+
"ignore": [
101+
"src/assets/*"
102+
]
103+
}
165104
}
166105
}

src/app/components/passport/login/login.component.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ form(nz-form, [formGroup]='form', (ngSubmit)='submit()', role='form')
1818
nz-input-group(nzSize='large', nzPrefixIcon='anticon anticon-user')
1919
input(nz-input, formControlName='mobile', placeholder='mobile number')
2020
nz-form-explain(*ngIf='mobile.dirty && mobile.errors')
21-
ng-container(*ngIf='mobile.errors.required') 请输入手机号
22-
ng-container(*ngIf='mobile.errors.pattern') 手机号格式错误
21+
ng-container(*ngIf='mobile.errors.required') 请输入手机号
22+
ng-container(*ngIf='mobile.errors.pattern') 手机号格式错误
2323
nz-form-item
2424
nz-form-control
2525
nz-row([nzGutter]='8')

src/app/material/material.module.ts

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

src/app/services/auth.service.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { HttpClient } from '@angular/common/http';
33
import {Observable, of} from 'rxjs';
44
import { IToken } from '@shared/interfaces/token.interface';
55
import 'rxjs/add/operator/mergeMap';
6+
import { mergeMap} from 'rxjs/operators';
67

78
@Injectable()
89
export class AuthService {
@@ -33,11 +34,12 @@ export class AuthService {
3334
}
3435

3536
facebookSignIn(code: string): Observable<any> {
36-
return this.httpClient.post('api/auth/facebook/signin', { code })
37-
.flatMap((token: IToken) => {
37+
return this.httpClient.post('api/auth/facebook/signin', { code }).pipe(
38+
mergeMap((token: IToken) => {
3839
localStorage.setItem('token', token.token);
3940
return of(token);
40-
}).pipe();
41+
})
42+
);
4143
}
4244

4345
requestTwitterRedirectUri(): Observable<any> {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy