Skip to content

Commit

Permalink
Use new plugin index sort and recommended tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Dec 20, 2023
1 parent fe37e52 commit b6b50bf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class PluginSearchComponent implements OnInit {
itemsPerPage: 10,
totalItems: null
}
sort = '-popularity'
sort = '-trending'

search = ''
isSearching = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface PeerTubePluginIndex {
latestVersion: string

official: boolean
recommended: boolean

name?: string
installed?: boolean
Expand Down
2 changes: 1 addition & 1 deletion server/core/initializers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const SORTABLE_COLUMNS = {

PLUGINS: [ 'name', 'createdAt', 'updatedAt' ],

AVAILABLE_PLUGINS: [ 'npmName', 'popularity' ],
AVAILABLE_PLUGINS: [ 'npmName', 'popularity', 'trending' ],

VIDEO_REDUNDANCIES: [ 'name' ]
}
Expand Down

0 comments on commit b6b50bf

Please sign in to comment.