Commit Graph

32 Commits (77b70702d2193d78bf6fbd07f0fc7335e34957f8)

Author SHA1 Message Date
Chocobozzz 77b70702d2
Add video chapters support 2023-08-28 16:17:31 +02:00
Chocobozzz 3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Wicklow 73ef4b54aa Don't send replay settings on not replayed lives 2023-04-19 15:59:36 +02:00
Wicklow 05a60d8599
Feature/Add replay privacy (#5692)
* Add replay settings feature

* Fix replay settings behaviour

* Fix tests

* Fix tests

* Fix tests

* Update openapi doc and fix tests

* Add tests and fix code

* Models correction

* Add migration and update controller and middleware

* Add check params tests

* Fix video live middleware

* Updated code based on review comments
2023-03-31 09:12:21 +02:00
Chocobozzz 080f14025e
Hide wait transcoding for lives
Replays are always transcoded
2022-10-11 14:17:27 +02:00
Chocobozzz 5c5bcea2e6
Refactor form reactive 2022-10-07 15:26:53 +02:00
Chocobozzz 2f6e173002
Prevent creating multiple lives 2022-08-12 10:43:50 +02:00
Chocobozzz 42b4063699
Add ability for client to create server logs 2022-07-18 11:37:18 +02:00
Chocobozzz b6898035bf
Fix going live latency mode 2022-06-23 10:52:27 +02:00
Chocobozzz 39e68a3254
Add session informations in live modal 2022-05-03 15:21:42 +02:00
Chocobozzz 86c5229b4d
Save replay of permanent live in client 2022-05-03 08:32:20 +02:00
Chocobozzz cc4bf76c13
Handle async validators 2022-01-03 14:20:52 +01:00
Chocobozzz 3cf68b869d
Ability for admins to set default upload values 2021-12-14 17:17:01 +01:00
Chocobozzz 1e2fe802d1
Force live type specification in first step 2021-10-15 11:45:03 +02:00
Chocobozzz 3eb7ee658d
Try to improve permanent live label 2021-10-15 10:54:12 +02:00
Chocobozzz 2e80d256cc
Fix live/upload redirection 2021-08-18 11:39:45 +02:00
Chocobozzz 9df52d660f
Migrate client to eslint 2021-08-18 08:35:06 +02:00
Chocobozzz 1378c0d343
Fix client lint 2021-08-17 14:01:45 +02:00
Chocobozzz a3f45a2ab3
Fix default privacy when plugins deleted private 2021-07-13 08:46:51 +02:00
Chocobozzz d4a8e7a65f Support short uuid for GET video/playlist 2021-06-29 14:56:35 +02:00
Rigel Kent 2951065162 allow public video privacy to be deleted in the web client 2021-06-08 09:22:06 +02:00
Chocobozzz e030bfb59d
Refactor server errors handler 2021-06-02 18:15:41 +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 2e257e36b7
Add client action hooks for pubish pages 2021-03-24 18:18:41 +01:00
Chocobozzz ddb62a85c5
Fix wait transcoding checkbox display 2021-01-26 10:56:55 +01:00
Chocobozzz d487a997c8
Import in private, and then set the chosen privacy 2021-01-19 16:36:20 +01:00
Chocobozzz bb4ba6d94c
Add permanent live support 2020-12-03 15:21:16 +01:00
Chocobozzz f8c00564e7 Add live info in watch page 2020-11-09 15:33:04 +01:00
Chocobozzz a056ca4813 Add max lives limit 2020-11-09 15:33:04 +01:00
Chocobozzz b5b687550d Add ability to save live replay 2020-11-09 15:33:04 +01:00
Chocobozzz a5cf76afa3 Add watch messages if live has not started 2020-11-09 15:33:04 +01:00
Chocobozzz c6c0fa6cd8 Live streaming implementation first step 2020-11-09 15:33:04 +01:00