diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-10 18:30:27 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b (patch) | |
tree | c94c2b22de6707eaafcc4348f69934f265c52f52 /client/src/app/+admin/plugins/plugin-search | |
parent | ad91e7006e41f8ee5b8dcefee30f99e8ca44133a (diff) | |
download | PeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.tar.gz PeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.tar.zst PeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.zip |
WIP plugins: list installed plugins in client
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-search')
3 files changed, 32 insertions, 0 deletions
diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.html | |||
diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.scss b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.scss new file mode 100644 index 000000000..5e6774739 --- /dev/null +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.scss | |||
@@ -0,0 +1,2 @@ | |||
1 | @import '_variables'; | ||
2 | @import '_mixins'; | ||
diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts new file mode 100644 index 000000000..db1f91f3d --- /dev/null +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts | |||
@@ -0,0 +1,30 @@ | |||
1 | import { Component, OnInit, ViewChild } from '@angular/core' | ||
2 | import { Notifier } from '@app/core' | ||
3 | import { SortMeta } from 'primeng/components/common/sortmeta' | ||
4 | import { ConfirmService, ServerService } from '../../../core' | ||
5 | import { RestPagination, RestTable, UserService } from '../../../shared' | ||
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
7 | import { User } from '../../../../../../shared' | ||
8 | import { UserBanModalComponent } from '@app/shared/moderation' | ||
9 | import { DropdownAction } from '@app/shared/buttons/action-dropdown.component' | ||
10 | import { PluginType } from '@shared/models/plugins/plugin.type' | ||
11 | import { PluginApiService } from '@app/+admin/plugins/shared/plugin-api.service' | ||
12 | |||
13 | @Component({ | ||
14 | selector: 'my-plugin-search', | ||
15 | templateUrl: './plugin-search.component.html', | ||
16 | styleUrls: [ './plugin-search.component.scss' ] | ||
17 | }) | ||
18 | export class PluginSearchComponent implements OnInit { | ||
19 | pluginTypeOptions: { label: string, value: PluginType }[] = [] | ||
20 | |||
21 | constructor ( | ||
22 | private i18n: I18n, | ||
23 | private pluginService: PluginApiService | ||
24 | ) { | ||
25 | this.pluginTypeOptions = this.pluginService.getPluginTypeOptions() | ||
26 | } | ||
27 | |||
28 | ngOnInit () { | ||
29 | } | ||
30 | } | ||