Replace template/styles with templateUrl/styleUrls

This commit is contained in:
Farkas József
2017-02-05 21:39:18 +01:00
parent 604e9cb2b0
commit bd05da4316
50 changed files with 90 additions and 89 deletions

View File

@@ -5,8 +5,8 @@ import { SvgModule } from '../module';
@Component({
selector: 'svg-keyboard',
template: require('./svg-keyboard.component.html'),
styles: [require('./svg-keyboard.component.scss')]
templateUrl: './svg-keyboard.component.html',
styleUrls: ['./svg-keyboard.component.scss']
})
export class SvgKeyboardComponent implements OnInit {
@Input() moduleConfig: Module[];

View File

@@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'g[svg-icon-text-key]',
template: require('./svg-icon-text-key.component.html')
templateUrl: './svg-icon-text-key.component.html'
})
export class SvgIconTextKeyComponent implements OnInit {
@Input() width: number;

View File

@@ -59,8 +59,8 @@ enum LabelTypes {
])
],
selector: 'g[svg-keyboard-key]',
template: require('./svg-keyboard-key.component.html'),
styles: [require('./svg-keyboard-key.component.scss')]
templateUrl: './svg-keyboard-key.component.html',
styleUrls: ['./svg-keyboard-key.component.scss']
})
export class SvgKeyboardKeyComponent implements OnInit, OnChanges, OnDestroy {
@Input() id: string;

View File

@@ -26,8 +26,8 @@ enum Modifiers {
@Component({
selector: 'g[svg-keystroke-key]',
template: require('./svg-keystroke-key.component.html'),
styles: [require('./svg-keystroke-key.component.scss')]
templateUrl: './svg-keystroke-key.component.html',
styleUrls: ['./svg-keystroke-key.component.scss']
})
export class SvgKeystrokeKeyComponent implements OnInit, OnChanges {
@Input() height: number;

View File

@@ -4,7 +4,7 @@ import { MapperService } from '../../../../services/mapper.service';
@Component({
selector: 'g[svg-mouse-click-key]',
template: require('./svg-mouse-click-key.html')
templateUrl: './svg-mouse-click-key.html'
})
export class SvgMouseClickKeyComponent implements OnInit {
@Input() button: string;

View File

@@ -4,7 +4,7 @@ import { MouseAction, MouseActionParam } from '../../../../config-serializer/con
@Component({
selector: 'g[svg-mouse-key]',
template: require('./svg-mouse-key.html')
templateUrl: './svg-mouse-key.html'
})
export class SvgMouseKeyComponent implements OnChanges {
@Input() mouseAction: MouseAction;

View File

@@ -4,7 +4,7 @@ import { MapperService } from '../../../../services/mapper.service';
@Component({
selector: 'g[svg-mouse-move-key]',
template: require('./svg-mouse-move-key.html')
templateUrl: './svg-mouse-move-key.html'
})
export class SvgMouseMoveKeyComponent implements OnChanges {
@Input() direction: string;

View File

@@ -4,7 +4,7 @@ import { MapperService } from '../../../../services/mapper.service';
@Component({
selector: 'g[svg-mouse-scroll-key]',
template: require('./svg-mouse-scroll-key.html')
templateUrl: './svg-mouse-scroll-key.html'
})
export class SvgMouseScrollKeyComponent implements OnChanges {
@Input() direction: string;

View File

@@ -4,7 +4,7 @@ import { MapperService } from '../../../../services/mapper.service';
@Component({
selector: 'g[svg-mouse-speed-key]',
template: require('./svg-mouse-speed-key.html')
templateUrl: './svg-mouse-speed-key.html'
})
export class SvgMouseSpeedKeyComponent implements OnChanges {
@Input() plus: boolean;

View File

@@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'g[svg-one-line-text-key]',
template: require('./svg-one-line-text-key.component.html')
templateUrl: './svg-one-line-text-key.component.html'
})
export class SvgOneLineTextKeyComponent implements OnInit {
@Input() height: number;

View File

@@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'g[svg-single-icon-key]',
template: require('./svg-single-icon-key.component.html')
templateUrl: './svg-single-icon-key.component.html'
})
export class SvgSingleIconKeyComponent implements OnInit {
@Input() width: number;

View File

@@ -4,7 +4,7 @@ import { MapperService } from '../../../../services/mapper.service';
@Component({
selector: 'g[svg-switch-keymap-key]',
template: require('./svg-switch-keymap-key.component.html')
templateUrl: './svg-switch-keymap-key.component.html'
})
export class SvgSwitchKeymapKeyComponent implements OnInit {
@Input() width: number;

View File

@@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'g[svg-text-icon-key]',
template: require('./svg-text-icon-key.component.html')
templateUrl: './svg-text-icon-key.component.html'
})
export class SvgTextIconKeyComponent implements OnInit {
@Input() width: number;

View File

@@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'g[svg-two-line-text-key]',
template: require('./svg-two-line-text-key.component.html')
templateUrl: './svg-two-line-text-key.component.html'
})
export class SvgTwoLineTextKeyComponent implements OnInit {
@Input() height: number;

View File

@@ -6,8 +6,8 @@ import { SvgKeyboardKey } from '../keys';
@Component({
selector: 'g[svg-module]',
template: require('./svg-module.component.html'),
styles: [require('./svg-module.component.scss')]
templateUrl: './svg-module.component.html',
styleUrls: ['./svg-module.component.scss']
})
export class SvgModuleComponent {
@Input() coverages: any[];

View File

@@ -45,8 +45,8 @@ interface NameValuePair {
@Component({
selector: 'svg-keyboard-wrap',
template: require('./svg-keyboard-wrap.component.html'),
styles: [require('./svg-keyboard-wrap.component.scss')],
templateUrl: './svg-keyboard-wrap.component.html',
styleUrls: ['./svg-keyboard-wrap.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SvgKeyboardWrapComponent implements OnInit, OnChanges {