aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/plugins')
-rw-r--r--client/src/app/core/plugins/hooks.service.ts10
-rw-r--r--client/src/app/core/plugins/plugin.service.ts3
2 files changed, 5 insertions, 8 deletions
diff --git a/client/src/app/core/plugins/hooks.service.ts b/client/src/app/core/plugins/hooks.service.ts
index a6a444c32..2fbf406d1 100644
--- a/client/src/app/core/plugins/hooks.service.ts
+++ b/client/src/app/core/plugins/hooks.service.ts
@@ -1,9 +1,8 @@
1import { from, Observable } from 'rxjs'
2import { mergeMap, switchMap } from 'rxjs/operators'
1import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
2import { PluginService } from '@app/core/plugins/plugin.service' 4import { PluginService } from '@app/core/plugins/plugin.service'
3import { ClientActionHookName, ClientFilterHookName } from '@shared/models/plugins/client-hook.model' 5import { ClientActionHookName, ClientFilterHookName } from '@shared/models/plugins/client-hook.model'
4import { from, Observable } from 'rxjs'
5import { mergeMap, switchMap } from 'rxjs/operators'
6import { ServerService } from '@app/core/server'
7import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type' 6import { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type'
8 7
9type RawFunction<U, T> = (params: U) => T 8type RawFunction<U, T> = (params: U) => T
@@ -11,10 +10,7 @@ type ObservableFunction<U, T> = RawFunction<U, Observable<T>>
11 10
12@Injectable() 11@Injectable()
13export class HooksService { 12export class HooksService {
14 constructor ( 13 constructor (private pluginService: PluginService) { }
15 private server: ServerService,
16 private pluginService: PluginService
17 ) { }
18 14
19 wrapObsFun 15 wrapObsFun
20 <P, R, H1 extends ClientFilterHookName, H2 extends ClientFilterHookName> 16 <P, R, H1 extends ClientFilterHookName, H2 extends ClientFilterHookName>
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index 3ed23160d..c6efcac6d 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -47,7 +47,8 @@ export class PluginService implements ClientHook {
47 common: new ReplaySubject<boolean>(1), 47 common: new ReplaySubject<boolean>(1),
48 search: new ReplaySubject<boolean>(1), 48 search: new ReplaySubject<boolean>(1),
49 'video-watch': new ReplaySubject<boolean>(1), 49 'video-watch': new ReplaySubject<boolean>(1),
50 signup: new ReplaySubject<boolean>(1) 50 signup: new ReplaySubject<boolean>(1),
51 login: new ReplaySubject<boolean>(1)
51 } 52 }
52 53
53 translationsObservable: Observable<PluginTranslation> 54 translationsObservable: Observable<PluginTranslation>