mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
7ec7ab18da
* docs: classify new icons * chore: code clean
243 lines
3.5 KiB
TypeScript
243 lines
3.5 KiB
TypeScript
import * as AntdIcons from '@ant-design/icons/lib/icons';
|
|
|
|
const all = Object.keys(AntdIcons)
|
|
.map((n) => n.replace(/(Outlined|Filled|TwoTone)$/, ''))
|
|
.filter((n, i, arr) => arr.indexOf(n) === i);
|
|
|
|
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',
|
|
'WhatsApp',
|
|
'Youtube',
|
|
'AlipayCircle',
|
|
'Taobao',
|
|
'Dingtalk',
|
|
'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',
|
|
'WechatWork',
|
|
'OpenAI',
|
|
'Discord',
|
|
'X',
|
|
'Bilibili',
|
|
'Pinterest',
|
|
'TikTok',
|
|
'Spotify',
|
|
'Twitch',
|
|
'Linux',
|
|
'Java',
|
|
'JavaScript',
|
|
'Python',
|
|
'Ruby',
|
|
'DotNet',
|
|
'Kubernetes',
|
|
'Docker',
|
|
'Baidu',
|
|
'HarmonyOS',
|
|
];
|
|
|
|
const datum = [...direction, ...suggestion, ...editor, ...data, ...logo];
|
|
|
|
const other = all.filter((n) => !datum.includes(n));
|
|
|
|
export const categories = {
|
|
direction,
|
|
suggestion,
|
|
editor,
|
|
data,
|
|
logo,
|
|
other,
|
|
};
|
|
|
|
export default categories;
|
|
|
|
export type Categories = typeof categories;
|
|
export type CategoriesKeys = keyof Categories;
|