WIP: stats #62

Closed
Xefir wants to merge 6 commits from stats into main
5 changed files with 75 additions and 0 deletions
Showing only changes of commit f267590827 - Show all commits

View 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>

View 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>

View File

@ -23,6 +23,8 @@
<Speed /> <Speed />
<Import /> <Import />
<Export /> <Export />
<List />
<Stats />
</NcAppNavigationSettings> </NcAppNavigationSettings>
</template> </template>
</AppNavigation> </AppNavigation>
@ -35,9 +37,11 @@ import Export from '../Settings/Export.vue'
import Filters from '../Settings/Filters.vue' import Filters from '../Settings/Filters.vue'
import Import from '../Settings/Import.vue' import Import from '../Settings/Import.vue'
import Item from './Item.vue' import Item from './Item.vue'
import List from '../Settings/List.vue'
import Loading from '../Atoms/Loading.vue' import Loading from '../Atoms/Loading.vue'
import Plus from 'vue-material-design-icons/Plus.vue' import Plus from 'vue-material-design-icons/Plus.vue'
import Speed from '../Settings/Speed.vue' import Speed from '../Settings/Speed.vue'
import Stats from '../Settings/Stats.vue'
import { showError } from '@nextcloud/dialogs' import { showError } from '@nextcloud/dialogs'
export default { export default {
@ -48,12 +52,14 @@ export default {
Filters, Filters,
Import, Import,
Item, Item,
List,
Loading, Loading,
NcAppContentList, NcAppContentList,
NcAppNavigationNew, NcAppNavigationNew,
NcAppNavigationSettings, NcAppNavigationSettings,
Plus, Plus,
Speed, Speed,
Stats,
}, },
data() { data() {
return { return {

View File

@ -1,6 +1,7 @@
import Discover from './views/Discover.vue' import Discover from './views/Discover.vue'
import Feed from './views/Feed.vue' import Feed from './views/Feed.vue'
import Router from 'vue-router' import Router from 'vue-router'
import Statistics from './views/Statistics.vue'
import Vue from 'vue' import Vue from 'vue'
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
@ -13,6 +14,10 @@ const router = new Router({
path: '/', path: '/',
component: Discover, component: Discover,
}, },
{
path: '/stats',
component: Statistics,
},
{ {
path: '/:url', path: '/:url',
component: Feed, component: Feed,

18
src/views/Statistics.vue Normal file
View 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>