diff options
Diffstat (limited to 'client/src')
5 files changed, 27 insertions, 5 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.html index 99103c2c3..c1ba0a755 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.html +++ b/client/src/app/+videos/+video-watch/video-watch.component.html | |||
@@ -16,6 +16,8 @@ | |||
16 | [playlist]="playlist" class="playlist" | 16 | [playlist]="playlist" class="playlist" |
17 | (videoFound)="onPlaylistVideoFound($event)" | 17 | (videoFound)="onPlaylistVideoFound($event)" |
18 | ></my-video-watch-playlist> | 18 | ></my-video-watch-playlist> |
19 | |||
20 | <my-plugin-placeholder pluginId="player-next"></my-plugin-placeholder> | ||
19 | </div> | 21 | </div> |
20 | 22 | ||
21 | <div class="row"> | 23 | <div class="row"> |
diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index 2392a234c..3152a7003 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts | |||
@@ -5,8 +5,7 @@ import { CommonModule } from '@angular/common' | |||
5 | import { NgModule, Optional, SkipSelf } from '@angular/core' | 5 | import { NgModule, Optional, SkipSelf } from '@angular/core' |
6 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations' | 6 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations' |
7 | import { PeerTubeSocket } from '@app/core/notification/peertube-socket.service' | 7 | import { PeerTubeSocket } from '@app/core/notification/peertube-socket.service' |
8 | import { HooksService } from '@app/core/plugins/hooks.service' | 8 | import { HooksService, PluginService } from '@app/core/plugins' |
9 | import { PluginService } from '@app/core/plugins/plugin.service' | ||
10 | import { AuthService } from './auth' | 9 | import { AuthService } from './auth' |
11 | import { ConfirmService } from './confirm' | 10 | import { ConfirmService } from './confirm' |
12 | import { CheatSheetComponent } from './hotkeys' | 11 | import { CheatSheetComponent } from './hotkeys' |
@@ -15,7 +14,7 @@ import { throwIfAlreadyLoaded } from './module-import-guard' | |||
15 | import { Notifier } from './notification' | 14 | import { Notifier } from './notification' |
16 | import { HtmlRendererService, LinkifierService, MarkdownService } from './renderer' | 15 | import { HtmlRendererService, LinkifierService, MarkdownService } from './renderer' |
17 | import { RestExtractor, RestService } from './rest' | 16 | import { RestExtractor, RestService } from './rest' |
18 | import { LoginGuard, RedirectService, UserRightGuard, UnloggedGuard } from './routing' | 17 | import { LoginGuard, RedirectService, UnloggedGuard, UserRightGuard } from './routing' |
19 | import { CanDeactivateGuard } from './routing/can-deactivate-guard.service' | 18 | import { CanDeactivateGuard } from './routing/can-deactivate-guard.service' |
20 | import { ServerConfigResolver } from './routing/server-config-resolver.service' | 19 | import { ServerConfigResolver } from './routing/server-config-resolver.service' |
21 | import { ScopedTokensService } from './scoped-tokens' | 20 | import { ScopedTokensService } from './scoped-tokens' |
diff --git a/client/src/app/shared/shared-main/plugins/index.ts b/client/src/app/shared/shared-main/plugins/index.ts new file mode 100644 index 000000000..f36dab624 --- /dev/null +++ b/client/src/app/shared/shared-main/plugins/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './plugin-placeholder.component' | |||
diff --git a/client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts b/client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts new file mode 100644 index 000000000..93ba9fb9b --- /dev/null +++ b/client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { Component, Input } from '@angular/core' | ||
2 | import { PluginElementPlaceholder } from '@shared/models' | ||
3 | |||
4 | @Component({ | ||
5 | selector: 'my-plugin-placeholder', | ||
6 | template: '<div [id]="getId()"></div>' | ||
7 | }) | ||
8 | |||
9 | export class PluginPlaceholderComponent { | ||
10 | @Input() pluginId: PluginElementPlaceholder | ||
11 | |||
12 | getId () { | ||
13 | return 'plugin-placeholder-' + this.pluginId | ||
14 | } | ||
15 | } | ||
diff --git a/client/src/app/shared/shared-main/shared-main.module.ts b/client/src/app/shared/shared-main/shared-main.module.ts index 16d230f46..772198cb2 100644 --- a/client/src/app/shared/shared-main/shared-main.module.ts +++ b/client/src/app/shared/shared-main/shared-main.module.ts | |||
@@ -33,6 +33,7 @@ import { DateToggleComponent } from './date' | |||
33 | import { FeedComponent } from './feeds' | 33 | import { FeedComponent } from './feeds' |
34 | import { LoaderComponent, SmallLoaderComponent } from './loaders' | 34 | import { LoaderComponent, SmallLoaderComponent } from './loaders' |
35 | import { HelpComponent, ListOverflowComponent, SimpleSearchInputComponent, TopMenuDropdownComponent } from './misc' | 35 | import { HelpComponent, ListOverflowComponent, SimpleSearchInputComponent, TopMenuDropdownComponent } from './misc' |
36 | import { PluginPlaceholderComponent } from './plugins' | ||
36 | import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' | 37 | import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users' |
37 | import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' | 38 | import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video' |
38 | import { VideoCaptionService } from './video-caption' | 39 | import { VideoCaptionService } from './video-caption' |
@@ -92,7 +93,9 @@ import { VideoChannelService } from './video-channel' | |||
92 | SimpleSearchInputComponent, | 93 | SimpleSearchInputComponent, |
93 | 94 | ||
94 | UserQuotaComponent, | 95 | UserQuotaComponent, |
95 | UserNotificationsComponent | 96 | UserNotificationsComponent, |
97 | |||
98 | PluginPlaceholderComponent | ||
96 | ], | 99 | ], |
97 | 100 | ||
98 | exports: [ | 101 | exports: [ |
@@ -144,7 +147,9 @@ import { VideoChannelService } from './video-channel' | |||
144 | SimpleSearchInputComponent, | 147 | SimpleSearchInputComponent, |
145 | 148 | ||
146 | UserQuotaComponent, | 149 | UserQuotaComponent, |
147 | UserNotificationsComponent | 150 | UserNotificationsComponent, |
151 | |||
152 | PluginPlaceholderComponent | ||
148 | ], | 153 | ], |
149 | 154 | ||
150 | providers: [ | 155 | providers: [ |