Chocobozzz
0632cdda04
Fix build
2023-08-17 09:24:45 +02:00
Chocobozzz
c380e39285
Merge branch 'feature/esm-and-nx' into develop
2023-08-17 08:59:21 +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
Chocobozzz
a8ca6190fb
Fix youtube-dl tests
2023-08-09 11:09:06 +02:00
Chocobozzz
04d1da5621
Update translations
2023-07-31 10:03:03 +02:00
Sveinn í Felli
ad0515e962
Translated using Weblate (Icelandic)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/is/
2023-07-31 09:36:19 +02:00
Shun Sakai
f060fb7890
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (271 of 271 strings)
Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/ja/
2023-07-31 09:36:19 +02:00
Blood Axe
a190f53b07
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 83.7% (1858 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/nb_NO/
2023-07-31 09:36:19 +02:00
Blood Axe
cf4aa3b50d
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 77.6% (1723 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/nb_NO/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
b77baa8dd7
Translated using Weblate (Ukrainian)
...
Currently translated at 98.5% (2186 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
53e765aa43
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (141 of 141 strings)
Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/uk/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
caf5fddb63
Translated using Weblate (Ukrainian)
...
Currently translated at 98.2% (2181 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
c333fcd4c1
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (141 of 141 strings)
Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/uk/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
3264b91797
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (269 of 269 strings)
Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/uk/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
71e3d66ad1
Translated using Weblate (Ukrainian)
...
Currently translated at 98.2% (2181 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-07-31 09:36:19 +02:00
T.S
335bf9d159
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ja/
2023-07-31 09:36:19 +02:00
DignifiedSilence
eab39eeaa2
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ja/
2023-07-31 09:36:19 +02:00
DignifiedSilence
43900e44a5
Translated using Weblate (Japanese)
...
Currently translated at 99.9% (2218 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ja/
2023-07-31 09:36:19 +02:00
Sveinn í Felli
8eb672b901
Translated using Weblate (Icelandic)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/is/
2023-07-31 09:36:19 +02:00
Hannes Ylä-Jääski
87554129c1
Translated using Weblate (Finnish)
...
Currently translated at 100.0% (141 of 141 strings)
Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/fi/
2023-07-31 09:36:19 +02:00
Hannes Ylä-Jääski
7c17c6e088
Translated using Weblate (Finnish)
...
Currently translated at 100.0% (271 of 271 strings)
Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/fi/
2023-07-31 09:36:19 +02:00
Hannes Ylä-Jääski
e5ac2bd89d
Translated using Weblate (Finnish)
...
Currently translated at 93.8% (2082 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fi/
2023-07-31 09:36:19 +02:00
Александр
ce551c05ef
Translated using Weblate (Russian)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-07-31 09:36:19 +02:00
Milo Ivir
64c25db21c
Translated using Weblate (Croatian)
...
Currently translated at 100.0% (269 of 269 strings)
Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/hr/
2023-07-31 09:36:19 +02:00
Александр
44a3c5e60b
Translated using Weblate (Russian)
...
Currently translated at 99.0% (2199 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-07-31 09:36:19 +02:00
Milo Ivir
e28d3fd8cf
Translated using Weblate (Croatian)
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-07-31 09:36:19 +02:00
Milo Ivir
dfa93a67c4
Translated using Weblate (Croatian)
...
Currently translated at 100.0% (140 of 140 strings)
Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/hr/
2023-07-31 09:36:19 +02:00
Jeff Huang
3bde8546cf
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 100.0% (2219 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/zh_Hant/
2023-07-31 09:36:19 +02:00
Milo Ivir
37371739ab
Translated using Weblate (Croatian)
...
Currently translated at 99.9% (2217 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-07-31 09:36:19 +02:00
Ihor Hordiichuk
29594b0e7a
Translated using Weblate (Ukrainian)
...
Currently translated at 98.2% (2181 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-07-31 09:36:19 +02:00
Milo Ivir
afdc22fb24
Translated using Weblate (Croatian)
...
Currently translated at 99.8% (2216 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-07-31 09:36:19 +02:00
Milo Ivir
d8c0ffc2b5
Translated using Weblate (Croatian)
...
Currently translated at 100.0% (269 of 269 strings)
Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/hr/
2023-07-31 09:36:19 +02:00
Milo Ivir
a902f3afcf
Translated using Weblate (Croatian)
...
Currently translated at 99.7% (2213 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-07-31 09:36:19 +02:00
Milo Ivir
533a4a61f4
Translated using Weblate (Croatian)
...
Currently translated at 99.0% (2197 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-07-31 09:36:19 +02:00
Payman Moghadam
0bfa26f9cf
Translated using Weblate (Persian)
...
Currently translated at 98.9% (2196 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-07-31 09:36:18 +02:00
Ihor Hordiichuk
9b7b784083
Translated using Weblate (Ukrainian)
...
Currently translated at 97.5% (2165 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-07-31 09:36:18 +02:00
Payman Moghadam
ab84f2802d
Translated using Weblate (Persian)
...
Currently translated at 98.9% (2196 of 2219 strings)
Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-07-31 09:36:18 +02:00
Chocobozzz
3229fcf704
More robust logs tests
2023-07-31 09:35:48 +02:00
Chocobozzz
5e1ced7067
Fix live tests
2023-07-31 09:31:28 +02:00
Chocobozzz
257df4cb56
Remove deprecated "views" from live video event
2023-07-28 16:35:57 +02:00
Chocobozzz
982edf32ae
Remove deprecated video query filter
2023-07-28 16:33:12 +02:00
Chocobozzz
ce8d0b5aae
Remove deprecated scheduler
2023-07-28 16:22:27 +02:00
Chocobozzz
b203a25e1f
Keep s3 commands simple
...
As s3 implementation between s3 providers can be different
2023-07-28 16:21:15 +02:00
Chocobozzz
eeb838faf2
currentTime is now required
2023-07-28 16:17:37 +02:00
Chocobozzz
74c8d5bf2d
Refactor enableTranscoding command helpers
2023-07-28 16:06:49 +02:00
Chocobozzz
e390107e5a
Fix add to playlist button width
2023-07-28 15:55:49 +02:00
Chocobozzz
f9ac050a35
Remove unnecessary workarounds
...
Has been fixed upstream
2023-07-28 15:46:14 +02:00
Chocobozzz
3193ac2c3b
Refactor a little bit nsfwPolicyToParam
2023-07-28 15:37:22 +02:00
Chocobozzz
65bb29c6d3
Remove unnecesary fixme/todo
2023-07-28 15:20:49 +02:00
Chocobozzz
2bfc8ce3d0
Remove unnecessary cast
2023-07-28 11:41:17 +02:00