export const settings = {
    mode: 'history',
    base: process.env.BASE_URL,
    scrollBehavior() {
        return {
            x: 0,
            y: 0
        }
    },
    routes: [{
            path: '/',
            name: 'home',
            component: () => import('@/views/Home.vue'),
            meta: {
                pageTitle: 'Home',
                breadcrumb: [{
                    text: 'Home',
                    active: true,
                }, ],
            },
        },
        {
            path: '/activityList',
            name: 'activityList',
            component: () => import('@/views/lottery/Activities/ActivityList.vue'),
            meta: {
                pageTitle: '活動列表',
                breadcrumb: [{
                    text: '活動列表',
                    active: true,
                }, ],
                requiresAuth: true,
            },
        },
        {
            path: '/activityPage/:activity_id',
            name: 'activityPage',
            component: () => import('@/views/lottery/Activities/ActivityPage.vue'),
            meta: {
                pageTitle: '活動功能頁面',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '活動功能頁面',
                        active: true,
                    },
                ],
                requiresAuth: true,
            },
        },
        {
            path: '/activityStore',
            name: 'activityStore',
            component: () => import('@/views/lottery/Activities/ActivityStore.vue'),
            meta: {
                pageTitle: '新增活動',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '新增活動',
                        active: true,
                    },
                ],
                requiresAuth: true,
            },
        },
        {
            path: '/activityUpdate/:activity_id',
            name: 'activityUpdate',
            component: () => import('@/views/lottery/Activities/ActivityUpdate.vue'),
            meta: {
                pageTitle: '編輯活動資訊',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '活動功能頁面',
                        to: '/activityPage'
                    },
                    {
                        text: '編輯活動資訊',
                        active: true,
                    },
                ],
                requiresAuth: true,
            },
        },
        {
            path: '/claim/:activity_id',
            name: 'claim',
            component: () => import('@/views/lottery/PrizeClaim.vue'),
            meta: {
                pageTitle: '兌獎',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '活動功能頁面',
                        to: '/activityPage'
                    },
                    {
                        text: '兌獎',
                        active: true,
                    },
                ],
                requiresAuth: true,
            },
        },
        {
            path: '/permission',
            name: 'permission',
            component: () => import('@/views/permission.vue'),
            meta: {
                pageTitle: '權限',
                breadcrumb: [{
                    text: '權限',
                    active: true,
                }, ],
                requiresAuth: true,

            },
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/Login.vue'),
            meta: {
                layout: 'full',
            },
        },
        {
            path: '/not-authorized',
            name: 'not-authorized',
            component: () => import('@/views/error/NotAuthorized.vue'),
            meta: {
                layout: 'full',
            },
        },
        {
            path: '/error-404',
            name: 'error-404',
            component: () => import('@/views/error/Error404.vue'),
            meta: {
                layout: 'full',
            },
        },
        {
            path: '*',
            redirect: 'error-404',
        },
        {
            path: '/draw/:activity_id',
            name: 'draw',
            component: () => import('@/views/lottery/Draw.vue'),
            meta: {
                pageTitle: 'Draw',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '活動功能頁面',
                        to: '/activityPage'
                    }, {
                        text: '抽獎',
                        active: true,
                    },
                ],
            },
        },
        {
            path: '/checkin/:activity_id',
            name: 'checkin',
            component: () => import('@/views/lottery/CheckIn.vue'),
            meta: {
                pageTitle: '報到系統',
                breadcrumb: [{
                        text: '活動列表',
                        to: '/activityList'
                    },
                    {
                        text: '活動功能頁面',
                        to: '/activityPage'
                    },
                    {
                        text: '報到系統',
                        active: true,
                    },
                ],
                requiresAuth: true,

            },
        },
    ],
}
export const _ = undefined
