-
Notifications
You must be signed in to change notification settings - Fork 1
/
.umirc.ts
90 lines (89 loc) · 2.03 KB
/
.umirc.ts
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
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'figx',
favicon:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
outputPath: 'docs-dist',
mode: 'site',
// more config: https://d.umijs.org/config
resolve: {
passivePreview: true,
},
navs: [
{ title: 'Guide', path: '/guide' },
{
title: 'Utilities',
path: '/utilities',
},
{
title: 'GitHub',
path: 'https://github.com/n0ruSh/figx',
},
],
menus: {
'/utilities': [
{
title: 'Node',
children: [
'isTextNode',
'isFrameNode',
'isPageNode',
'isEllipseNode',
'isComponentNode',
'isInstanceNode',
'isVisible',
'isFillableNode',
'isLocked',
'getSelectedNodes',
'isWithinInstance',
'getComponentProps',
],
},
{
title: 'Color',
children: ['toRgb', 'toHsl', 'toHex', 'isSameColor', 'getColorContrast', 'isValidColor'],
},
{
title: 'Paint',
children: [
'toSolidPaint',
'solidPaintToWebRgb',
'toImagePaint',
'isImagePaint',
'isGradientPaint',
],
},
{
title: 'Storage',
children: ['getPluginData', 'setPluginData'],
},
{
title: 'Others',
children: [
'getRandomId',
'copyToClipboard',
'copyToClipboardAsync',
'clone',
'isEqual',
'getDropPosition',
],
},
],
},
theme: {
'@c-primary': '#e78c56',
},
extraBabelPlugins: [
[
'import',
{
libraryName: '@arco-design/web-react',
libraryDirectory: 'es',
camel2DashComponentName: false,
style: true, // 样式按需加载
},
'@arco-design/web-react',
],
],
});