2019-05-16 17:47:50 +08:00
|
|
|
import manifest from '@ant-design/icons/lib/manifest';
|
|
|
|
|
|
|
|
let allIcons: string[] = [];
|
|
|
|
Object.keys(manifest).forEach(theme => {
|
|
|
|
allIcons = [...allIcons, ...(manifest as any)[theme]];
|
|
|
|
});
|
|
|
|
|
2018-09-01 16:16:11 +08:00
|
|
|
export const categories = {
|
2019-05-16 17:47:50 +08:00
|
|
|
all: [...new Set(allIcons)],
|
2018-09-01 16:16:11 +08:00
|
|
|
direction: [
|
2018-12-07 20:02:01 +08:00
|
|
|
'step-backward',
|
|
|
|
'step-forward',
|
|
|
|
'fast-backward',
|
|
|
|
'fast-forward',
|
|
|
|
'shrink',
|
|
|
|
'arrows-alt',
|
|
|
|
'down',
|
|
|
|
'up',
|
|
|
|
'left',
|
|
|
|
'right',
|
|
|
|
'caret-up',
|
|
|
|
'caret-down',
|
|
|
|
'caret-left',
|
|
|
|
'caret-right',
|
|
|
|
'up-circle',
|
|
|
|
'down-circle',
|
|
|
|
'left-circle',
|
|
|
|
'right-circle',
|
|
|
|
'double-right',
|
|
|
|
'double-left',
|
|
|
|
'vertical-left',
|
|
|
|
'vertical-right',
|
2019-05-07 23:54:08 +08:00
|
|
|
'vertical-align-top',
|
|
|
|
'vertical-align-middle',
|
|
|
|
'vertical-align-bottom',
|
2018-12-07 20:02:01 +08:00
|
|
|
'forward',
|
|
|
|
'backward',
|
|
|
|
'rollback',
|
|
|
|
'enter',
|
|
|
|
'retweet',
|
|
|
|
'swap',
|
|
|
|
'swap-left',
|
|
|
|
'swap-right',
|
|
|
|
'arrow-up',
|
|
|
|
'arrow-down',
|
|
|
|
'arrow-left',
|
|
|
|
'arrow-right',
|
|
|
|
'play-circle',
|
|
|
|
'up-square',
|
|
|
|
'down-square',
|
|
|
|
'left-square',
|
|
|
|
'right-square',
|
|
|
|
'login',
|
|
|
|
'logout',
|
|
|
|
'menu-fold',
|
|
|
|
'menu-unfold',
|
|
|
|
'border-bottom',
|
|
|
|
'border-horizontal',
|
|
|
|
'border-inner',
|
2019-05-07 23:54:08 +08:00
|
|
|
'border-outer',
|
2018-12-07 20:02:01 +08:00
|
|
|
'border-left',
|
|
|
|
'border-right',
|
|
|
|
'border-top',
|
|
|
|
'border-verticle',
|
|
|
|
'pic-center',
|
|
|
|
'pic-left',
|
|
|
|
'pic-right',
|
|
|
|
'radius-bottomleft',
|
|
|
|
'radius-bottomright',
|
|
|
|
'radius-upleft',
|
2019-02-22 15:54:25 +08:00
|
|
|
'radius-upright',
|
2018-12-07 20:02:01 +08:00
|
|
|
'fullscreen',
|
|
|
|
'fullscreen-exit',
|
2018-09-01 16:16:11 +08:00
|
|
|
],
|
|
|
|
suggestion: [
|
2018-12-07 20:02:01 +08:00
|
|
|
'question',
|
|
|
|
'question-circle',
|
|
|
|
'plus',
|
|
|
|
'plus-circle',
|
|
|
|
'pause',
|
|
|
|
'pause-circle',
|
|
|
|
'minus',
|
|
|
|
'minus-circle',
|
|
|
|
'plus-square',
|
|
|
|
'minus-square',
|
|
|
|
'info',
|
|
|
|
'info-circle',
|
|
|
|
'exclamation',
|
|
|
|
'exclamation-circle',
|
|
|
|
'close',
|
|
|
|
'close-circle',
|
|
|
|
'close-square',
|
|
|
|
'check',
|
|
|
|
'check-circle',
|
2018-09-01 16:16:11 +08:00
|
|
|
'check-square',
|
2018-12-07 20:02:01 +08:00
|
|
|
'clock-circle',
|
|
|
|
'warning',
|
|
|
|
'issues-close',
|
|
|
|
'stop',
|
2018-09-02 16:58:38 +08:00
|
|
|
],
|
2019-05-07 23:54:08 +08:00
|
|
|
editor: [
|
2018-12-07 20:02:01 +08:00
|
|
|
'edit',
|
|
|
|
'form',
|
|
|
|
'copy',
|
|
|
|
'scissor',
|
|
|
|
'delete',
|
|
|
|
'snippets',
|
|
|
|
'diff',
|
|
|
|
'highlight',
|
|
|
|
'align-center',
|
|
|
|
'align-left',
|
|
|
|
'align-right',
|
|
|
|
'bg-colors',
|
|
|
|
'bold',
|
|
|
|
'italic',
|
|
|
|
'underline',
|
|
|
|
'strikethrough',
|
|
|
|
'redo',
|
|
|
|
'undo',
|
|
|
|
'zoom-in',
|
|
|
|
'zoom-out',
|
|
|
|
'font-colors',
|
|
|
|
'font-size',
|
|
|
|
'line-height',
|
|
|
|
'colum-height',
|
|
|
|
'colum-width',
|
|
|
|
'dash',
|
|
|
|
'small-dash',
|
|
|
|
'sort-ascending',
|
|
|
|
'sort-descending',
|
|
|
|
'drag',
|
|
|
|
'ordered-list',
|
2019-05-07 23:54:08 +08:00
|
|
|
'unordered-list',
|
2018-12-07 20:02:01 +08:00
|
|
|
'radius-setting',
|
2019-05-07 23:54:08 +08:00
|
|
|
'column-width',
|
2018-09-02 16:58:38 +08:00
|
|
|
],
|
|
|
|
data: [
|
2018-12-07 20:02:01 +08:00
|
|
|
'area-chart',
|
|
|
|
'pie-chart',
|
|
|
|
'bar-chart',
|
|
|
|
'dot-chart',
|
|
|
|
'line-chart',
|
|
|
|
'radar-chart',
|
|
|
|
'heat-map',
|
|
|
|
'fall',
|
|
|
|
'rise',
|
|
|
|
'stock',
|
|
|
|
'box-plot',
|
|
|
|
'fund',
|
2018-09-02 16:58:38 +08:00
|
|
|
'sliders',
|
2018-09-01 16:16:11 +08:00
|
|
|
],
|
|
|
|
logo: [
|
2018-12-07 20:02:01 +08:00
|
|
|
'android',
|
|
|
|
'apple',
|
|
|
|
'windows',
|
|
|
|
'ie',
|
|
|
|
'chrome',
|
|
|
|
'github',
|
|
|
|
'aliwangwang',
|
2018-09-01 16:16:11 +08:00
|
|
|
'dingding',
|
2018-12-07 20:02:01 +08:00
|
|
|
'weibo-square',
|
|
|
|
'weibo-circle',
|
|
|
|
'taobao-circle',
|
|
|
|
'html5',
|
|
|
|
'weibo',
|
|
|
|
'twitter',
|
|
|
|
'wechat',
|
|
|
|
'youtube',
|
|
|
|
'alipay-circle',
|
|
|
|
'taobao',
|
|
|
|
'skype',
|
|
|
|
'qq',
|
|
|
|
'medium-workmark',
|
|
|
|
'gitlab',
|
|
|
|
'medium',
|
|
|
|
'linkedin',
|
|
|
|
'google-plus',
|
|
|
|
'dropbox',
|
|
|
|
'facebook',
|
|
|
|
'codepen',
|
|
|
|
'code-sandbox',
|
|
|
|
'code-sandbox-circle',
|
|
|
|
'amazon',
|
|
|
|
'google',
|
|
|
|
'codepen-circle',
|
|
|
|
'alipay',
|
|
|
|
'ant-design',
|
2019-05-07 23:54:08 +08:00
|
|
|
'ant-cloud',
|
2018-12-07 20:02:01 +08:00
|
|
|
'aliyun',
|
|
|
|
'zhihu',
|
|
|
|
'slack',
|
|
|
|
'slack-square',
|
|
|
|
'behance',
|
|
|
|
'behance-square',
|
|
|
|
'dribbble',
|
|
|
|
'dribbble-square',
|
|
|
|
'instagram',
|
|
|
|
'yuque',
|
|
|
|
'alibaba',
|
|
|
|
'yahoo',
|
2019-05-07 23:54:08 +08:00
|
|
|
'reddit',
|
|
|
|
'sketch',
|
2018-09-01 16:16:11 +08:00
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface Categories {
|
2019-05-07 23:54:08 +08:00
|
|
|
all: string[];
|
2018-09-01 16:16:11 +08:00
|
|
|
direction: string[];
|
|
|
|
suggestion: string[];
|
|
|
|
logo: string[];
|
2019-05-07 23:54:08 +08:00
|
|
|
data: string[];
|
|
|
|
editor: string[];
|
|
|
|
other?: string[];
|
2018-09-01 16:16:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export type CategoriesKeys = keyof Categories;
|