2019-10-29 07:20:54 +00:00
|
|
|
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';
|
2019-10-29 07:20:54 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2021-09-29 08:58:32 +00:00
|
|
|
mode: 'hash',
|
2019-10-29 07:20:54 +00:00
|
|
|
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,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
],
|
|
|
|
});
|