mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #19333 from nextcloud/add-featured-category
Add featured category
This commit is contained in:
commit
5c650f876c
10 changed files with 8827 additions and 7 deletions
5508
apps/settings/js/vue-1.js
Normal file
5508
apps/settings/js/vue-1.js
Normal file
File diff suppressed because one or more lines are too long
1
apps/settings/js/vue-1.js.map
Normal file
1
apps/settings/js/vue-1.js.map
Normal file
File diff suppressed because one or more lines are too long
3301
apps/settings/js/vue-2.js
Normal file
3301
apps/settings/js/vue-2.js
Normal file
File diff suppressed because it is too large
Load diff
1
apps/settings/js/vue-2.js.map
Normal file
1
apps/settings/js/vue-2.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -146,6 +146,9 @@ export default {
|
|||
if (this.category === 'updates') {
|
||||
return apps.filter(app => app.update)
|
||||
}
|
||||
if (this.category === 'featured') {
|
||||
return apps.filter(app => app.level === 200)
|
||||
}
|
||||
// filter app store categories
|
||||
return apps.filter(app => {
|
||||
return app.appstore && app.category !== undefined
|
||||
|
|
@ -179,7 +182,7 @@ export default {
|
|||
return !this.useListView && !this.useBundleView
|
||||
},
|
||||
useListView() {
|
||||
return (this.category === 'installed' || this.category === 'enabled' || this.category === 'disabled' || this.category === 'updates')
|
||||
return (this.category === 'installed' || this.category === 'enabled' || this.category === 'disabled' || this.category === 'updates' || this.category === 'featured')
|
||||
},
|
||||
useBundleView() {
|
||||
return (this.category === 'app-bundles')
|
||||
|
|
|
|||
|
|
@ -63,6 +63,12 @@
|
|||
|
||||
<!-- App store categories -->
|
||||
<template v-if="settings.appstoreEnabled">
|
||||
<AppNavigationItem
|
||||
id="app-category-featured"
|
||||
:to="{ name: 'apps-category', params: { category: 'featured' } }"
|
||||
icon="icon-favorite"
|
||||
:title="t('settings', 'Featured apps')" />
|
||||
|
||||
<AppNavigationItem
|
||||
v-for="cat in categories"
|
||||
:key="'icon-category-' + cat.ident"
|
||||
|
|
|
|||
Loading…
Reference in a new issue