UNPKG

1.32 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
8
9// <!-- auto generated navs start -->
10var autoGenHeaderNavs = [];
11
12var autoGenAsideNavs = [];
13
14// <!-- auto generated navs end -->
15
16var customHeaderNavs = [{
17 text: '首页',
18 to: '/',
19 icon: 'home'
20}, {
21 text: '反馈',
22 to: 'https://github.com/alibaba/ice',
23 external: true,
24 newWindow: true,
25 icon: 'message'
26}, {
27 text: '帮助',
28 to: 'https://alibaba.github.io/ice',
29 external: true,
30 newWindow: true,
31 icon: 'bangzhu'
32}];
33
34var customAsideNavs = [{
35 text: '首页',
36 to: '/',
37 icon: 'home'
38}, {
39 text: '用户管理',
40 to: '/user',
41 icon: 'yonghu'
42}, {
43 text: '系统设置',
44 to: '/setting',
45 icon: 'shezhi',
46 children: [{
47 text: '基本设置',
48 to: '/base'
49 }, {
50 text: '评论设置',
51 to: '/comment'
52 }]
53}];
54
55function transform(navs) {
56 // custom logical
57 return [].concat(_toConsumableArray(navs));
58}
59
60var headerNavs = exports.headerNavs = transform([].concat(autoGenHeaderNavs, customHeaderNavs));
61
62var asideNavs = exports.asideNavs = transform([].concat(autoGenAsideNavs, customAsideNavs));
\No newline at end of file