Commit Graph

35 Commits (8635a2c70cc24a4c52558162ac058de95750271f)

Author SHA1 Message Date
Chocobozzz 8635a2c70c Update client modules 2017-06-11 12:28:22 +02:00
Chocobozzz 66dd264f7b Better build/dev scripts 2017-06-11 11:36:05 +02:00
Chocobozzz 9eee32fc34 Client: fix update button displayed on non owned video 2017-05-05 14:11:01 +02:00
Chocobozzz ab683a8e0d Format video blacklist 2017-04-26 21:42:36 +02:00
Green-Star 198b205c10 Add ability for an administrator to remove any video (#61)
* Add ability for an admin to remove every video on the pod.

* Server: add BlacklistedVideos relation.

* Server: Insert in BlacklistedVideos relation upon deletion of a video.

* Server: Modify BlacklistedVideos schema to add Pod id information.

* Server: Moving insertion of a blacklisted video from the `afterDestroy` hook into the process of deletion of a video.

To avoid inserting a video when it is removed on its origin pod.
When a video is removed on its origin pod, the `afterDestroy` hook is fire, but no request is made on the delete('/:videoId') interface.
Hence, we insert into `BlacklistedVideos` only on request on delete('/:videoId') (if requirements for insertion are met).

* Server: Add removeVideoFromBlacklist hook on deletion of a video.

We are going to proceed in another way :).
We will add a new route : /:videoId/blacklist to blacklist a video.
We do not blacklist a video upon its deletion now (to distinguish a video blacklist from a regular video delete)
When we blacklist a video, the video remains in the DB, so we don't have any concern about its update. It just doesn't appear in the video list.
When we remove a video, we then have to remove it from the blacklist too.
We could also remove a video from the blacklist to 'unremove' it and make it appear again in the video list (will be another feature).

* Server: Add handler for new route post(/:videoId/blacklist)

* Client: Add isBlacklistable method

* Client: Update isRemovableBy method.

* Client: Move 'Delete video' feature from the video-list to the video-watch module.

* Server: Exclude blacklisted videos from the video list

* Server: Use findAll() in BlacklistedVideos.list() method

* Server: Fix addVideoToBlacklist function.

* Client: Add blacklist feature.

* Server: Use JavaScript Standard Style.

* Server: In checkUserCanDeleteVideo, move the callback call inside the db callback function

* Server: Modify BlacklistVideo relation

* Server: Modifiy Videos methods.

* Server: Add checkVideoIsBlacklistable method

* Server: Rewrite addVideoToBlacklist method

* Server: Fix checkVideoIsBlacklistable method

* Server: Add return to addVideoToBlacklist method
2017-04-26 21:22:10 +02:00
Chocobozzz d8e689b864 Client: add basic support for updating a video 2017-04-10 21:16:36 +02:00
Chocobozzz 92fb909c9b Client: Handle NSFW video 2017-04-04 21:37:03 +02:00
Chocobozzz 758b996dc6 Client: switch to @nglibs/meta 2017-03-10 10:33:36 +01:00
Chocobozzz d38b828106 Add like/dislike system for videos 2017-03-08 21:35:43 +01:00
Chocobozzz 05a9feaa48 Client: add views information and sort 2017-02-26 20:01:26 +01:00
Chocobozzz 13fc89f4a4 Client: notify client if there are webtorrent errors 2017-01-29 18:35:19 +01:00
Chocobozzz 7ddd02c9b8 Client: better notifications for a beautiful world 2017-01-27 16:14:11 +01:00
Chocobozzz 0d4fb7e6d4 Client: fix video timeout 2017-01-27 11:30:36 +01:00
Chocobozzz 4f8c0eb0e9 Client: add ability to report a video 2017-01-20 19:22:15 +01:00
Chocobozzz cdcbc81077 Client: update ng2-meta 2017-01-13 14:31:33 +01:00
Chocobozzz c16ce1de8e Client: add basic aot support 2017-01-13 12:16:00 +01:00
Chocobozzz cf02fbfb17 Client: move video watch modals in their own component 2016-11-21 22:09:45 +01:00
Chocobozzz 9c89a45cb2 Client: add video not found message if the video... is not found 2016-11-16 20:29:26 +01:00
Chocobozzz 067e3f84ce Client: remove videojs on destroy 2016-11-08 21:17:17 +01:00
Chocobozzz 99cc4f4948 Client: add share button 2016-11-08 21:11:57 +01:00
Chocobozzz e31f6ad637 Client: use videojs as player 2016-11-08 20:49:43 +01:00
Chocobozzz 3bb2c7f99d Prepare embed page 2016-11-07 22:35:37 +01:00
Chocobozzz 3ec343a41d Client: add opengraph tags 2016-11-04 17:37:44 +01:00
Chocobozzz 3154f38219 Client: allow to copy magnet uri 2016-11-04 16:23:18 +01:00
Chocobozzz d1992b93f0 Client: add more informations to watch video view 2016-11-04 16:04:50 +01:00
Chocobozzz a6375e6966 Merge branch 'master' into webseed-merged 2016-10-02 15:39:09 +02:00
Chocobozzz ec8d8440a8 Client: use templateUrl/styleUrls instead of require 2016-09-19 22:49:31 +02:00
Chocobozzz ab32b0fc80 Dirty update to Angular RC6 2016-09-06 22:40:57 +02:00
Chocobozzz bf68dd752d Client: fix error display for component 2016-08-23 17:42:56 +02:00
Chocobozzz c323efb9cd Update webtorrent -> 0.96 2016-08-12 17:35:10 +02:00
Chocobozzz 71d3476b82 Client: clear timeout error timer for video watch 2016-07-27 21:21:57 +02:00
Chocobozzz 0629423ce3 Client: Update to Angular RC4 2016-07-18 14:26:56 +02:00
Chocobozzz 00a446454d Add tags support to the video list 2016-06-10 17:46:29 +02:00
Chocobozzz 3ad109e449 Add an alert if the video load seems to be too long 2016-06-05 12:20:53 +02:00
Chocobozzz 4a6995be18 First draft to use webpack instead of systemjs 2016-06-03 22:08:03 +02:00