Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 5a9b961

Browse files
ghillertoodamien
authored andcommitted
Update Flo to 0.8.5 + polish Angular 6.1 upgrade
1 parent d0f233d commit 5a9b961

File tree

8 files changed

+59
-53
lines changed

8 files changed

+59
-53
lines changed

ui/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spring-cloud-dataflow-ui",
3-
"version": "1.3.0",
3+
"version": "1.7.0",
44
"license": "Apache-2.0",
55
"scripts": {
66
"ng": "ng",
@@ -31,10 +31,10 @@
3131
"@angular/platform-browser": "6.1.10",
3232
"@angular/platform-browser-dynamic": "6.1.10",
3333
"@angular/router": "6.1.10",
34-
"angular-2-local-storage": "2.0.0",
3534
"core-js": "2.5.7",
36-
"rxjs": "6.2.1",
35+
"rxjs": "6.2.2",
3736
"zone.js": "0.8.26",
37+
"angular-2-local-storage": "2.0.0",
3838
"bootstrap-sass": "3.3.7",
3939
"d3": "4.12.0",
4040
"file-saver": "1.3.3",
@@ -49,47 +49,47 @@
4949
"web-animations-js": "2.3.1",
5050
"stompjs": "2.3.3",
5151
"jshint": "2.9.5",
52-
"spring-flo": "0.8.4",
52+
"spring-flo": "0.8.5",
5353
"ng-busy": "1.4.4",
5454
"rxjs-compat": "6.2.1",
5555
"uuid": "3.3.2"
5656
},
5757
"devDependencies": {
58+
"@angular-devkit/build-angular": "0.8.5",
59+
"@angular/cli": "6.2.5",
5860
"@angular/compiler-cli": "6.1.10",
59-
"@angular-devkit/build-angular": "0.6.8",
60-
"typescript": "2.7.2",
61-
"@angular/cli": "6.0.8",
6261
"@angular/language-service": "6.1.10",
63-
"@types/jasmine": "2.8.8",
64-
"@types/jasminewd2": "2.0.3",
62+
"@types/jasmine": "2.8.9",
63+
"@types/jasminewd2": "2.0.5",
6564
"@types/node": "8.9.5",
65+
"codelyzer": "4.3.0",
66+
"jasmine-core": "2.99.1",
67+
"jasmine-spec-reporter": "4.2.1",
68+
"karma": "3.0.0",
69+
"karma-chrome-launcher": "2.2.0",
70+
"karma-coverage-istanbul-reporter": "2.0.4",
71+
"karma-jasmine": "1.1.2",
72+
"karma-jasmine-html-reporter": "0.2.2",
73+
"protractor": "5.4.1",
74+
"ts-node": "7.0.1",
75+
"tslint": "5.11.0",
76+
"typescript": "2.9.2",
6677
"@types/uuid": "3.4.3",
6778
"@types/backbone": "1.3.43",
68-
"@types/codemirror": "0.0.60",
79+
"@types/codemirror": "0.0.65",
6980
"@types/jquery": "3.3.6",
7081
"@types/lodash": "4.14.116",
71-
"codelyzer": "4.2.1",
72-
"jasmine-core": "2.99.1",
73-
"jasmine-spec-reporter": "4.2.1",
74-
"karma": "2.0.5",
75-
"karma-chrome-launcher": "2.2.0",
7682
"karma-edge-launcher": "0.4.2",
7783
"karma-firefox-launcher": "1.1.0",
7884
"karma-safari-launcher": "1.0.0",
7985
"karma-sauce-launcher": "1.2.0",
8086
"karma-browserstack-launcher": "1.3.0",
81-
"karma-coverage-istanbul-reporter": "2.0.1",
82-
"karma-jasmine": "1.1.2",
83-
"karma-jasmine-html-reporter": "0.2.2",
84-
"protractor": "5.3.2",
85-
"ts-node": "5.0.1",
86-
"tslint": "5.9.1",
8787
"@compodoc/compodoc": "1.0.4",
8888
"@types/d3": "4.12.0",
8989
"@types/d3-dsv": "1.0.31",
90-
"browserstack-local": "1.3.3",
90+
"browserstack-local": "1.3.4",
9191
"napa": "3.0.0",
92-
"webpack-bundle-analyzer": "2.13.1",
92+
"webpack-bundle-analyzer": "3.0.3",
9393
"protractor-docker-plugin": "file:protractor-docker-plugin"
9494
},
9595
"napa-config": {

ui/src/app/auth/directives/caps-lock.directive.ts

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ export class CapsLockDirective implements AfterViewInit {
1313

1414
@Output() appCapsLock = new EventEmitter<boolean>();
1515

16-
/**
17-
* '20' is the non-printable key (function key): "CapsLock"
18-
*/
19-
private readonly capsLockKeyCode = 20;
20-
2116
constructor(private elem: ElementRef, private renderer: Renderer2) {
2217
}
2318

@@ -33,33 +28,29 @@ export class CapsLockDirective implements AfterViewInit {
3328

3429
@HostListener('window:keydown', ['$event'])
3530
onKeyDown(event: KeyboardEvent): void {
36-
if (event.which === this.capsLockKeyCode) {
37-
const capsOn = this.getCapsLockState(event);
31+
const capsOn = this.getCapsLockState(event);
3832

39-
if (capsOn) {
40-
this.renderer.setStyle(this.elem.nativeElement, 'display', 'inherit');
41-
} else {
42-
this.renderer.setStyle(this.elem.nativeElement, 'display', 'none');
43-
}
44-
45-
this.appCapsLock.emit(capsOn);
33+
if (capsOn) {
34+
this.renderer.setStyle(this.elem.nativeElement, 'display', 'inherit');
35+
} else {
36+
this.renderer.setStyle(this.elem.nativeElement, 'display', 'none');
4637
}
38+
39+
this.appCapsLock.emit(capsOn);
4740
}
4841

4942
@HostListener('window:keyup', ['$event'])
5043
onKeyUp(event: KeyboardEvent): void {
51-
if (event.which === this.capsLockKeyCode) {
52-
const capsOn = this.getCapsLockState(event);
44+
const capsOn = this.getCapsLockState(event);
5345

54-
if (!capsOn) {
55-
this.renderer.setStyle(this.elem.nativeElement, 'display', 'none');
56-
}
57-
this.appCapsLock.emit(capsOn);
46+
if (!capsOn) {
47+
this.renderer.setStyle(this.elem.nativeElement, 'display', 'none');
5848
}
49+
this.appCapsLock.emit(capsOn);
5950
}
6051

61-
private getCapsLockState(event: KeyboardEvent) {
62-
return (event.getModifierState && event.getModifierState('CapsLock'));
52+
private getCapsLockState(event: KeyboardEvent): boolean {
53+
return (event && event.getModifierState && event.getModifierState('CapsLock'));
6354
}
6455

6556
}

ui/src/app/shared/directives/layout-type.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class LayoutTypeDirective implements AfterViewInit {
1414

1515
currentClass = null;
1616

17-
@Input('type') type: String;
17+
@Input() type: String;
1818

1919
constructor(private _elementRef: ElementRef,
2020
private loggerService: LoggerService,

ui/src/environments/environment.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
// The file contents for the current environment will overwrite these during build.
2-
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
3-
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
4-
// The list of which env maps to which file can be found in `.angular-cli.json`.
1+
// This file can be replaced during build by using the `fileReplacements` array.
2+
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3+
// The list of file replacements can be found in `angular.json`.
54

65
export const environment = {
76
production: false
87
};
8+
9+
/*
10+
* For easier debugging in development mode, you can import the following file
11+
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12+
*
13+
* This import should be commented out in production mode because it will have a negative impact
14+
* on performance if an error is thrown.
15+
*/
16+
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.

ui/src/polyfills.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ import 'core-js/es7/reflect';
4747

4848

4949
/**
50-
* Required to support Web Animations `@angular/platform-browser/animations`.
51-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
50+
* Web Animations `@angular/platform-browser/animations`
51+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
52+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
5253
**/
5354
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5455

ui/src/tsconfig.app.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/app",
5-
"module": "es2015",
65
"types": []
76
},
87
"exclude": [

ui/src/tslint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tslint.json",
3+
"rules": {
4+
5+
}
6+
}

ui/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"outDir": "./dist/out-tsc",
66
"sourceMap": true,
77
"declaration": false,
8+
"module": "es2015",
89
"moduleResolution": "node",
910
"emitDecoratorMetadata": true,
1011
"experimentalDecorators": true,

0 commit comments

Comments
 (0)