feat: add list and stats settings
This commit is contained in:
parent
0868f63c93
commit
f267590827
25
src/components/Settings/List.vue
Normal file
25
src/components/Settings/List.vue
Normal file
@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<NcAppNavigationItem :href="generateUrl('/settings/user/gpoddersync')"
|
||||
:name="t('repod', 'List subscriptions')">
|
||||
<template #icon>
|
||||
<OpenInNewIcon :size="20" />
|
||||
</template>
|
||||
</NcAppNavigationItem>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { NcAppNavigationItem } from '@nextcloud/vue'
|
||||
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
export default {
|
||||
name: 'List',
|
||||
components: {
|
||||
NcAppNavigationItem,
|
||||
OpenInNewIcon,
|
||||
},
|
||||
methods: {
|
||||
generateUrl,
|
||||
},
|
||||
}
|
||||
</script>
|
21
src/components/Settings/Stats.vue
Normal file
21
src/components/Settings/Stats.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<NcAppNavigationItem :name="t('repod', 'Statistics')"
|
||||
to="/stats">
|
||||
<template #icon>
|
||||
<ChartBoxOutlineIcon :size="20" />
|
||||
</template>
|
||||
</NcAppNavigationItem>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ChartBoxOutlineIcon from 'vue-material-design-icons/ChartBoxOutline.vue'
|
||||
import { NcAppNavigationItem } from '@nextcloud/vue'
|
||||
|
||||
export default {
|
||||
name: 'Stats',
|
||||
components: {
|
||||
ChartBoxOutlineIcon,
|
||||
NcAppNavigationItem,
|
||||
},
|
||||
}
|
||||
</script>
|
@ -23,6 +23,8 @@
|
||||
<Speed />
|
||||
<Import />
|
||||
<Export />
|
||||
<List />
|
||||
<Stats />
|
||||
</NcAppNavigationSettings>
|
||||
</template>
|
||||
</AppNavigation>
|
||||
@ -35,9 +37,11 @@ import Export from '../Settings/Export.vue'
|
||||
import Filters from '../Settings/Filters.vue'
|
||||
import Import from '../Settings/Import.vue'
|
||||
import Item from './Item.vue'
|
||||
import List from '../Settings/List.vue'
|
||||
import Loading from '../Atoms/Loading.vue'
|
||||
import Plus from 'vue-material-design-icons/Plus.vue'
|
||||
import Speed from '../Settings/Speed.vue'
|
||||
import Stats from '../Settings/Stats.vue'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
|
||||
export default {
|
||||
@ -48,12 +52,14 @@ export default {
|
||||
Filters,
|
||||
Import,
|
||||
Item,
|
||||
List,
|
||||
Loading,
|
||||
NcAppContentList,
|
||||
NcAppNavigationNew,
|
||||
NcAppNavigationSettings,
|
||||
Plus,
|
||||
Speed,
|
||||
Stats,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import Discover from './views/Discover.vue'
|
||||
import Feed from './views/Feed.vue'
|
||||
import Router from 'vue-router'
|
||||
import Statistics from './views/Statistics.vue'
|
||||
import Vue from 'vue'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
@ -13,6 +14,10 @@ const router = new Router({
|
||||
path: '/',
|
||||
component: Discover,
|
||||
},
|
||||
{
|
||||
path: '/stats',
|
||||
component: Statistics,
|
||||
},
|
||||
{
|
||||
path: '/:url',
|
||||
component: Feed,
|
||||
|
18
src/views/Statistics.vue
Normal file
18
src/views/Statistics.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<AppContent>
|
||||
<Loading />
|
||||
</AppContent>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AppContent from '../components/Atoms/AppContent.vue'
|
||||
import Loading from '../components/Atoms/Loading.vue'
|
||||
|
||||
export default {
|
||||
name: 'Statistics',
|
||||
components: {
|
||||
AppContent,
|
||||
Loading,
|
||||
},
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user