1
0
Fork 0

Update dependencies

This commit is contained in:
Chocobozzz 2018-01-09 16:30:39 +01:00
parent d77014491b
commit 234b535dac
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
7 changed files with 355 additions and 264 deletions

View File

@ -36,16 +36,16 @@
"@angular/router": "~5.1.0",
"@angularclass/hmr": "^2.1.3",
"@ngx-loading-bar/http-client": "^1.0.0-rc.1",
"@ngx-meta/core": "^4.0.1",
"@ngx-meta/core": "^5.0.0",
"@types/core-js": "^0.9.28",
"@types/lodash-es": "^4.17.0",
"@types/markdown-it": "^0.0.4",
"@types/node": "^8.0.33",
"@types/node": "^9.3.0",
"@types/sanitize-html": "^1.14.0",
"@types/video.js": "6.2.0",
"@types/video.js": "6.2.3",
"@types/webtorrent": "^0.98.4",
"angular2-notifications": "^0.9.6",
"awesome-typescript-loader": "3.2.3",
"awesome-typescript-loader": "3.4.1",
"bootstrap-sass": "^3.3.7",
"codelyzer": "^4.0.2",
"core-js": "^2.4.1",
@ -55,10 +55,10 @@
"html-webpack-plugin": "^2.19.0",
"lodash-es": "^4.17.4",
"markdown-it": "^8.4.0",
"ngx-bootstrap": "2.0.0-beta.9",
"ngx-chips": "1.6.1",
"ngx-bootstrap": "2.0.0-rc.0",
"ngx-chips": "1.6.2",
"ngx-clipboard": "^9.0.0",
"ngx-infinite-scroll": "^0.7.0",
"ngx-infinite-scroll": "0.7.2",
"ngx-pipes": "^2.0.5",
"node-sass": "^4.1.1",
"npm-font-source-sans-pro": "^1.0.2",

View File

@ -14,7 +14,7 @@
<div class="file-max-size">(extensions: {{ avatarExtensions }}, max size: {{ maxAvatarSize | bytes }})</div>
<div class="user-quota">
<span class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ user.videoQuota | bytes: 0 }}
<span class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
</div>
<div class="account-title">Account settings</div>

View File

@ -1,5 +1,6 @@
import { Component, OnInit, ViewChild } from '@angular/core'
import { NotificationsService } from 'angular2-notifications'
import { BytesPipe } from 'ngx-pipes'
import { AuthService } from '../../core'
import { ServerService } from '../../core/server'
import { User } from '../../shared'
@ -14,6 +15,7 @@ export class AccountSettingsComponent implements OnInit {
@ViewChild('avatarfileInput') avatarfileInput
user: User = null
userVideoQuota = '0'
userVideoQuotaUsed = 0
constructor (
@ -26,6 +28,16 @@ export class AccountSettingsComponent implements OnInit {
ngOnInit () {
this.user = this.authService.getUser()
this.authService.userInformationLoaded.subscribe(
() => {
if (this.user.videoQuota !== -1) {
this.userVideoQuota = new BytesPipe().transform(this.user.videoQuota, 0).toString()
} else {
this.userVideoQuota = 'Unlimited'
}
}
)
this.userService.getMyVideoQuotaUsed()
.subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed)
}

View File

@ -19,6 +19,11 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit
titlePage = 'My videos'
currentRoute = '/account/videos'
checkedVideos: { [ id: number ]: boolean } = {}
pagination = {
currentPage: 1,
itemsPerPage: 10,
totalItems: null
}
constructor (protected router: Router,
protected route: ActivatedRoute,

View File

@ -329,7 +329,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
playerElement: this.playerElement,
peerTubeLink: false
},
hotkeys: {}
hotkeys: {
enableVolumeScroll: false
}
}
}

View File

@ -43,7 +43,9 @@ loadVideoInfo(videoId, (err, videoInfo) => {
playerElement: videoElement,
peerTubeLink: true
},
hotkeys: {}
hotkeys: {
enableVolumeScroll: false
}
}
}
videojs('video-container', videojsOptions, function () {

File diff suppressed because it is too large Load Diff