From 9ca0f688e9e8558233f1a538b96a43da44e35353 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Aug 2022 10:39:40 +0200 Subject: Add channel hooks --- shared/models/plugins/client/client-hook.model.ts | 17 +++++++++++++++++ .../models/plugins/client/plugin-client-scope.type.ts | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts index 466be8946..dda03124d 100644 --- a/shared/models/plugins/client/client-hook.model.ts +++ b/shared/models/plugins/client/client-hook.model.ts @@ -93,6 +93,23 @@ export const clientActionHookObject = { // Fired when a user click on 'View x replies' and they're loaded 'action:video-watch.video-thread-replies.loaded': true, + // Fired when the video channel creation page is being initialized + 'action:video-channel-create.init': true, + + // Fired when the video channel update page is being initialized + 'action:video-channel-update.init': true, + 'action:video-channel-update.video-channel.loaded': true, + + // Fired when the page that list video channel videos is being initialized + 'action:video-channel-videos.init': true, + 'action:video-channel-videos.video-channel.loaded': true, + 'action:video-channel-videos.videos.loaded': true, + + // Fired when the page that list video channel playlists is being initialized + 'action:video-channel-playlists.init': true, + 'action:video-channel-playlists.video-channel.loaded': true, + 'action:video-channel-playlists.playlists.loaded': true, + // Fired when the video edit page (upload, URL/torrent import, update) is being initialized 'action:video-edit.init': true, diff --git a/shared/models/plugins/client/plugin-client-scope.type.ts b/shared/models/plugins/client/plugin-client-scope.type.ts index 92734533d..c09a453b8 100644 --- a/shared/models/plugins/client/plugin-client-scope.type.ts +++ b/shared/models/plugins/client/plugin-client-scope.type.ts @@ -7,4 +7,5 @@ export type PluginClientScope = 'embed' | 'video-edit' | 'admin-plugin' | - 'my-library' + 'my-library' | + 'video-channel' -- cgit v1.2.3