Merge pull request #19333 from nextcloud/add-featured-category

Add featured category
This commit is contained in:
Roeland Jago Douma 2020-02-08 10:20:50 +01:00 committed by GitHub
commit 5c650f876c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 8827 additions and 7 deletions

5508
apps/settings/js/vue-1.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3301
apps/settings/js/vue-2.js Normal file

File diff suppressed because it is too large Load Diff

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

View File

@ -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')

View File

@ -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"