65 lines
1.5 KiB
Vue

<template>
<div>
<ds-heading tag="h1">{{ $t('admin.name') }}</ds-heading>
<ds-flex gutter="small">
<ds-flex-item :width="{ base: '100%', md: '200px' }">
<ds-menu :routes="routes" :is-exact="() => true" />
</ds-flex-item>
<ds-flex-item :width="{ base: '100%', md: 1 }">
<transition name="slide-up" appear>
<nuxt-child />
</transition>
</ds-flex-item>
</ds-flex>
</div>
</template>
<script>
export default {
middleware: ['isAdmin'],
computed: {
routes() {
return [
{
name: this.$t('admin.dashboard.name'),
path: `/admin`,
},
// TODO implement
/* {
name: this.$t('admin.users.name'),
path: `/admin/users`
}, */
// TODO implement
/* {
name: this.$t('admin.organizations.name'),
path: `/admin/organizations`
}, */
// TODO implement
/* {
name: this.$t('admin.pages.name'),
path: `/admin/pages`
}, */
// TODO implement
/* {
name: this.$t('admin.notifications.name'),
path: `/admin/notifications`
}, */
{
name: this.$t('admin.categories.name'),
path: `/admin/categories`,
},
{
name: this.$t('admin.tags.name'),
path: `/admin/tags`,
},
// TODO implement
/* {
name: this.$t('admin.settings.name'),
path: `/admin/settings`
} */
]
},
},
}
</script>