]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit
Introduce generic video constant manager for plugins 4251/head
authorlutangar <johan.dufour@gmail.com>
Tue, 29 Jun 2021 14:02:05 +0000 (16:02 +0200)
committerlutangar <johan.dufour@gmail.com>
Fri, 16 Jul 2021 15:49:40 +0000 (17:49 +0200)
commitdc3d902234bb73fbc8cf9787e3036f2012526e6c
tree58ab2812fa5b38f4e19376f1a7cf3d718f3003fb
parentde15b052c59cbd4b99bca835b124485ca1af399e
Introduce generic video constant manager for plugins

Allow a plugin developer to get back constants values,
and reset constants deletions or additions.
12 files changed:
server/lib/plugins/register-helpers.ts
server/lib/plugins/video-constant-manager-factory.ts [new file with mode: 0644]
server/tests/fixtures/peertube-plugin-test-video-constants/main.js
server/tests/lib/plugins/video-constant-registry-factory.test.ts [new file with mode: 0644]
server/tests/plugins/video-constants.ts
shared/models/plugins/server/managers/plugin-playlist-privacy-manager.model.ts
shared/models/plugins/server/managers/plugin-video-category-manager.model.ts
shared/models/plugins/server/managers/plugin-video-language-manager.model.ts
shared/models/plugins/server/managers/plugin-video-licence-manager.model.ts
shared/models/plugins/server/managers/plugin-video-privacy-manager.model.ts
shared/models/plugins/server/plugin-constant-manager.model.ts [new file with mode: 0644]
support/doc/plugins/guide.md