Skip to content

Commit 8ddef3b

Browse files
authored
Fixed all the broken image links (#18272)
1 parent 63d1965 commit 8ddef3b

File tree

55 files changed

+254
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+254
-231
lines changed

apps/vr-tests/src/stories/FolderCover.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const FolderCoverWithImage: React.FunctionComponent<IFolderCoverWithImageProps>
3232

3333
return renderFolderCoverWithLayout(folderCover, {
3434
children: (
35-
<img src={`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`} />
35+
<img
36+
src={`//via.placeholder.com/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}
37+
/>
3638
),
3739
});
3840
};

apps/vr-tests/src/stories/GroupedList.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { GroupedList } from '@fluentui/react';
77
/* eslint-disable @fluentui/max-len */
88
const items = [
99
{
10-
thumbnail: '//placehold.it/175x175',
10+
thumbnail: '//via.placeholder.com/175x175',
1111
key: 'item-0 nostrud proident, id non',
1212
name: 'id velit labore ipsum magna',
1313
description:
@@ -19,7 +19,7 @@ const items = [
1919
height: 175,
2020
},
2121
{
22-
thumbnail: '//placehold.it/229x229',
22+
thumbnail: '//via.placeholder.com/229x229',
2323
key: 'item-1 in sunt sed eiusmod',
2424
name: 'in Duis dolor ex ut',
2525
description:
@@ -31,7 +31,7 @@ const items = [
3131
height: 229,
3232
},
3333
{
34-
thumbnail: '//placehold.it/195x195',
34+
thumbnail: '//via.placeholder.com/195x195',
3535
key: 'item-2 consectetur ut dolor commodo',
3636
name: 'adipiscing fugiat officia sunt cillum',
3737
description:
@@ -43,7 +43,7 @@ const items = [
4343
height: 195,
4444
},
4545
{
46-
thumbnail: '//placehold.it/208x208',
46+
thumbnail: '//via.placeholder.com/208x208',
4747
key: 'item-3 pariatur. id qui voluptate',
4848
name: 'eu ullamco et commodo aliqua.',
4949
description:

apps/vr-tests/src/stories/Image.stories.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@ import * as React from 'react';
44
import Screener from 'screener-storybook/src/screener';
55
import { FabricDecorator } from '../utilities/index';
66

7-
const img350x150 = 'http://placehold.it/350x150';
7+
const img350x150 = 'http://via.placeholder.com/350x150';
88

99
const imagePropsFitNone: IImageProps = {
10-
src: 'http://placehold.it/500x250',
10+
src: 'http://via.placeholder.com/500x250',
1111
imageFit: ImageFit.none,
1212
width: 350,
1313
height: 150,
1414
};
1515

1616
const imagePropsFitCenter: IImageProps = {
17-
src: 'http://placehold.it/800x300',
17+
src: 'http://via.placeholder.com/800x300',
1818
imageFit: ImageFit.center,
1919
width: 350,
2020
height: 150,
2121
};
2222

2323
const imagePropsFitContain: IImageProps = {
24-
src: 'http://placehold.it/700x300',
24+
src: 'http://via.placeholder.com/700x300',
2525
imageFit: ImageFit.contain,
2626
};
2727

2828
const imagePropsFitCover: IImageProps = {
29-
src: 'http://placehold.it/500x500',
29+
src: 'http://via.placeholder.com/500x500',
3030
imageFit: ImageFit.cover,
3131
};
3232

3333
const imagePropsFitCenterContain: IImageProps = {
34-
src: 'http://placehold.it/400x400',
34+
src: 'http://via.placeholder.com/400x400',
3535
imageFit: ImageFit.centerContain,
3636
};
3737

3838
const imagePropsFitCenterCover: IImageProps = {
39-
src: 'http://placehold.it/400x400',
39+
src: 'http://via.placeholder.com/400x400',
4040
imageFit: ImageFit.centerCover,
4141
};
4242

4343
const imagePropsMaximizeFrame: IImageProps = {
44-
src: 'http://placehold.it/500x500',
44+
src: 'http://via.placeholder.com/500x500',
4545
imageFit: ImageFit.cover,
4646
maximizeFrame: true,
4747
};
@@ -102,15 +102,15 @@ storiesOf('Image', module)
102102
The image is smaller than the frame, so there is empty space within the frame. The image is
103103
positioned at the upper left of the frame.
104104
</Label>
105-
<Image {...imagePropsFitNone} src="http://placehold.it/100x100" />
105+
<Image {...imagePropsFitNone} src="http://via.placeholder.com/100x100" />
106106
</div>
107107
))
108108
.addStory('Fit: center, image larger', () => (
109109
<div>
110110
<Label>
111111
The image is larger than the frame, so all sides are cropped to center the image.
112112
</Label>
113-
<Image {...imagePropsFitCenter} src="http://placehold.it/800x300" />
113+
<Image {...imagePropsFitCenter} src="http://via.placeholder.com/800x300" />
114114
</div>
115115
))
116116
.addStory('Fit: center, image smaller', () => (
@@ -119,7 +119,7 @@ storiesOf('Image', module)
119119
The image is smaller than the frame, so there is empty space within the frame. The image is
120120
centered in the available space.
121121
</Label>
122-
<Image {...imagePropsFitCenter} src="http://placehold.it/100x100" />
122+
<Image {...imagePropsFitCenter} src="http://via.placeholder.com/100x100" />
123123
</div>
124124
))
125125
.addStory('Fit: contain, image wider', () => (

apps/vr-tests/src/stories/List.stories.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { List } from '@fluentui/react';
77
/* eslint-disable @fluentui/max-len */
88
const items = [
99
{
10-
thumbnail: '//placehold.it/233x233',
10+
thumbnail: '//via.placeholder.com/233x233',
1111
key: 'item-0 sit Lorem culpa cillum',
1212
name: 'reprehenderit dolore nulla laborum officia',
1313
description:
@@ -19,7 +19,7 @@ const items = [
1919
height: 233,
2020
},
2121
{
22-
thumbnail: '//placehold.it/210x210',
22+
thumbnail: '//via.placeholder.com/210x210',
2323
key: 'item-1 dolor elit, sit mollit',
2424
name: 'consectetur ipsum tempor nostrud commodo',
2525
description:
@@ -31,7 +31,7 @@ const items = [
3131
height: 210,
3232
},
3333
{
34-
thumbnail: '//placehold.it/231x231',
34+
thumbnail: '//via.placeholder.com/231x231',
3535
key: 'item-2 dolor reprehenderit id sint',
3636
name: 'velit nisi aliquip do minim',
3737
description:
@@ -43,7 +43,7 @@ const items = [
4343
height: 231,
4444
},
4545
{
46-
thumbnail: '//placehold.it/158x158',
46+
thumbnail: '//via.placeholder.com/158x158',
4747
key: 'item-3 magna Ut nisi dolor',
4848
name: 'nostrud in reprehenderit eu anim',
4949
description:
@@ -55,7 +55,7 @@ const items = [
5555
height: 158,
5656
},
5757
{
58-
thumbnail: '//placehold.it/165x165',
58+
thumbnail: '//via.placeholder.com/165x165',
5959
key: 'item-4 nisi proident, in dolore',
6060
name: 'nostrud Duis aliquip Lorem sunt',
6161
description:
@@ -67,7 +67,7 @@ const items = [
6767
height: 165,
6868
},
6969
{
70-
thumbnail: '//placehold.it/226x226',
70+
thumbnail: '//via.placeholder.com/226x226',
7171
key: 'item-5 mollit elit, ex elit,',
7272
name: 'nulla ipsum esse Lorem sed',
7373
description:
@@ -79,7 +79,7 @@ const items = [
7979
height: 226,
8080
},
8181
{
82-
thumbnail: '//placehold.it/182x182',
82+
thumbnail: '//via.placeholder.com/182x182',
8383
key: 'item-6 ut irure dolor et',
8484
name: 'nulla consectetur eiusmod velit sed',
8585
description:
@@ -91,7 +91,7 @@ const items = [
9191
height: 182,
9292
},
9393
{
94-
thumbnail: '//placehold.it/206x206',
94+
thumbnail: '//via.placeholder.com/206x206',
9595
key: 'item-7 non ad consequat. mollit',
9696
name: 'sint quis in Excepteur enim',
9797
description:
@@ -103,7 +103,7 @@ const items = [
103103
height: 206,
104104
},
105105
{
106-
thumbnail: '//placehold.it/240x240',
106+
thumbnail: '//via.placeholder.com/240x240',
107107
key: 'item-8 enim et aliqua. enim',
108108
name: 'in commodo dolore ea Duis',
109109
description:
@@ -115,7 +115,7 @@ const items = [
115115
height: 240,
116116
},
117117
{
118-
thumbnail: '//placehold.it/158x158',
118+
thumbnail: '//via.placeholder.com/158x158',
119119
key: 'item-9 reprehenderit minim cillum do',
120120
name: 'dolore et sed dolore sed',
121121
description:

apps/vr-tests/src/stories/TeachingBubble.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ storiesOf('TeachingBubble', module)
1919
() => {
2020
return (
2121
<TeachingBubble
22-
illustrationImage={{ src: 'http://placehold.it/364x220' }}
22+
illustrationImage={{ src: 'http://via.placeholder.com/364x220' }}
2323
calloutProps={{ directionalHint: DirectionalHint.bottomCenter }}
2424
isWide={true}
2525
hasSmallHeadline={true}

apps/vr-tests/src/stories/Tile.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const DocumentTileWithThumbnail: React.FunctionComponent<IDocumentTileWithThumbn
7474

7575
return (
7676
<img
77-
src={`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}
77+
src={`//via.placeholder.com/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}
7878
style={{ display: 'block' }}
7979
/>
8080
);
@@ -108,7 +108,7 @@ const MediaTileWithThumbnail: React.FunctionComponent<IMediaTileWithThumbnailPro
108108
function renderBackground(backgroundProps: ITileBackgroundProps) {
109109
return (
110110
<img
111-
src={`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}
111+
src={`//via.placeholder.com/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}
112112
style={{ display: 'block' }}
113113
/>
114114
);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fixed all the broken image links and updated test snapshots",
4+
"packageName": "@fluentui/example-data",
5+
"email": "hetanthakkar1@gmail.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fixed all the broken image links and updated test snapshots",
4+
"packageName": "@fluentui/react-examples",
5+
"email": "hetanthakkar1@gmail.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fixed all the broken image links and updated test snapshots",
4+
"packageName": "@fluentui/react-experiments",
5+
"email": "hetanthakkar1@gmail.com",
6+
"dependentChangeType": "patch"
7+
}

packages/example-data/src/listItems.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function createListItems(count: number, startIndex: number = 0): IExample
2525
const size = 150 + Math.round(Math.random() * 100);
2626

2727
return {
28-
thumbnail: `//placehold.it/${size}x${size}`,
28+
thumbnail: `//via.placeholder.com/${size}x${size}`,
2929
key: 'item-' + (index + startIndex) + ' ' + lorem(4),
3030
name: lorem(5),
3131
description: lorem(10 + Math.round(Math.random() * 50)),

0 commit comments

Comments
 (0)