diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:49:31 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:49:31 +0200 |
commit | ec8d8440a893ba64075da2e57ea04c7976e0b303 (patch) | |
tree | a8fed5e1e6e06317533ebf021c1244c057e670c2 /client/src/app/videos | |
parent | ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14 (diff) | |
download | PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.gz PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.zst PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.zip |
Client: use templateUrl/styleUrls instead of require
Diffstat (limited to 'client/src/app/videos')
6 files changed, 11 insertions, 11 deletions
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'; | |||
2 | 2 | ||
3 | @Component({ | 3 | @Component({ |
4 | selector: 'my-loader', | 4 | selector: 'my-loader', |
5 | styles: [ require('./loader.component.scss') ], | 5 | styleUrls: [ './loader.component.scss' ], |
6 | template: require('./loader.component.html') | 6 | templateUrl: './loader.component.html' |
7 | }) | 7 | }) |
8 | 8 | ||
9 | export class LoaderComponent { | 9 | 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 } | |||
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
10 | selector: 'my-videos-add', | 10 | selector: 'my-videos-add', |
11 | styles: [ require('./video-add.component.scss') ], | 11 | styleUrls: [ './video-add.component.scss' ], |
12 | template: require('./video-add.component.html') | 12 | templateUrl: './video-add.component.html' |
13 | }) | 13 | }) |
14 | 14 | ||
15 | export class VideoAddComponent extends FormReactive implements OnInit { | 15 | 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'; | |||
12 | 12 | ||
13 | @Component({ | 13 | @Component({ |
14 | selector: 'my-videos-list', | 14 | selector: 'my-videos-list', |
15 | styles: [ require('./video-list.component.scss') ], | 15 | styleUrls: [ './video-list.component.scss' ], |
16 | template: require('./video-list.component.html') | 16 | templateUrl: './video-list.component.html' |
17 | }) | 17 | }) |
18 | 18 | ||
19 | export class VideoListComponent implements OnInit, OnDestroy { | 19 | 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'; | |||
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | selector: 'my-video-miniature', | 7 | selector: 'my-video-miniature', |
8 | styles: [ require('./video-miniature.component.scss') ], | 8 | styleUrls: [ './video-miniature.component.scss' ], |
9 | template: require('./video-miniature.component.html') | 9 | templateUrl: './video-miniature.component.html' |
10 | }) | 10 | }) |
11 | 11 | ||
12 | export class VideoMiniatureComponent { | 12 | 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'; | |||
4 | 4 | ||
5 | @Component({ | 5 | @Component({ |
6 | selector: 'my-video-sort', | 6 | selector: 'my-video-sort', |
7 | template: require('./video-sort.component.html') | 7 | templateUrl: './video-sort.component.html' |
8 | }) | 8 | }) |
9 | 9 | ||
10 | export class VideoSortComponent { | 10 | 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'; | |||
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'my-video-watch', | 8 | selector: 'my-video-watch', |
9 | template: require('./video-watch.component.html'), | 9 | templateUrl: './video-watch.component.html', |
10 | styles: [ require('./video-watch.component.scss') ] | 10 | styleUrls: [ './video-watch.component.scss' ] |
11 | }) | 11 | }) |
12 | 12 | ||
13 | export class VideoWatchComponent implements OnInit, OnDestroy { | 13 | export class VideoWatchComponent implements OnInit, OnDestroy { |