mirror of https://github.com/Chocobozzz/PeerTube
Use new plugin index sort and recommended tags
parent
fe37e5232b
commit
b6b50bf0b4
|
@ -34,9 +34,13 @@
|
||||||
<div ngProjectAs="badges">
|
<div ngProjectAs="badges">
|
||||||
<span i18n *ngIf="plugin.installed" class="pt-badge badge-success">Installed</span>
|
<span i18n *ngIf="plugin.installed" class="pt-badge badge-success">Installed</span>
|
||||||
|
|
||||||
<span *ngIf="plugin.official" class="pt-badge badge-primary" i18n i18n-title title="This plugin is developed by Framasoft">
|
<span *ngIf="plugin.official" class="pt-badge badge-primary" i18n i18n-title title="This plugin is developed by Framasoft, the not-for-profit that develops PeerTube">
|
||||||
Official
|
Official
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span *ngIf="plugin.recommended" class="pt-badge badge-primary" i18n i18n-title title="This plugin is recommended by Framasoft, the not-for-profit that develops PeerTube">
|
||||||
|
Recommended
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ngProjectAs="buttons">
|
<div ngProjectAs="buttons">
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class PluginSearchComponent implements OnInit {
|
||||||
itemsPerPage: 10,
|
itemsPerPage: 10,
|
||||||
totalItems: null
|
totalItems: null
|
||||||
}
|
}
|
||||||
sort = '-popularity'
|
sort = '-trending'
|
||||||
|
|
||||||
search = ''
|
search = ''
|
||||||
isSearching = false
|
isSearching = false
|
||||||
|
|
|
@ -10,6 +10,7 @@ export interface PeerTubePluginIndex {
|
||||||
latestVersion: string
|
latestVersion: string
|
||||||
|
|
||||||
official: boolean
|
official: boolean
|
||||||
|
recommended: boolean
|
||||||
|
|
||||||
name?: string
|
name?: string
|
||||||
installed?: boolean
|
installed?: boolean
|
||||||
|
|
|
@ -124,7 +124,7 @@ const SORTABLE_COLUMNS = {
|
||||||
|
|
||||||
PLUGINS: [ 'name', 'createdAt', 'updatedAt' ],
|
PLUGINS: [ 'name', 'createdAt', 'updatedAt' ],
|
||||||
|
|
||||||
AVAILABLE_PLUGINS: [ 'npmName', 'popularity' ],
|
AVAILABLE_PLUGINS: [ 'npmName', 'popularity', 'trending' ],
|
||||||
|
|
||||||
VIDEO_REDUNDANCIES: [ 'name' ]
|
VIDEO_REDUNDANCIES: [ 'name' ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue