Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

1.4 KB
Raw Blame
import { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/router/constant'

const route: RouteRecordRaw = {
	path: '/contacts',
	redirect: '/contacts/group',
	name: 'ContactsLayout',
	component: Layout,
	meta: {
		sort: 4,
		key: 'contacts',
		title: 'Contacts',
		titleKey: 'layout.menu.contacts',
	},
	children: [
		{
			path: '/contacts',
			name: 'Contacts',
			redirect: '/contacts/group',
			component: () => import('@/views/contacts/index.vue'),
			children: [
				{
					path: 'group',
					name: 'ContactsGroup',
					meta: { title: 'Group', titleKey: 'layout.menu.group' },
					component: () => import('@/views/contacts/group/index.vue'),
				},
				{
					path: 'subscribers',
					name: 'ContactsSubscribers',
					meta: { title: 'Subscribers', titleKey: 'layout.menu.subscribers' },
					component: () => import('@/views/contacts/subscribers/index.vue'),
				},
				{
					path: 'suspend',
					name: 'ContactsSuspend',
					meta: { title: 'Suspend List', titleKey: '' },
					component: () => import('@/views/contacts/suspend/index.vue'),
				},
				{
					path: 'tags',
					name: 'ContactsTags',
					meta: { title: 'Tags', titleKey: '' },
					component: () => import('@/views/contacts/tags/index.vue'),
				},
			],
		},
		{
			path: 'settings/:id',
			name: 'ContactsSettings',
			meta: { title: 'Settings', titleKey: '' },
			component: () => import('@/views/contacts/settings/index.vue'),
		},
	],
}

export default route