@@ -12,20 +11,4 @@ export const JOB_LOG_VIEWER_TEMPLATE: string = `
-
-`;
-
-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 000000000..a2308f75a
--- /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 4786a1e79..e7bafefa6 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 000000000..863ab1636
--- /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 000000000..3a5e468da
--- /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 d00234eaf..99561d5b3 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 b8ec01490..000000000
--- 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 707434c3f..000000000
--- 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 fd58e9398..dc13ef4ae 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 = `
@@ -39,5 +38,4 @@ 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 000000000..ad95ff775
--- /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 6cb1727c3..23bcdd51f 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 67157fd6c..000000000
--- 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 20ca5fded..c3ca177b1 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 = `