Commit Graph

2215 Commits (1f256e7d3cf056c2d999260155cdba58ae1b878b)

Author SHA1 Message Date
Poslovitch 1f256e7d3c
Implemented configurable minimum signup age
Implements https://github.com/Chocobozzz/PeerTube/issues/3612

Fixed lint and removed debug

Fixed another lint error

Apply suggestions from code review

Co-authored-by: Chocobozzz <chocobozzz@cpy.re>

Add tests for min signup age config
2021-05-28 13:56:05 +02:00
Chocobozzz a1eda903a4
Support '/w/' and '/w/p/' for watch page
And use them as default in client
2021-05-28 11:38:08 +02:00
Chocobozzz 012580d98f
Cleanup
We must not expose private actor objects to clients
Just make 2 GET requests on channel/accounts instead
2021-05-28 10:22:50 +02:00
Chocobozzz d6d96bed80
Merge branch 'develop' into shorter-URLs-channels-accounts 2021-05-28 09:10:57 +02:00
Chocobozzz 94fbe5c49c
Use separate file for plugin placeholder component 2021-05-27 16:32:06 +02:00
Chocobozzz 8e5c2fdc33
Fix home routing 2021-05-27 16:31:54 +02:00
Chocobozzz 8f608a4cb2
Merge branch 'develop' into shorter-URLs-channels-accounts 2021-05-27 16:12:41 +02:00
Chocobozzz 0f01a8bacd Remove ngx-meta
Unmaintained
2021-05-27 16:00:13 +02:00
Frank Sträter 7e6bdb5ae5 change license to licence
Change "license" to "licence" for consistency in the user interface in English. 

