aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-19 22:49:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-19 22:49:31 +0200
commitec8d8440a893ba64075da2e57ea04c7976e0b303 (patch)
treea8fed5e1e6e06317533ebf021c1244c057e670c2 /client
parentad22074a780b4bdbe3cd9e903b3fa5ef83eaef14 (diff)
downloadPeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.gz
PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.tar.zst
PeerTube-ec8d8440a893ba64075da2e57ea04c7976e0b303.zip
Client: use templateUrl/styleUrls instead of require
Diffstat (limited to 'client')
-rw-r--r--client/src/app/account/account.component.ts2
-rw-r--r--client/src/app/admin/friends/friend-add/friend-add.component.ts4
-rw-r--r--client/src/app/admin/friends/friend-list/friend-list.component.ts4
-rw-r--r--client/src/app/admin/menu-admin.component.ts2
-rw-r--r--client/src/app/admin/users/user-add/user-add.component.ts2
-rw-r--r--client/src/app/admin/users/user-list/user-list.component.ts4
-rw-r--r--client/src/app/app.component.ts4
-rw-r--r--client/src/app/login/login.component.ts2
-rw-r--r--client/src/app/menu.component.ts2
-rw-r--r--client/src/app/shared/search/search.component.ts2
-rw-r--r--client/src/app/videos/shared/loader/loader.component.ts4
-rw-r--r--client/src/app/videos/video-add/video-add.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-list.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-miniature.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-sort.component.ts2
-rw-r--r--client/src/app/videos/video-watch/video-watch.component.ts4
16 files changed, 25 insertions, 25 deletions
diff --git a/client/src/app/account/account.component.ts b/client/src/app/account/account.component.ts
index b503406c9..851eaf198 100644
--- a/client/src/app/account/account.component.ts
+++ b/client/src/app/account/account.component.ts
@@ -8,7 +8,7 @@ import { FormReactive, USER_PASSWORD } from '../shared';
8 8
9@Component({ 9@Component({
10 selector: 'my-account', 10 selector: 'my-account',
11 template: require('./account.component.html') 11 templateUrl: './account.component.html'
12}) 12})
13 13
14export class AccountComponent extends FormReactive implements OnInit { 14export class AccountComponent extends FormReactive implements OnInit {
diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.ts b/client/src/app/admin/friends/friend-add/friend-add.component.ts
index 68363b482..7aab82b97 100644
--- a/client/src/app/admin/friends/friend-add/friend-add.component.ts
+++ b/client/src/app/admin/friends/friend-add/friend-add.component.ts
@@ -7,8 +7,8 @@ import { FriendService } from '../shared';
7 7
8@Component({ 8@Component({
9 selector: 'my-friend-add', 9 selector: 'my-friend-add',
10 template: require('./friend-add.component.html'), 10 templateUrl: './friend-add.component.html',
11 styles: [ require('./friend-add.component.scss') ] 11 styleUrls: [ './friend-add.component.scss' ]
12}) 12})
13export class FriendAddComponent implements OnInit { 13export class FriendAddComponent implements OnInit {
14 form: FormGroup; 14 form: FormGroup;
diff --git a/client/src/app/admin/friends/friend-list/friend-list.component.ts b/client/src/app/admin/friends/friend-list/friend-list.component.ts
index c76fc4df2..afbb48c1c 100644
--- a/client/src/app/admin/friends/friend-list/friend-list.component.ts
+++ b/client/src/app/admin/friends/friend-list/friend-list.component.ts
@@ -4,8 +4,8 @@ import { Friend, FriendService } from '../shared';
4 4
5@Component({ 5@Component({
6 selector: 'my-friend-list', 6 selector: 'my-friend-list',
7 template: require('./friend-list.component.html'), 7 templateUrl: './friend-list.component.html',
8 styles: [ require('./friend-list.component.scss') ] 8 styleUrls: [ './friend-list.component.scss' ]
9}) 9})
10export class FriendListComponent implements OnInit { 10export class FriendListComponent implements OnInit {
11 friends: Friend[]; 11 friends: Friend[];
diff --git a/client/src/app/admin/menu-admin.component.ts b/client/src/app/admin/menu-admin.component.ts
index a9115d49f..59ffccf9f 100644
--- a/client/src/app/admin/menu-admin.component.ts
+++ b/client/src/app/admin/menu-admin.component.ts
@@ -2,6 +2,6 @@ import { Component } from '@angular/core';
2 2
3@Component({ 3@Component({
4 selector: 'my-menu-admin', 4 selector: 'my-menu-admin',
5 template: require('./menu-admin.component.html') 5 templateUrl: './menu-admin.component.html'
6}) 6})
7export class MenuAdminComponent { } 7export class MenuAdminComponent { }
diff --git a/client/src/app/admin/users/user-add/user-add.component.ts b/client/src/app/admin/users/user-add/user-add.component.ts
index b79437795..ab96fb01d 100644
--- a/client/src/app/admin/users/user-add/user-add.component.ts
+++ b/client/src/app/admin/users/user-add/user-add.component.ts
@@ -7,7 +7,7 @@ import { FormReactive, USER_USERNAME, USER_PASSWORD } from '../../../shared';
7 7
8@Component({ 8@Component({
9 selector: 'my-user-add', 9 selector: 'my-user-add',
10 template: require('./user-add.component.html') 10 templateUrl: './user-add.component.html'
11}) 11})
12export class UserAddComponent extends FormReactive implements OnInit { 12export class UserAddComponent extends FormReactive implements OnInit {
13 error: string = null; 13 error: string = null;
diff --git a/client/src/app/admin/users/user-list/user-list.component.ts b/client/src/app/admin/users/user-list/user-list.component.ts
index d3827eb28..03f4e5c0a 100644
--- a/client/src/app/admin/users/user-list/user-list.component.ts
+++ b/client/src/app/admin/users/user-list/user-list.component.ts
@@ -5,8 +5,8 @@ import { UserService } from '../shared';
5 5
6@Component({ 6@Component({
7 selector: 'my-user-list', 7 selector: 'my-user-list',
8 template: require('./user-list.component.html'), 8 templateUrl: './user-list.component.html',
9 styles: [ require('./user-list.component.scss') ] 9 styleUrls: [ './user-list.component.scss' ]
10}) 10})
11export class UserListComponent implements OnInit { 11export class UserListComponent implements OnInit {
12 totalUsers: number; 12 totalUsers: number;
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index e81993a3f..d6b83c684 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -3,8 +3,8 @@ import { Router } from '@angular/router';
3 3
4@Component({ 4@Component({
5 selector: 'my-app', 5 selector: 'my-app',
6 template: require('./app.component.html'), 6 templateUrl: './app.component.html',
7 styles: [ require('./app.component.scss') ] 7 styleUrls: [ './app.component.scss' ]
8}) 8})
9 9
10export class AppComponent { 10export class AppComponent {
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts
index 378714ca1..c4ff7050b 100644
--- a/client/src/app/login/login.component.ts
+++ b/client/src/app/login/login.component.ts
@@ -6,7 +6,7 @@ import { AuthService, FormReactive } from '../shared';
6 6
7@Component({ 7@Component({
8 selector: 'my-login', 8 selector: 'my-login',
9 template: require('./login.component.html') 9 templateUrl: './login.component.html'
10}) 10})
11 11
12export class LoginComponent extends FormReactive implements OnInit { 12export class LoginComponent extends FormReactive implements OnInit {
diff --git a/client/src/app/menu.component.ts b/client/src/app/menu.component.ts
index 425a12e5d..6cfc854dd 100644
--- a/client/src/app/menu.component.ts
+++ b/client/src/app/menu.component.ts
@@ -5,7 +5,7 @@ import { AuthService, AuthStatus } from './shared';
5 5
6@Component({ 6@Component({
7 selector: 'my-menu', 7 selector: 'my-menu',
8 template: require('./menu.component.html') 8 templateUrl: './menu.component.html'
9}) 9})
10export class MenuComponent implements OnInit { 10export class MenuComponent implements OnInit {
11 isLoggedIn: boolean; 11 isLoggedIn: boolean;
diff --git a/client/src/app/shared/search/search.component.ts b/client/src/app/shared/search/search.component.ts
index 7878471dc..b6237469b 100644
--- a/client/src/app/shared/search/search.component.ts
+++ b/client/src/app/shared/search/search.component.ts
@@ -7,7 +7,7 @@ import { SearchService } from './search.service';
7 7
8@Component({ 8@Component({
9 selector: 'my-search', 9 selector: 'my-search',
10 template: require('./search.component.html') 10 templateUrl: './search.component.html'
11}) 11})
12 12
13export class SearchComponent implements OnInit { 13export class SearchComponent implements OnInit {
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
9export class LoaderComponent { 9export 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
15export class VideoAddComponent extends FormReactive implements OnInit { 15export 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
19export class VideoListComponent implements OnInit, OnDestroy { 19export 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
12export class VideoMiniatureComponent { 12export 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
10export class VideoSortComponent { 10export 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
13export class VideoWatchComponent implements OnInit, OnDestroy { 13export class VideoWatchComponent implements OnInit, OnDestroy {