Commit Graph

54 Commits

Author SHA1 Message Date
Chocobozzz
2fbe7f1933
Fix new Angular 7 issues 2018-11-15 09:25:32 +01:00
Chocobozzz
c199c427d4
Better typings 2018-10-18 14:35:31 +02:00
Chocobozzz
af5767ffae Add user/instance block by users in the client 2018-10-16 16:41:36 +02:00
Chocobozzz
e724fa93c7
Move user moderation tool in a separate component 2018-10-05 17:02:09 +02:00
Rigel Kent
660d11e91e
refactor subscribe button and comment-add for visitor-interact UX (#1100)
* refactor subscribe button for visitor-subscribe UX
* refactor comment-add for visitor-interact UX
2018-09-25 15:42:58 +02:00
Gaëtan Rizio
74d6346935 Users can change ownership of their video [#510] (#888)
* [#510] Create a new route to get the list of user names

To be able to transfer ownership to a user,
we need to be able to select him from the list of users.

Because the list could be too big, we add a autocomplete feature.

This commit does the following:

* Add a API endpoint to get a list of user names by searching its name

* [#510] The user can choose the next owner of the video

To be able to transfer ownership to a user,
we need the owner to be able to select the user.

The server can autocomplete the name of the user to give the ownership.
We add a dialog for the user to actually select it.

This commit does the following:

* Create a modal for the owner to select the next one
* Opens this modal with a button into the menu *more*
* Make the dependency injection

* [#510] When the user choose the next owner, create a request in database

For the change of ownership to happen, we need to store the temporary requests.
When the user make the request, save it to database.

This commit does the following:

* Create the model to persist change ownership requests
* Add an API to manage ownership operations
* Add a route to persist an ownership request

* [#510] A user can fetch its ownership requests sent to him

To be able to accept or refuse a change of ownership,
the user must be able to fetch them.

This commit does the following:

* Add an API to list ownership for a user
* Add the query to database model

* [#510] A user can validate an ownership requests sent to him - server

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the server part.

This commit does the following:

* Add an API for the user to accept or refuse a video ownership
* Add validators to ensure security access
* Add a query to load a specific video change ownership request

* [#510] A user can validate an ownership requests sent to him - web

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the web part.

This commit does the following:

* Add a page to list user ownership changes
* Add actions to accept or refuse them
* When accepting, show a modal requiring the channel to send the video

* Correct lint - to squash

* [#510] PR reviews - to squash

This commit does the following:

* Search parameter for user autocompletion is required from middleware directly

* [#510] PR reviews - to squash with creation in database commit

This commit does the following:

* Add the status attribute in model
* Set this attribute on instance creation
* Use AccountModel method `loadLocalByName`

* [#510] PR reviews - to squash with fetch ownership

This commit does the following:

* Add the scope `FULL` for database queries with includes
* Add classic pagination middlewares

* [#510] PR reviews - to squash with ownership validation - server

This commit does the following:

* Add a middleware to validate whether a user can validate an ownership
* Change the ownership status instead of deleting the row

* [#510] PR reviews - to squash with ownership validation - client

This commit does the following:

* Correct indentation of html files with two-spaces indentation
* Use event emitter instead of function for accept event
* Update the sort of ownership change table for a decreasing order by creation date
* Add the status in ownership change table
* Use classic method syntax

* code style - to squash

* Add new user right - to squash

* Move the change to my-account instead of video-watch - to squash

As requested in pull-request, move the action to change ownership into my videos page.

The rest of the logic was not really changed.

This commit does the following:

- Move the modal into my video page
- Create the generic component `button` to keep some styles and logic

* [#510] Add tests for the new feature

To avoid regression, we add tests for all api of ownership change.

This commit does the following:

- Create an end-to-end test for ownership change
- Divide it to one test per request

* [#510] Do not send twice the same request to avoid spam

We can send several time the same request to change ownership.
However, it will spam the user.
To avoid this, we do not save a request already existing in database.

This commit does the following:

- Check whether the request exist in database
- Add tests to verify this new condition

* [#510] Change icons

Change icons so they remains logic with the rest of the application.

This commit does the following:

- Add svg for missing icons
- Add icons in `my-button` component
- Use these new icons

* [#510] Add control about the user quota

The user should be able to accept a new video only if his quota allows it.

This commit does the following:

- Update the middleware to control the quota
- Add tests verifying the control

* Correct merge

- Use new modal system
- Move button to new directory `buttons`

* PR reviews - to squash
2018-09-04 08:57:13 +02:00
Chocobozzz
2d3741d6d9 Videos overview page: first version 2018-08-31 09:19:58 +02:00
Chocobozzz
41a676db39
Add features table on signup 2018-08-28 17:39:29 +02:00
Chocobozzz
d77ad72663
Fix deprecated ng-bootstrap methods 2018-08-27 15:09:04 +02:00
Chocobozzz
22a16e36f6 Add local user subscriptions 2018-08-27 09:41:54 +02:00
Chocobozzz
26b7305a23
Add blacklist reason field 2018-08-14 09:27:18 +02:00
Chocobozzz
63347a0ff9
Migrate to bootstrap 4 and ng-bootstrap 2018-08-09 14:55:06 +02:00
Chocobozzz
eacb25c436
Add reason when banning a user 2018-08-08 17:44:22 +02:00
Chocobozzz
fbad87b047 Add ability to import video with youtube-dl 2018-08-06 11:19:16 +02:00
Chocobozzz
57c36b277e Begin advanced search 2018-07-24 14:04:05 +02:00
Chocobozzz
0f7fedc398
Improve frontend accessibility
In particular checkboxes, likes/dislikes, share button, video thumbnails
and help buttons
2018-07-17 14:56:15 +02:00
Chocobozzz
40e87e9ecc Implement captions/subtitles 2018-07-16 11:50:08 +02:00
Chocobozzz
bbe0f0645c
Add ability to schedule video publication 2018-06-15 18:20:56 +02:00
Chocobozzz
e309822b93
Add form validator translations 2018-06-05 15:02:27 +02:00
Chocobozzz
d18d64787b
Form validators refractoring 2018-06-05 10:58:45 +02:00
Chocobozzz
989e526abf
Prepare i18n files 2018-06-05 08:43:01 +02:00
Chocobozzz
d3e91a5f72
Add video channel account list 2018-04-25 15:43:19 +02:00
Chocobozzz
0626e7af82
Add account view 2018-04-24 15:13:19 +02:00
Rigel Kent
244e76a552
feature: initial syndication feeds support
Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views.

* still lacks redis caching
* still lacks lastBuildDate support
* still lacks channel-wide support
* still lacks semantic annotation (for licenses, NSFW warnings, etc.)
* still lacks love ( ˘ ³˘)

* RSS: has MRSS support for torrent lists!
* RSS: includes the first torrent in an enclosure
* JSON: lists all torrents in the 'attachments' object
* ATOM: lacking torrent listing support

Advances #23
Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id.
2018-04-17 01:09:06 +02:00
Chocobozzz
8a8e02a43e
Add help tooltip 2018-02-22 18:32:31 +01:00
Chocobozzz
68e24d7279
Add loading bar when updating a video 2018-02-16 17:24:47 +01:00
Chocobozzz
6de3676898
Add ability to update thumbnail and preview on client 2018-02-16 16:35:32 +01:00
Chocobozzz
0cd4344f3c
Rewrite infinite scroll 2018-02-13 14:20:46 +01:00
Chocobozzz
66b16cafb3
Add new name/terms/description config options 2018-01-31 16:42:40 +01:00
Chocobozzz
24a8e782d8
Add bootstrap analyzer and optimize build 2017-12-20 09:05:16 +01:00
Chocobozzz
c893d4514e
Add beautiful loading bar 2017-12-12 14:57:46 +01:00
Chocobozzz
cd83ea1b90
Design admin data tables 2017-12-08 14:34:17 +01:00
Chocobozzz
c182778e26
Add progress bar for video upload 2017-12-07 17:56:59 +01:00
Chocobozzz
b1fa3eba70
Begin video watch design 2017-12-06 17:15:59 +01:00
Chocobozzz
f3aaa9a95c
Fix client search 2017-12-05 18:25:29 +01:00
Chocobozzz
62e23e40da
Fix client build 2017-12-04 11:40:45 +01:00
Chocobozzz
202f6b6c9d
Begin videos of an account 2017-12-01 18:56:26 +01:00
Chocobozzz
2bbb34127f
Add auto scroll to videos list 2017-12-01 16:17:32 +01:00
Chocobozzz
9bf9d2a5c2
Begin videos list new design 2017-12-01 14:46:22 +01:00
Chocobozzz
80958c78fd
Add loader when expanding long video description 2017-11-28 17:13:51 +01:00
Chocobozzz
35bf0c83c8
Video blacklist refractoring 2017-10-10 10:18:16 +02:00
Chocobozzz
3523b64a03 Optimize imports 2017-09-14 22:16:39 +02:00
Chocobozzz
bfb3a98fac Remove ng2 file upload module
Unmaintained and we don't need it anymore with httpclient
2017-09-14 17:25:36 +02:00
Chocobozzz
d592e0a9b2 Move to HttpClient and PrimeNG data table 2017-09-14 11:57:49 +02:00
Chocobozzz
e7dbeae8d9 Fix client admin 2017-08-28 20:28:12 +02:00
Chocobozzz
d15ab38a90 Update client dependencies 2017-08-25 12:11:42 +02:00
Chocobozzz
df98563e21 Use typescript standard and lint all files 2017-06-16 14:32:15 +02:00
Chocobozzz
ad42bea3a5 Client: update to angular 4 2017-04-12 22:00:17 +02:00
Chocobozzz
e2a2d6c86c Client: check token valitidy at startup 2017-03-04 11:45:47 +01:00
Chocobozzz
99fdec4648 Fix request schedulers stats 2017-02-27 21:56:55 +01:00