License is both a noun and a verb in the United States.
If you live in any other English-speaking country, you will spell it "licence" when you use it as a noun and "license" when you use it as a verb.
2021-05-27 16:00:04 +02:00
Chocobozzz 2539932e16
Instance homepage support (#4007)
* Prepare homepage parsers

* Add ability to update instance hompage

* Add ability to set homepage as landing page

* Add homepage preview in admin

* Dynamically update left menu for homepage

* Inject home content in homepage

* Add videos list and channel miniature custom markup

* Remove unused elements in markup service
2021-05-27 15:59:55 +02:00
Chocobozzz 74654b2ee2
Fix from now pipe 2021-05-27 13:34:19 +02:00
Chocobozzz 35f676e5d3
Merge branch 'release/3.2.0' into develop 2021-05-26 16:00:21 +02:00
Chocobozzz b45afe12f9
Fix UI overflows 2021-05-26 16:00:09 +02:00
Chocobozzz 20213fbd2a
Merge branch 'release/3.2.0' into develop 2021-05-25 15:28:01 +02:00
Chocobozzz ceb8f32211
Fix live ending banner 2021-05-25 15:27:43 +02:00
Chocobozzz 1e4d2cb5ae
Merge branch 'release/3.2.0' into develop 2021-05-25 13:50:11 +02:00
Chocobozzz d11eae7edc
Fix local plugin auth select 2021-05-25 13:49:52 +02:00
Chocobozzz 2c2631e42a
Fix broadcast message level 2021-05-25 11:35:29 +02:00
Chocobozzz 7e47e2aa5e
Fix broadcast message level 2021-05-14 14:25:30 +02:00
Chocobozzz 5b1a6d45b5
Merge branch 'release/3.2.0' into develop 2021-05-14 14:18:13 +02:00
Chocobozzz cb4bab61c1
Fix logger warning level 2021-05-14 14:17:53 +02:00
Chocobozzz bc529ef7f0
Fix recommended banner size 2021-05-14 14:00:00 +02:00
Chocobozzz aea0b0e7cd
Inject server config in HTML 2021-05-14 13:37:23 +02:00
Chocobozzz 5c48aa8c3e
Default to dark theme if requested by user 2021-05-11 15:41:13 +02:00
Chocobozzz 3914a50b07
Remember tab in upload page 2021-05-11 15:03:39 +02:00
Chocobozzz 32985a0a77
Error if importing a torrent with multiple files 2021-05-11 14:56:30 +02:00
Chocobozzz 428ccb8b7a
Reorganize plugin models 2021-05-11 13:33:11 +02:00
Chocobozzz 71fb8b5a34
Fix paused upload message 2021-05-11 08:42:13 +02:00
Chocobozzz 1fa23d6f5e
Fix video update 2021-05-10 15:48:10 +02:00
Chocobozzz ff0497fee8
Fix button icon in admin plugins 2021-05-10 15:31:18 +02:00
Chocobozzz 6661537764
Fix miniature overflow 2021-05-10 15:17:06 +02:00
kontrollanten f6d6e7f861
Resumable video uploads (#3933)
* WIP: resumable video uploads

relates to #324

* fix review comments

* video upload: error handling

* fix audio upload

* fixes after self review

* Update server/controllers/api/videos/index.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* Update server/middlewares/validators/videos/videos.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* Update server/controllers/api/videos/index.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* update after code review

* refactor upload route

- restore multipart upload route
- move resumable to dedicated upload-resumable route
- move checks to middleware
- do not leak internal fs structure in response

* fix yarn.lock upon rebase

* factorize addVideo for reuse in both endpoints

* add resumable upload API to openapi spec

* add initial test and test helper for resumable upload

* typings for videoAddResumable middleware

* avoid including aws and google packages via node-uploadx, by only including uploadx/core

* rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio

* add video-upload-tmp-folder-cleaner job

* stronger typing of video upload middleware

* reduce dependency to @uploadx/core

* add audio upload test

* refactor resumable uploads cleanup from job to scheduler

* refactor resumable uploads scheduler to compare to last execution time

* make resumable upload validator to always cleanup on failure

* move legacy upload request building outside of uploadVideo test helper

* filter upload-resumable middlewares down to POST, PUT, DELETE

also begin to type metadata

* merge add duration functions

* stronger typings and documentation for uploadx behaviour, move init validator up

* refactor(client/video-edit): options > uploadxOptions

* refactor(client/video-edit): remove obsolete else

* scheduler/remove-dangling-resum: rename tag

* refactor(server/video): add UploadVideoFiles type

* refactor(mw/validators): restructure eslint disable

* refactor(mw/validators/videos): rename import

* refactor(client/vid-upload): rename html elem id

* refactor(sched/remove-dangl): move fn to method

* refactor(mw/async): add method typing

* refactor(mw/vali/video): double quote > single

* refactor(server/upload-resum): express use > all

* proper http methud enum server/middlewares/async.ts

* properly type http methods

* factorize common video upload validation steps

* add check for maximum partially uploaded file size

* fix audioBg use

* fix extname(filename) in addVideo

* document parameters for uploadx's resumable protocol

* clear META files in scheduler

* last audio refactor before cramming preview in the initial POST form data

* refactor as mulitpart/form-data initial post request

this allows preview/thumbnail uploads alongside the initial request,
and cleans up the upload form

* Add more tests for resumable uploads

* Refactor remove dangling resumable uploads

* Prepare changelog

* Add more resumable upload tests

* Remove user quota check for resumable uploads

* Fix upload error handler

* Update nginx template for upload-resumable

* Cleanup comment

* Remove unused express methods

* Prefer to use got instead of raw http

* Don't retry on error 500

Co-authored-by: Rigel Kent <par@rigelk.eu>
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-05-10 11:13:41 +02:00
Chocobozzz dc2b2938c2
Sort channels by -updatedAt 2021-05-10 09:38:11 +02:00
Chocobozzz 4076e2ef6b Increase test timeout 2021-05-07 15:42:23 +02:00
Chocobozzz ce4b4495ff
Refactor video edit css 2021-05-07 14:08:35 +02:00
Chocobozzz bc4c9cc1d7
Fix mask-image property
Needed by chrome
2021-05-07 11:26:09 +02:00
Chocobozzz 7a22a0a56a
Add ability to search live videos 2021-05-05 12:10:00 +02:00
Kimsible 030ccfce59 Use userId key to distinct Account or VideoChannel actor 2021-05-05 11:48:25 +02:00
Kimsible 7188739644 Make /a and /c default URLs for accounts and channels 2021-05-05 11:48:25 +02:00
Kimsible 69e076ddb0 Refactor client @actorName matcher with new API route 2021-05-05 11:47:03 +02:00
Kimsible ff8c5ccf09 Add shorter URLs for accounts and channels client-side 2021-05-05 11:47:03 +02:00
Chocobozzz 936441b9ed
Fix non logged add comment avatar 2021-05-05 09:52:33 +02:00
Chocobozzz 06ec4bdd15
Fix miniature avatar size 2021-05-05 09:44:24 +02:00
Chocobozzz f676e0e321
More efficient advanced input filter 2021-05-03 16:42:15 +02:00
Chocobozzz 1a7d0887b6
Refactor parseQueryStringFilter boolean handler 2021-05-03 16:42:15 +02:00
Chocobozzz 1de8740195
Display a message on no channel 2021-05-03 16:42:15 +02:00
Chocobozzz 2e46eb9715
Refactor search filters 2021-05-03 16:42:15 +02:00
Chocobozzz 514e8168fb
Reduce advanced search input debounce time 2021-05-03 16:42:15 +02:00
Chocobozzz 12e4154917
Fix avatar in report page 2021-05-03 16:42:15 +02:00
Chocobozzz 1fd61899ea
Add ability to filter my videos by live 2021-05-03 16:42:15 +02:00