aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-03 10:39:40 +0200
committerChocobozzz <me@florianbigard.com>2022-08-03 10:39:40 +0200
commit9ca0f688e9e8558233f1a538b96a43da44e35353 (patch)
tree16370ffe97df1bfeef874ce71fa6bedff0b7496b /shared/models/plugins/client
parent0b6f531653a7a24f82ad65564479a70a9326301a (diff)
downloadPeerTube-9ca0f688e9e8558233f1a538b96a43da44e35353.tar.gz
PeerTube-9ca0f688e9e8558233f1a538b96a43da44e35353.tar.zst
PeerTube-9ca0f688e9e8558233f1a538b96a43da44e35353.zip
Add channel hooks
Diffstat (limited to 'shared/models/plugins/client')
-rw-r--r--shared/models/plugins/client/client-hook.model.ts17
-rw-r--r--shared/models/plugins/client/plugin-client-scope.type.ts3
2 files changed, 19 insertions, 1 deletions
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 = {
93 // Fired when a user click on 'View x replies' and they're loaded 93 // Fired when a user click on 'View x replies' and they're loaded
94 'action:video-watch.video-thread-replies.loaded': true, 94 'action:video-watch.video-thread-replies.loaded': true,
95 95
96 // Fired when the video channel creation page is being initialized
97 'action:video-channel-create.init': true,
98
99 // Fired when the video channel update page is being initialized
100 'action:video-channel-update.init': true,
101 'action:video-channel-update.video-channel.loaded': true,
102
103 // Fired when the page that list video channel videos is being initialized
104 'action:video-channel-videos.init': true,
105 'action:video-channel-videos.video-channel.loaded': true,
106 'action:video-channel-videos.videos.loaded': true,
107
108 // Fired when the page that list video channel playlists is being initialized
109 'action:video-channel-playlists.init': true,
110 'action:video-channel-playlists.video-channel.loaded': true,
111 'action:video-channel-playlists.playlists.loaded': true,
112
96 // Fired when the video edit page (upload, URL/torrent import, update) is being initialized 113 // Fired when the video edit page (upload, URL/torrent import, update) is being initialized
97 'action:video-edit.init': true, 114 'action:video-edit.init': true,
98 115
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 =
7 'embed' | 7 'embed' |
8 'video-edit' | 8 'video-edit' |
9 'admin-plugin' | 9 'admin-plugin' |
10 'my-library' 10 'my-library' |
11 'video-channel'