mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
68 lines
1.6 KiB
Vue
68 lines
1.6 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`,
|
|
},
|
|
{
|
|
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.hashtags.name'),
|
|
path: `/admin/hashtags`,
|
|
},
|
|
{
|
|
name: this.$t('admin.invites.name'),
|
|
path: `/admin/invite`,
|
|
},
|
|
// TODO implement
|
|
/* {
|
|
name: this.$t('admin.settings.name'),
|
|
path: `/admin/settings`
|
|
} */
|
|
]
|
|
},
|
|
},
|
|
}
|
|
</script>
|