From ea6fcd2aa16b0dd2c509b398dd576c6af551dc42 Mon Sep 17 00:00:00 2001 From: "Deng, Qian" Date: Thu, 18 Jan 2018 16:20:41 +0800 Subject: [PATCH] Fix UAA edit password bug Fix UAA edit password bug Fix password edit bug Remove unused code Fix some tslint issue --- src/ui_ng/lib/package.json | 2 +- src/ui_ng/lib/pkg/package.json | 2 +- src/ui_ng/lib/src/config/config.ts | 8 + src/ui_ng/lib/tslint.json | 12 +- src/ui_ng/package.json | 2 +- .../account-settings-modal.component.html | 2 +- .../account-settings-modal.component.ts | 9 +- .../config/auth/config-auth.component.html | 2 +- .../app/config/auth/config-auth.component.ts | 21 +- .../src/app/config/config.component.1.html | 62 ------ src/ui_ng/src/app/config/config.component.ts | 204 +++++++++--------- .../inline-alert/inline-alert.component.ts | 4 +- src/ui_ng/tslint.json | 12 +- 13 files changed, 143 insertions(+), 199 deletions(-) delete mode 100644 src/ui_ng/src/app/config/config.component.1.html diff --git a/src/ui_ng/lib/package.json b/src/ui_ng/lib/package.json index c54f1e16f..8ac07e5ba 100644 --- a/src/ui_ng/lib/package.json +++ b/src/ui_ng/lib/package.json @@ -1,6 +1,6 @@ { "name": "harbor-ui", - "version": "0.6.22", + "version": "0.6.24", "description": "Harbor shared UI components based on Clarity and Angular4", "scripts": { "start": "ng serve --host 0.0.0.0 --port 4500 --proxy-config proxy.config.json", diff --git a/src/ui_ng/lib/pkg/package.json b/src/ui_ng/lib/pkg/package.json index 129332a39..15eeef28a 100644 --- a/src/ui_ng/lib/pkg/package.json +++ b/src/ui_ng/lib/pkg/package.json @@ -1,6 +1,6 @@ { "name": "harbor-ui", - "version": "0.6.22", + "version": "0.6.24", "description": "Harbor shared UI components based on Clarity and Angular4", "author": "VMware", "module": "index.js", diff --git a/src/ui_ng/lib/src/config/config.ts b/src/ui_ng/lib/src/config/config.ts index decc1fd95..f3b80b8d7 100644 --- a/src/ui_ng/lib/src/config/config.ts +++ b/src/ui_ng/lib/src/config/config.ts @@ -65,6 +65,10 @@ export class Configuration { ldap_uid: StringValueItem; ldap_url: StringValueItem; ldap_verify_cert: BoolValueItem; + uaa_client_id: StringValueItem; + uaa_client_secret?: StringValueItem; + uaa_endpoint: StringValueItem; + uaa_verify_cert: BoolValueItem; email_host: StringValueItem; email_identity: StringValueItem; email_from: StringValueItem; @@ -91,6 +95,10 @@ export class Configuration { this.ldap_uid = new StringValueItem("", true); this.ldap_url = new StringValueItem("", true); this.ldap_verify_cert = new BoolValueItem(true, true); + this.uaa_client_id = new StringValueItem("", true); + this.uaa_client_secret = new StringValueItem("", true); + this.uaa_endpoint = new StringValueItem("", true); + this.uaa_verify_cert = new BoolValueItem(false, true); this.email_host = new StringValueItem("", true); this.email_identity = new StringValueItem("", true); this.email_from = new StringValueItem("", true); diff --git a/src/ui_ng/lib/tslint.json b/src/ui_ng/lib/tslint.json index eb187d020..283c238ec 100644 --- a/src/ui_ng/lib/tslint.json +++ b/src/ui_ng/lib/tslint.json @@ -9,18 +9,15 @@ "check-space" ], "curly": true, - "eofline": true, - "forin": true, + "eofline": false, + "forin": false, "indent": [ true, "spaces" ], "label-position": true, "label-undefined": true, - "max-line-length": [ - false, - 140 - ], + "max-line-length": false, "member-access": false, "member-ordering": [ true, @@ -74,7 +71,8 @@ ], "quotemark": [ true, - "single" + "double", + "avoid-escape" ], "radix": true, "semicolon": [ diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index d4255e7ca..809a8b4b3 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -31,7 +31,7 @@ "clarity-icons": "^0.10.17", "clarity-ui": "^0.10.17", "core-js": "^2.4.1", - "harbor-ui": "0.6.23", + "harbor-ui": "0.6.24", "intl": "^1.2.5", "mutationobserver-shim": "^0.3.2", "ngx-cookie": "^1.0.0", diff --git a/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.html b/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.html index f46d45058..36d754823 100644 --- a/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.html +++ b/src/ui_ng/src/app/account/account-settings/account-settings-modal.component.html @@ -1,6 +1,6 @@ - +