mirror of https://github.com/Chocobozzz/PeerTube
Handle user rates in real time
parent
acbffe9c0f
commit
20b40b195a
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -1,5 +1,23 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.0.29-alpha
|
||||||
|
|
||||||
|
### BREAKING CHANGES
|
||||||
|
|
||||||
|
* Use only 1 thread for transcoding by default
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add help to JS/CSS custom configuration inputs
|
||||||
|
* Keep ratio in video thumbnail generation
|
||||||
|
* Handle video in portrait mode
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
* Fix complete description on some videos
|
||||||
|
* Fix job sorting in administration
|
||||||
|
|
||||||
|
|
||||||
## v0.0.28-alpha
|
## v0.0.28-alpha
|
||||||
|
|
||||||
### BREAKING CHANGES
|
### BREAKING CHANGES
|
||||||
|
|
|
@ -116,6 +116,8 @@ BitTorrent) inside the web browser, as of today.
|
||||||
- [X] Video privacy settings (public, unlisted or private)
|
- [X] Video privacy settings (public, unlisted or private)
|
||||||
- [X] Signaling a video to the admin origin PeerTube instance
|
- [X] Signaling a video to the admin origin PeerTube instance
|
||||||
- [X] Federated videos comments
|
- [X] Federated videos comments
|
||||||
|
- [X] Update video thumbnails
|
||||||
|
- [X] Support video uploader button
|
||||||
- [ ] Video imports (URL, Torrent, YouTube...)
|
- [ ] Video imports (URL, Torrent, YouTube...)
|
||||||
- [ ] Advanced search
|
- [ ] Advanced search
|
||||||
- [ ] Subtitles
|
- [ ] Subtitles
|
||||||
|
|
|
@ -60,8 +60,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
|
||||||
this.support = hash.support
|
this.support = hash.support
|
||||||
this.commentsEnabled = hash.commentsEnabled
|
this.commentsEnabled = hash.commentsEnabled
|
||||||
|
|
||||||
this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
|
this.buildLikeAndDislikePercents()
|
||||||
this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getAppropriateMagnetUri (actualDownloadSpeed = 0) {
|
getAppropriateMagnetUri (actualDownloadSpeed = 0) {
|
||||||
|
@ -90,4 +89,9 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
|
||||||
isUpdatableBy (user: AuthUser) {
|
isUpdatableBy (user: AuthUser) {
|
||||||
return user && this.isLocal === true && (this.accountName === user.username || user.hasRight(UserRight.UPDATE_ANY_VIDEO))
|
return user && this.isLocal === true && (this.accountName === user.username || user.hasRight(UserRight.UPDATE_ANY_VIDEO))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildLikeAndDislikePercents () {
|
||||||
|
this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
|
||||||
|
this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -411,6 +411,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
this.video.likes += likesToIncrement
|
this.video.likes += likesToIncrement
|
||||||
this.video.dislikes += dislikesToIncrement
|
this.video.dislikes += dislikesToIncrement
|
||||||
|
this.video.buildLikeAndDislikePercents()
|
||||||
|
|
||||||
|
this.setVideoLikesBarTooltipText()
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateOtherVideosDisplayed () {
|
private updateOtherVideosDisplayed () {
|
||||||
|
|
Loading…
Reference in New Issue