diff --git a/.gitignore b/.gitignore
index 0412c70ef..b3572fc64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,4 @@ src/ui_ng/aot/**/*.json
**/*ngfactory.ts
**/aot
**/dist
+**/.bin
\ No newline at end of file
diff --git a/src/ui_ng/lib/README.md b/src/ui_ng/lib/README.md
index 10ae806ee..01d46bac4 100644
--- a/src/ui_ng/lib/README.md
+++ b/src/ui_ng/lib/README.md
@@ -80,6 +80,8 @@ If **projectId** is set to the id of specified project, then only show the repli
**projectId** is used to specify which projects the repositories are from.
+**projectName** is used to generate the related commands for pushing images.
+
**hasSignedIn** is a user session related property to determined whether a valid user signed in session existing. This component supports anonymous user.
**hasProjectAdminRole** is a user session related property to determined whether the current user has project administrator role. Some action menus might be disabled based on this property.
@@ -87,7 +89,7 @@ If **projectId** is set to the id of specified project, then only show the repli
**tagClickEvent** is an @output event emitter for you to catch the tag click events.
```
-
+
...
diff --git a/src/ui_ng/lib/package.json b/src/ui_ng/lib/package.json
index 7db338ddf..c618fd735 100644
--- a/src/ui_ng/lib/package.json
+++ b/src/ui_ng/lib/package.json
@@ -18,21 +18,21 @@
},
"private": true,
"dependencies": {
- "@angular/animations": "^4.1.3",
- "@angular/common": "^4.1.3",
- "@angular/compiler": "^4.1.3",
- "@angular/core": "^4.1.3",
- "@angular/forms": "^4.1.3",
- "@angular/http": "^4.1.3",
- "@angular/platform-browser": "^4.1.3",
- "@angular/platform-browser-dynamic": "^4.1.3",
- "@angular/router": "^4.1.3",
+ "@angular/animations": "~4.1.3",
+ "@angular/common": "~4.1.3",
+ "@angular/compiler": "~4.1.3",
+ "@angular/core": "~4.1.3",
+ "@angular/forms": "~4.1.3",
+ "@angular/http": "~4.1.3",
+ "@angular/platform-browser": "~4.1.3",
+ "@angular/platform-browser-dynamic": "~4.1.3",
+ "@angular/router": "~4.1.3",
"@ngx-translate/core": "^6.0.0",
"@ngx-translate/http-loader": "0.0.3",
"@webcomponents/custom-elements": "1.0.0-alpha.3",
- "clarity-angular": "^0.9.7",
- "clarity-icons": "^0.9.7",
- "clarity-ui": "^0.9.7",
+ "clarity-angular": "~0.9.8",
+ "clarity-icons": "~0.9.8",
+ "clarity-ui": "~0.9.8",
"core-js": "^2.4.1",
"intl": "^1.2.5",
"mutationobserver-shim": "^0.3.2",
@@ -45,12 +45,13 @@
},
"devDependencies": {
"@angular/cli": "^1.0.0",
- "@angular/compiler-cli": "^4.0.1",
+ "@angular/compiler-cli": "~4.1.3",
"@types/core-js": "^0.9.41",
"@types/jasmine": "~2.2.30",
"@types/node": "^6.0.42",
"bootstrap": "4.0.0-alpha.5",
"codelyzer": "~2.0.0-beta.4",
+ "copyfiles": "^1.2.0",
"enhanced-resolve": "^3.0.0",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
@@ -61,14 +62,14 @@
"karma-phantomjs-launcher": "^1.0.0",
"karma-remap-istanbul": "^0.2.1",
"protractor": "^4.0.9",
+ "rimraf": "^2.6.1",
"rollup": "^0.41.6",
+ "rollup-plugin-node-resolve": "^3.0.0",
"ts-node": "1.2.1",
"tslint": "^4.1.1",
"typescript": "~2.2.0",
"typings": "^1.4.0",
"uglify-js": "^2.8.22",
- "webdriver-manager": "10.2.5",
- "rimraf": "^2.6.1",
- "copyfiles": "^1.2.0"
+ "webdriver-manager": "10.2.5"
}
}
\ No newline at end of file
diff --git a/src/ui_ng/lib/pkg/package.json b/src/ui_ng/lib/pkg/package.json
index 3cd233c18..34660aa5a 100644
--- a/src/ui_ng/lib/pkg/package.json
+++ b/src/ui_ng/lib/pkg/package.json
@@ -19,21 +19,21 @@
},
"homepage": "https://github.com/vmware/harbor#readme",
"peerDependencies": {
- "@angular/animations": "^4.1.3",
- "@angular/common": "^4.1.3",
- "@angular/compiler": "^4.1.3",
- "@angular/core": "^4.1.3",
- "@angular/forms": "^4.1.3",
- "@angular/http": "^4.1.3",
- "@angular/platform-browser": "^4.1.3",
- "@angular/platform-browser-dynamic": "^4.1.3",
- "@angular/router": "^4.1.3",
+ "@angular/animations": "~4.1.3",
+ "@angular/common": "~4.1.3",
+ "@angular/compiler": "~4.1.3",
+ "@angular/core": "~4.1.3",
+ "@angular/forms": "~4.1.3",
+ "@angular/http": "~4.1.3",
+ "@angular/platform-browser": "~4.1.3",
+ "@angular/platform-browser-dynamic": "~4.1.3",
+ "@angular/router": "~4.1.3",
"@ngx-translate/core": "^6.0.0",
"@ngx-translate/http-loader": "0.0.3",
"@webcomponents/custom-elements": "1.0.0-alpha.3",
- "clarity-angular": "^0.9.7",
- "clarity-icons": "^0.9.7",
- "clarity-ui": "^0.9.7",
+ "clarity-angular": "~0.9.8",
+ "clarity-icons": "~0.9.8",
+ "clarity-ui": "~0.9.8",
"core-js": "^2.4.1",
"intl": "^1.2.5",
"mutationobserver-shim": "^0.3.2",
diff --git a/src/ui_ng/lib/rollup.config.js b/src/ui_ng/lib/rollup.config.js
index 97d5f17b1..73785f82f 100644
--- a/src/ui_ng/lib/rollup.config.js
+++ b/src/ui_ng/lib/rollup.config.js
@@ -1,3 +1,5 @@
+import resolve from 'rollup-plugin-node-resolve';
+
export default {
entry: 'dist/index.js',
dest: 'dist/bundles/harborui.umd.js',
@@ -11,10 +13,14 @@ export default {
'@angular/forms',
'@angular/platform-browser',
'@angular/http',
+ '@angular/router',
'clarity-angular',
'@ngx-translate/core',
'@ngx-translate/http-loader',
+ 'ngx-cookie',
+ 'ngx-clipboard',
'rxjs',
+ 'rxjs/Rx',
'rxjs/Subject',
'rxjs/Observable',
'rxjs/add/observable/of',
@@ -29,8 +35,15 @@ export default {
'@angular/forms': 'ng.forms',
'@angular/http': 'ng.http',
'@angular/platform-browser': 'ng.platformBrowser',
+ '@angular/router': 'ng.router',
+ 'ngx-clipboard': 'ngx.clipboard',
+ 'clarity-angular': 'ng.clarity',
+ 'ngx-cookie': 'ngx.cookie',
+ '@ngx-translate/core': 'ngx.translate',
+ '@ngx-translate/http-loader': 'ngx.translate',
'rxjs': 'rxjs',
'rxjs/Subject': 'rxjs.Subject',
+ 'rxjs/Rx': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/ReplaySubject': 'Rx',
'rxjs/add/operator/map': 'Rx.Observable.prototype',
@@ -50,5 +63,10 @@ export default {
// console.warn everything else
console.warn(warning.message);
- }
+ },
+ plugins: [resolve({
+ customResolveOptions: {
+ moduleDirectory: 'node_modules'
+ }
+ })]
}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/push-image/push-image.css.ts b/src/ui_ng/lib/src/push-image/push-image.css.ts
index 4fdca4ade..78ee359c5 100644
--- a/src/ui_ng/lib/src/push-image/push-image.css.ts
+++ b/src/ui_ng/lib/src/push-image/push-image.css.ts
@@ -39,4 +39,8 @@ export const PUSH_IMAGE_STYLE: string = `
min-width: 360px;
max-width: 720px;
}
+
+.btn-font {
+ font-size: 14px !important;
+}
`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/push-image/push-image.html.ts b/src/ui_ng/lib/src/push-image/push-image.html.ts
index 7fe84ed1e..998ba5f3e 100644
--- a/src/ui_ng/lib/src/push-image/push-image.html.ts
+++ b/src/ui_ng/lib/src/push-image/push-image.html.ts
@@ -1,7 +1,7 @@
export const PUSH_IMAGE_HTML: string = `
-