mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
28 lines
536 B
TypeScript
28 lines
536 B
TypeScript
import { defineModule } from '@/modules/define';
|
|
import ActivityBrowse from './routes/browse/';
|
|
import ActivityDetail from './routes/detail/';
|
|
|
|
export default defineModule(({ i18n }) => ({
|
|
id: 'activity',
|
|
hidden: true,
|
|
name: i18n.t('activity'),
|
|
icon: 'notifications',
|
|
routes: [
|
|
{
|
|
name: 'activity-browse',
|
|
path: '/',
|
|
component: ActivityBrowse,
|
|
props: true,
|
|
children: [
|
|
{
|
|
name: 'activity-detail',
|
|
path: ':primaryKey',
|
|
components: {
|
|
detail: ActivityDetail,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}));
|