-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathnav.js
236 lines (231 loc) · 6.99 KB
/
nav.js
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
function getCnNavs() {
const base = [
{
text: '案例中心',
activeMatch: `^/(sqldemo|sqlfunction|sqlerror|searchdemo|metrics|visulization|dataprocessdemo|oscompatibledemo|spldataprocessdemo)/`,
items: [
{
items: [
{ text: 'SQL分析案例', link: '/sqldemo/home' },
{ text: 'SPL案例(加工新版等)', link: '/spldataprocessdemo/home' },
{ text: 'SQL函数案例', link: '/sqlfunction/home' },
{ text: 'SQL错误中心', link: '/sqlerror/home' },
{ text: '定时SQL案例', link: '/scheduledsql/home' },
{ text: '查询案例', link: '/searchdemo/query/search_with_index' },
{ text: '时序库查询案例', link: '/metrics/home' },
{ text: '可视化案例', link: '/visulization/home' },
{ text: '数据采集案例', link: '/dataaccess/home' },
{ text: '加工(旧版)案例', link: '/dataprocessdemo/home' },
{ text: '开源兼容', link: '/oscompatibledemo/home' },
{ text: '告警规则案例', link: '/alert/home' },
{ text: 'CloudLen案例', link: '/cloudlen/home' },
{ text: '智能运维案例', link: '/intelligentom/home' },
{ text: '审计与安全案例', link: '/billandsecurity/home' },
{ text: 'ARMS 应用监控', link: '/arms/appMonitor/home' },
{ text: 'ARMS 调用链分析', link: '/arms/callAnalysis/home' },
{ text: 'ARMS 用户体验监控', link: '/arms/user/home' },
{ text: 'ARMS 性能剖析', link: '/arms/performance/home' },
],
},
],
},
{
text: '常用工具',
activeMatch: `^/(tools)/`,
items: [
{
items: [
{
text: '同步索引配置',
link: '/tools/syncIndexConfig',
},
{
text: '同步定时 SQL',
link: '/tools/syncScheduleSql',
},
{
text: '批量更新定时 SQL',
link: '/tools/updateScheduleSqlConfig',
},
],
},
],
},
{
text: '产品动态',
link: 'https://help.aliyun.com/zh/sls/product-overview/release-notes',
},
{
text: '招聘',
activeMatch: `^/(jobs)/`,
items: [
{
items: [
{
text: '可视化研发工程师',
link: '/jobs/front',
},
{
text: '2025春招实习',
link: '/jobs/2025intern',
},
],
},
],
},
{
text: '链接',
items: [
{
text: 'Playground',
items: [
{
text: '日志服务 Playground',
link: 'https://sls.aliyun.com/doc/playground/demo.html',
},
{
text: 'ARMS Playground',
link: 'https://sls.aliyun.com/doc/playground/armsdemo.html',
},
],
},
{
text: '控制台',
items: [
{
text: '日志服务',
link: 'https://sls.console.aliyun.com/',
},
{
text: 'ARMS',
link: 'https://arms.console.aliyun.com/',
},
{
text: '云监控',
link: 'https://cloudmonitornext.console.aliyun.com/',
},
],
},
{
text: '其他链接',
items: [
{
text: '日志服务文档',
link: 'https://help.aliyun.com/document_detail/48869.html',
},
],
},
],
},
]
base.push({
text: '如何贡献',
activeMatch: `^/(dev)/`,
items: [
{
items: [
{ text: '环境准备', link: '/dev/env' },
{ text: '文档样例', link: '/dev/' },
],
},
],
})
return base
}
function getEnNavs() {
const base = [
{
text: 'Demo Center',
activeMatch: `^/(sqldemo|sqlfunction|sqlerror|searchdemo|metrics|visulization|dataprocessdemo|oscompatibledemo|spldataprocessdemo)/`,
items: [
{
items: [
{ text: 'SQL Analysis Case', link: '/en/sqldemo/home' },
// { text: 'SPL数据处理案例', link: '/en/spldataprocessdemo/home' },
{ text: 'SQL functions', link: '/en/sqlfunction/home' },
{ text: 'SQL error center', link: '/en/sqlerror/home' },
{ text: 'Scheduled SQL', link: '/en/scheduledsql/home' },
{ text: 'Query cases', link: '/en/searchdemo/query/search_with_index' },
{ text: 'Metricstore query cases', link: '/en/metrics/home' },
// { text: '可视化案例', link: '/en/visulization/home' },
{ text: 'Data access cases', link: '/en/dataaccess/home' },
{ text: 'Data transformation cases', link: '/en/dataprocessdemo/home' },
{ text: 'Open source compatibility', link: '/en/oscompatibledemo/home' },
{ text: 'CloudLen cases', link: '/en/cloudlen/home' },
{ text: 'Demos for intelligent O&M cases', link: '/en/intelligentom/home' },
// { text: '审计与安全案例', link: '/en/billandsecurity/home' },
],
},
],
},
{
text: 'Common tools',
activeMatch: `^/en/(tools)/`,
items: [
{
items: [
{
text: 'Synchronizes index configurations',
link: '/en/tools/syncIndexConfig',
},
{
text: 'Synchronizes a scheduled SQL task',
link: '/en/tools/syncScheduleSql',
},
{
text: 'Updates multiple scheduled SQL tasks',
link: '/en/tools/updateScheduleSqlConfig',
},
],
},
],
},
{
text: 'Links',
items: [
{
text: 'Playground',
items: [
{
text: 'SLS Playground',
link: 'https://sls.aliyun.com/doc/en/playground/demo.html',
},
{
text: 'ARMS Playground',
link: 'https://sls.aliyun.com/doc/en/playground/armsdemo.html',
},
],
},
{
text: 'Console',
items: [
{
text: 'SLS',
link: 'https://sls.console.aliyun.com/',
},
{
text: 'ARMS',
link: 'https://arms.console.aliyun.com/',
},
{
text: 'CloudMonitor',
link: 'https://cloudmonitornext.console.aliyun.com/',
},
],
},
{
text: 'Others',
items: [
{
text: 'Documents',
link: 'https://help.aliyun.com/document_detail/48869.html',
},
],
},
],
},
]
return base
}
exports.getCnNavs = getCnNavs
exports.getEnNavs = getEnNavs