aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
Commit message (Collapse)AuthorAgeFilesLines
* Support reinjecting token in private m3u8 playlistChocobozzz2022-12-021-0/+9
|
* Fix server lintChocobozzz2022-11-151-1/+1
|
* Don't inject untrusted inputChocobozzz2022-11-152-0/+8
| | | | | Even if it's already checked in middlewares It's better to have safe modals too
* Use private ACL for private videos in s3Chocobozzz2022-10-243-8/+29
|
* Put private videos under a specific subdirectoryChocobozzz2022-10-241-0/+12
|
* Don't display remove file icon in some casesChocobozzz2022-09-131-1/+13
|
* Prefer using Object.valuesChocobozzz2022-08-171-0/+6
|
* Reimplement a typed omit functionChocobozzz2022-08-171-0/+14
|
* Move to bullmqChocobozzz2022-08-091-1/+14
|
* Add job queue hooksChocobozzz2022-08-021-4/+13
|
* Add bulk action on following/followersChocobozzz2022-07-271-1/+9
|
* Support hr localeChocobozzz2022-07-111-0/+1
|
* Support tok in clientChocobozzz2022-06-241-0/+1
|
* Add control bar option for peertube playerChocobozzz2022-05-201-0/+6
|
* Support HTML entities in markdown fieldsChocobozzz2022-05-021-0/+1
|
* Add ability to set start/end date to timeserieChocobozzz2022-04-151-0/+2
|
* Update translations and support faChocobozzz2022-03-031-0/+2
|
* Fix plaintext markdown converterChocobozzz2022-02-041-2/+8
|
* Stop using tsconfig registerChocobozzz2022-01-061-0/+2
| | | | Prefer to replace paths at compile time
* Move uuid stuff in extra utilsChocobozzz2021-12-294-34/+6
| | | | Since it requires an external dependency
* Fix buildChocobozzz2021-12-173-21/+9
|
* Move test functions outside extra-utilsChocobozzz2021-12-1713-43/+94
|
* Move typescript utils in its own directoryChocobozzz2021-12-162-46/+0
|
* Add ability to disable p2p in embed with URLChocobozzz2021-12-161-0/+2
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-164-0/+82
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Support nn and nb localesChocobozzz2021-12-131-0/+3
|
* Give moderators access to edit channels (#4608)kontrollanten2021-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * give admins access to edit all channels closes #4598 * test(channels): +admin update another users channel * Fix tests * fix(server): delete another users channel Since the channel owner isn't necessary the auth user we need to check the right account whether it's the last video or not. * REMOVE_ANY_VIDEO_CHANNEL > MANAGE_ANY_VIDEO_CHANNEL Merge REMOVE_ANY_VIDEO_CHANNEL and MANY_VIDEO_CHANNELS to MANAGE_ANY_VIDEO_CHANNEL. * user-right: moderator can't manage admins channel * client: MyVideoChannelCreateComponent > VideoChannelCreateComponent * client: MyVideoChannelEdit > VideoChannelEdit * Revert "user-right: moderator can't manage admins channel" This reverts commit 2c627c154e2bfe6af2e0f45efb27faf4117572f3. * server: clean dupl validator functionality * fix ensureUserCanManageChannel usage It's not async anymore. * server: merge channel validator middleares ensureAuthUserOwnsChannelValidator & ensureUserCanManageChannel gets merged into one middleware. * client(VideoChannelEdit): redirect to prev route * fix(VideoChannels): handle anon users * client: new routes for create/update channel * Refactor channel validators Co-authored-by: Chocobozzz <me@florianbigard.com>
* Add ability to filter out public videos from adminChocobozzz2021-11-122-0/+10
|
* Add minimum bitrate limitChocobozzz2021-11-101-1/+25
|
* Added 144p encoding (#4492)Florian CUNY2021-11-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added 144p encoding Implements https://github.com/Chocobozzz/PeerTube/issues/4428 * Fixed typo in core-utils * Increased BitPerPixel for 144p * Disabled 144p by default in test.yaml * Another try at fixing tests * Fixed test in video-transcoder (api-3) * Fixed test in video-imports (api-4) * Fixed test in live-constraints (api-2) * Tried to fix tests in api-3 again * Revert "Tried to fix tests in api-3 again" This reverts commit 266e1143fa37f333d149c2c2791c7bd33621ac14. * Fixed test in config.ts (api-2) * Try to fix test in video-hls.ts (api-3) * Fixed test in video-transcoder.ts (api-3) * Fix tests Co-authored-by: Chocobozzz <me@florianbigard.com>
* Improve advanced input filterChocobozzz2021-11-032-0/+14
|
* Merge branch 'release/3.4.0' into developChocobozzz2021-10-121-1/+1
|\
| * Fix bitrate testsChocobozzz2021-10-121-1/+1
| |
* | Safer iframe creationChocobozzz2021-10-111-11/+2
|/
* Improve target bitrate calculationChocobozzz2021-08-063-0/+88
|
* Refactor search query optionsChocobozzz2021-07-291-2/+2
|
* Search channels against handles and not namesChocobozzz2021-07-293-0/+17
|
* Refactor video links buildersChocobozzz2021-07-269-40/+191
|
* Refactor video links buildingChocobozzz2021-07-267-2/+3
|
* Use random names for VOD HLS playlistsChocobozzz2021-07-261-0/+4
|
* Generate random uuid for video filesChocobozzz2021-07-262-0/+2
|
* Refactor requestsChocobozzz2021-07-203-387/+0
|
* Fix image injection for custom markupChocobozzz2021-06-251-1/+3
|
* Instance homepage support (#4007)Chocobozzz2021-05-272-17/+52
| | | | | | | | | | | | | | | | | * Prepare homepage parsers * Add ability to update instance hompage * Add ability to set homepage as landing page * Add homepage preview in admin * Dynamically update left menu for homepage * Inject home content in homepage * Add videos list and channel miniature custom markup * Remove unused elements in markup service
* Stricter models typingChocobozzz2021-05-121-0/+4
|
* Resumable video uploads (#3933)kontrollanten2021-05-102-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: resumable video uploads relates to #324 * fix review comments * video upload: error handling * fix audio upload * fixes after self review * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/middlewares/validators/videos/videos.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * update after code review * refactor upload route - restore multipart upload route - move resumable to dedicated upload-resumable route - move checks to middleware - do not leak internal fs structure in response * fix yarn.lock upon rebase * factorize addVideo for reuse in both endpoints * add resumable upload API to openapi spec * add initial test and test helper for resumable upload * typings for videoAddResumable middleware * avoid including aws and google packages via node-uploadx, by only including uploadx/core * rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio * add video-upload-tmp-folder-cleaner job * stronger typing of video upload middleware * reduce dependency to @uploadx/core * add audio upload test * refactor resumable uploads cleanup from job to scheduler * refactor resumable uploads scheduler to compare to last execution time * make resumable upload validator to always cleanup on failure * move legacy upload request building outside of uploadVideo test helper * filter upload-resumable middlewares down to POST, PUT, DELETE also begin to type metadata * merge add duration functions * stronger typings and documentation for uploadx behaviour, move init validator up * refactor(client/video-edit): options > uploadxOptions * refactor(client/video-edit): remove obsolete else * scheduler/remove-dangling-resum: rename tag * refactor(server/video): add UploadVideoFiles type * refactor(mw/validators): restructure eslint disable * refactor(mw/validators/videos): rename import * refactor(client/vid-upload): rename html elem id * refactor(sched/remove-dangl): move fn to method * refactor(mw/async): add method typing * refactor(mw/vali/video): double quote > single * refactor(server/upload-resum): express use > all * proper http methud enum server/middlewares/async.ts * properly type http methods * factorize common video upload validation steps * add check for maximum partially uploaded file size * fix audioBg use * fix extname(filename) in addVideo * document parameters for uploadx's resumable protocol * clear META files in scheduler * last audio refactor before cramming preview in the initial POST form data * refactor as mulitpart/form-data initial post request this allows preview/thumbnail uploads alongside the initial request, and cleans up the upload form * Add more tests for resumable uploads * Refactor remove dangling resumable uploads * Prepare changelog * Add more resumable upload tests * Remove user quota check for resumable uploads * Fix upload error handler * Update nginx template for upload-resumable * Cleanup comment * Remove unused express methods * Prefer to use got instead of raw http * Don't retry on error 500 Co-authored-by: Rigel Kent <par@rigelk.eu> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu> Co-authored-by: Chocobozzz <me@florianbigard.com>
* Allow plugins to set short translation localeChocobozzz2021-04-201-3/+3
|
* fix missing title attribute on <iframe> tag suggested for embedding (#3901)Thavarasa Prasanth2021-03-311-0/+18
| | | | | | | | | | | | | * title attribute is missing on <iframe> tag suggested for embedding #3861 * fix #3901 * fix: escapeHTML #3901 * fix: playlist title instead of video title #3901 * fix #3901 * assign title directly #3901
* Support sqChocobozzz2021-03-091-1/+2
|
* stricter youtubedl format selectors (#3516)Rigel Kent2021-01-151-0/+8
| | | | | | | | | | | | | | * stricter youtubedl format selectors make sure selectors avoid av1, and otherwise match as closely to the maximum resolution enabled for transcoding * add support for merge formats in youtubedl * avoid vp9.2 in youtubedl to avoid any HDR * move getEnabledResolutions, safer replace of imported extension * add test for youtube-dl selectors