menus.js
4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
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: '客户端预加载',
link: '/precache/client',
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: 'SSR自适应降级',
link: '/ssr_degrade/index',
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
}