aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-11 15:28:11 +0200
committerChocobozzz <me@florianbigard.com>2022-08-11 15:28:11 +0200
commitde61544582726713c965d3369902f4a464f72e20 (patch)
treed66d87bb7d633906e1a36c4e72ee7109316db713 /shared/models/plugins
parent2a95b88477a547c319108c0bab8692624df6804c (diff)
downloadPeerTube-de61544582726713c965d3369902f4a464f72e20.tar.gz
PeerTube-de61544582726713c965d3369902f4a464f72e20.tar.zst
PeerTube-de61544582726713c965d3369902f4a464f72e20.zip
Add plugin hooks/placeholder to share modal
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/client/client-hook.model.ts17
-rw-r--r--shared/models/plugins/client/plugin-element-placeholder.type.ts5
2 files changed, 21 insertions, 1 deletions
diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts
index dda03124d..e6313b60e 100644
--- a/shared/models/plugins/client/client-hook.model.ts
+++ b/shared/models/plugins/client/client-hook.model.ts
@@ -72,6 +72,21 @@ export const clientFilterHookObject = {
72 'filter:login.instance-about-plugin-panels.create.result': true, 72 'filter:login.instance-about-plugin-panels.create.result': true,
73 'filter:signup.instance-about-plugin-panels.create.result': true, 73 'filter:signup.instance-about-plugin-panels.create.result': true,
74 74
75 'filter:share.video-embed-code.build.params': true,
76 'filter:share.video-embed-code.build.result': true,
77 'filter:share.video-playlist-embed-code.build.params': true,
78 'filter:share.video-playlist-embed-code.build.result': true,
79
80 'filter:share.video-embed-url.build.params': true,
81 'filter:share.video-embed-url.build.result': true,
82 'filter:share.video-playlist-embed-url.build.params': true,
83 'filter:share.video-playlist-embed-url.build.result': true,
84
85 'filter:share.video-url.build.params': true,
86 'filter:share.video-url.build.result': true,
87 'filter:share.video-playlist-url.build.params': true,
88 'filter:share.video-playlist-url.build.result': true,
89
75 // Filter videojs options built for PeerTube player 90 // Filter videojs options built for PeerTube player
76 'filter:internal.player.videojs.options.result': true 91 'filter:internal.player.videojs.options.result': true
77} 92}
@@ -146,6 +161,8 @@ export const clientActionHookObject = {
146 161
147 // Fired when the modal to download a video/caption is shown 162 // Fired when the modal to download a video/caption is shown
148 'action:modal.video-download.shown': true, 163 'action:modal.video-download.shown': true,
164 // Fired when the modal to share a video/playlist is shown
165 'action:modal.share.shown': true,
149 166
150 // ####### Embed hooks ####### 167 // ####### Embed hooks #######
151 // /!\ In embed scope, peertube helpers are not available 168 // /!\ In embed scope, peertube helpers are not available
diff --git a/shared/models/plugins/client/plugin-element-placeholder.type.ts b/shared/models/plugins/client/plugin-element-placeholder.type.ts
index 129099c62..7b8a2605b 100644
--- a/shared/models/plugins/client/plugin-element-placeholder.type.ts
+++ b/shared/models/plugins/client/plugin-element-placeholder.type.ts
@@ -1 +1,4 @@
1export type PluginElementPlaceholder = 'player-next' 1export type PluginElementPlaceholder =
2 'player-next' |
3 'share-modal-playlist-settings' |
4 'share-modal-video-settings'