blob: de37e675cf86a7168253274ee1103e1a9ed29da2 [file] [log] [blame]
86133aaa3f5d2025-04-20 21:33:29 +08001import * as AntdIcons from '@ant-design/icons/lib/icons';
2
3const all = Object.keys(AntdIcons)
4 .map(n => n.replace(/(Outlined|Filled|TwoTone)$/, ''))
5 .filter((n, i, arr) => arr.indexOf(n) === i);
6
7const direction = [
8 'StepBackward',
9 'StepForward',
10 'FastBackward',
11 'FastForward',
12 'Shrink',
13 'ArrowsAlt',
14 'Down',
15 'Up',
16 'Left',
17 'Right',
18 'CaretUp',
19 'CaretDown',
20 'CaretLeft',
21 'CaretRight',
22 'UpCircle',
23 'DownCircle',
24 'LeftCircle',
25 'RightCircle',
26 'DoubleRight',
27 'DoubleLeft',
28 'VerticalLeft',
29 'VerticalRight',
30 'VerticalAlignTop',
31 'VerticalAlignMiddle',
32 'VerticalAlignBottom',
33 'Forward',
34 'Backward',
35 'Rollback',
36 'Enter',
37 'Retweet',
38 'Swap',
39 'SwapLeft',
40 'SwapRight',
41 'ArrowUp',
42 'ArrowDown',
43 'ArrowLeft',
44 'ArrowRight',
45 'PlayCircle',
46 'UpSquare',
47 'DownSquare',
48 'LeftSquare',
49 'RightSquare',
50 'Login',
51 'Logout',
52 'MenuFold',
53 'MenuUnfold',
54 'BorderBottom',
55 'BorderHorizontal',
56 'BorderInner',
57 'BorderOuter',
58 'BorderLeft',
59 'BorderRight',
60 'BorderTop',
61 'BorderVerticle',
62 'PicCenter',
63 'PicLeft',
64 'PicRight',
65 'RadiusBottomleft',
66 'RadiusBottomright',
67 'RadiusUpleft',
68 'RadiusUpright',
69 'Fullscreen',
70 'FullscreenExit',
71];
72
73const suggestion = [
74 'Question',
75 'QuestionCircle',
76 'Plus',
77 'PlusCircle',
78 'Pause',
79 'PauseCircle',
80 'Minus',
81 'MinusCircle',
82 'PlusSquare',
83 'MinusSquare',
84 'Info',
85 'InfoCircle',
86 'Exclamation',
87 'ExclamationCircle',
88 'Close',
89 'CloseCircle',
90 'CloseSquare',
91 'Check',
92 'CheckCircle',
93 'CheckSquare',
94 'ClockCircle',
95 'Warning',
96 'IssuesClose',
97 'Stop',
98];
99
100const editor = [
101 'Edit',
102 'Form',
103 'Copy',
104 'Scissor',
105 'Delete',
106 'Snippets',
107 'Diff',
108 'Highlight',
109 'AlignCenter',
110 'AlignLeft',
111 'AlignRight',
112 'BgColors',
113 'Bold',
114 'Italic',
115 'Underline',
116 'Strikethrough',
117 'Redo',
118 'Undo',
119 'ZoomIn',
120 'ZoomOut',
121 'FontColors',
122 'FontSize',
123 'LineHeight',
124 'Dash',
125 'SmallDash',
126 'SortAscending',
127 'SortDescending',
128 'Drag',
129 'OrderedList',
130 'UnorderedList',
131 'RadiusSetting',
132 'ColumnWidth',
133 'ColumnHeight',
134];
135
136const data = [
137 'AreaChart',
138 'PieChart',
139 'BarChart',
140 'DotChart',
141 'LineChart',
142 'RadarChart',
143 'HeatMap',
144 'Fall',
145 'Rise',
146 'Stock',
147 'BoxPlot',
148 'Fund',
149 'Sliders',
150];
151
152const logo = [
153 'Android',
154 'Apple',
155 'Windows',
156 'Ie',
157 'Chrome',
158 'Github',
159 'Aliwangwang',
160 'Dingding',
161 'WeiboSquare',
162 'WeiboCircle',
163 'TaobaoCircle',
164 'Html5',
165 'Weibo',
166 'Twitter',
167 'Wechat',
168 'Youtube',
169 'AlipayCircle',
170 'Taobao',
171 'Skype',
172 'Qq',
173 'MediumWorkmark',
174 'Gitlab',
175 'Medium',
176 'Linkedin',
177 'GooglePlus',
178 'Dropbox',
179 'Facebook',
180 'Codepen',
181 'CodeSandbox',
182 'CodeSandboxCircle',
183 'Amazon',
184 'Google',
185 'CodepenCircle',
186 'Alipay',
187 'AntDesign',
188 'AntCloud',
189 'Aliyun',
190 'Zhihu',
191 'Slack',
192 'SlackSquare',
193 'Behance',
194 'BehanceSquare',
195 'Dribbble',
196 'DribbbleSquare',
197 'Instagram',
198 'Yuque',
199 'Alibaba',
200 'Yahoo',
201 'Reddit',
202 'Sketch',
203 'WhatsApp',
204 'Dingtalk',
205];
206
207const datum = [...direction, ...suggestion, ...editor, ...data, ...logo];
208
209const other = all.filter(n => !datum.includes(n));
210
211export const categories = {
212 direction,
213 suggestion,
214 editor,
215 data,
216 logo,
217 other,
218};
219
220export default categories;
221
222export type Categories = typeof categories;
223export type CategoriesKeys = keyof Categories;