Commit Graph

37 Commits

Author SHA1 Message Date
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 c3030e944a
Fix build 2023-07-10 16:41:08 +02:00
Chocobozzz a1bd2b77d9
Remove webtorrent support from client 2023-07-10 16:08:28 +02:00
Chocobozzz 92a6e85fe7
Breaking: remove ios 11, safari 11 support
Angular doesn't support these web browsers anymore
Safari 11 and iOS 11 are not supported anymore by Apple
2023-02-27 15:28:57 +01:00
Chocobozzz 39a88d24c7
Fix embed build with old web browsers 2023-02-21 14:20:15 +01:00
Chocobozzz a77c5ff362
Fix stucked HLS player 2022-07-21 12:08:47 +02:00
Chocobozzz 42b4063699
Add ability for client to create server logs 2022-07-18 11:37:18 +02:00
Chocobozzz 2873f00bd8
Fix embed compat with safari 10 2022-06-24 15:26:45 +02:00
Chocobozzz 4ce5f50cd3
Fix babel for mjs files 2021-11-24 15:37:44 +01:00
Chocobozzz 6527eb0ccf
Compat embed with ios 11 2021-09-01 15:55:54 +02:00
Chocobozzz 893f0f2f0f
Specify absolute tsconfig path for webpack 2021-08-30 10:49:24 +02:00
Chocobozzz 87244e54bb
Remove unused webpack plugin 2021-08-30 10:03:55 +02:00
Chocobozzz adb8809d43
Fix webpack config 2021-08-17 14:31:30 +02:00
Chocobozzz 1d4591fd9c
Remove solution style ts config 2021-08-17 14:06:56 +02:00
Chocobozzz 134006b0d4
Update client dependencies 2021-08-11 11:49:01 +02:00
Chocobozzz 662351e626 Update embed webpack config 2021-05-27 16:00:13 +02:00
Chocobozzz 031ea8efed
Use named chunk for embed on analyze 2021-02-25 15:01:29 +01:00
Chocobozzz 72aa835e17
Upgrade client dependencies 2021-02-03 11:44:43 +01:00
kontrollanten 2564d97e0d video-embed: inject custom CSS
closes #3420
2020-12-14 15:25:51 +01:00
Chocobozzz c4f7fe09cd
Use sass instead of deprecated node sass 2020-11-19 15:57:52 +01:00
Chocobozzz 4f926722ea
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
2020-11-19 15:25:41 +01:00
Chocobozzz bd45d503e5 Reorganize shared models 2020-08-07 08:28:14 +02:00
Chocobozzz 583eb04b54 Upgrade to angular 10 2020-08-07 08:28:14 +02:00
Rigel Kent 4504f09f6e deal with refresh token in embed 2020-08-06 15:08:58 +02:00
Rigel Kent 71ab65d02f decouple video abuse details from embed, add embed to block list details 2020-08-06 15:08:58 +02:00
Chocobozzz a3b5e78af3 Analyze embed too with bundlewatch 2020-08-06 10:58:36 +02:00
Chocobozzz 512decf37e
Fix videojs 2020-04-21 11:02:28 +02:00
Chocobozzz 4adebd513e
Client dependencies upgrade 2020-04-01 14:06:46 +02:00
Chocobozzz f5fcd9f725
Correctly type videojs player 2020-01-29 11:48:15 +01:00
Chocobozzz d1a63fc7ac
Fix videos list user NSFW policy 2018-09-24 13:38:38 +02:00
Chocobozzz ae04a0ce12
Upgrade client dependencies 2018-09-21 09:26:52 +02:00
William Lahti 999417328b Ability to programmatically control embeds (#776)
* first stab at jschannel based player api

* semicolon purge

* more method-level docs; consolidate definitions

* missing definitions

* better match peertube's class conventions

* styling for embed tester

* basic docs

* add `getVolume`

* document the test-embed feature
2018-07-10 17:47:56 +02:00
Chocobozzz 6cca7360eb
Reduce bundle sizes 2018-06-07 16:50:33 +02:00
Chocobozzz f6a7c82ca5
Fix AP activity validator 2018-05-29 15:05:14 +02:00
Chocobozzz efda99c30f
Store webtorrent chunks in indexdb 2018-05-15 08:39:02 +02:00
Chocobozzz fc9e66242a
Upgrade to webpack 4 2018-04-06 16:06:43 +02:00
Chocobozzz 7bfd1b1edb
Upgrade scripts and embed webpack config 2017-12-12 11:42:48 +01:00