diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:04:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:05:16 +0100 |
commit | 24a8e782d8b2adb208d9cfb8659450395e2e2a77 (patch) | |
tree | 2f8aaebb8ec06c1c9b82728a9f46efd59163767f /client/src/app | |
parent | 1c6c7699f54e516839058529f11fb2e3d49c4ec0 (diff) | |
download | PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.gz PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.zst PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.zip |
Add bootstrap analyzer and optimize build
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+admin/admin.module.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-description.component.ts | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/client/src/app/+admin/admin.module.ts b/client/src/app/+admin/admin.module.ts index c0b006e73..74ceb25ef 100644 --- a/client/src/app/+admin/admin.module.ts +++ b/client/src/app/+admin/admin.module.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { TabsModule } from 'ngx-bootstrap/tabs' | 2 | import { TabsModule } from 'ngx-bootstrap/tabs' |
3 | import { DataTableModule } from 'primeng/components/datatable/datatable' | ||
3 | import { SharedModule } from '../shared' | 4 | import { SharedModule } from '../shared' |
4 | import { AdminRoutingModule } from './admin-routing.module' | 5 | import { AdminRoutingModule } from './admin-routing.module' |
5 | import { AdminComponent } from './admin.component' | 6 | import { AdminComponent } from './admin.component' |
@@ -16,6 +17,7 @@ import { VideoBlacklistComponent, VideoBlacklistListComponent } from './video-bl | |||
16 | imports: [ | 17 | imports: [ |
17 | AdminRoutingModule, | 18 | AdminRoutingModule, |
18 | TabsModule.forRoot(), | 19 | TabsModule.forRoot(), |
20 | DataTableModule, | ||
19 | SharedModule | 21 | SharedModule |
20 | ], | 22 | ], |
21 | 23 | ||
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 5af118c98..a5c56cb46 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts | |||
@@ -10,7 +10,6 @@ import { ModalModule } from 'ngx-bootstrap/modal' | |||
10 | import { InfiniteScrollModule } from 'ngx-infinite-scroll' | 10 | import { InfiniteScrollModule } from 'ngx-infinite-scroll' |
11 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | 11 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
12 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | 12 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
13 | import { DataTableModule } from 'primeng/components/datatable/datatable' | ||
14 | 13 | ||
15 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | 14 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
16 | import { DeleteButtonComponent } from './misc/delete-button.component' | 15 | import { DeleteButtonComponent } from './misc/delete-button.component' |
@@ -39,7 +38,6 @@ import { VideoService } from './video/video.service' | |||
39 | BsDropdownModule.forRoot(), | 38 | BsDropdownModule.forRoot(), |
40 | ModalModule.forRoot(), | 39 | ModalModule.forRoot(), |
41 | 40 | ||
42 | DataTableModule, | ||
43 | PrimeSharedModule, | 41 | PrimeSharedModule, |
44 | InfiniteScrollModule, | 42 | InfiniteScrollModule, |
45 | NgPipesModule | 43 | NgPipesModule |
@@ -66,7 +64,6 @@ import { VideoService } from './video/video.service' | |||
66 | 64 | ||
67 | BsDropdownModule, | 65 | BsDropdownModule, |
68 | ModalModule, | 66 | ModalModule, |
69 | DataTableModule, | ||
70 | PrimeSharedModule, | 67 | PrimeSharedModule, |
71 | InfiniteScrollModule, | 68 | InfiniteScrollModule, |
72 | BytesPipe, | 69 | BytesPipe, |
diff --git a/client/src/app/videos/+video-edit/shared/video-description.component.ts b/client/src/app/videos/+video-edit/shared/video-description.component.ts index 9b77a27e6..34dbc21a6 100644 --- a/client/src/app/videos/+video-edit/shared/video-description.component.ts +++ b/client/src/app/videos/+video-edit/shared/video-description.component.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Component, forwardRef, Input, OnInit } from '@angular/core' | 1 | import { Component, forwardRef, Input, OnInit } from '@angular/core' |
2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' | 2 | import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' |
3 | import { truncate } from 'lodash' | ||
4 | import 'rxjs/add/operator/debounceTime' | 3 | import 'rxjs/add/operator/debounceTime' |
5 | import 'rxjs/add/operator/distinctUntilChanged' | 4 | import 'rxjs/add/operator/distinctUntilChanged' |
6 | import { Subject } from 'rxjs/Subject' | 5 | import { Subject } from 'rxjs/Subject' |
7 | import { MarkdownService } from '../../shared' | 6 | import { MarkdownService } from '../../shared' |
7 | import truncate from 'lodash-es/truncate' | ||
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
10 | selector: 'my-video-description', | 10 | selector: 'my-video-description', |