diff --git a/.travis.yml b/.travis.yml
index 0796aabe055..3cd6084e5a6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -81,7 +81,7 @@ script:
- sudo mkdir -p /harbor
- sudo mv ./VERSION /harbor/UIVERSION
- sudo service postgresql stop
- - sudo make run_clarity_ut CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.4.0
+ - sudo make run_clarity_ut CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.4.1
- cat ./src/ui_ng/npm-ut-test-results
- sudo ./tests/testprepare.sh
- sudo make -f make/photon/Makefile _build_postgresql _build_db _build_registry -e VERSIONTAG=dev -e CLAIRDBVERSION=dev -e REGISTRYVERSION=v2.6.2
@@ -107,7 +107,7 @@ script:
- sudo rm -rf /data/config/*
- sudo rm -rf /data/database/*
- ls /data/cert
- - sudo make install GOBUILDIMAGE=golang:1.9.2 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.4.0 NOTARYFLAG=true CLAIRFLAG=true
+ - sudo make install GOBUILDIMAGE=golang:1.9.2 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.4.1 NOTARYFLAG=true CLAIRFLAG=true
- sleep 10
- docker ps
- ./tests/validatecontainers.sh
diff --git a/make/dev/nodeclarity/entrypoint.sh b/make/dev/nodeclarity/entrypoint.sh
index bec32011daf..b4899bb6d5a 100644
--- a/make/dev/nodeclarity/entrypoint.sh
+++ b/make/dev/nodeclarity/entrypoint.sh
@@ -34,7 +34,7 @@ sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
cp ./dist/build.min.js ../ui/static/
cp -r ./src/i18n/ ../ui/static/
-cp ./src/styles.css ../ui/static/
+cp ./src/styles.scss ../ui/static/
cp -r ./src/images/ ../ui/static/
cp ./src/setting.json ../ui/static/
diff --git a/src/ui_ng/angular-cli.json b/src/ui_ng/angular-cli.json
index 87732b1deed..93021a4b16c 100644
--- a/src/ui_ng/angular-cli.json
+++ b/src/ui_ng/angular-cli.json
@@ -20,7 +20,7 @@
"styles": [
"../node_modules/clarity-icons/clarity-icons.min.css",
"../node_modules/clarity-ui/clarity-ui.min.css",
- "styles.css"
+ "styles.scss"
],
"scripts": [
"../node_modules/core-js/client/shim.min.js",
diff --git a/src/ui_ng/lib/package.json b/src/ui_ng/lib/package.json
index 5ba94ae84aa..33844872806 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.18-dev.1",
+ "version": "0.7.18-dev.6",
"description": "Harbor shared UI components based on Clarity and Angular4",
"author": "VMware",
"module": "index.js",
diff --git a/src/ui_ng/lib/src/config/registry-config.component.html.ts b/src/ui_ng/lib/src/config/registry-config.component.html
similarity index 93%
rename from src/ui_ng/lib/src/config/registry-config.component.html.ts
rename to src/ui_ng/lib/src/config/registry-config.component.html
index 804a81bc317..7bc33ef2fb0 100644
--- a/src/ui_ng/lib/src/config/registry-config.component.html.ts
+++ b/src/ui_ng/lib/src/config/registry-config.component.html
@@ -1,4 +1,3 @@
-export const REGISTRY_CONFIG_HTML: string = `
@@ -7,5 +6,4 @@
-
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/config/registry-config.component.css.ts b/src/ui_ng/lib/src/config/registry-config.component.scss
similarity index 61%
rename from src/ui_ng/lib/src/config/registry-config.component.css.ts
rename to src/ui_ng/lib/src/config/registry-config.component.scss
index 130a7a58d00..dfed30a8cd6 100644
--- a/src/ui_ng/lib/src/config/registry-config.component.css.ts
+++ b/src/ui_ng/lib/src/config/registry-config.component.scss
@@ -1,9 +1,7 @@
-export const REGISTRY_CONFIG_STYLES: string = `
.info-tips-icon {
color: grey;
}
.info-tips-icon:hover {
color: #007CBB;
-}
-`;
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/config/registry-config.component.ts b/src/ui_ng/lib/src/config/registry-config.component.ts
index b790883f526..30ddf4139d7 100644
--- a/src/ui_ng/lib/src/config/registry-config.component.ts
+++ b/src/ui_ng/lib/src/config/registry-config.component.ts
@@ -1,7 +1,6 @@
import { Component, OnInit, EventEmitter, Output, ViewChild, Input } from '@angular/core';
import { Configuration, ComplexValueItem } from './config';
-import { REGISTRY_CONFIG_HTML } from './registry-config.component.html';
import { ConfigurationService, SystemInfoService, SystemInfo, ClairDBStatus } from '../service/index';
import {
toPromise,
@@ -24,7 +23,7 @@ import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'hbr-registry-config',
- template: REGISTRY_CONFIG_HTML
+ templateUrl: './registry-config.component.html'
})
export class RegistryConfigComponent implements OnInit {
config: Configuration = new Configuration();
diff --git a/src/ui_ng/lib/src/config/replication/replication-config.component.html.ts b/src/ui_ng/lib/src/config/replication/replication-config.component.html
similarity index 94%
rename from src/ui_ng/lib/src/config/replication/replication-config.component.html.ts
rename to src/ui_ng/lib/src/config/replication/replication-config.component.html
index 52b081f6cad..f3f7d31b7e8 100644
--- a/src/ui_ng/lib/src/config/replication/replication-config.component.html.ts
+++ b/src/ui_ng/lib/src/config/replication/replication-config.component.html
@@ -1,4 +1,3 @@
-export const REPLICATION_CONFIG_HTML: string = `
-`;
\ No newline at end of file
diff --git a/src/ui_ng/src/app/project/project-config/project-config.component.css b/src/ui_ng/lib/src/config/replication/replication-config.component.scss
similarity index 100%
rename from src/ui_ng/src/app/project/project-config/project-config.component.css
rename to src/ui_ng/lib/src/config/replication/replication-config.component.scss
diff --git a/src/ui_ng/lib/src/config/replication/replication-config.component.ts b/src/ui_ng/lib/src/config/replication/replication-config.component.ts
index 911264ff42d..5d8bd96f676 100644
--- a/src/ui_ng/lib/src/config/replication/replication-config.component.ts
+++ b/src/ui_ng/lib/src/config/replication/replication-config.component.ts
@@ -1,14 +1,12 @@
import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';
import { NgForm } from '@angular/forms';
-import { REPLICATION_CONFIG_HTML } from './replication-config.component.html';
import { Configuration } from '../config';
-import { REGISTRY_CONFIG_STYLES } from '../registry-config.component.css';
@Component({
selector: 'replication-config',
- template: REPLICATION_CONFIG_HTML,
- styles: [REGISTRY_CONFIG_STYLES]
+ templateUrl: './replication-config.component.html',
+ styles: ['./replication-config.component.scss', '../registry-config.component.scss']
})
export class ReplicationConfigComponent {
config: Configuration;
diff --git a/src/ui_ng/lib/src/config/system/system-settings.component.html.ts b/src/ui_ng/lib/src/config/system/system-settings.component.html
similarity index 97%
rename from src/ui_ng/lib/src/config/system/system-settings.component.html.ts
rename to src/ui_ng/lib/src/config/system/system-settings.component.html
index 5905f398e86..d45ad29e58b 100644
--- a/src/ui_ng/lib/src/config/system/system-settings.component.html.ts
+++ b/src/ui_ng/lib/src/config/system/system-settings.component.html
@@ -1,4 +1,3 @@
-export const SYSTEM_SETTINGS_HTML: string = `
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/src/app/project/project-label/project-label.component.css b/src/ui_ng/lib/src/config/system/system-settings.component.scss
similarity index 100%
rename from src/ui_ng/src/app/project/project-label/project-label.component.css
rename to src/ui_ng/lib/src/config/system/system-settings.component.scss
diff --git a/src/ui_ng/lib/src/config/system/system-settings.component.ts b/src/ui_ng/lib/src/config/system/system-settings.component.ts
index c315d633eb4..4d1dc61ee55 100644
--- a/src/ui_ng/lib/src/config/system/system-settings.component.ts
+++ b/src/ui_ng/lib/src/config/system/system-settings.component.ts
@@ -1,15 +1,13 @@
import { Component, Input, Output, EventEmitter, ViewChild, Inject } from '@angular/core';
import { NgForm } from '@angular/forms';
-import { SYSTEM_SETTINGS_HTML } from './system-settings.component.html';
import { Configuration } from '../config';
-import { REGISTRY_CONFIG_STYLES } from '../registry-config.component.css';
import { SERVICE_CONFIG, IServiceConfig } from '../../service.config';
@Component({
selector: 'system-settings',
- template: SYSTEM_SETTINGS_HTML,
- styles: [REGISTRY_CONFIG_STYLES]
+ templateUrl: './system-settings.component.html',
+ styleUrls: ['./system-settings.component.scss', '../registry-config.component.scss']
})
export class SystemSettingsComponent {
config: Configuration;
diff --git a/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.template.ts b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.html
similarity index 84%
rename from src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.template.ts
rename to src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.html
index 57e53d36fd1..22966e33c9f 100644
--- a/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.template.ts
+++ b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.html
@@ -1,4 +1,3 @@
-export const VULNERABILITY_CONFIG_HTML: string = `
-`;
-
-export const VULNERABILITY_CONFIG_STYLES: string = `
-.form-group-override {
- padding-left: 0px !important;
-}
-
-.section-title {
- font-size: 14px !important;
- font-weight: 600 !important;
-}
-
-.btn-font {
- font-size: 12px !important;
-}
-
-.namespace {
- margin-left: 24px;
-}
-
-.clr-dropdown-override {
- margin-top: -8px;
-}
-.btn-scan-right{
- margin-left: 10px;
-}
-.btn-scan-right button{
- width: 160px;
- margin-bottom: 0px;
- margin-top: 5px;
-}
-.btn-scan-right span{
- margin-top: 4px;
-}
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.scss b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.scss
new file mode 100644
index 00000000000..e9f4fd65b53
--- /dev/null
+++ b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.scss
@@ -0,0 +1,31 @@
+.form-group-override {
+ padding-left: 0px !important;
+}
+
+.section-title {
+ font-size: 14px !important;
+ font-weight: 600 !important;
+}
+
+.btn-font {
+ font-size: 12px !important;
+}
+
+.namespace {
+ margin-left: 24px;
+}
+
+.clr-dropdown-override {
+ margin-top: -8px;
+}
+.btn-scan-right{
+ margin-left: 10px;
+}
+.btn-scan-right button{
+ width: 160px;
+ margin-bottom: 0px;
+ margin-top: 5px;
+}
+.btn-scan-right span{
+ margin-top: 4px;
+}
diff --git a/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.ts b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.ts
index 43036aa0bb0..41f89c51702 100644
--- a/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.ts
+++ b/src/ui_ng/lib/src/config/vulnerability/vulnerability-config.component.ts
@@ -2,7 +2,6 @@ import { Component, Input, Output, EventEmitter, ViewChild, OnInit } from '@angu
import { NgForm } from '@angular/forms';
import { Configuration } from '../config';
-import { VULNERABILITY_CONFIG_HTML, VULNERABILITY_CONFIG_STYLES } from './vulnerability-config.component.template';
import {
ScanningResultService,
SystemInfo,
@@ -13,15 +12,13 @@ import { toPromise } from '../../utils';
import { TranslateService } from '@ngx-translate/core';
import { ClairDBStatus, ClairDetail } from '../../service/interface';
-import { REGISTRY_CONFIG_STYLES } from '../registry-config.component.css';
-
const ONE_HOUR_SECONDS: number = 3600;
const ONE_DAY_SECONDS: number = 24 * ONE_HOUR_SECONDS;
@Component({
selector: 'vulnerability-config',
- template: VULNERABILITY_CONFIG_HTML,
- styles: [VULNERABILITY_CONFIG_STYLES, REGISTRY_CONFIG_STYLES]
+ templateUrl: './vulnerability-config.component.html',
+ styles: ['./vulnerability-config.component.scss', '../registry-config.component.scss']
})
export class VulnerabilityConfigComponent implements OnInit {
_localTime: Date = new Date();
diff --git a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.css.ts b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.css.ts
deleted file mode 100644
index ce4251e8a6b..00000000000
--- a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.css.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-export const CONFIRMATION_DIALOG_STYLE: string = `
-.confirmation-icon-inline {
- display: inline-block;
-}
-
-.confirmation-title {
- line-height: 24px;
- color: #000000;
- font-size: 22px;
-}
-
-.confirmation-content {
- font-size: 14px;
- color: #565656;
- line-height: 24px;
- display: inline-block;
- vertical-align: middle;
- width: 80%;
- white-space: pre-wrap;
-}
-.batchInfoUl{
- padding: 20px; list-style-type: none;
-}
-.batchInfoUl li {line-height: 24px;border-bottom: 1px solid #e8e8e8;}
-.batchInfoUl li span:first-child {padding-right: 20px; width: 240px; display: inline-block; color:#666;
- text-overflow: ellipsis; overflow: hidden; vertical-align: middle;}
-.batchInfoUl li span:last-child {width: 220px; display: inline-block; color:#666;}
-.batchInfoUl li span i {display: inline-block; line-height: 1.2em; font-size: 0.8em; color: #999;}
-.batchInfoUl li span a{cursor: pointer; text-decoration: underline;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html
new file mode 100644
index 00000000000..678f61b912b
--- /dev/null
+++ b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html
@@ -0,0 +1,45 @@
+
+ {{dialogTitle}}
+
+
+
+
+
{{dialogContent}}
+
+
+ -
+ {{info.name}}
+ {{info.status}}
+
+ {{info.status}}
+
+ {{info.errorInfo}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html.ts b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html.ts
deleted file mode 100644
index 50e884c9b6b..00000000000
--- a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.html.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-export const CONFIRMATION_DIALOG_TEMPLATE: string = `
-
- {{dialogTitle}}
-
-
-
-
-
{{dialogContent}}
-
-
- -
- {{info.name}}
- {{info.status}}
-
- {{info.status}}
- {{info.errorInfo}}
-
-
-
-
-
-
-
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.scss b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.scss
new file mode 100644
index 00000000000..d16a336f9e0
--- /dev/null
+++ b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.scss
@@ -0,0 +1,57 @@
+.confirmation-icon-inline {
+ display: inline-block;
+}
+
+.confirmation-title {
+ line-height: 24px;
+ color: #000000;
+ font-size: 22px;
+}
+
+.confirmation-content {
+ font-size: 14px;
+ color: #565656;
+ line-height: 24px;
+ display: inline-block;
+ vertical-align: middle;
+ width: 80%;
+ white-space: pre-wrap;
+}
+
+.batchInfoUl {
+ padding: 20px;
+ list-style-type: none;
+}
+
+.batchInfoUl li {
+ line-height: 24px;
+ border-bottom: 1px solid #e8e8e8;
+}
+
+.batchInfoUl li span:first-child {
+ padding-right: 20px;
+ width: 240px;
+ display: inline-block;
+ color: #666;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ vertical-align: middle;
+}
+
+.batchInfoUl li span:last-child {
+ width: 220px;
+ display: inline-block;
+ color: #666;
+}
+
+.batchInfoUl li span i {
+ display: inline-block;
+ line-height: 1.2em;
+ font-size: 0.8em;
+ color: #999;
+}
+
+.batchInfoUl li span a {
+ cursor: pointer;
+ text-decoration: underline;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.ts b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.ts
index 6f03044f148..054b3260cc2 100644
--- a/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.ts
+++ b/src/ui_ng/lib/src/confirmation-dialog/confirmation-dialog.component.ts
@@ -18,14 +18,12 @@ import { ConfirmationMessage } from './confirmation-message';
import { ConfirmationAcknowledgement } from './confirmation-state-message';
import { ConfirmationState, ConfirmationTargets, ConfirmationButtons } from '../shared/shared.const';
-import { CONFIRMATION_DIALOG_TEMPLATE } from './confirmation-dialog.component.html';
-import { CONFIRMATION_DIALOG_STYLE } from './confirmation-dialog.component.css';
import {BatchInfo} from './confirmation-batch-message';
@Component({
selector: 'confirmation-dialog',
- template: CONFIRMATION_DIALOG_TEMPLATE,
- styles: [ CONFIRMATION_DIALOG_STYLE ]
+ templateUrl: './confirmation-dialog.component.html',
+ styleUrls: [ './confirmation-dialog.component.scss' ]
})
export class ConfirmationDialogComponent {
diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html
similarity index 98%
rename from src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html.ts
rename to src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html
index 55c9305749c..4bc0760f9cc 100644
--- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html.ts
+++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.html
@@ -1,4 +1,3 @@
-export const CREATE_EDIT_ENDPOINT_TEMPLATE: string = `
{{modalTitle}}
@@ -61,4 +60,4 @@ {{modalTitle}}
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.css.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.scss
similarity index 72%
rename from src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.css.ts
rename to src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.scss
index 00671afec25..44e0b0fc4bd 100644
--- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.css.ts
+++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.scss
@@ -1,4 +1,3 @@
-export const CREATE_EDIT_ENDPOINT_STYLE = `
.form-group-label-override {
font-size: 14px;
font-weight: 400;
@@ -7,5 +6,4 @@ export const CREATE_EDIT_ENDPOINT_STYLE = `
clr-tooltip {
top: 3px;
position: relative;
- }
-`;
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts
index 17f9e2fe464..59bb2d26c06 100644
--- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts
+++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.spec.ts
@@ -27,15 +27,15 @@ describe('CreateEditEndpointComponent (inline template)', () => {
let comp: CreateEditEndpointComponent;
let fixture: ComponentFixture;
-
+
let config: IServiceConfig = {
systemInfoEndpoint: '/api/endpoints/testing'
};
let endpointService: EndpointService;
-
+
let spy: jasmine.Spy;
-
+
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
@@ -57,11 +57,11 @@ describe('CreateEditEndpointComponent (inline template)', () => {
beforeEach(()=>{
fixture = TestBed.createComponent(CreateEditEndpointComponent);
comp = fixture.componentInstance;
-
+
endpointService = fixture.debugElement.injector.get(EndpointService);
spy = spyOn(endpointService, 'getEndpoint').and.returnValue(Promise.resolve(mockData));
fixture.detectChanges();
-
+
comp.openCreateEditTarget(true, 1);
fixture.detectChanges();
});
diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts
index de2e4130275..fe391e74ece 100644
--- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts
+++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts
@@ -32,9 +32,6 @@ import { Endpoint } from '../service/interface';
import { TranslateService } from '@ngx-translate/core';
-import { CREATE_EDIT_ENDPOINT_STYLE } from './create-edit-endpoint.component.css';
-import { CREATE_EDIT_ENDPOINT_TEMPLATE } from './create-edit-endpoint.component.html';
-
import { toPromise, clone, compareValue, isEmptyObject } from '../utils';
import { Subscription } from 'rxjs/Subscription';
@@ -43,8 +40,8 @@ const FAKE_PASSWORD = 'rjGcfuRu';
@Component({
selector: 'hbr-create-edit-endpoint',
- template: CREATE_EDIT_ENDPOINT_TEMPLATE,
- styles: [CREATE_EDIT_ENDPOINT_STYLE]
+ templateUrl: './create-edit-endpoint.component.html',
+ styleUrls: ['./create-edit-endpoint.component.scss']
})
export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy {
modalTitle: string;
diff --git a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.css.ts b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.css.ts
deleted file mode 100644
index 07498e0de5a..00000000000
--- a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.css.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-export const CREATE_EDIT_LABEL_STYLE: string = `
- .form-group-label-override {
- font-size: 14px;
- font-weight: 400;
- }
-
- form{margin-bottom:-10px;padding-top:0; margin-top: 20px;width: 100%;background-color: #eee; border:1px solid #ccc;}
- form .form-group{display:inline-flex;padding-left: 70px;}
- form .form-group>label:first-child{width: auto;}
- section{padding:.5rem 0;}
- section> label{margin-left: 20px;}
-
- .colorDrop {display:inline-block;position: relative; width: 132px;}
- .colorDrop .colorPanel{position:absolute; width:166px; padding:6px; background-color: white; border: 1px solid #ccc; z-index:10;}
- .btnColor{
- margin: 0 !important;
- padding: 0 !important;
- width: 26px;
- height:22px;
- min-width: 26px;}
- .colorPanel span{margin: 5px 4px; width:30px;height:24px; text-align: center;line-height: 24px;font-size:12px; border:1px solid #A1A1A1;}
- .closePanel{ display: block;
- left: 138px;
- position: relative;
- font-size: 18px;
- width: 10px;
- line-height: 8px;
- cursor: pointer;
- text-decoration: none;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html.ts b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html
similarity index 97%
rename from src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html.ts
rename to src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html
index f72223660b9..4ea4764e1a5 100644
--- a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html.ts
+++ b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html
@@ -1,4 +1,3 @@
-export const CREATE_EDIT_LABEL_TEMPLATE: string = `
-
`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.scss b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.scss
new file mode 100644
index 00000000000..8433cbacbbf
--- /dev/null
+++ b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.scss
@@ -0,0 +1,74 @@
+ .form-group-label-override {
+ font-size: 14px;
+ font-weight: 400;
+ }
+
+ form {
+ margin-bottom: -10px;
+ padding-top: 0;
+ margin-top: 20px;
+ width: 100%;
+ background-color: #eee;
+ border: 1px solid #ccc;
+ }
+
+ form .form-group {
+ display: inline-flex;
+ padding-left: 70px;
+ }
+
+ form .form-group>label:first-child {
+ width: auto;
+ }
+
+ section {
+ padding: .5rem 0;
+ }
+
+ section>label {
+ margin-left: 20px;
+ }
+
+ .colorDrop {
+ display: inline-block;
+ position: relative;
+ width: 132px;
+ }
+
+ .colorDrop .colorPanel {
+ position: absolute;
+ width: 166px;
+ padding: 6px;
+ background-color: white;
+ border: 1px solid #ccc;
+ z-index: 10;
+ }
+
+ .btnColor {
+ margin: 0 !important;
+ padding: 0 !important;
+ width: 26px;
+ height: 22px;
+ min-width: 26px;
+ }
+
+ .colorPanel span {
+ margin: 5px 4px;
+ width: 30px;
+ height: 24px;
+ text-align: center;
+ line-height: 24px;
+ font-size: 12px;
+ border: 1px solid #A1A1A1;
+ }
+
+ .closePanel {
+ display: block;
+ left: 138px;
+ position: relative;
+ font-size: 18px;
+ width: 10px;
+ line-height: 8px;
+ cursor: pointer;
+ text-decoration: none;
+ }
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.ts b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.ts
index 3527484167b..860a2c389df 100644
--- a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.ts
+++ b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.ts
@@ -19,12 +19,8 @@ import {
Input, OnInit, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef
} from '@angular/core';
-
import {Label} from '../service/interface';
-import { CREATE_EDIT_LABEL_STYLE } from './create-edit-label.component.css';
-import { CREATE_EDIT_LABEL_TEMPLATE } from './create-edit-label.component.html';
-
import {toPromise, clone, compareValue} from '../utils';
import {LabelService} from "../service/label.service";
@@ -35,8 +31,8 @@ import {LabelColor} from "../shared/shared.const";
@Component({
selector: 'hbr-create-edit-label',
- template: CREATE_EDIT_LABEL_TEMPLATE,
- styles: [CREATE_EDIT_LABEL_STYLE],
+ templateUrl: './create-edit-label.component.html',
+ styleUrls: ['./create-edit-label.component.scss'],
changeDetection: ChangeDetectionStrategy.Default
})
diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.css.ts b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.css.ts
deleted file mode 100644
index b842ce255a2..00000000000
--- a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.css.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-export const CREATE_EDIT_RULE_STYLE: string = `
-/**
- * Created by pengf on 9/28/2017.
- */
-
-.select{
- width: 186px;
-}
-.select .optionMore{
- background-color: #bfbaba;
- height: 1.6em;
- font-size: 1.2em;
- cursor: pointer;
- text-align: center;
-}
-.hideFilter{ display: none;}
-h4{
- color: #666;
-}
-.colorRed{color: red;}
-.colorRed a{text-decoration: underline;color: #007CBB;}
-.alertLabel{display:block; margin-top:2px; line-height:1em; font-size:12px;}
-
-.inputWidth{width: 270px;}
-.endpointSelect{ width: 270px; margin-right: 20px;}
-.filterSelect{width: 315px;}
-.filterSelect clr-icon{margin-left: 15px;}
-.filterSelect label{width: 136px;}
-.filterSelect label input{width: 100%;}
-.pull-left{float: left;}
-.padLeft0{padding-left: 0;}
-.floatSetPar{display: inline-block; width: 120px;margin-right: 10px;}
-.floatSet {display: inline-block; width: 82px;margin-right: 4px;}
-.form-group{ min-height: 36px;}
-
-.projectInput{float: left;position: relative;}
-.switchIcon{width:20px;height:20px; margin-top: 10px;margin-left: 10px; cursor: pointer;}
-.addEndpoint{ margin-top: .25em !important;padding-left:2px;padding-right:2px;min-width:58px;margin-right:0}
-.shadow{position: absolute;top: 8px;}
-.is-solid{cursor: pointer;}
-.selectBox{
- position: absolute;
- width: 100%;
- height: auto;
- margin-top:-0.25rem;
- border: 1px solid #ccc;
- background-color: white;
- border: 1px solid rgba(0,0,0,.15);
- border-right-width: 2px;
- border-bottom-width: 2px;
- border-radius: 6px;
- box-shadow: 0 5px 10px rgba(0,0,0,.2);
- z-index: 100;
-}
-.selectBox ul li{
- list-style: none;
- padding: 3px 20px
- cursor: pointer;
-}
-.selectBox ul li:hover{
- color: #262626;
- background-image: linear-gradient(180deg,#f5f5f5 0,#e8e8e8);
- background-repeat: repeat-x;
-}
-.form-group-override{
- padding-left: 170px !important;
-}
-.form-group>label:first-child{font-size:14px; width:6.5rem;}
-.goLink{color:blue; border-bottom:1px solid blue; line-height:14px; cursor:pointer;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html
similarity index 99%
rename from src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts
rename to src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html
index 7cb7c4134d1..f2a9ea3cf4a 100644
--- a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts
+++ b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html
@@ -1,4 +1,3 @@
-export const CREATE_EDIT_RULE_TEMPLATE: string = `
{{headerTitle | translate}}
@@ -131,4 +130,4 @@ {{headerTitle | translate}}
-`;
+
diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.scss b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.scss
new file mode 100644
index 00000000000..312944e8c7d
--- /dev/null
+++ b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.scss
@@ -0,0 +1,157 @@
+.select {
+ width: 186px;
+}
+
+.select .optionMore {
+ background-color: #bfbaba;
+ height: 1.6em;
+ font-size: 1.2em;
+ cursor: pointer;
+ text-align: center;
+}
+
+.hideFilter {
+ display: none;
+}
+
+h4 {
+ color: #666;
+}
+
+.colorRed {
+ color: red;
+}
+
+.colorRed a {
+ text-decoration: underline;
+ color: #007CBB;
+}
+
+.alertLabel {
+ display: block;
+ margin-top: 2px;
+ line-height: 1em;
+ font-size: 12px;
+}
+
+.inputWidth {
+ width: 270px;
+}
+
+.endpointSelect {
+ width: 270px;
+ margin-right: 20px;
+}
+
+.filterSelect {
+ width: 315px;
+}
+
+.filterSelect clr-icon {
+ margin-left: 15px;
+}
+
+.filterSelect label {
+ width: 136px;
+}
+
+.filterSelect label input {
+ width: 100%;
+}
+
+.pull-left {
+ float: left;
+}
+
+.padLeft0 {
+ padding-left: 0;
+}
+
+.floatSetPar {
+ display: inline-block;
+ width: 120px;
+ margin-right: 10px;
+}
+
+.floatSet {
+ display: inline-block;
+ width: 82px;
+ margin-right: 4px;
+}
+
+.form-group {
+ min-height: 36px;
+}
+
+.projectInput {
+ float: left;
+ position: relative;
+}
+
+.switchIcon {
+ width: 20px;
+ height: 20px;
+ margin-top: 10px;
+ margin-left: 10px;
+ cursor: pointer;
+}
+
+.addEndpoint {
+ margin-top: .25em !important;
+ padding-left: 2px;
+ padding-right: 2px;
+ min-width: 58px;
+ margin-right: 0
+}
+
+.shadow {
+ position: absolute;
+ top: 8px;
+}
+
+.is-solid {
+ cursor: pointer;
+}
+
+.selectBox {
+ position: absolute;
+ width: 100%;
+ height: auto;
+ margin-top: -0.25rem;
+ border: 1px solid #ccc;
+ background-color: white;
+ border: 1px solid rgba(0, 0, 0, .15);
+ border-right-width: 2px;
+ border-bottom-width: 2px;
+ border-radius: 6px;
+ box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
+ z-index: 100;
+}
+
+.selectBox ul li {
+ list-style: none;
+ padding: 3px 20px;
+ cursor: pointer;
+}
+
+.selectBox ul li:hover {
+ color: #262626;
+ background-image: linear-gradient(180deg, #f5f5f5 0, #e8e8e8);
+ background-repeat: repeat-x;
+}
+
+.form-group-override {
+ padding-left: 170px !important;
+}
+
+.form-group>label:first-child {
+ font-size: 14px;
+ width: 6.5rem;
+}
+
+.goLink {
+ color: blue;
+ border-bottom: 1px solid blue;
+ line-height: 14px;
+ cursor: pointer;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.ts b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.ts
index 827bf5a4b38..92e4a05bbe0 100644
--- a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.ts
+++ b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.ts
@@ -21,8 +21,6 @@ import {Router, ActivatedRoute} from "@angular/router";
import {compareValue, isEmptyObject, toPromise} from "../utils";
import { InlineAlertComponent } from '../inline-alert/inline-alert.component';
import {ReplicationService} from "../service/replication.service";
-import {CREATE_EDIT_RULE_TEMPLATE} from "./create-edit-rule.component.html";
-import {CREATE_EDIT_RULE_STYLE} from "./create-edit-rule.component.css";
import {ErrorHandler} from "../error-handler/error-handler";
import {TranslateService} from "@ngx-translate/core";
import {EndpointService} from "../service/endpoint.service";
@@ -34,8 +32,8 @@ const ONE_DAY_SECONDS: number = 24 * ONE_HOUR_SECONDS;
@Component ({
selector: 'hbr-create-edit-rule',
- template: CREATE_EDIT_RULE_TEMPLATE,
- styles: [CREATE_EDIT_RULE_STYLE]
+ templateUrl: './create-edit-rule.component.html',
+ styleUrls: ['./create-edit-rule.component.scss']
})
diff --git a/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html.ts b/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html
similarity index 87%
rename from src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html.ts
rename to src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html
index 90c35c59001..ea01d856803 100644
--- a/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html.ts
+++ b/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.html
@@ -1,9 +1,7 @@
-export const DATETIME_PICKER_TEMPLATE: string = `
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.ts b/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.ts
index 7eb061849ce..a00b6d1d401 100644
--- a/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.ts
+++ b/src/ui_ng/lib/src/datetime-picker/datetime-picker.component.ts
@@ -1,11 +1,9 @@
import {Component, Input, Output, EventEmitter, ViewChild, OnChanges} from '@angular/core';
import { NgModel } from '@angular/forms';
-import { DATETIME_PICKER_TEMPLATE } from './datetime-picker.component.html';
-
@Component({
selector: 'hbr-datetime',
- template: DATETIME_PICKER_TEMPLATE
+ templateUrl: './datetime-picker.component.html'
})
export class DatePickerComponent implements OnChanges{
diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.css.ts b/src/ui_ng/lib/src/endpoint/endpoint.component.css.ts
deleted file mode 100644
index 79b57b43a8f..00000000000
--- a/src/ui_ng/lib/src/endpoint/endpoint.component.css.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export const ENDPOINT_STYLE: string = `
- .option-left {
- padding-left: 16px;
- margin-top: -6px;
- }
- .option-right {
- padding-right: 16px;
- }
- .refresh-btn {
- cursor: pointer;
- }
- .refresh-btn:hover {
- color: #007CBB;
- }
- .rightPos{
- position: absolute;
- z-index: 100;
- right: 35px;
- margin-top: 4px;
- height: 24px;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts b/src/ui_ng/lib/src/endpoint/endpoint.component.html
similarity index 98%
rename from src/ui_ng/lib/src/endpoint/endpoint.component.html.ts
rename to src/ui_ng/lib/src/endpoint/endpoint.component.html
index f3ee43daedd..01bdb05c675 100644
--- a/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts
+++ b/src/ui_ng/lib/src/endpoint/endpoint.component.html
@@ -1,4 +1,3 @@
-export const ENDPOINT_TEMPLATE = `
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.scss b/src/ui_ng/lib/src/endpoint/endpoint.component.scss
new file mode 100644
index 00000000000..ad95ff77531
--- /dev/null
+++ b/src/ui_ng/lib/src/endpoint/endpoint.component.scss
@@ -0,0 +1,24 @@
+.option-left {
+ padding-left: 16px;
+ margin-top: -6px;
+}
+
+.option-right {
+ padding-right: 16px;
+}
+
+.refresh-btn {
+ cursor: pointer;
+}
+
+.refresh-btn:hover {
+ color: #007CBB;
+}
+
+.rightPos {
+ position: absolute;
+ z-index: 100;
+ right: 35px;
+ margin-top: 4px;
+ height: 24px;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.ts b/src/ui_ng/lib/src/endpoint/endpoint.component.ts
index 53dd65343ec..67e59803fa9 100644
--- a/src/ui_ng/lib/src/endpoint/endpoint.component.ts
+++ b/src/ui_ng/lib/src/endpoint/endpoint.component.ts
@@ -29,9 +29,6 @@ import { Subscription } from 'rxjs/Subscription';
import { CreateEditEndpointComponent } from '../create-edit-endpoint/create-edit-endpoint.component';
-import { ENDPOINT_STYLE } from './endpoint.component.css';
-import { ENDPOINT_TEMPLATE } from './endpoint.component.html';
-
import { toPromise, CustomComparator } from '../utils';
import { State, Comparator } from 'clarity-angular';
@@ -40,8 +37,8 @@ import {Observable} from "rxjs/Observable";
@Component({
selector: 'hbr-endpoint',
- template: ENDPOINT_TEMPLATE,
- styles: [ENDPOINT_STYLE],
+ templateUrl: './endpoint.component.html',
+ styleUrls: ['./endpoint.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class EndpointComponent implements OnInit, OnDestroy {
diff --git a/src/ui_ng/lib/src/filter/filter.component.html b/src/ui_ng/lib/src/filter/filter.component.html
new file mode 100644
index 00000000000..00b18dcf85c
--- /dev/null
+++ b/src/ui_ng/lib/src/filter/filter.component.html
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/filter/filter.component.scss b/src/ui_ng/lib/src/filter/filter.component.scss
new file mode 100644
index 00000000000..e9957d32c85
--- /dev/null
+++ b/src/ui_ng/lib/src/filter/filter.component.scss
@@ -0,0 +1,25 @@
+.filter-icon {
+ position: relative;
+ right: -12px;
+}
+
+.filter-divider {
+ display: inline-block;
+ height: 16px;
+ width: 2px;
+ background-color: #cccccc;
+ padding-top: 12px;
+ padding-bottom: 12px;
+ position: relative;
+ top: 9px;
+ margin-right: 6px;
+ margin-left: 6px;
+}
+
+.search-btn {
+ cursor: pointer;
+}
+
+.search-btn:hover {
+ color: #007CBB;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/filter/filter.component.ts b/src/ui_ng/lib/src/filter/filter.component.ts
index bba258ade64..b61134b8d32 100644
--- a/src/ui_ng/lib/src/filter/filter.component.ts
+++ b/src/ui_ng/lib/src/filter/filter.component.ts
@@ -18,13 +18,11 @@ import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/distinctUntilChanged';
-import { FILTER_TEMPLATE, FILTER_STYLES } from './filter.template';
-
@Component({
selector: 'hbr-filter',
- styles: [FILTER_STYLES],
- template: FILTER_TEMPLATE
+ templateUrl: './filter.component.html',
+ styleUrls: ['./filter.component.scss']
})
export class FilterComponent implements OnInit {
diff --git a/src/ui_ng/lib/src/filter/filter.template.ts b/src/ui_ng/lib/src/filter/filter.template.ts
deleted file mode 100644
index 005850d16f5..00000000000
--- a/src/ui_ng/lib/src/filter/filter.template.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Define template resources for filter component
- */
-
-export const FILTER_TEMPLATE: string = `
-
-
-
-
-
-`;
-
-export const FILTER_STYLES: string = `
-.filter-icon {
- position: relative;
- right: -12px;
-}
-
-.filter-divider {
- display: inline-block;
- height: 16px;
- width: 2px;
- background-color: #cccccc;
- padding-top: 12px;
- padding-bottom: 12px;
- position: relative;
- top: 9px;
- margin-right: 6px;
- margin-left: 6px;
-}
-
-.search-btn {
- cursor: pointer;
-}
-
-.search-btn:hover {
- color: #007CBB;
-}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/gridview/grid-view.component.html.ts b/src/ui_ng/lib/src/gridview/grid-view.component.html
similarity index 94%
rename from src/ui_ng/lib/src/gridview/grid-view.component.html.ts
rename to src/ui_ng/lib/src/gridview/grid-view.component.html
index fdc9937aa39..4ecb8269ec4 100644
--- a/src/ui_ng/lib/src/gridview/grid-view.component.html.ts
+++ b/src/ui_ng/lib/src/gridview/grid-view.component.html
@@ -1,4 +1,3 @@
-export const GRIDVIEW_TEMPLATE = `
-`
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/gridview/grid-view.component.css.ts b/src/ui_ng/lib/src/gridview/grid-view.component.scss
similarity index 70%
rename from src/ui_ng/lib/src/gridview/grid-view.component.css.ts
rename to src/ui_ng/lib/src/gridview/grid-view.component.scss
index e97f73bf30e..fe8eca86266 100644
--- a/src/ui_ng/lib/src/gridview/grid-view.component.css.ts
+++ b/src/ui_ng/lib/src/gridview/grid-view.component.scss
@@ -1,10 +1,3 @@
-// Copyright (c) 2017-2018 VMware, Inc. All Rights Reserved.
-// This software is released under MIT license.
-// The full license information can be found in LICENSE in the root directory of this project.
-
-// @import 'node_modules/admiral-ui-common/css/mixins';
-
-export const GRIDVIEW_STYLE = `
.grid-content {
position: relative;
top: 36px;
@@ -37,10 +30,10 @@ export const GRIDVIEW_STYLE = `
left: 0;
right: 0;
bottom: 0;
- @include animation(fadein 0.4s);
text-align: center;
background-color: rgba(255, 255, 255, 0.5);
}
+
.central-block-loading-more {
position: relative;
z-index: 10;
@@ -48,10 +41,10 @@ export const GRIDVIEW_STYLE = `
left: 0;
right: 0;
bottom: 0;
- @include animation(fadein 0.4s);
text-align: center;
background-color: rgba(255, 255, 255, 0.5);
}
+
.vertical-helper {
display: inline-block;
height: 100%;
@@ -62,6 +55,4 @@ export const GRIDVIEW_STYLE = `
width: 100px;
height: 100px;
vertical-align: middle;
-}
-
-`
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/gridview/grid-view.component.ts b/src/ui_ng/lib/src/gridview/grid-view.component.ts
index d34f08f9411..a4bb3c1c7f5 100644
--- a/src/ui_ng/lib/src/gridview/grid-view.component.ts
+++ b/src/ui_ng/lib/src/gridview/grid-view.component.ts
@@ -16,14 +16,12 @@ import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import { TranslateService } from '@ngx-translate/core';
-import { GRIDVIEW_TEMPLATE } from './grid-view.component.html';
-import { GRIDVIEW_STYLE } from './grid-view.component.css';
import { ScrollPosition } from '../service/interface'
@Component({
selector: 'hbr-gridview',
- template: GRIDVIEW_TEMPLATE,
- styles: [GRIDVIEW_STYLE],
+ templateUrl: './grid-view.component.html',
+ styleUrls: ['./grid-view.component.scss'],
encapsulation: ViewEncapsulation.None
})
/**
diff --git a/src/ui_ng/lib/src/harbor-library.module.ts b/src/ui_ng/lib/src/harbor-library.module.ts
index cae236599a8..a37bc09b1aa 100644
--- a/src/ui_ng/lib/src/harbor-library.module.ts
+++ b/src/ui_ng/lib/src/harbor-library.module.ts
@@ -4,9 +4,6 @@ import { LOG_DIRECTIVES } from './log/index';
import { FILTER_DIRECTIVES } from './filter/index';
import { ENDPOINT_DIRECTIVES } from './endpoint/index';
import { REPOSITORY_DIRECTIVES } from './repository/index';
-import { REPOSITORY_STACKVIEW_DIRECTIVES } from './repository-stackview/index';
-
-import { REPOSITORY_LISTVIEW_DIRECTIVES } from './repository-listview/index';
import { TAG_DIRECTIVES } from './tag/index';
import { REPLICATION_DIRECTIVES } from './replication/index';
@@ -167,8 +164,6 @@ export function initConfig(translateInitializer: TranslateServiceInitializer, co
FILTER_DIRECTIVES,
ENDPOINT_DIRECTIVES,
REPOSITORY_DIRECTIVES,
- REPOSITORY_STACKVIEW_DIRECTIVES,
- REPOSITORY_LISTVIEW_DIRECTIVES,
TAG_DIRECTIVES,
CREATE_EDIT_ENDPOINT_DIRECTIVES,
CONFIRMATION_DIALOG_DIRECTIVES,
@@ -193,8 +188,6 @@ export function initConfig(translateInitializer: TranslateServiceInitializer, co
FILTER_DIRECTIVES,
ENDPOINT_DIRECTIVES,
REPOSITORY_DIRECTIVES,
- REPOSITORY_STACKVIEW_DIRECTIVES,
- REPOSITORY_LISTVIEW_DIRECTIVES,
TAG_DIRECTIVES,
CREATE_EDIT_ENDPOINT_DIRECTIVES,
CONFIRMATION_DIALOG_DIRECTIVES,
diff --git a/src/ui_ng/lib/src/index.ts b/src/ui_ng/lib/src/index.ts
index d626cf436ed..00d6cfd83c9 100644
--- a/src/ui_ng/lib/src/index.ts
+++ b/src/ui_ng/lib/src/index.ts
@@ -9,7 +9,6 @@ export * from './endpoint/index';
export * from './repository/index';
export * from './create-edit-endpoint/index';
export * from './create-edit-rule/index';
-export * from './repository-stackview/index';
export * from './tag/index';
export * from './list-replication-rule/index';
export * from './replication/index';
diff --git a/src/ui_ng/lib/src/inline-alert/inline-alert.component.html.ts b/src/ui_ng/lib/src/inline-alert/inline-alert.component.html
similarity index 91%
rename from src/ui_ng/lib/src/inline-alert/inline-alert.component.html.ts
rename to src/ui_ng/lib/src/inline-alert/inline-alert.component.html
index 2a07c335917..668e5392dbb 100644
--- a/src/ui_ng/lib/src/inline-alert/inline-alert.component.html.ts
+++ b/src/ui_ng/lib/src/inline-alert/inline-alert.component.html
@@ -1,4 +1,3 @@
-export const INLINE_ALERT_TEMPLATE: string = `
@@ -9,5 +8,4 @@
-
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/inline-alert/inline-alert.component.css.ts b/src/ui_ng/lib/src/inline-alert/inline-alert.component.scss
similarity index 83%
rename from src/ui_ng/lib/src/inline-alert/inline-alert.component.css.ts
rename to src/ui_ng/lib/src/inline-alert/inline-alert.component.scss
index 68fe7c857ab..9855e2d0768 100644
--- a/src/ui_ng/lib/src/inline-alert/inline-alert.component.css.ts
+++ b/src/ui_ng/lib/src/inline-alert/inline-alert.component.scss
@@ -1,4 +1,3 @@
-export const INLINE_ALERT_STYLE: string = `
.alert-text-blink {
color: red;
font-weight: bolder;
@@ -12,5 +11,4 @@ export const INLINE_ALERT_STYLE: string = `
}
:host >>> .alert-icon-wrapper{
display: inline;
-}
-`;
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/inline-alert/inline-alert.component.ts b/src/ui_ng/lib/src/inline-alert/inline-alert.component.ts
index dc62f41fea2..86e51c1cac6 100644
--- a/src/ui_ng/lib/src/inline-alert/inline-alert.component.ts
+++ b/src/ui_ng/lib/src/inline-alert/inline-alert.component.ts
@@ -18,13 +18,10 @@ import { errorHandler } from '../shared/shared.utils';
import { Observable } from 'rxjs/Rx';
import { Subscription } from "rxjs";
-import { INLINE_ALERT_STYLE } from './inline-alert.component.css';
-import { INLINE_ALERT_TEMPLATE } from './inline-alert.component.html';
-
@Component({
selector: 'hbr-inline-alert',
- template: INLINE_ALERT_TEMPLATE,
- styles: [ INLINE_ALERT_STYLE ]
+ templateUrl: './inline-alert.component.html',
+ styleUrls: [ './inline-alert.component.scss' ]
})
export class InlineAlertComponent {
inlineAlertType: string = 'alert-danger';
diff --git a/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.template.ts b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.html
similarity index 65%
rename from src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.template.ts
rename to src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.html
index 93588cf1994..b28701b76ca 100644
--- a/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.template.ts
+++ b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.html
@@ -1,4 +1,3 @@
-export const JOB_LOG_VIEWER_TEMPLATE: string = `
{{title | translate }}
@@ -12,20 +11,4 @@
{{titl
-
-`;
-
-export const JOB_LOG_VIEWER_STYLES: string = `
-.log-viewer-title {
- line-height: 24px;
- color: #000000;
- font-size: 22px;
-}
-
-.loading-back {
- height: 358px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.scss b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.scss
new file mode 100644
index 00000000000..a2308f75a71
--- /dev/null
+++ b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.scss
@@ -0,0 +1,12 @@
+.log-viewer-title {
+ line-height: 24px;
+ color: #000000;
+ font-size: 22px;
+}
+
+.loading-back {
+ height: 358px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
diff --git a/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.ts b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.ts
index 4786a1e791e..e7bafefa692 100644
--- a/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.ts
+++ b/src/ui_ng/lib/src/job-log-viewer/job-log-viewer.component.ts
@@ -13,7 +13,6 @@
// limitations under the License.
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input} from '@angular/core';
-import { JOB_LOG_VIEWER_TEMPLATE, JOB_LOG_VIEWER_STYLES } from './job-log-viewer.component.template';
import { JobLogService } from '../service/index';
import { ErrorHandler } from '../error-handler/index';
import { toPromise } from '../utils';
@@ -22,8 +21,8 @@ const supportSet: string[] = ["replication", "scan"];
@Component({
selector: 'job-log-viewer',
- template: JOB_LOG_VIEWER_TEMPLATE,
- styles: [JOB_LOG_VIEWER_STYLES],
+ templateUrl: './job-log-viewer.component.html',
+ styleUrls: ['./job-log-viewer.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
diff --git a/src/ui_ng/lib/src/label-piece/label-piece.component.html b/src/ui_ng/lib/src/label-piece/label-piece.component.html
new file mode 100644
index 00000000000..863ab163638
--- /dev/null
+++ b/src/ui_ng/lib/src/label-piece/label-piece.component.html
@@ -0,0 +1,5 @@
+
diff --git a/src/ui_ng/lib/src/label-piece/label-piece.component.scss b/src/ui_ng/lib/src/label-piece/label-piece.component.scss
new file mode 100644
index 00000000000..3a5e468daca
--- /dev/null
+++ b/src/ui_ng/lib/src/label-piece/label-piece.component.scss
@@ -0,0 +1,17 @@
+.label {
+ border: none;
+ color: #222;
+ display: inline-block;
+ justify-content: flex-start;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ line-height: .875rem;
+}
+
+.label clr-icon {
+ margin-right: 3px;
+}
+
+.btn-group .dropdown-menu clr-icon {
+ display: block;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/label-piece/label-piece.component.ts b/src/ui_ng/lib/src/label-piece/label-piece.component.ts
index d00234eafd5..99561d5b309 100644
--- a/src/ui_ng/lib/src/label-piece/label-piece.component.ts
+++ b/src/ui_ng/lib/src/label-piece/label-piece.component.ts
@@ -18,15 +18,14 @@ import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/distinctUntilChanged';
-import { LABEL_PIEICE_TEMPLATE, LABEL_PIEICE_STYLES } from './label-piece.template';
import {Label} from "../service/interface";
import {LabelColor} from "../shared/shared.const";
@Component({
selector: 'hbr-label-piece',
- styles: [LABEL_PIEICE_STYLES],
- template: LABEL_PIEICE_TEMPLATE
+ templateUrl: './label-piece.component.html',
+ styleUrls: ['./label-piece.component.scss']
})
export class LabelPieceComponent implements OnInit, OnChanges {
diff --git a/src/ui_ng/lib/src/label-piece/label-piece.template.ts b/src/ui_ng/lib/src/label-piece/label-piece.template.ts
deleted file mode 100644
index b8ec01490f8..00000000000
--- a/src/ui_ng/lib/src/label-piece/label-piece.template.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Define template resources for filter component
- */
-
-export const LABEL_PIEICE_TEMPLATE: string = `
-
-`;
-
-export const LABEL_PIEICE_STYLES: string = `
- .label{border: none; color:#222;
- display: inline-block;
- justify-content: flex-start;
- overflow: hidden;
- text-overflow: ellipsis;
- line-height: .875rem;}
- .label clr-icon{ margin-right: 3px;}
- .btn-group .dropdown-menu clr-icon{display:block;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/label/label.component.css.ts b/src/ui_ng/lib/src/label/label.component.css.ts
deleted file mode 100644
index 707434c3fc1..00000000000
--- a/src/ui_ng/lib/src/label/label.component.css.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export const LABEL_STYLE: string = `
- .option-left {
- padding-left: 16px;
- margin-top: -6px;
- }
- .option-right {
- padding-right: 16px;
- }
- .refresh-btn {
- cursor: pointer;
- }
- .refresh-btn:hover {
- color: #007CBB;
- }
- .rightPos{
- position: absolute;
- z-index: 100;
- right: 35px;
- margin-top: 4px;
- height: 24px;}
-`;
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/label/label.component.html.ts b/src/ui_ng/lib/src/label/label.component.html
similarity index 98%
rename from src/ui_ng/lib/src/label/label.component.html.ts
rename to src/ui_ng/lib/src/label/label.component.html
index fd58e9398e2..dc13ef4ae54 100644
--- a/src/ui_ng/lib/src/label/label.component.html.ts
+++ b/src/ui_ng/lib/src/label/label.component.html
@@ -1,4 +1,3 @@
-export const LABEL_TEMPLATE = `
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/label/label.component.scss b/src/ui_ng/lib/src/label/label.component.scss
new file mode 100644
index 00000000000..ad95ff77531
--- /dev/null
+++ b/src/ui_ng/lib/src/label/label.component.scss
@@ -0,0 +1,24 @@
+.option-left {
+ padding-left: 16px;
+ margin-top: -6px;
+}
+
+.option-right {
+ padding-right: 16px;
+}
+
+.refresh-btn {
+ cursor: pointer;
+}
+
+.refresh-btn:hover {
+ color: #007CBB;
+}
+
+.rightPos {
+ position: absolute;
+ z-index: 100;
+ right: 35px;
+ margin-top: 4px;
+ height: 24px;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/label/label.component.ts b/src/ui_ng/lib/src/label/label.component.ts
index 6cb1727c378..23bcdd51f97 100644
--- a/src/ui_ng/lib/src/label/label.component.ts
+++ b/src/ui_ng/lib/src/label/label.component.ts
@@ -15,8 +15,6 @@ import {
Component, OnInit, OnDestroy, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef,
Input
} from '@angular/core';
-import {LABEL_TEMPLATE} from "./label.component.html";
-import {LABEL_STYLE} from "./label.component.css";
import {Label} from "../service/interface";
import {LabelDefaultService, LabelService} from "../service/label.service";
import {toPromise} from "../utils";
@@ -30,8 +28,8 @@ import {TranslateService} from "@ngx-translate/core";
import {ConfirmationDialogComponent} from "../confirmation-dialog/confirmation-dialog.component";
@Component({
selector: 'hbr-label',
- template: LABEL_TEMPLATE,
- styles: [LABEL_STYLE],
+ templateUrl: './label.component.html',
+ styleUrls: ['./label.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class LabelComponent implements OnInit {
diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.css.ts b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.css.ts
deleted file mode 100644
index 67157fd6c55..00000000000
--- a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.css.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const LIST_REPLICATION_RULE_CSS = `
-`
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html
similarity index 98%
rename from src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts
rename to src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html
index 20ca5fded3e..c3ca177b16a 100644
--- a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts
+++ b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html
@@ -1,4 +1,3 @@
-export const LIST_REPLICATION_RULE_TEMPLATE: string = `
@@ -36,5 +35,4 @@
-
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.scss b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.scss
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts
index 4c73ba74f8a..d1a74e7d7ec 100644
--- a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts
+++ b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts
@@ -41,15 +41,13 @@ import { toPromise, CustomComparator } from '../utils';
import { State, Comparator } from 'clarity-angular';
-import { LIST_REPLICATION_RULE_TEMPLATE } from './list-replication-rule.component.html';
-import { LIST_REPLICATION_RULE_CSS } from './list-replication-rule.component.css';
import {BatchInfo, BathInfoChanges} from "../confirmation-dialog/confirmation-batch-message";
import {Observable} from "rxjs/Observable";
@Component({
selector: 'hbr-list-replication-rule',
- template: LIST_REPLICATION_RULE_TEMPLATE,
- styles: [LIST_REPLICATION_RULE_CSS],
+ templateUrl: './list-replication-rule.component.html',
+ styleUrls: ['./list-replication-rule.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ListReplicationRuleComponent implements OnInit, OnChanges {
diff --git a/src/ui_ng/lib/src/log/recent-log.template.ts b/src/ui_ng/lib/src/log/recent-log.component.html
similarity index 59%
rename from src/ui_ng/lib/src/log/recent-log.template.ts
rename to src/ui_ng/lib/src/log/recent-log.component.html
index 0d478af8546..20533815f24 100644
--- a/src/ui_ng/lib/src/log/recent-log.template.ts
+++ b/src/ui_ng/lib/src/log/recent-log.component.html
@@ -1,8 +1,3 @@
-/**
- * Define the inline template and styles with ts variables
- */
-
-export const LOG_TEMPLATE: string = `
{{'SIDE_NAV.LOGS' | translate}}
@@ -16,10 +11,11 @@
{{'SIDE_NAV.LOGS' | translate}}{{"AUDIT_LOG.OPERATION" | translate | lowercase}}
-
+
-
-
+
+
@@ -39,64 +35,10 @@ {{'SIDE_NAV.LOGS' | translate}}{{l.op_time | date: 'short'}}
- {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
- {{'AUDIT_LOG.OF' | translate}} {{pagination.totalItems}} {{'AUDIT_LOG.ITEMS' | translate}}
-
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} {{'AUDIT_LOG.OF' | translate}} {{pagination.totalItems}} {{'AUDIT_LOG.ITEMS'
+ | translate}}
+
-
-`;
-
-export const LOG_STYLES: string = `
-.h2-log-override {
- margin-top: 0px !important;
-}
-
-.action-head-pos {
- padding-right: 18px;
- height: 24px;
-}
-
-.refresh-btn {
- cursor: pointer;
-}
-
-.refresh-btn:hover {
- color: #007CBB;
-}
-
-.custom-lines-button {
- padding: 0px !important;
- min-width: 25px !important;
-}
-
-.lines-button-toggole {
- font-size: 16px;
- text-decoration: underline;
-}
-
-.log-select {
- width: 130px;
- display: inline-block;
- top: 1px;
-}
-
-.item-divider {
- height: 24px;
- display: inline-block;
- width: 1px;
- background-color: #ccc;
- opacity: 0.55;
- margin-left: 12px;
- top: 8px;
- position: relative;
-}
-.rightPos {
- position: absolute;
- z-index: 100;
- right: 35px;
- margin-top: 4px;
-}
-.filterTag{float:left;margin-top:8px;}
-`;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/log/recent-log.component.scss b/src/ui_ng/lib/src/log/recent-log.component.scss
new file mode 100644
index 00000000000..76d3cf595b2
--- /dev/null
+++ b/src/ui_ng/lib/src/log/recent-log.component.scss
@@ -0,0 +1,55 @@
+.h2-log-override {
+ margin-top: 0px !important;
+}
+
+.action-head-pos {
+ padding-right: 18px;
+ height: 24px;
+}
+
+.refresh-btn {
+ cursor: pointer;
+}
+
+.refresh-btn:hover {
+ color: #007CBB;
+}
+
+.custom-lines-button {
+ padding: 0px !important;
+ min-width: 25px !important;
+}
+
+.lines-button-toggole {
+ font-size: 16px;
+ text-decoration: underline;
+}
+
+.log-select {
+ width: 130px;
+ display: inline-block;
+ top: 1px;
+}
+
+.item-divider {
+ height: 24px;
+ display: inline-block;
+ width: 1px;
+ background-color: #ccc;
+ opacity: 0.55;
+ margin-left: 12px;
+ top: 8px;
+ position: relative;
+}
+
+.rightPos {
+ position: absolute;
+ z-index: 100;
+ right: 35px;
+ margin-top: 4px;
+}
+
+.filterTag {
+ float: left;
+ margin-top: 8px;
+}
\ No newline at end of file
diff --git a/src/ui_ng/lib/src/log/recent-log.component.ts b/src/ui_ng/lib/src/log/recent-log.component.ts
index 4c511585268..6ddf0396a8e 100644
--- a/src/ui_ng/lib/src/log/recent-log.component.ts
+++ b/src/ui_ng/lib/src/log/recent-log.component.ts
@@ -22,7 +22,6 @@ import {
import { ErrorHandler } from '../error-handler/index';
import { Observable } from 'rxjs/Observable';
import { toPromise, CustomComparator } from '../utils';
-import { LOG_TEMPLATE, LOG_STYLES } from './recent-log.template';
import {
DEFAULT_PAGE_SIZE,
calculatePage,
@@ -34,8 +33,8 @@ import { Comparator, State } from 'clarity-angular';
@Component({
selector: 'hbr-log',
- styles: [LOG_STYLES],
- template: LOG_TEMPLATE
+ templateUrl: './recent-log.component.html',
+ styleUrls: ['./recent-log.component.scss']
})
export class RecentLogComponent implements OnInit {
diff --git a/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.css.ts b/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.css.ts
deleted file mode 100644
index b48779761b2..00000000000
--- a/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.css.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export const PROJECT_POLICY_CONFIG_STYLE = `#severity-blk div
-{
- display: inline-block;
-}
-
-.select {
- width: 120px;
-}
-`;
diff --git a/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html.ts b/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html
similarity index 98%
rename from src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html.ts
rename to src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html
index 04b17f327d9..ecf8fd7db12 100644
--- a/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html.ts
+++ b/src/ui_ng/lib/src/project-policy-config/project-policy-config.component.html
@@ -1,4 +1,3 @@
-export const PROJECT_POLICY_CONFIG_TEMPLATE = `