Commit Graph

179 Commits (9e2700b89d6ab06cb404005f062ba7e5d9c7c341)

Author SHA1 Message Date
Chocobozzz db69d9491e
Add abuse and registration requests stats 2024-02-21 14:57:20 +01:00
Chocobozzz f9c89b98f7 Add user import/export in client 2024-02-21 13:49:08 +01:00
Chocobozzz ebe828ec75
Fix displaying autoblock messages 2024-02-19 14:26:17 +01:00
Chocobozzz d7804627c2
Fix chapter position width consistency 2024-01-03 11:12:12 +01:00
Chocobozzz 5ca370e395
Fix lint 2023-12-08 14:04:20 +01:00
Chocobozzz 8031504212
Fix updating started live error 2023-12-08 10:20:15 +01:00
Chocobozzz c6d2384aa7
Fix global buttons accessibility 2023-10-12 15:01:17 +02:00
Chocobozzz 55d7e361f5
Add alert role to form error messages 2023-10-06 10:19:20 +02:00
Chocobozzz 77b70702d2
Add video chapters support 2023-08-28 16:17:31 +02:00
Chocobozzz 863ef63805
Fix typo 2023-08-18 13:43:55 +02:00
Chocobozzz 7ace48819e
Add ability to reset originallyPublishedAt 2023-08-18 11:40:54 +02:00
Chocobozzz c5f8dc0533
Correctly truncate HTML
We can because we don't use the video truncated description since v5.0
2023-08-17 14:34:49 +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 f9ac050a35
Remove unnecessary workarounds
Has been fixed upstream
2023-07-28 15:46:14 +02:00
Chocobozzz f42fcb4b58
Implement video file replacement in client 2023-07-25 11:53:08 +02:00
Chocobozzz 180d8f297e
More robust wait transcoding checkbox display 2023-06-29 10:19:55 +02:00
Wicklow 40346ead2b
Feature/password protected videos (#5836)
* Add server endpoints

* Refactoring test suites

* Update server and add openapi documentation

* fix compliation and tests

* upload/import password protected video on client

* add server error code

* Add video password to update resolver

* add custom message when sharing pw protected video

* improve confirm component

* Add new alert in component

* Add ability to watch protected video on client

* Cannot have password protected replay privacy

* Add migration

* Add tests

* update after review

* Update check params tests

* Add live videos test

* Add more filter test

* Update static file privacy test

* Update object storage tests

* Add test on feeds

* Add missing word

* Fix tests

* Fix tests on live videos

* add embed support on password protected videos

* fix style

* Correcting data leaks

* Unable to add password protected privacy on replay

* Updated code based on review comments

* fix validator and command

* Updated code based on review comments
2023-06-29 09:48:55 +02:00
Chocobozzz 5490930428
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
2023-05-24 16:56:05 +02:00
Chocobozzz d0fbc9fd0a
Fix lint 2023-05-24 15:27:15 +02:00
Chocobozzz 52798aa5f2
Update angular 2023-05-23 11:27:09 +02:00
Wicklow 73ef4b54aa Don't send replay settings on not replayed lives 2023-04-19 15:59:36 +02:00
Chocobozzz e7c89cc3f3
Allow to update a live with untouched privacy 2023-04-14 10:14:40 +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 3cda7efaaa
Don't send undefined with HTML input 2023-03-10 15:45:52 +01:00
Chocobozzz 58e735dd77
Add test on AP hooks 2023-03-10 15:45:52 +01:00
Chocobozzz 085aba61c3
Add action:video-edit.form.updated hook 2023-03-10 15:45:52 +01:00
Chocobozzz ef19c8ae4c
Add timestamp auto link doc 2023-03-07 11:59:31 +01:00
Chocobozzz 035db86dd8
Fix angular build, again
Maybe a bug in the sass loader
2023-02-20 14:51:29 +01:00
Chocobozzz 41e59dbe9b
Fix cancel upload button style 2022-11-24 09:14:35 +01:00
Chocobozzz 7dcd7d8140
Fix client lint 2022-11-15 15:16:41 +01:00
Chocobozzz 672e185bf3
Fix upload error handling 2022-10-28 11:19:45 +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 b105ea6042
Correctly unsubscribe upload events on destroy 2022-09-28 13:36:59 +02:00
kukhariev 9d84ac5ec1 fix: keep partially uploaded files
Do not delete a partially uploaded file when closing the upload page

fixes #5078, #4432
2022-09-28 11:56:14 +02:00
lutangar 2873a53efd Set scroll position at top of the textarea when opening the subtitle editor.
## Description

This set the position of the scrollbar at the top of the textarea when opening the __subtitle editor__.
Previously the textarea scroll position was at the bottom of the textarea which doesn't make much sense when you want to edit a subtitle : you most likely want to edit the beginning of the subtitle first.

This also set the caret position on the first character.

## Design decision

I had to use a *component approach* instead of an `<ng-template>` for the edition modal because the `@viewChild` directive doesn't work for elements __inside__ an `<ng-template>`.
I needed the `viewChild` directive to get an `ElementRef` of the `textarea`.

> See the following issue and its workaround :
> - https://github.com/valor-software/ngx-bootstrap/issues/3825
> - https://stackblitz.com/edit/angular-t5dfp7
> - https://medium.com/@izzatnadiri/how-to-pass-data-to-and-receive-from-ng-bootstrap-modals-916f2ad5d66e

## Related issues
Closes [peertube-plugin-transcription/#39](https://gitlab.com/apps_education/peertube/plugin-transcription/-/issues/39)
2022-09-08 08:41:36 +02:00
Chocobozzz 97eba003a9
Add sync link to import page 2022-08-17 13:40:00 +02:00
Chocobozzz 2f6e173002
Prevent creating multiple lives 2022-08-12 10:43:50 +02:00
Chocobozzz 0582b4f972
Improve wait transcoding help 2022-08-12 10:20:09 +02:00
Chocobozzz 437f277afd
Prefer thumbnail instead of preview 2022-08-12 10:15:45 +02:00
Chocobozzz 4f50475c67
Display latest uploaded date for captions 2022-07-25 10:45:40 +02:00
Chocobozzz 42b4063699
Add ability for client to create server logs 2022-07-18 11:37:18 +02:00
Chocobozzz 0146f3516e
Fix comments/download attributes on import 2022-07-04 11:31:22 +02:00
Chocobozzz a334597283
Theme fixes 2022-06-28 11:29:54 +02:00
Chocobozzz 7c07259ae5
Fix fetching unlisted video in client 2022-06-24 14:47:32 +02:00
Chocobozzz 64324ac646
Merge branch 'release/4.2.0' into develop 2022-06-23 10:53:16 +02:00
Chocobozzz b6898035bf
Fix going live latency mode 2022-06-23 10:52:27 +02:00
kontrollanten 2e401e8575
store uploaded video filename (#4885)
* store uploaded video filename

closes #4731

* dont crash if videos channel exist

* migration: use raw query

* video source: fixes after code review

* cleanup

* bump migration

* updates after code review

* refactor: use checkUserCanManageVideo

* videoSource: add openapi doc

* test(check-params/video-source): fix timeout

* Styling

* Correctly set original filename as source

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-06-21 15:31:25 +02:00
Chocobozzz 9bc3622320
Handle input error in markdown textarea 2022-06-20 15:56:16 +02:00
Chocobozzz c4a051712b
Cleanup title-page CSS 2022-06-16 16:16:51 +02:00