Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix legacy issues that html and css file are written on ts file. #4899

Merged
merged 1 commit into from
May 11, 2018

Conversation

ninjadq
Copy link
Member

@ninjadq ninjadq commented May 9, 2018

Currently, our html and css files are written as string on .ts file. This pr is to solve the legacy issue.

@coveralls
Copy link

coveralls commented May 9, 2018

Coverage Status

Coverage increased (+0.01%) to 64.524% when pulling 282a63f on ninjadq:mv_string_to_html_n_css into cf79e9e on vmware:master.

@ninjadq ninjadq force-pushed the mv_string_to_html_n_css branch 5 times, most recently from 1056127 to cabed8b Compare May 10, 2018 07:19
@@ -19,7 +19,7 @@ import { Configuration } from 'harbor-ui';
@Component({
selector: 'config-email',
templateUrl: "config-email.component.html",
styleUrls: ['../config.component.css']
styleUrls: ['../config.component.scss']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHY '../'

@@ -41,7 +41,7 @@ import {BatchInfo, BathInfoChanges} from "../../shared/confirmation-dialog/confi

@Component({
templateUrl: "member.component.html",
styleUrls: ["./member.component.css"],
styleUrls: ["./member.component.scss"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHY one with './' another without './'

template: SYSTEM_SETTINGS_HTML,
styles: [REGISTRY_CONFIG_STYLES]
templateUrl: './system-settings.component.html',
styleUrls: ['../registry-config.component.scss']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHY '../' and './'

template: REPLICATION_CONFIG_HTML,
styles: [REGISTRY_CONFIG_STYLES]
templateUrl: './replication-config.component.html',
styles: ['../registry-config.component.scss']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHY '../' AND './'

Currently, our html and css files are written as string on .ts file. This pr is to solve the legacy issue.
@ninjadq ninjadq force-pushed the mv_string_to_html_n_css branch from cabed8b to 282a63f Compare May 10, 2018 10:39
Copy link
Contributor

@steven-zou steven-zou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-zou steven-zou merged commit 9b01d3a into goharbor:master May 11, 2018
@ninjadq ninjadq deleted the mv_string_to_html_n_css branch April 16, 2019 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants