Chatwoot/app/javascript/widget/router.js

52 lines
1.4 KiB
JavaScript
Raw Normal View History

import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';
2021-09-29 08:58:32 +00:00
import Unread from './views/Unread';
import Conversations from './views/Conversations';
import Chat from './views/Chat.vue';
Vue.use(Router);
export default new Router({
2021-09-29 08:58:32 +00:00
mode: 'hash',
routes: [
{
path: '/',
name: 'home',
component: Home,
},
2021-09-29 08:58:32 +00:00
{
path: '/unread',
name: 'unread',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: Unread,
},
{
path: '/campiagn',
name: 'campiagn',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: Unread,
},
{
path: '/conversations',
name: 'conversations',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: Conversations,
},
{
path: '/conversations/:conversationId',
name: 'chat',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: Chat,
},
],
});