Commit Graph

1125 Commits (20c3a59e2c81bb00be943ccc51efe175c08eaa4e)

Author SHA1 Message Date
Rigel Kent 20c3a59e2c
add input color to cope with browser themes 2018-09-09 14:43:30 +02:00
Rigel Kent ed19bb9a32
use css class for loading bar color 2018-09-07 22:46:11 +02:00
Chocobozzz d972dc7f66
Update translations 2018-09-07 17:40:45 +02:00
Rigel Kent 4e554c4a2d
move .sass-lint.yml to client/ 2018-09-07 10:51:42 +02:00
Rigel Kent 35c2930776
move theme toggle icon to the right 2018-09-06 13:47:48 +02:00
Chocobozzz 21131ac172
Fix video channel url in watch page 2018-09-06 13:42:00 +02:00
Rigel Kent 1a00c5619f
refactor theme toggle into a service 2018-09-06 12:00:53 +02:00
Chocobozzz 1c66c35c55
Align other videos block on small screens 2018-09-06 09:00:59 +02:00
Chocobozzz d7639f66af
Unsubscribe from the router 2018-09-06 09:00:58 +02:00
Chocobozzz 432e7ddcc8
Fix video player theatre mode 2018-09-06 09:00:58 +02:00
Rigel Kent 66467298e6
fix comment and top-menu placement regressions 2018-09-05 20:00:47 +02:00
Chocobozzz db6d617dd2
Fix occitan label 2018-09-05 15:59:43 +02:00
Chocobozzz 1d6587aa42
Dislike bar in the same color as the button 2018-09-05 15:40:45 +02:00
Chocobozzz dcbc29d5c8
Put "start at" at the top of the modal 2018-09-05 15:32:15 +02:00
Chocobozzz b0ee41df7d
Clean up change password validation 2018-09-05 15:00:25 +02:00
Chocobozzz 4c8e4e04d1
Use dropdown in my account -> "my library" 2018-09-05 14:42:59 +02:00
Chocobozzz c182527a6c
Fix channels search on mobile 2018-09-05 11:42:13 +02:00
Chocobozzz d77433a8a6
Fix video add background color 2018-09-05 11:24:43 +02:00
Chocobozzz 8ff3f88347
Fix watch page responsive 2018-09-05 11:20:44 +02:00
Chocobozzz 46ae6f6724
Fix menu on mobile 2018-09-05 10:19:45 +02:00
Rigel Kent 8c985ef5ce hotkey to toggle dark theme 2018-09-04 23:24:34 +02:00
Rigel Kent 9a0fc8409c add theming via css custom properties
and a bonus dark color theme toggle
2018-09-04 23:24:34 +02:00
Rigel Kent 3b766e181c
fixing grid readjustment with expand and screens < 1150px 2018-09-04 18:35:39 +02:00
Chocobozzz 6aff854c0e
Fix overview page on mobile 2018-09-04 17:31:30 +02:00
Chocobozzz b1ee8526d3
Fix search results on mobile 2018-09-04 17:31:28 +02:00
Chocobozzz 8cd7faaa33
Better label for video privacies 2018-09-04 17:31:28 +02:00
Jorropo a94419a604 Making password change erroring more friendly
If you leave the form but the 2 password is different a big red
boxappears to warn you (no need to click on the button).The submit
buttonis desactivated if the 2 password isn't the same.
2018-09-04 17:11:48 +02:00
Chocobozzz f19982a9e4
Add overview videos to homepage options 2018-09-04 15:28:50 +02:00
Jorropo b0c36821d1 Add video recomandation by tags (#1001)
* Recommendation by tags (thx bradsk88)

Thx bradsk88 for the help.

* Prefer jest-preset-angular to skip need for babel config

* Fix jest
2018-09-04 11:01:54 +02:00
Chocobozzz 5cf84858d4
Add federation to ownership change 2018-09-04 10:49:53 +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
Rigel Kent 2303a803aa
fix likes bar, grid adjustment and menu width 2018-09-03 15:10:55 +02:00
Chocobozzz f2e05ffea7
Try to fix embed webpack build 2018-09-03 11:26:19 +02:00
Chocobozzz 348106f20c
Don't get quota twice 2018-09-03 09:30:13 +02:00
Rigel Kent 769ac6c11f add title ellipsis over two lines to miniatures 2018-09-03 08:49:29 +02:00
Rigel Kent 8542dc33e3 add a hotkey for menu toggling and a secondary hotkey to search 2018-09-03 08:49:29 +02:00
Rigel Kent 61318dd63f add daily quota to the features table information 2018-09-03 08:49:29 +02:00
Rigel Kent 20d2119904 add like, dislike and subscribe button hotkeys 2018-09-03 08:49:29 +02:00
Rigel Kent 9a2f7ea799 fix other video margin-top 2018-09-03 08:49:29 +02:00
Rigel Kent a54991da42 make left menu show the scrollbar on hover/focus
add hotkey to the overview page
2018-09-03 08:49:29 +02:00
Rigel Kent c28beaea83 restore video-bottom margins 2018-09-03 08:49:29 +02:00
Chocobozzz 4b54f1360e
Fix videos overview tags section 2018-08-31 17:43:39 +02:00
Chocobozzz 9a629c6efb
Trending by interval 2018-08-31 17:22:01 +02:00
Glandos 4ccb6c0830 Add more playback speed (0.75 and 1.25)
Those speeds are much more closer to the normal speed. They are useful for listening to human speeches.
2018-08-31 17:19:38 +02:00
Brad Johnson 7f5f4152a4 Refactor: Separated "Other Videos" section into a dedicated component/service (#969)
* Separated "Other Videos" section into a dedicated component/service

I'm currently working on some proof-of-concepts for recommendation
providers that could work with PeerTube to provide useful video
suggestions to the user.

As a first step, I want to have great clarity about how PeerTube,
itself, will surface these videos to the user.

With this branch, I'm refactoring the "recommendations" to make it
easier to swap out different recommender implementations quickly.

Stop recommender from including the video that's being watched.

Ensure always 5 recommendations

* Treat recommendations as a stream of values, rather than a single async value.

* Prioritize readability over HTTP response size early-optimization.

* Simplify pipe
2018-08-31 17:19:21 +02:00
Chocobozzz 1a47109144
Add channel avatar to overviews 2018-08-31 14:32:37 +02:00
Chocobozzz 73dc4da09e
Delete highlighted comment too if needed 2018-08-31 13:46:56 +02:00
Chocobozzz d6ca951b3c
Fix user create daily quota component 2018-08-31 10:05:54 +02:00
Chocobozzz 2d3741d6d9 Videos overview page: first version 2018-08-31 09:19:58 +02:00
Josh Morel d9eaee3939 add user account email verificiation (#977)
* add user account email verificiation

includes server and client code to:

* enable verificationRequired via custom config
* send verification email with registration
* ask for verification email
* verify via email
* prevent login if not verified and required
* conditional client links to ask for new verification email

* allow login for verified=null

these are users created when verification not required
should still be able to login when verification is enabled

* refactor email verifcation pr

* change naming from verified to emailVerified
* change naming from askVerifyEmail to askSendVerifyEmail
* undo unrelated automatic prettier formatting on api/config
* use redirectService for home
* remove redundant success notification on email verified

* revert test.yaml smpt host
2018-08-31 09:18:19 +02:00