Use new plugin index sort and recommended tags

This commit is contained in:
Chocobozzz 2023-12-13 15:50:34 +01:00
parent fe37e5232b
commit b6b50bf0b4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 8 additions and 3 deletions

View File

@ -34,9 +34,13 @@
<div ngProjectAs="badges">
<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
</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 ngProjectAs="buttons">

View File

@ -20,7 +20,7 @@ export class PluginSearchComponent implements OnInit {
itemsPerPage: 10,
totalItems: null
}
sort = '-popularity'
sort = '-trending'
search = ''
isSearching = false

View File

@ -10,6 +10,7 @@ export interface PeerTubePluginIndex {
latestVersion: string
official: boolean
recommended: boolean
name?: string
installed?: boolean

View File

@ -124,7 +124,7 @@ const SORTABLE_COLUMNS = {
PLUGINS: [ 'name', 'createdAt', 'updatedAt' ],
AVAILABLE_PLUGINS: [ 'npmName', 'popularity' ],
AVAILABLE_PLUGINS: [ 'npmName', 'popularity', 'trending' ],
VIDEO_REDUNDANCIES: [ 'name' ]
}