2019-08-13 14:07:17 +08:00
|
|
|
import * as AntdIcons from '@ant-design/icons/lib/icons';
|
2019-05-16 17:47:50 +08:00
|
|
|
|
2019-12-27 10:23:11 +08:00
|
|
|
const all = Object.keys(AntdIcons)
|
|
|
|
.map(n => n.replace(/(Outlined|Filled|TwoTone)$/, ''))
|
|
|
|
.filter((n, i, arr) => arr.indexOf(n) === i);
|
2019-05-16 17:47:50 +08:00
|
|
|
|
2019-08-13 14:07:17 +08:00
|
|
|
const direction = [
|
|
|
|
'StepBackward',
|
|
|
|
'StepForward',
|
|
|
|
'FastBackward',
|
|
|
|
'FastForward',
|
|
|
|
'Shrink',
|
|
|
|
'ArrowsAlt',
|
|
|
|
'Down',
|
|
|
|
'Up',
|
|
|
|
'Left',
|
|
|
|
'Right',
|
|
|
|
'CaretUp',
|
|
|
|
'CaretDown',
|
|
|
|
'CaretLeft',
|
|
|
|
'CaretRight',
|
|
|
|
'UpCircle',
|
|
|
|
'DownCircle',
|
|
|
|
'LeftCircle',
|
|
|
|
'RightCircle',
|
|
|
|
'DoubleRight',
|
|
|
|
'DoubleLeft',
|
|
|
|
'VerticalLeft',
|
|
|
|
'VerticalRight',
|
|
|
|
'VerticalAlignTop',
|
|
|
|
'VerticalAlignMiddle',
|
|
|
|
'VerticalAlignBottom',
|
|
|
|
'Forward',
|
|
|
|
'Backward',
|
|
|
|
'Rollback',
|
|
|
|
'Enter',
|
|
|
|
'Retweet',
|
|
|
|
'Swap',
|
|
|
|
'SwapLeft',
|
|
|
|
'SwapRight',
|
|
|
|
'ArrowUp',
|
|
|
|
'ArrowDown',
|
|
|
|
'ArrowLeft',
|
|
|
|
'ArrowRight',
|
|
|
|
'PlayCircle',
|
|
|
|
'UpSquare',
|
|
|
|
'DownSquare',
|
|
|
|
'LeftSquare',
|
|
|
|
'RightSquare',
|
|
|
|
'Login',
|
|
|
|
'Logout',
|
|
|
|
'MenuFold',
|
|
|
|
'MenuUnfold',
|
|
|
|
'BorderBottom',
|
|
|
|
'BorderHorizontal',
|
|
|
|
'BorderInner',
|
|
|
|
'BorderOuter',
|
|
|
|
'BorderLeft',
|
|
|
|
'BorderRight',
|
|
|
|
'BorderTop',
|
|
|
|
'BorderVerticle',
|
|
|
|
'PicCenter',
|
|
|
|
'PicLeft',
|
|
|
|
'PicRight',
|
|
|
|
'RadiusBottomleft',
|
|
|
|
'RadiusBottomright',
|
|
|
|
'RadiusUpleft',
|
|
|
|
'RadiusUpright',
|
|
|
|
'Fullscreen',
|
|
|
|
'FullscreenExit',
|
|
|
|
];
|
|
|
|
|
|
|
|
const suggestion = [
|
|
|
|
'Question',
|
|
|
|
'QuestionCircle',
|
|
|
|
'Plus',
|
|
|
|
'PlusCircle',
|
|
|
|
'Pause',
|
|
|
|
'PauseCircle',
|
|
|
|
'Minus',
|
|
|
|
'MinusCircle',
|
|
|
|
'PlusSquare',
|
|
|
|
'MinusSquare',
|
|
|
|
'Info',
|
|
|
|
'InfoCircle',
|
|
|
|
'Exclamation',
|
|
|
|
'ExclamationCircle',
|
|
|
|
'Close',
|
|
|
|
'CloseCircle',
|
|
|
|
'CloseSquare',
|
|
|
|
'Check',
|
|
|
|
'CheckCircle',
|
|
|
|
'CheckSquare',
|
|
|
|
'ClockCircle',
|
|
|
|
'Warning',
|
|
|
|
'IssuesClose',
|
|
|
|
'Stop',
|
|
|
|
];
|
|
|
|
|
|
|
|
const editor = [
|
|
|
|
'Edit',
|
|
|
|
'Form',
|
|
|
|
'Copy',
|
|
|
|
'Scissor',
|
|
|
|
'Delete',
|
|
|
|
'Snippets',
|
|
|
|
'Diff',
|
|
|
|
'Highlight',
|
|
|
|
'AlignCenter',
|
|
|
|
'AlignLeft',
|
|
|
|
'AlignRight',
|
|
|
|
'BgColors',
|
|
|
|
'Bold',
|
|
|
|
'Italic',
|
|
|
|
'Underline',
|
|
|
|
'Strikethrough',
|
|
|
|
'Redo',
|
|
|
|
'Undo',
|
|
|
|
'ZoomIn',
|
|
|
|
'ZoomOut',
|
|
|
|
'FontColors',
|
|
|
|
'FontSize',
|
|
|
|
'LineHeight',
|
|
|
|
'Dash',
|
|
|
|
'SmallDash',
|
|
|
|
'SortAscending',
|
|
|
|
'SortDescending',
|
|
|
|
'Drag',
|
|
|
|
'OrderedList',
|
|
|
|
'UnorderedList',
|
|
|
|
'RadiusSetting',
|
|
|
|
'ColumnWidth',
|
|
|
|
'ColumnHeight',
|
|
|
|
];
|
|
|
|
|
|
|
|
const data = [
|
|
|
|
'AreaChart',
|
|
|
|
'PieChart',
|
|
|
|
'BarChart',
|
|
|
|
'DotChart',
|
|
|
|
'LineChart',
|
|
|
|
'RadarChart',
|
|
|
|
'HeatMap',
|
|
|
|
'Fall',
|
|
|
|
'Rise',
|
|
|
|
'Stock',
|
|
|
|
'BoxPlot',
|
|
|
|
'Fund',
|
|
|
|
'Sliders',
|
|
|
|
];
|
|
|
|
|
|
|
|
const logo = [
|
|
|
|
'Android',
|
|
|
|
'Apple',
|
|
|
|
'Windows',
|
|
|
|
'Ie',
|
|
|
|
'Chrome',
|
|
|
|
'Github',
|
|
|
|
'Aliwangwang',
|
|
|
|
'Dingding',
|
|
|
|
'WeiboSquare',
|
|
|
|
'WeiboCircle',
|
|
|
|
'TaobaoCircle',
|
|
|
|
'Html5',
|
|
|
|
'Weibo',
|
|
|
|
'Twitter',
|
|
|
|
'Wechat',
|
|
|
|
'Youtube',
|
|
|
|
'AlipayCircle',
|
|
|
|
'Taobao',
|
|
|
|
'Skype',
|
|
|
|
'Qq',
|
|
|
|
'MediumWorkmark',
|
|
|
|
'Gitlab',
|
|
|
|
'Medium',
|
|
|
|
'Linkedin',
|
|
|
|
'GooglePlus',
|
|
|
|
'Dropbox',
|
|
|
|
'Facebook',
|
|
|
|
'Codepen',
|
|
|
|
'CodeSandbox',
|
|
|
|
'CodeSandboxCircle',
|
|
|
|
'Amazon',
|
|
|
|
'Google',
|
|
|
|
'CodepenCircle',
|
|
|
|
'Alipay',
|
|
|
|
'AntDesign',
|
|
|
|
'AntCloud',
|
|
|
|
'Aliyun',
|
|
|
|
'Zhihu',
|
|
|
|
'Slack',
|
|
|
|
'SlackSquare',
|
|
|
|
'Behance',
|
|
|
|
'BehanceSquare',
|
|
|
|
'Dribbble',
|
|
|
|
'DribbbleSquare',
|
|
|
|
'Instagram',
|
|
|
|
'Yuque',
|
|
|
|
'Alibaba',
|
|
|
|
'Yahoo',
|
|
|
|
'Reddit',
|
|
|
|
'Sketch',
|
|
|
|
];
|
|
|
|
|
2019-12-27 10:23:11 +08:00
|
|
|
const datum = [...direction, ...suggestion, ...editor, ...data, ...logo];
|
|
|
|
|
2020-01-16 23:29:40 +08:00
|
|
|
const other = all.filter(n => !datum.includes(n));
|
2019-05-27 17:04:02 +08:00
|
|
|
|
2018-09-01 16:16:11 +08:00
|
|
|
export const categories = {
|
2019-08-13 14:07:17 +08:00
|
|
|
direction,
|
|
|
|
suggestion,
|
|
|
|
editor,
|
|
|
|
data,
|
|
|
|
logo,
|
|
|
|
other,
|
2018-09-01 16:16:11 +08:00
|
|
|
};
|
|
|
|
|
2019-08-14 18:21:24 +08:00
|
|
|
export default categories;
|
|
|
|
|
2019-12-27 10:23:11 +08:00
|
|
|
export type Categories = typeof categories;
|
2018-09-01 16:16:11 +08:00
|
|
|
export type CategoriesKeys = keyof Categories;
|