mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sojan <sojan@pepalo.com>
49 lines
1.1 KiB
JavaScript
Executable File
49 lines
1.1 KiB
JavaScript
Executable File
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
import ViewWithHeader from './components/layouts/ViewWithHeader.vue';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
mode: 'hash',
|
|
routes: [
|
|
{
|
|
path: '/unread-messages',
|
|
name: 'unread-messages',
|
|
component: () => import('./views/UnreadMessages.vue'),
|
|
},
|
|
{
|
|
path: '/campaigns',
|
|
name: 'campaigns',
|
|
component: () => import('./views/Campaigns.vue'),
|
|
},
|
|
{
|
|
path: '/',
|
|
component: ViewWithHeader,
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'home',
|
|
component: () => import('./views/Home.vue'),
|
|
},
|
|
{
|
|
path: '/prechat-form',
|
|
name: 'prechat-form',
|
|
component: () => import('./views/PreChatForm.vue'),
|
|
},
|
|
{
|
|
path: '/messages',
|
|
name: 'messages',
|
|
component: () => import('./views/Messages.vue'),
|
|
},
|
|
{
|
|
path: '/article',
|
|
name: 'article-viewer',
|
|
props: true,
|
|
component: () => import('./views/ArticleViewer.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|