ant-design/site/theme/template/IconDisplay/fields.ts

217 lines
3.6 KiB
TypeScript
Raw Normal View History

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',
'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',
'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',
'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
],
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',
'unordered-list',
2018-12-07 20:02:01 +08:00
'radius-setting',
'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',
'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',
'reddit',
'sketch',
2018-09-01 16:16:11 +08:00
],
};
export interface Categories {
all: string[];
2018-09-01 16:16:11 +08:00
direction: string[];
suggestion: string[];
logo: string[];
data: string[];
editor: string[];
other?: string[];
2018-09-01 16:16:11 +08:00
}
export type CategoriesKeys = keyof Categories;