Skip to content

Commit d6b5b12

Browse files
authored
Merge pull request #110 from eviltester/dependabot/npm_and_yarn/react-player-3.4.0
Bump react-player from 2.16.0 to 3.4.0
2 parents 169e6e9 + 71c9a79 commit d6b5b12

6 files changed

Lines changed: 466 additions & 28 deletions

File tree

docs-src/blog/2022-06-20-overview-video.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ This explains how to use Faker, and the approach I use when creating test data.
2222

2323
The overview video is also embedded below:
2424

25-
<ReactPlayer controls url='https://www.youtube.com/watch?v=E8lYiPEugJQ' />
25+
<ReactPlayer
26+
controls
27+
src='https://www.youtube.com/watch?v=E8lYiPEugJQ'
28+
width='100%'
29+
height='100%'
30+
style={{ width: '100%', maxWidth: '960px', aspectRatio: '16 / 9', margin: '0 auto' }}
31+
/>

docs-src/docs/040-test-data/030-faker-test-data.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ The values shown in the 'type' drop down menu match the values in the Faker.js A
1616

1717
## Tips Video
1818

19-
<ReactPlayer controls url='https://www.youtube.com/watch?v=E8lYiPEugJQ' />
19+
<ReactPlayer
20+
controls
21+
src='https://www.youtube.com/watch?v=E8lYiPEugJQ'
22+
width='100%'
23+
height='100%'
24+
style={{ width: '100%', maxWidth: '960px', aspectRatio: '16 / 9', margin: '0 auto' }}
25+
/>
2026

2127
## Read The Faker API Docs
2228

@@ -222,5 +228,3 @@ helpers.fake('{{location.buildingNumber}} {{location.streetAddress}}')
222228
- [Regex Based Data](/docs/test-data/regex-test-data)
223229

224230

225-
226-

docs-src/docs/060-videos/faker-test-data.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ import ReactPlayer from 'react-player'
88

99
# Generating Test Data With Faker
1010

11-
<ReactPlayer controls url='https://www.youtube.com/watch?v=E8lYiPEugJQ' />
11+
<ReactPlayer
12+
controls
13+
src='https://www.youtube.com/watch?v=E8lYiPEugJQ'
14+
width='100%'
15+
height='100%'
16+
style={{ width: '100%', maxWidth: '960px', aspectRatio: '16 / 9', margin: '0 auto' }}
17+
/>

docs-src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prism-react-renderer": "2.4.1",
2323
"react": "18.2.0",
2424
"react-dom": "18.2.0",
25-
"react-player": "2.16.0"
25+
"react-player": "3.4.0"
2626
},
2727
"devDependencies": {
2828
"@docusaurus/module-type-aliases": "3.10.1"

docs-src/src/pages/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ function ShowCaseVideo({title, description, videourl}) {
3434
<div className="text--center">
3535
<h2>{title}</h2>
3636
<p>{description}</p>
37-
<ReactPlayer style={{margin: "auto"}} controls url={videourl} />
37+
<ReactPlayer
38+
controls
39+
src={videourl}
40+
width="100%"
41+
height="100%"
42+
style={{width: "100%", maxWidth: "960px", aspectRatio: "16 / 9", margin: "0 auto"}}
43+
/>
3844
</div>
3945
</div>
4046

0 commit comments

Comments
 (0)