Commit Graph

18 Commits

Author SHA1 Message Date
Chocobozzz
9772280e99 Upgrade to angular 18 & vite 2024-06-26 08:33:54 +02:00
Chocobozzz
338633ce72 Remove barrels
They can prevent tree shaking
2024-03-05 10:52:32 +01:00
Chocobozzz
5e041ff7c2 Migrate to standalone components 2024-03-04 16:35:23 +01: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
Chocobozzz
15beb86660 Reorder playlists when adding an element 2022-12-29 10:38:53 +01:00
kontrollanten
38a3ccc7f8 feat: show contained playlists under My videos (#5125)
* feat: show contained playlists under My videos

closes #4769

* refactor(server): remove unused types

* fixes after code review

* fix(client/video-miniature): add to playlist

* fix(server/user/me): shortUUID response

* Revert "fix(client/video-miniature): add to playlist"

This reverts commit f1a0412391.

* fix(client/PlaylistService): caching

* Revert "fix(server/user/me): shortUUID response"

This reverts commit e3f1ee4e33.

* Fix fetching playlists

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-10-24 14:48:03 +02:00
Chocobozzz
5c5bcea2e6 Refactor form reactive 2022-10-07 15:26:53 +02:00
Chocobozzz
42b4063699 Add ability for client to create server logs 2022-07-18 11:37:18 +02:00
Chocobozzz
89e3de8dc6 Reduce latency when adding a video to playlist 2022-02-22 11:41:44 +01: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
134006b0d4 Update client dependencies 2021-08-11 11:49:01 +02:00
Chocobozzz
15a7eafb89 Refactor video links builders 2021-07-26 15:04:37 +02:00
Chocobozzz
3c6a44a181 Fix video playlist resuming 2020-08-19 11:30:21 +02:00
Chocobozzz
e79df4eefb Update playlist add component to accept multiple times the same video 2020-08-19 11:30:21 +02:00
Chocobozzz
7ed1edbbe4 We don't need services anymore for validators 2020-08-17 15:12:55 +02:00
Chocobozzz
66357162f8 Migrate to $localize
* Remove i18n polyfill to translate things in components
 * Reduce bundle sizes
 * Improve runtime perf
 * Reduce a lot the time to make a full client build
 * Reduce client build complexity
 * We don't need a service to translate things anymore (so we will be able to translate title pages etc)

Unfortunately we may loose some translations in the migration process.
I'll put a message on weblate to notify translators
2020-08-14 10:28:30 +02:00
Chocobozzz
67ed6552b8 Reorganize client shared modules 2020-06-23 16:00:49 +02:00