From ec8d8440a893ba64075da2e57ea04c7976e0b303 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Sep 2016 22:49:31 +0200 Subject: Client: use templateUrl/styleUrls instead of require --- client/src/app/videos/shared/loader/loader.component.ts | 4 ++-- client/src/app/videos/video-add/video-add.component.ts | 4 ++-- client/src/app/videos/video-list/video-list.component.ts | 4 ++-- client/src/app/videos/video-list/video-miniature.component.ts | 4 ++-- client/src/app/videos/video-list/video-sort.component.ts | 2 +- client/src/app/videos/video-watch/video-watch.component.ts | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/shared/loader/loader.component.ts b/client/src/app/videos/shared/loader/loader.component.ts index cdd07d1b4..e72d2f3f3 100644 --- a/client/src/app/videos/shared/loader/loader.component.ts +++ b/client/src/app/videos/shared/loader/loader.component.ts @@ -2,8 +2,8 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'my-loader', - styles: [ require('./loader.component.scss') ], - template: require('./loader.component.html') + styleUrls: [ './loader.component.scss' ], + templateUrl: './loader.component.html' }) export class LoaderComponent { diff --git a/client/src/app/videos/video-add/video-add.component.ts b/client/src/app/videos/video-add/video-add.component.ts index 16a8409be..d12a7d572 100644 --- a/client/src/app/videos/video-add/video-add.component.ts +++ b/client/src/app/videos/video-add/video-add.component.ts @@ -8,8 +8,8 @@ import { AuthService, FormReactive, VIDEO_NAME, VIDEO_DESCRIPTION, VIDEO_TAGS } @Component({ selector: 'my-videos-add', - styles: [ require('./video-add.component.scss') ], - template: require('./video-add.component.html') + styleUrls: [ './video-add.component.scss' ], + templateUrl: './video-add.component.html' }) export class VideoAddComponent extends FormReactive implements OnInit { diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts index fa8e497aa..6b086e938 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts @@ -12,8 +12,8 @@ import { SearchService } from '../../shared'; @Component({ selector: 'my-videos-list', - styles: [ require('./video-list.component.scss') ], - template: require('./video-list.component.html') + styleUrls: [ './video-list.component.scss' ], + templateUrl: './video-list.component.html' }) export class VideoListComponent implements OnInit, OnDestroy { diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts index 38317f832..f807d17ac 100644 --- a/client/src/app/videos/video-list/video-miniature.component.ts +++ b/client/src/app/videos/video-list/video-miniature.component.ts @@ -5,8 +5,8 @@ import { User } from '../../shared'; @Component({ selector: 'my-video-miniature', - styles: [ require('./video-miniature.component.scss') ], - template: require('./video-miniature.component.html') + styleUrls: [ './video-miniature.component.scss' ], + templateUrl: './video-miniature.component.html' }) export class VideoMiniatureComponent { diff --git a/client/src/app/videos/video-list/video-sort.component.ts b/client/src/app/videos/video-list/video-sort.component.ts index 0d76b54b7..ca94b07c2 100644 --- a/client/src/app/videos/video-list/video-sort.component.ts +++ b/client/src/app/videos/video-list/video-sort.component.ts @@ -4,7 +4,7 @@ import { SortField } from '../shared'; @Component({ selector: 'my-video-sort', - template: require('./video-sort.component.html') + templateUrl: './video-sort.component.html' }) export class VideoSortComponent { diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 2a60e9327..ada20fc96 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts @@ -6,8 +6,8 @@ import { WebTorrentService } from './webtorrent.service'; @Component({ selector: 'my-video-watch', - template: require('./video-watch.component.html'), - styles: [ require('./video-watch.component.scss') ] + templateUrl: './video-watch.component.html', + styleUrls: [ './video-watch.component.scss' ] }) export class VideoWatchComponent implements OnInit, OnDestroy { -- cgit v1.2.3