Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
a7370e53
Verified
Commit
a7370e53
authored
Jul 08, 2022
by
Chocobozzz
Browse files
Introduce my-library plugin scope
parent
f0a71a78
Changes
4
Hide whitespace changes
Inline
Side-by-side
client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts
View file @
a7370e53
...
...
@@ -159,9 +159,9 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy {
this
.
hooks
.
wrapObsFun
(
this
.
videoPlaylistService
.
getPlaylistVideos
.
bind
(
this
.
videoPlaylistService
),
{
videoPlaylistId
:
this
.
videoPlaylistId
,
componentPagination
:
this
.
pagination
},
'
common
'
,
'
filter:api.my-library.video-playlist-elements.
ge
t.params
'
,
'
filter:api.my-library.video-playlist-elements.
ge
t.result
'
'
my-library
'
,
'
filter:api.my-library.video-playlist-elements.
lis
t.params
'
,
'
filter:api.my-library.video-playlist-elements.
lis
t.result
'
)
.
subscribe
(({
total
,
data
})
=>
{
this
.
playlistElements
=
this
.
playlistElements
.
concat
(
data
)
...
...
client/src/root-helpers/plugins-manager.ts
View file @
a7370e53
...
...
@@ -67,7 +67,8 @@ class PluginsManager {
signup
:
new
ReplaySubject
<
boolean
>
(
1
),
login
:
new
ReplaySubject
<
boolean
>
(
1
),
'
video-edit
'
:
new
ReplaySubject
<
boolean
>
(
1
),
embed
:
new
ReplaySubject
<
boolean
>
(
1
)
embed
:
new
ReplaySubject
<
boolean
>
(
1
),
'
my-library
'
:
new
ReplaySubject
<
boolean
>
(
1
)
}
private
readonly
peertubeHelpersFactory
:
PeertubeHelpersFactory
...
...
shared/models/plugins/client/client-hook.model.ts
View file @
a7370e53
...
...
@@ -52,8 +52,8 @@ export const clientFilterHookObject = {
'
filter:api.signup.registration.create.params
'
:
true
,
// Filter params/result of the function that fetch video playlist elements of the my-library page
'
filter:api.my-library.video-playlist-elements.
ge
t.params
'
:
true
,
'
filter:api.my-library.video-playlist-elements.
ge
t.result
'
:
true
,
'
filter:api.my-library.video-playlist-elements.
lis
t.params
'
:
true
,
'
filter:api.my-library.video-playlist-elements.
lis
t.result
'
:
true
,
// Filter the options to create our player
'
filter:internal.video-watch.player.build-options.params
'
:
true
,
...
...
shared/models/plugins/client/plugin-client-scope.type.ts
View file @
a7370e53
...
...
@@ -6,4 +6,5 @@ export type PluginClientScope =
'
login
'
|
'
embed
'
|
'
video-edit
'
|
'
admin-plugin
'
'
admin-plugin
'
|
'
my-library
'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment