-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from AElf-devops/feature/doc-upload
feat: add icon preview
- Loading branch information
Showing
10 changed files
with
88 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,42 @@ | ||
import * as AntdWeb3Icons from '@aelf-design/internal-icons'; | ||
import * as AntdIcons from '@ant-design/icons/lib/icons'; | ||
|
||
const all = Object.keys(AntdWeb3Icons) | ||
.map((n) => n.replace(/(CircleColorful|Colorful|Filled|CircleFilled)$/, '')) | ||
const all = Object.keys(AntdIcons) | ||
.map((n) => n.replace(/(Outlined|Filled|TwoTone)$/, '')) | ||
.filter((n, i, arr) => arr.indexOf(n) === i); | ||
|
||
const chain = [ | ||
'Arbitrum', | ||
'Bitcoin', | ||
'BSC', | ||
'Ethereum', | ||
'Optimism', | ||
'Polygon', | ||
'Sui', | ||
'Tron', | ||
'Base', | ||
'Avalanche', | ||
'Fantom', | ||
'Celo', | ||
'Cronos', | ||
'Moonbeam', | ||
'Solana', | ||
]; | ||
|
||
const token = ['DAI', 'WBTC', 'AAVE', 'USDT']; | ||
|
||
const tool = [ | ||
'CoinbaseWallet', | ||
'Etherscan', | ||
'MetaMask', | ||
'WalletConnect', | ||
'TokenPocket', | ||
'Safeheron', | ||
'Uniswap', | ||
'PancakeSwap', | ||
'SushiSwap', | ||
'Phantom', | ||
'OkxWallet', | ||
]; | ||
|
||
const datum = [...chain, ...token, ...tool]; | ||
// 方向指示类图标 | ||
const direction = ['CircleCloseIcon', 'ClearIcon']; | ||
|
||
// 提示建议类图标 | ||
const suggestion: string[] = []; | ||
|
||
// 交互按钮图标 | ||
const interaction: string[] = []; | ||
|
||
// 聊天图标 | ||
const chat: string[] = []; | ||
|
||
const datum = [...direction, ...suggestion, ...interaction, ...chat]; | ||
|
||
const other = all.filter((n) => !datum.includes(n)); | ||
|
||
export const categories = { | ||
chain, | ||
token, | ||
tool, | ||
direction, | ||
suggestion, | ||
interaction, | ||
chat, | ||
other, | ||
}; | ||
|
||
export const CategoryNames = { | ||
direction: '方向指示类图标', | ||
suggestion: '提示建议类图标', | ||
interaction: '交互按钮图标', | ||
chat: '聊天图标', | ||
other: '其他图标', | ||
}; | ||
|
||
export default categories; | ||
|
||
export type Categories = typeof categories; | ||
export type CategoriesKeys = keyof Categories; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
nav: Components | ||
group: | ||
title: Display | ||
order: 3 | ||
--- | ||
|
||
## 图标列表 | ||
|
||
<IconSearch></IconSearch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const Icon: React.FC = () => { | ||
return null; | ||
}; | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters