mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
demo: xsgames.co/randomusers => dicebear.com (#46630)
This commit is contained in:
parent
55439cee71
commit
b06e6152bd
@ -52,7 +52,7 @@ describe('Avatar Render', () => {
|
||||
|
||||
it('should handle onError correctly', () => {
|
||||
const LOAD_FAILURE_SRC = 'http://error.url/';
|
||||
const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel';
|
||||
const LOAD_SUCCESS_SRC = 'https://api.dicebear.com/7.x/pixel-art/svg';
|
||||
const Foo: React.FC = () => {
|
||||
const [avatarSrc, setAvatarSrc] = useState<typeof LOAD_FAILURE_SRC | typeof LOAD_SUCCESS_SRC>(
|
||||
LOAD_FAILURE_SRC,
|
||||
@ -74,7 +74,7 @@ describe('Avatar Render', () => {
|
||||
|
||||
it('should show image on success after a failure state', () => {
|
||||
const LOAD_FAILURE_SRC = 'http://error.url';
|
||||
const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel';
|
||||
const LOAD_SUCCESS_SRC = 'https://api.dicebear.com/7.x/pixel-art/svg';
|
||||
|
||||
const div = global.document.createElement('div');
|
||||
global.document.body.appendChild(div);
|
||||
@ -166,7 +166,7 @@ describe('Avatar Render', () => {
|
||||
});
|
||||
|
||||
it('should exist crossorigin attribute', () => {
|
||||
const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel';
|
||||
const LOAD_SUCCESS_SRC = 'https://api.dicebear.com/7.x/pixel-art/svg';
|
||||
const crossOrigin = 'anonymous';
|
||||
const { container } = render(
|
||||
<Avatar src={LOAD_SUCCESS_SRC} crossOrigin={crossOrigin}>
|
||||
@ -178,7 +178,7 @@ describe('Avatar Render', () => {
|
||||
});
|
||||
|
||||
it('should not exist crossorigin attribute', () => {
|
||||
const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel';
|
||||
const LOAD_SUCCESS_SRC = 'https://api.dicebear.com/7.x/pixel-art/svg';
|
||||
const { container } = render(<Avatar src={LOAD_SUCCESS_SRC}>crossorigin</Avatar>);
|
||||
expect(container.querySelector('img')?.crossOrigin).toBeFalsy();
|
||||
expect(container.querySelector('img')?.crossOrigin).toEqual('');
|
||||
|
@ -140,7 +140,7 @@ exports[`Avatar Render should handle onError correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel"
|
||||
src="https://api.dicebear.com/7.x/pixel-art/svg"
|
||||
/>
|
||||
</span>
|
||||
`;
|
||||
@ -163,7 +163,7 @@ exports[`Avatar Render should show image on success after a failure state 2`] =
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel"
|
||||
src="https://api.dicebear.com/7.x/pixel-art/svg"
|
||||
/>
|
||||
</span>
|
||||
`;
|
||||
|
@ -370,7 +370,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
@ -656,7 +656,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
<a
|
||||
@ -753,7 +753,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
@ -879,7 +879,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
|
@ -366,7 +366,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
@ -557,7 +557,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
<a
|
||||
@ -635,7 +635,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
@ -672,7 +672,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
|
@ -29,7 +29,7 @@ const App: React.FC = () => (
|
||||
</Space>
|
||||
<Space>
|
||||
<Avatar.Group maxCount={2} maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>
|
||||
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" />
|
||||
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=2" />
|
||||
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
||||
<Tooltip title="Ant User" placement="top">
|
||||
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
||||
|
@ -5,7 +5,7 @@ import { Avatar, Divider, Tooltip } from 'antd';
|
||||
const App: React.FC = () => (
|
||||
<>
|
||||
<Avatar.Group>
|
||||
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1" />
|
||||
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=1" />
|
||||
<a href="https://ant.design">
|
||||
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
||||
</a>
|
||||
@ -16,7 +16,7 @@ const App: React.FC = () => (
|
||||
</Avatar.Group>
|
||||
<Divider />
|
||||
<Avatar.Group maxCount={2} maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>
|
||||
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" />
|
||||
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=2" />
|
||||
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
||||
<Tooltip title="Ant User" placement="top">
|
||||
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
||||
@ -29,7 +29,7 @@ const App: React.FC = () => (
|
||||
size="large"
|
||||
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }}
|
||||
>
|
||||
<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3" />
|
||||
<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=3" />
|
||||
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
|
||||
<Tooltip title="Ant User" placement="top">
|
||||
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
||||
|
@ -16,7 +16,7 @@ const App: React.FC = () => {
|
||||
<Switch checked={!loading} onChange={onChange} />
|
||||
<Card style={{ width: 300, marginTop: 16 }} loading={loading}>
|
||||
<Meta
|
||||
avatar={<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1" />}
|
||||
avatar={<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=1" />}
|
||||
title="Card title"
|
||||
description="This is the description"
|
||||
/>
|
||||
@ -31,7 +31,7 @@ const App: React.FC = () => {
|
||||
>
|
||||
<Skeleton loading={loading} avatar active>
|
||||
<Meta
|
||||
avatar={<Avatar src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2" />}
|
||||
avatar={<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=2" />}
|
||||
title="Card title"
|
||||
description="This is the description"
|
||||
/>
|
||||
|
@ -26,7 +26,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -63,7 +63,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -100,7 +100,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -137,7 +137,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -436,7 +436,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -473,7 +473,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -510,7 +510,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -547,7 +547,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -610,7 +610,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -647,7 +647,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -684,7 +684,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -721,7 +721,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2023,7 +2023,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2060,7 +2060,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2097,7 +2097,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2134,7 +2134,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2748,7 +2748,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`]
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2911,7 +2911,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`]
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -3074,7 +3074,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`]
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -26,7 +26,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -63,7 +63,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -100,7 +100,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -137,7 +137,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -439,7 +439,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -476,7 +476,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -513,7 +513,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -550,7 +550,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -613,7 +613,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -650,7 +650,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -687,7 +687,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -724,7 +724,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2016,7 +2016,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2053,7 +2053,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2090,7 +2090,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2127,7 +2127,7 @@ Array [
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2728,7 +2728,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2891,7 +2891,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -3054,7 +3054,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@ const App: React.FC = () => (
|
||||
renderItem={(item, index) => (
|
||||
<List.Item>
|
||||
<List.Item.Meta
|
||||
avatar={<Avatar src={`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${index}`} />}
|
||||
avatar={<Avatar src={`https://api.dicebear.com/7.x/miniavs/svg?seed=${index}`} />}
|
||||
title={<a href="https://ant.design">{item.title}</a>}
|
||||
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
||||
/>
|
||||
|
@ -80,9 +80,7 @@ const App: React.FC = () => (
|
||||
renderItem={(item, index) => (
|
||||
<List.Item>
|
||||
<List.Item.Meta
|
||||
avatar={
|
||||
<Avatar src={`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${index}`} />
|
||||
}
|
||||
avatar={<Avatar src={`https://api.dicebear.com/7.x/miniavs/svg?seed=${index}`} />}
|
||||
title={<a href="https://ant.design">{item.title}</a>}
|
||||
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
||||
/>
|
||||
@ -96,9 +94,7 @@ const App: React.FC = () => (
|
||||
renderItem={(item, index) => (
|
||||
<List.Item>
|
||||
<List.Item.Meta
|
||||
avatar={
|
||||
<Avatar src={`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${index}`} />
|
||||
}
|
||||
avatar={<Avatar src={`https://api.dicebear.com/7.x/miniavs/svg?seed=${index}`} />}
|
||||
title={<a href="https://ant.design">{item.title}</a>}
|
||||
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
||||
/>
|
||||
|
@ -70,9 +70,7 @@ const App: React.FC = () => {
|
||||
renderItem={(item, index) => (
|
||||
<List.Item>
|
||||
<List.Item.Meta
|
||||
avatar={
|
||||
<Avatar src={`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${index}`} />
|
||||
}
|
||||
avatar={<Avatar src={`https://api.dicebear.com/7.x/miniavs/svg?seed=${index}`} />}
|
||||
title={<a href="https://ant.design">{item.title}</a>}
|
||||
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
||||
/>
|
||||
|
@ -5,7 +5,7 @@ import { Avatar, List, Space } from 'antd';
|
||||
const data = Array.from({ length: 23 }).map((_, i) => ({
|
||||
href: 'https://ant.design',
|
||||
title: `ant design part ${i}`,
|
||||
avatar: `https://xsgames.co/randomusers/avatar.php?g=pixel&key=${i}`,
|
||||
avatar: `https://api.dicebear.com/7.x/miniavs/svg?seed=${i}`,
|
||||
description:
|
||||
'Ant Design, a design language for background applications, is refined by Ant UED Team.',
|
||||
content:
|
||||
|
@ -11,7 +11,7 @@ interface IconTextProps {
|
||||
const listData = Array.from({ length: 3 }).map((_, i) => ({
|
||||
href: 'https://ant.design',
|
||||
title: `ant design part ${i + 1}`,
|
||||
avatar: `https://xsgames.co/randomusers/avatar.php?g=pixel&key=${i}`,
|
||||
avatar: `https://api.dicebear.com/7.x/miniavs/svg?seed=${i}`,
|
||||
description:
|
||||
'Ant Design, a design language for background applications, is refined by Ant UED Team.',
|
||||
content:
|
||||
|
@ -1573,7 +1573,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] =
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -1780,7 +1780,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] =
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -1987,7 +1987,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] =
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -2194,7 +2194,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] =
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -1463,7 +1463,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=0"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=0"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -1613,7 +1613,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=1"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -1763,7 +1763,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=2"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@ -1913,7 +1913,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = `
|
||||
class="ant-avatar ant-avatar-circle ant-avatar-image"
|
||||
>
|
||||
<img
|
||||
src="https://xsgames.co/randomusers/avatar.php?g=pixel&key=3"
|
||||
src="https://api.dicebear.com/7.x/miniavs/svg?seed=3"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -45,9 +45,7 @@ const App: React.FC = () => (
|
||||
renderItem={(item, index) => (
|
||||
<List.Item>
|
||||
<List.Item.Meta
|
||||
avatar={
|
||||
<Avatar src={`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${index}`} />
|
||||
}
|
||||
avatar={<Avatar src={`https://api.dicebear.com/7.x/miniavs/svg?seed=${index}`} />}
|
||||
title={<a href="https://ant.design">{item.title}</a>}
|
||||
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user