diff --git a/src/ui_ng/lib/package.json b/src/ui_ng/lib/package.json index f42d909469..42fc5e5318 100644 --- a/src/ui_ng/lib/package.json +++ b/src/ui_ng/lib/package.json @@ -1,6 +1,6 @@ { "name": "harbor-ui", - "version": "0.7.10", + "version": "0.7.13", "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 9d6eb3d455..35ddbea1ae 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.7.10", + "version": "0.7.13", "description": "Harbor shared UI components based on Clarity and Angular4", "author": "VMware", "module": "index.js", diff --git a/src/ui_ng/lib/src/harbor-library.module.ts b/src/ui_ng/lib/src/harbor-library.module.ts index fbc00820b0..6263689452 100644 --- a/src/ui_ng/lib/src/harbor-library.module.ts +++ b/src/ui_ng/lib/src/harbor-library.module.ts @@ -75,14 +75,16 @@ export const DefaultServiceConfig: IServiceConfig = { repositoryBaseEndpoint: "/api/repositories", logBaseEndpoint: "/api/logs", targetBaseEndpoint: "/api/targets", + replicationBaseEndpoint: "/api/replications", replicationRuleEndpoint: "/api/policies/replication", replicationJobEndpoint: "/api/jobs/replication", vulnerabilityScanningBaseEndpoint: "/api/repositories", projectPolicyEndpoint: "/api/projects/configs", + projectBaseEndpoint: "/api/projects", enablei18Support: false, - defaultLang: DEFAULT_LANG, langCookieKey: DEFAULT_LANG_COOKIE_KEY, supportedLangs: DEFAULT_SUPPORTING_LANGS, + defaultLang: DEFAULT_LANG, langMessageLoader: "local", langMessagePathForHttpLoader: "i18n/langs/", langMessageFileSuffixForHttpLoader: "-lang.json", diff --git a/src/ui_ng/lib/src/service.config.ts b/src/ui_ng/lib/src/service.config.ts index 1e7d67c977..9ea6b7e332 100644 --- a/src/ui_ng/lib/src/service.config.ts +++ b/src/ui_ng/lib/src/service.config.ts @@ -50,6 +50,11 @@ export interface IServiceConfig { */ targetBaseEndpoint?: string; + /** + * The base endpoint of the service used to handle the replications. + */ + replicationBaseEndpoint?: string; + /** * The base endpoint of the service used to handle the replication rules. * Replication rule related endpoints will be built based on this endpoint. diff --git a/src/ui_ng/lib/src/service/replication.service.ts b/src/ui_ng/lib/src/service/replication.service.ts index ecb5b17971..a240c8bad5 100644 --- a/src/ui_ng/lib/src/service/replication.service.ts +++ b/src/ui_ng/lib/src/service/replication.service.ts @@ -149,11 +149,9 @@ export class ReplicationDefaultService extends ReplicationService { @Inject(SERVICE_CONFIG) config: IServiceConfig ) { super(); - this._ruleBaseUrl = config.replicationRuleEndpoint ? - config.replicationRuleEndpoint : '/api/policies/replication'; - this._jobBaseUrl = config.replicationJobEndpoint ? - config.replicationJobEndpoint : '/api/jobs/replication'; - this._replicateUrl = '/api/replications'; + this._ruleBaseUrl = config.replicationRuleEndpoint ? config.replicationRuleEndpoint : '/api/policies/replication'; + this._jobBaseUrl = config.replicationJobEndpoint ? config.replicationJobEndpoint : '/api/jobs/replication'; + this._replicateUrl = config.replicationBaseEndpoint ? config.replicationBaseEndpoint : '/api/replications'; } //Private methods diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 0dce11e958..69f20c655a 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -30,7 +30,7 @@ "clarity-icons": "^0.10.27", "clarity-ui": "^0.10.27", "core-js": "^2.4.1", - "harbor-ui": "0.7.12", + "harbor-ui": "0.7.13", "intl": "^1.2.5", "mutationobserver-shim": "^0.3.2", "ngx-cookie": "^1.0.0",