menus.js 3.87 KB
const normalMenus = [
    {
        title: 'Dashboard',
        link: '/',
        fa: 'fa-home',
        icon: 'dashboard',
        isClassic: true
    },
    {
        title: '缓存管理',
        fa: 'fa-history',
        icon: 'cloud',
        subMenus: [{
            title: 'PageCahe清理',
            link: '/page_cache/query',
            isClassic: true
        }, {
            title: 'CDN清理',
            link: '/cdn_cache/query',
            isClassic: true
        }, {
            title: '商品清理',
            link: '/product_cache/query',
            isClassic: true
        }, {
            title: 'Memcached',
            link: '/api_cache',
            isClassic: true
        }]
    },
    {
        title: '降级配置',
        fa: 'fa-hand-o-down',
        icon: 'api',
        link: '/degrade',
        isClassic: true
    },
    {
        title: '滥用防护',
        fa: 'fa-shield',
        icon: 'safety',
        subMenus: [{
            title: 'IP黑名单',
            link: '/crawler_black/ip',
            isClassic: true
        }, {
            title: 'IP白名单',
            link: '/crawler_white/ip',
            isClassic: true
        }, {
            title: 'UA黑名单',
            link: '/crawler_black/ua',
            isClassic: true
        }, {
            title: 'UA白名单',
            link: '/crawler_white/ua',
            isClassic: true
        }, {
            title: '风险控制',
            link: '/risk_management/risk_management',
            isClassic: true
        }]
    },
    {
        title: '静态资源',
        fa: 'fa-list',
        icon: 'upload',
        subMenus: [{
            title: '活动上传',
            link: '/files/page',
            isClassic: true
        }, {
            title: '单文件上传',
            link: '/files/single-file',
            isClassic: true
        }]
    },
    {
        title: 'SEO管理',
        fa: 'fa-list',
        icon: 'search',
        subMenus: [{
            title: '词根管理',
            link: '/seo/rootwords',
            isClassic: true
        }, {
            title: '关键词管理',
            link: '/keywords/expand',
            isClassic: true
        }, {
            title: '热门关键词管理',
            link: '/seo/hot-keyword'
        }, {
            title: 'TDK管理',
            link: '/seo/tdk',
            isClassic: true
        }, {
            title: '品类描述管理',
            link: '/seo/category',
            isClassic: true
        }, {
            title: '友链管理',
            link: '/seo/friendlink',
            isClassic: true
        }, {
            title: '定时任务管理',
            link: '/seo/task',
            isClassic: true
        }]
    },
    {
        title: 'WebAPM 管理平台',
        fa: 'fa-list',
        icon: 'area-chart',
        subMenus: [{
            title: 'WebAPM 管理平台',
            link: 'http://webapm.yohops.com',
            isClassic: true
        }]
    }
]

const masterMenus = [
    {
        title: '系统管理',
        fa: 'fa-gear',
        icon: 'setting',
        subMenus: [{
            title: '服务器配置',
            link: '/servers/setting',
            isClassic: true
        }, {
            title: '用户管理',
            link: '/users/setting',
            isClassic: true
        }, {
            title: '操作记录',
            link: '/operation/log',
            isClassic: true
        }]
    }
]

const businessMenus = [
    {
        title: 'Dashboard',
        link: '/',
        icon: 'ios-home',
        isClassic: true
    },
    {
        title: 'CDN清理',
        link: '/cdn_cache/query',
        icon: 'ios-home',
        isClassic: true
    },
    {
        title: '活动上传',
        link: '/files/page',
        icon: 'ios-home',
        isClassic: true
    }
]

module.exports = {
    normalMenus,
    masterMenus,
    businessMenus
}