diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/config/webpack.common.js | 25 | ||||
-rw-r--r-- | client/config/webpack.dev.js | 22 | ||||
-rw-r--r-- | client/config/webpack.prod.js | 25 | ||||
-rw-r--r-- | client/src/app/+admin/users/shared/user.service.ts | 2 | ||||
-rw-r--r-- | client/src/app/+admin/users/user-list/user-list.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/rest/rest-table.ts | 3 | ||||
-rw-r--r-- | client/src/app/shared/rest/rest.service.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/shared/video-abuse/video-abuse.service.ts | 2 |
10 files changed, 34 insertions, 54 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index 7392c58d3..000699aa5 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -5,7 +5,6 @@ const helpers = require('./helpers') | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | const AssetsPlugin = require('assets-webpack-plugin') | 7 | const AssetsPlugin = require('assets-webpack-plugin') |
8 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | ||
9 | const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin') | 8 | const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin') |
10 | const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin') | 9 | const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin') |
11 | const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin | 10 | const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin |
@@ -297,30 +296,6 @@ module.exports = function (options) { | |||
297 | new ngcWebpack.NgcWebpackPlugin({ | 296 | new ngcWebpack.NgcWebpackPlugin({ |
298 | disabled: !AOT, | 297 | disabled: !AOT, |
299 | tsConfig: helpers.root('tsconfig.webpack.json') | 298 | tsConfig: helpers.root('tsconfig.webpack.json') |
300 | }), | ||
301 | |||
302 | new BundleAnalyzerPlugin({ | ||
303 | // Can be `server`, `static` or `disabled`. | ||
304 | // In `server` mode analyzer will start HTTP server to show bundle report. | ||
305 | // In `static` mode single HTML file with bundle report will be generated. | ||
306 | // In `disabled` mode you can use this plugin to just generate Webpack Stats JSON file by setting `generateStatsFile` to `true`. | ||
307 | analyzerMode: 'static', | ||
308 | // Path to bundle report file that will be generated in `static` mode. | ||
309 | // Relative to bundles output directory. | ||
310 | reportFilename: 'report.html', | ||
311 | // Automatically open report in default browser | ||
312 | openAnalyzer: false, | ||
313 | // If `true`, Webpack Stats JSON file will be generated in bundles output directory | ||
314 | generateStatsFile: true, | ||
315 | // Name of Webpack Stats JSON file that will be generated if `generateStatsFile` is `true`. | ||
316 | // Relative to bundles output directory. | ||
317 | statsFilename: 'stats.json', | ||
318 | // Options for `stats.toJson()` method. | ||
319 | // For example you can exclude sources of your modules from stats file with `source: false` option. | ||
320 | // See more options here: https://github.com/webpack/webpack/blob/webpack-1/lib/Stats.js#L21 | ||
321 | statsOptions: null, | ||
322 | // Log level. Can be 'info', 'warn', 'error' or 'silent'. | ||
323 | logLevel: 'info' | ||
324 | }) | 299 | }) |
325 | ], | 300 | ], |
326 | 301 | ||
diff --git a/client/config/webpack.dev.js b/client/config/webpack.dev.js index 8948af9b2..d825f40e0 100644 --- a/client/config/webpack.dev.js +++ b/client/config/webpack.dev.js | |||
@@ -91,28 +91,6 @@ module.exports = function (env) { | |||
91 | libraryTarget: 'var' | 91 | libraryTarget: 'var' |
92 | }, | 92 | }, |
93 | 93 | ||
94 | module: { | ||
95 | |||
96 | // Too slow, life is short | ||
97 | // rules: [ | ||
98 | // { | ||
99 | // test: /\.ts$/, | ||
100 | // use: [ | ||
101 | // { | ||
102 | // loader: 'tslint-loader', | ||
103 | // options: { | ||
104 | // configFile: 'tslint.json' | ||
105 | // } | ||
106 | // } | ||
107 | // ], | ||
108 | // exclude: [ | ||
109 | // /\.(spec|e2e)\.ts$/, | ||
110 | // /node_modules\// | ||
111 | // ] | ||
112 | // } | ||
113 | // ] | ||
114 | }, | ||
115 | |||
116 | plugins: [ | 94 | plugins: [ |
117 | 95 | ||
118 | /** | 96 | /** |
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js index fc47f03a0..777c816e8 100644 --- a/client/config/webpack.prod.js +++ b/client/config/webpack.prod.js | |||
@@ -11,6 +11,7 @@ const videoEmbedConfig = require('./webpack.video-embed.js') | |||
11 | * Webpack Plugins | 11 | * Webpack Plugins |
12 | */ | 12 | */ |
13 | const DefinePlugin = require('webpack/lib/DefinePlugin') | 13 | const DefinePlugin = require('webpack/lib/DefinePlugin') |
14 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | ||
14 | const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') | 15 | const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') |
15 | const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin') | 16 | const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin') |
16 | const OptimizeJsPlugin = require('optimize-js-plugin') | 17 | const OptimizeJsPlugin = require('optimize-js-plugin') |
@@ -249,6 +250,30 @@ module.exports = function (env) { | |||
249 | path: helpers.root('dist') | 250 | path: helpers.root('dist') |
250 | } | 251 | } |
251 | } | 252 | } |
253 | }), | ||
254 | |||
255 | new BundleAnalyzerPlugin({ | ||
256 | // Can be `server`, `static` or `disabled`. | ||
257 | // In `server` mode analyzer will start HTTP server to show bundle report. | ||
258 | // In `static` mode single HTML file with bundle report will be generated. | ||
259 | // In `disabled` mode you can use this plugin to just generate Webpack Stats JSON file by setting `generateStatsFile` to `true`. | ||
260 | analyzerMode: 'static', | ||
261 | // Path to bundle report file that will be generated in `static` mode. | ||
262 | // Relative to bundles output directory. | ||
263 | reportFilename: 'report.html', | ||
264 | // Automatically open report in default browser | ||
265 | openAnalyzer: false, | ||
266 | // If `true`, Webpack Stats JSON file will be generated in bundles output directory | ||
267 | generateStatsFile: true, | ||
268 | // Name of Webpack Stats JSON file that will be generated if `generateStatsFile` is `true`. | ||
269 | // Relative to bundles output directory. | ||
270 | statsFilename: 'stats.json', | ||
271 | // Options for `stats.toJson()` method. | ||
272 | // For example you can exclude sources of your modules from stats file with `source: false` option. | ||
273 | // See more options here: https://github.com/webpack/webpack/blob/webpack-1/lib/Stats.js#L21 | ||
274 | statsOptions: null, | ||
275 | // Log level. Can be 'info', 'warn', 'error' or 'silent'. | ||
276 | logLevel: 'info' | ||
252 | }) | 277 | }) |
253 | ], | 278 | ], |
254 | 279 | ||
diff --git a/client/src/app/+admin/users/shared/user.service.ts b/client/src/app/+admin/users/shared/user.service.ts index a4b89bf1d..e4bd5df37 100644 --- a/client/src/app/+admin/users/shared/user.service.ts +++ b/client/src/app/+admin/users/shared/user.service.ts | |||
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs/Observable' | |||
4 | import 'rxjs/add/operator/catch' | 4 | import 'rxjs/add/operator/catch' |
5 | import 'rxjs/add/operator/map' | 5 | import 'rxjs/add/operator/map' |
6 | 6 | ||
7 | import { SortMeta } from 'primeng/primeng' | 7 | import { SortMeta } from 'primeng/components/common/sortmeta' |
8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe' | 8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe' |
9 | 9 | ||
10 | import { RestExtractor, User, RestPagination, RestService } from '../../../shared' | 10 | import { RestExtractor, User, RestPagination, RestService } from '../../../shared' |
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 73b5c0ce9..6debf89be 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 | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { SortMeta } from 'primeng/primeng' | 2 | import { SortMeta } from 'primeng/components/common/sortmeta' |
3 | 3 | ||
4 | import { NotificationsService } from 'angular2-notifications' | 4 | import { NotificationsService } from 'angular2-notifications' |
5 | 5 | ||
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts index 92de11f0e..654603d01 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | 2 | ||
3 | import { NotificationsService } from 'angular2-notifications' | 3 | import { NotificationsService } from 'angular2-notifications' |
4 | import { SortMeta } from 'primeng/primeng' | 4 | import { SortMeta } from 'primeng/components/common/sortmeta' |
5 | 5 | ||
6 | import { RestTable, RestPagination, VideoAbuseService } from '../../../shared' | 6 | import { RestTable, RestPagination, VideoAbuseService } from '../../../shared' |
7 | import { VideoAbuse } from '../../../../../../shared' | 7 | import { VideoAbuse } from '../../../../../../shared' |
diff --git a/client/src/app/shared/rest/rest-table.ts b/client/src/app/shared/rest/rest-table.ts index db2cb5e14..d04d91c68 100644 --- a/client/src/app/shared/rest/rest-table.ts +++ b/client/src/app/shared/rest/rest-table.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { LazyLoadEvent, SortMeta } from 'primeng/primeng' | 1 | import { LazyLoadEvent } from 'primeng/components/common/lazyloadevent' |
2 | import { SortMeta } from 'primeng/components/common/sortmeta' | ||
2 | 3 | ||
3 | import { RestPagination } from './rest-pagination' | 4 | import { RestPagination } from './rest-pagination' |
4 | 5 | ||
diff --git a/client/src/app/shared/rest/rest.service.ts b/client/src/app/shared/rest/rest.service.ts index f7838ba06..a1c301050 100644 --- a/client/src/app/shared/rest/rest.service.ts +++ b/client/src/app/shared/rest/rest.service.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { HttpParams } from '@angular/common/http' | 2 | import { HttpParams } from '@angular/common/http' |
3 | import { SortMeta } from 'primeng/primeng' | 3 | import { SortMeta } from 'primeng/components/common/sortmeta' |
4 | 4 | ||
5 | import { RestPagination } from './rest-pagination' | 5 | import { RestPagination } from './rest-pagination' |
6 | 6 | ||
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index a28ac322d..56da62fc4 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts | |||
@@ -10,7 +10,8 @@ import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |||
10 | import { ProgressbarModule } from 'ngx-bootstrap/progressbar' | 10 | import { ProgressbarModule } from 'ngx-bootstrap/progressbar' |
11 | import { PaginationModule } from 'ngx-bootstrap/pagination' | 11 | import { PaginationModule } from 'ngx-bootstrap/pagination' |
12 | import { ModalModule } from 'ngx-bootstrap/modal' | 12 | import { ModalModule } from 'ngx-bootstrap/modal' |
13 | import { DataTableModule, SharedModule as PrimeSharedModule } from 'primeng/primeng' | 13 | import { DataTableModule } from 'primeng/components/datatable/datatable' |
14 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | ||
14 | 15 | ||
15 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | 16 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
16 | import { RestExtractor, RestService } from './rest' | 17 | import { RestExtractor, RestService } from './rest' |
diff --git a/client/src/app/shared/video-abuse/video-abuse.service.ts b/client/src/app/shared/video-abuse/video-abuse.service.ts index 984581114..8d979de31 100644 --- a/client/src/app/shared/video-abuse/video-abuse.service.ts +++ b/client/src/app/shared/video-abuse/video-abuse.service.ts | |||
@@ -4,7 +4,7 @@ import 'rxjs/add/operator/catch' | |||
4 | import 'rxjs/add/operator/map' | 4 | import 'rxjs/add/operator/map' |
5 | import { Observable } from 'rxjs/Observable' | 5 | import { Observable } from 'rxjs/Observable' |
6 | 6 | ||
7 | import { SortMeta } from 'primeng/primeng' | 7 | import { SortMeta } from 'primeng/components/common/sortmeta' |
8 | 8 | ||
9 | import { AuthService } from '../core' | 9 | import { AuthService } from '../core' |
10 | import { RestExtractor, RestPagination, RestService } from '../rest' | 10 | import { RestExtractor, RestPagination, RestService } from '../rest' |