mirror of https://github.com/Chocobozzz/PeerTube
Update Angular -> 8.2.0
parent
1f8ac02436
commit
16b5525950
|
@ -15,7 +15,7 @@
|
||||||
"outputPath": "dist",
|
"outputPath": "dist",
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "src/main.ts",
|
||||||
"tsConfig": "src/tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"stylePreprocessorOptions": {
|
"stylePreprocessorOptions": {
|
||||||
"includePaths": [
|
"includePaths": [
|
||||||
|
@ -46,11 +46,8 @@
|
||||||
"ngswConfigPath": "src/ngsw-config.json",
|
"ngswConfigPath": "src/ngsw-config.json",
|
||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "2mb",
|
"maximumWarning": "2mb",
|
||||||
"maximumWarning": "2mb",
|
|
||||||
"maximumError": "5mb"
|
|
||||||
"maximumError": "5mb"
|
"maximumError": "5mb"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -130,8 +127,7 @@
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
"options": {
|
"options": {
|
||||||
"tsConfig": [
|
"tsConfig": [
|
||||||
"src/tsconfig.app.json",
|
"tsconfig.app.json"
|
||||||
"src/tsconfig.spec.json"
|
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/node_modules/**"
|
"**/node_modules/**"
|
||||||
|
|
|
@ -31,20 +31,20 @@
|
||||||
"punycode": "^1.4.1"
|
"punycode": "^1.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~0.801.2",
|
"@angular-devkit/build-angular": "~0.802.0",
|
||||||
"@angular/animations": "~8.1.2",
|
"@angular/animations": "~8.2.0",
|
||||||
"@angular/cdk": "^8.1.1",
|
"@angular/cdk": "^8.1.1",
|
||||||
"@angular/cli": "~8.1.2",
|
"@angular/cli": "~8.2.0",
|
||||||
"@angular/common": "~8.1.2",
|
"@angular/common": "~8.2.0",
|
||||||
"@angular/compiler": "~8.1.2",
|
"@angular/compiler": "~8.2.0",
|
||||||
"@angular/compiler-cli": "~8.1.2",
|
"@angular/compiler-cli": "~8.2.0",
|
||||||
"@angular/core": "~8.1.2",
|
"@angular/core": "~8.2.0",
|
||||||
"@angular/forms": "~8.1.2",
|
"@angular/forms": "~8.2.0",
|
||||||
"@angular/language-service": "~8.1.2",
|
"@angular/language-service": "~8.2.0",
|
||||||
"@angular/platform-browser": "~8.1.2",
|
"@angular/platform-browser": "~8.2.0",
|
||||||
"@angular/platform-browser-dynamic": "~8.1.2",
|
"@angular/platform-browser-dynamic": "~8.2.0",
|
||||||
"@angular/router": "~8.1.2",
|
"@angular/router": "~8.2.0",
|
||||||
"@angular/service-worker": "~8.1.2",
|
"@angular/service-worker": "~8.2.0",
|
||||||
"@angularclass/hmr": "^2.1.3",
|
"@angularclass/hmr": "^2.1.3",
|
||||||
"@neos21/bootstrap3-glyphicons": "^1.0.1",
|
"@neos21/bootstrap3-glyphicons": "^1.0.1",
|
||||||
"@ng-bootstrap/ng-bootstrap": "^5.1.0",
|
"@ng-bootstrap/ng-bootstrap": "^5.1.0",
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
"tslint": "^5.7.0",
|
"tslint": "^5.7.0",
|
||||||
"tslint-angular": "^3.0.2",
|
"tslint-angular": "^3.0.2",
|
||||||
"tslint-config-standard": "^8.0.1",
|
"tslint-config-standard": "^8.0.1",
|
||||||
"typescript": "~3.4",
|
"typescript": "~3.5.3",
|
||||||
"video.js": "^7",
|
"video.js": "^7",
|
||||||
"videojs-contextmenu-ui": "^5.0.0",
|
"videojs-contextmenu-ui": "^5.0.0",
|
||||||
"videojs-contrib-quality-levels": "^2.0.9",
|
"videojs-contrib-quality-levels": "^2.0.9",
|
||||||
|
@ -130,6 +130,6 @@
|
||||||
"webpack-cli": "^3.0.8",
|
"webpack-cli": "^3.0.8",
|
||||||
"webtorrent": "^0.105.1",
|
"webtorrent": "^0.105.1",
|
||||||
"whatwg-fetch": "^3.0.0",
|
"whatwg-fetch": "^3.0.0",
|
||||||
"zone.js": "~0.9.1"
|
"zone.js": "~0.10.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Observable } from 'rxjs'
|
||||||
import { ComponentPagination } from '@app/shared/rest/component-pagination.model'
|
import { ComponentPagination } from '@app/shared/rest/component-pagination.model'
|
||||||
import { VideoService } from '@app/shared/video/video.service'
|
import { VideoService } from '@app/shared/video/video.service'
|
||||||
import { RestExtractor, RestService } from '@app/shared'
|
import { RestExtractor, RestService } from '@app/shared'
|
||||||
import { environment } from 'environments/environment'
|
import { environment } from '../../environments/environment'
|
||||||
import { ResultList, Video as VideoServerModel, VideoChannel as VideoChannelServerModel } from '../../../../shared'
|
import { ResultList, Video as VideoServerModel, VideoChannel as VideoChannelServerModel } from '../../../../shared'
|
||||||
import { Video } from '@app/shared/video/video.model'
|
import { Video } from '@app/shared/video/video.model'
|
||||||
import { AdvancedSearch } from '@app/search/advanced-search.model'
|
import { AdvancedSearch } from '@app/search/advanced-search.model'
|
||||||
|
|
|
@ -77,7 +77,7 @@ const videosRoutes: Routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'upload',
|
path: 'upload',
|
||||||
loadChildren: () => import('app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule),
|
loadChildren: () => import('@app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule),
|
||||||
data: {
|
data: {
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Upload a video'
|
title: 'Upload a video'
|
||||||
|
@ -86,7 +86,7 @@ const videosRoutes: Routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'update/:uuid',
|
path: 'update/:uuid',
|
||||||
loadChildren: () => import('app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),
|
loadChildren: () => import('@app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),
|
||||||
data: {
|
data: {
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Edit a video'
|
title: 'Edit a video'
|
||||||
|
@ -95,7 +95,7 @@ const videosRoutes: Routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'watch',
|
path: 'watch',
|
||||||
loadChildren: () => import('app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule),
|
loadChildren: () => import('@app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule),
|
||||||
data: {
|
data: {
|
||||||
preload: 3000
|
preload: 3000
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { Player } from 'video.js'
|
||||||
const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
||||||
|
|
||||||
class PeerTubeLoadProgressBar extends Component {
|
class PeerTubeLoadProgressBar extends Component {
|
||||||
|
partEls_: any[]
|
||||||
|
|
||||||
constructor (player: Player, options: any) {
|
constructor (player: Player, options: any) {
|
||||||
super(player, options)
|
super(player, options)
|
||||||
|
|
|
@ -9,6 +9,8 @@ const Menu: VideoJSComponentInterface = videojsUntyped.getComponent('Menu')
|
||||||
const MenuButton: VideoJSComponentInterface = videojsUntyped.getComponent('MenuButton')
|
const MenuButton: VideoJSComponentInterface = videojsUntyped.getComponent('MenuButton')
|
||||||
class ResolutionMenuButton extends MenuButton {
|
class ResolutionMenuButton extends MenuButton {
|
||||||
label: HTMLElement
|
label: HTMLElement
|
||||||
|
labelEl_: any
|
||||||
|
player: Player
|
||||||
|
|
||||||
constructor (player: Player, options: any) {
|
constructor (player: Player, options: any) {
|
||||||
super(player, options)
|
super(player, options)
|
||||||
|
|
|
@ -14,6 +14,18 @@ const Menu: VideoJSComponentInterface = videojsUntyped.getComponent('Menu')
|
||||||
const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
||||||
|
|
||||||
class SettingsButton extends Button {
|
class SettingsButton extends Button {
|
||||||
|
playerComponent = videojs.Player
|
||||||
|
dialog: any
|
||||||
|
dialogEl: any
|
||||||
|
menu: any
|
||||||
|
panel: any
|
||||||
|
panelChild: any
|
||||||
|
|
||||||
|
addSettingsItemHandler: Function
|
||||||
|
disposeSettingsItemHandler: Function
|
||||||
|
playerClickHandler: Function
|
||||||
|
userInactiveHandler: Function
|
||||||
|
|
||||||
constructor (player: videojs.Player, options: any) {
|
constructor (player: videojs.Player, options: any) {
|
||||||
super(player, options)
|
super(player, options)
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,22 @@ const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuIte
|
||||||
const component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
const component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
|
||||||
|
|
||||||
class SettingsMenuItem extends MenuItem {
|
class SettingsMenuItem extends MenuItem {
|
||||||
|
settingsButton: any
|
||||||
|
dialog: any
|
||||||
|
mainMenu: any
|
||||||
|
panel: any
|
||||||
|
panelChild: any
|
||||||
|
panelChildEl: any
|
||||||
|
size: any
|
||||||
|
menuToLoad: string
|
||||||
|
subMenu: any
|
||||||
|
|
||||||
|
submenuClickHandler: Function
|
||||||
|
transitionEndHandler: Function
|
||||||
|
|
||||||
|
settingsSubMenuTitleEl_: any
|
||||||
|
settingsSubMenuValueEl_: any
|
||||||
|
settingsSubMenuEl_: any
|
||||||
|
|
||||||
constructor (player: videojs.Player, options: any, entry: string, menuButton: VideoJSComponentInterface) {
|
constructor (player: videojs.Player, options: any, entry: string, menuButton: VideoJSComponentInterface) {
|
||||||
super(player, options)
|
super(player, options)
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "../tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "../out-tsc/app",
|
|
||||||
"baseUrl": "./",
|
|
||||||
"types": [],
|
|
||||||
"lib": [
|
|
||||||
"es2017",
|
|
||||||
"es2016",
|
|
||||||
"es2015",
|
|
||||||
"dom"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"test.ts",
|
|
||||||
"**/*.spec.ts",
|
|
||||||
"../node_modules/ngx-clipboard/**/*.spec.ts"
|
|
||||||
],
|
|
||||||
"include": [
|
|
||||||
"**/*.ts",
|
|
||||||
"../node_modules/ngx-clipboard/*/**.ts"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "./out-tsc/app",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"types": [],
|
||||||
|
"lib": [
|
||||||
|
"es2017",
|
||||||
|
"es2016",
|
||||||
|
"es2015",
|
||||||
|
"dom"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"src/main.ts",
|
||||||
|
"src/polyfills.ts"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"src/**/*.d.ts",
|
||||||
|
"src/shims/*.ts",
|
||||||
|
"../shared/models"
|
||||||
|
]
|
||||||
|
}
|
|
@ -19,40 +19,24 @@
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
],
|
],
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2017",
|
"es2018",
|
||||||
"es2016",
|
|
||||||
"es2015",
|
|
||||||
"dom"
|
"dom"
|
||||||
],
|
],
|
||||||
"types": [
|
"baseUrl": "./",
|
||||||
"jasmine"
|
|
||||||
],
|
|
||||||
"baseUrl": "src",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@app/*": [ "app/*" ],
|
"@app/*": [ "src/app/*" ],
|
||||||
"@shared/*": [ "../../shared/*" ],
|
"@shared/*": [ "../shared/*" ],
|
||||||
"video.js": [ "../node_modules/video.js/dist/alt/video.core.js" ],
|
"video.js": [ "node_modules/video.js/dist/alt/video.core.js" ],
|
||||||
"fs": [ "./shims/noop" ],
|
"fs": [ "src/shims/noop" ],
|
||||||
"http": [ "./shims/http" ],
|
"http": [ "src/shims/http" ],
|
||||||
"https": [ "./shims/https" ],
|
"https": [ "src/shims/https" ],
|
||||||
"path": [ "./shims/path" ],
|
"path": [ "src/shims/path" ],
|
||||||
"stream": [ "./shims/noop" ],
|
"stream": [ "src/shims/noop" ],
|
||||||
"crypto": [ "./shims/noop" ]
|
"crypto": [ "src/shims/noop" ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"strictInjectionParameters": true,
|
"strictInjectionParameters": true,
|
||||||
"fullTemplateTypeCheck": true
|
"fullTemplateTypeCheck": true
|
||||||
},
|
}
|
||||||
"include": [
|
|
||||||
"./src",
|
|
||||||
"../../shared"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"../../node_modules",
|
|
||||||
"../node_modules",
|
|
||||||
"../dist",
|
|
||||||
"../../server",
|
|
||||||
"../src/**/*.spec.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,14 @@
|
||||||
"private-instance-method"
|
"private-instance-method"
|
||||||
]}
|
]}
|
||||||
],
|
],
|
||||||
|
"variable-name": [
|
||||||
|
true,
|
||||||
|
"ban-keywords",
|
||||||
|
"check-format",
|
||||||
|
"allow-leading-underscore",
|
||||||
|
"allow-pascal-case",
|
||||||
|
"allow-trailing-underscore"
|
||||||
|
],
|
||||||
|
|
||||||
"no-shadowed-variable": false,
|
"no-shadowed-variable": false,
|
||||||
"no-bitwise": false,
|
"no-bitwise": false,
|
||||||
|
|
629
client/yarn.lock
629
client/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue