Add featured category

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-02-06 21:41:21 +01:00
parent fc18116715
commit d0e3255545
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0
6 changed files with 32672 additions and 74 deletions

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

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"