Skip to content

Commit 8de54a3

Browse files
committed
Update copyright headers to yearless format
1 parent d141a48 commit 8de54a3

9 files changed

Lines changed: 148 additions & 152 deletions

File tree

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2015-present, Facebook, Inc.
3+
Copyright (c) Facebook, Inc. and its affiliates.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

website/core/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2017-present, Facebook, Inc.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

website/image-check.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
/**
2-
* Copyright (c) 2017-present, Facebook, Inc.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const glob = require("glob-promise");
9-
const fs = require("fs-extra");
10-
const path = require("path");
11-
const siteConfig = require("./siteConfig");
8+
const glob = require('glob-promise');
9+
const fs = require('fs-extra');
10+
const path = require('path');
11+
const siteConfig = require('./siteConfig');
1212

1313
const imageReferenceRegExp = new RegExp(/!\[.*?\]\((.*)\)/g);
1414

1515
let missingAssets = [];
1616
let queue = Promise.resolve();
17-
glob("../docs/**/*.md")
17+
glob('../docs/**/*.md')
1818
.then(files => {
1919
files.forEach(file => {
2020
queue = queue
@@ -25,10 +25,10 @@ glob("../docs/**/*.md")
2525
let matches;
2626
while ((matches = imageReferenceRegExp.exec(contents))) {
2727
const pathToFile = path.join(
28-
"..",
29-
matches[1].replace(siteConfig.baseUrl, "")
28+
'..',
29+
matches[1].replace(siteConfig.baseUrl, '')
3030
);
31-
missingAssets.push({ imagePath: pathToFile, markdownPath: file });
31+
missingAssets.push({imagePath: pathToFile, markdownPath: file});
3232
}
3333
});
3434
});
@@ -37,17 +37,17 @@ glob("../docs/**/*.md")
3737
.then(() => {
3838
queue = Promise.resolve();
3939
missingAssets.forEach(missingAsset => {
40-
const { imagePath, markdownPath } = missingAsset;
40+
const {imagePath, markdownPath} = missingAsset;
4141
queue = queue
4242
.then(() => {
4343
return fs.stat(imagePath);
4444
})
4545
.then(stats => {})
4646
.catch(e => {
4747
console.error(
48-
"Could not find " +
48+
'Could not find ' +
4949
imagePath +
50-
" which has at least one reference in " +
50+
' which has at least one reference in ' +
5151
markdownPath +
5252
". Did you forget to add the asset to '/docs/assets'?"
5353
);

website/pages/en/help.js

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
2-
* Copyright (c) 2017-present, Facebook, Inc.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const React = require("react");
8+
const React = require('react');
99

10-
const CompLibrary = require("../../core/CompLibrary.js");
10+
const CompLibrary = require('../../core/CompLibrary.js');
1111
const Container = CompLibrary.Container;
1212

13-
const siteConfig = require(process.cwd() + "/siteConfig.js");
13+
const siteConfig = require(process.cwd() + '/siteConfig.js');
1414

1515
class Help extends React.Component {
1616
render() {
@@ -33,40 +33,40 @@ class Help extends React.Component {
3333
Facebook's React Native team. But there are far more people in the
3434
community who make key contributions and fix things. If the issue
3535
you are facing is code related, you should consider checking the
36-
open issues in the{" "}
36+
open issues in the{' '}
3737
<a href="https://github.com/facebook/react-native/issues">
3838
main repository
39-
</a>. If you cannot find an existing issue, please{" "}
39+
</a>. If you cannot find an existing issue, please{' '}
4040
<a href="https://github.com/facebook/react-native/issues/new?template=bug_report.md">
4141
use the Bug Report template
42-
</a>{" "}
42+
</a>{' '}
4343
to create an issue with a minimal example.
4444
</p>
4545
<h3>Stack Overflow</h3>
4646
<p>
4747
Many members of the community use Stack Overflow to ask questions.
48-
Read through the{" "}
48+
Read through the{' '}
4949
<a href="http://stackoverflow.com/questions/tagged/react-native?sort=frequent">
5050
existing questions
51-
</a>{" "}
52-
tagged with <strong>react-native</strong> or{" "}
51+
</a>{' '}
52+
tagged with <strong>react-native</strong> or{' '}
5353
<a href="http://stackoverflow.com/questions/ask?tags=react-native">
5454
ask your own
5555
</a>!
5656
</p>
5757
<h2>Staying up to date</h2>
5858
<h3>Official channels</h3>
5959
<p>
60-
The <a href="https://twitter.com/reactjs">React Twitter account</a>{" "}
61-
covers both React and React Native. Follow the React Native{" "}
62-
<a href="https://twitter.com/reactnative">Twitter account</a> and{" "}
60+
The <a href="https://twitter.com/reactjs">React Twitter account</a>{' '}
61+
covers both React and React Native. Follow the React Native{' '}
62+
<a href="https://twitter.com/reactnative">Twitter account</a> and{' '}
6363
<a href="/react-native/blog/">blog</a> to find out what's happening
6464
in the world of React Native.
6565
</p>
6666
<h3>Discussion Forum</h3>
6767
<p>
6868
For longer-form conversations about React Native, we’ve set up a
69-
discussion forum at{" "}
69+
discussion forum at{' '}
7070
<a href="https://discuss.reactjs.org/t/welcome-react-native-community-group/10239">
7171
<strong>discuss.reactjs.org</strong>
7272
</a>. This is a great place for discussion about best practices and
@@ -78,94 +78,94 @@ class Help extends React.Component {
7878
React Native is still a young framework, and its rapid release cycle
7979
leaves the door open for discussing how it can evolve at every step
8080
of the way. If you want to know what the current proposals and RFCs
81-
are talking about, you can read through the{" "}
81+
are talking about, you can read through the{' '}
8282
<a href="https://github.com/react-native-community/discussions-and-proposals">
8383
Discussions and Proposals repository
8484
</a>
85-
{"."}
85+
{'.'}
8686
</p>
8787
<h3>Conferences</h3>
8888
<p>
89-
There are a lot of{" "}
89+
There are a lot of{' '}
9090
<a href="http://www.meetup.com/topics/react-native/">
9191
React Native Meetups
92-
</a>{" "}
92+
</a>{' '}
9393
that happen around the world. Often there is React Native content in
9494
React meetups as well. React Native has been covered often in past
9595
React Conf talks. Videos for these talks can be found online in the
96-
following playlists:{" "}
96+
following playlists:{' '}
9797
<a href="https://www.youtube.com/playlist?list=PLb0IAmt7-GS3fZ46IGFirdqKTIxlws7e0">
9898
React Conf 2017
9999
</a>
100-
{", "}
100+
{', '}
101101
<a href="https://www.youtube.com/playlist?list=PLb0IAmt7-GS0M8Q95RIc2lOM6nc77q1IY">
102102
React Conf 2016
103103
</a>
104-
{", "}
105-
and{" "}
104+
{', '}
105+
and{' '}
106106
<a href="https://www.youtube.com/watch?list=PLb0IAmt7-GS1cbw4qonlQztYV1TAW0sCr&v=KVZ-P-ZI6W4">
107107
React Conf 2015
108108
</a>
109-
{". "}
109+
{'. '}
110110
The next <a href="https://conf.reactjs.org/">React Conf</a> will
111111
take place October 25 and 26 in Henderson, Nevada. You can also find
112-
a list of dedicated React Native conferences{" "}
112+
a list of dedicated React Native conferences{' '}
113113
<a href="http://www.awesome-react-native.com/#conferences">here</a>
114-
{"."}
114+
{'.'}
115115
</p>
116116
<h2>Communities at large</h2>
117117
<h3>Reactiflux Chat</h3>
118118
<p>
119-
If you need an answer right away, check out the{" "}
120-
<a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Discord</a>{" "}
119+
If you need an answer right away, check out the{' '}
120+
<a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Discord</a>{' '}
121121
community. There are usually a number of React Native experts there
122122
who can help out or point you to somewhere you might want to look.
123123
</p>
124124
<h3>Forum-like groups</h3>
125125
<p>
126-
If you want to create less temporary conversations, check out the{" "}
126+
If you want to create less temporary conversations, check out the{' '}
127127
<a href="https://spectrum.chat/react-native">
128128
React Native Spectrum
129-
</a>{" "}
130-
community or the{" "}
129+
</a>{' '}
130+
community or the{' '}
131131
<a href="https://www.facebook.com/groups/react.native.community">
132132
React Native Facebook Group
133133
</a>
134-
{", "} which is more focused on post announcements, blog posts,
135-
talks, videos, cool new libraries, and apps.{" "}
134+
{', '} which is more focused on post announcements, blog posts,
135+
talks, videos, cool new libraries, and apps.{' '}
136136
<a href="https://forums.expo.io">The Expo Forums</a> are a good
137137
place to get help if you are using Expo.
138138
</p>
139139
<h3>Company-based Communities</h3>
140140
<p>
141141
Some companies actively involved in the React Native have also their
142142
own communication channels focused towards the projects they
143-
maintain, like{" "}
143+
maintain, like{' '}
144144
<a href="https://discordapp.com/invite/zwR2Cdh">
145145
Callstack.io's Discord server
146146
</a>
147-
{", "}
147+
{', '}
148148
<a href="https://discord.gg/C9aK28N">
149149
Invertase.io's Discord server (e.g. React Native Firebase)
150150
</a>
151-
{", "}
151+
{', '}
152152
<a href="https://infiniteredcommunity.herokuapp.com/">
153153
Infinite Red's Slack Group
154154
</a>
155-
{" and "}
155+
{' and '}
156156
<a href="https://slack.expo.io/">The Expo Slack Group</a>.
157157
</p>
158158
<h3>Content sharing</h3>
159159
<p>
160-
<a href="https://dev.to/t/reactnative">DevTo community's</a> and{" "}
160+
<a href="https://dev.to/t/reactnative">DevTo community's</a> and{' '}
161161
<a href="https://medium.com/tag/react-native">Medium's</a> React
162162
Native tag are places where you can share React Native projects,
163163
articles and tutorials as well as start discussions and ask for
164164
feedback on React Native related topics. (but remember to give some
165-
love to the{" "}
165+
love to the{' '}
166166
<a href="https://github.com/facebook/react-native-website">
167167
main documentation
168-
</a>{" "}
168+
</a>{' '}
169169
too!)
170170
</p>
171171
</Container>
@@ -175,7 +175,7 @@ class Help extends React.Component {
175175
}
176176

177177
Help.defaultProps = {
178-
language: "en"
178+
language: 'en',
179179
};
180180

181181
module.exports = Help;

website/pages/en/index.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/**
2-
* Copyright (c) 2017-present, Facebook, Inc.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
const React = require("react");
8+
const React = require('react');
99

10-
const CompLibrary = require("../../core/CompLibrary.js");
10+
const CompLibrary = require('../../core/CompLibrary.js');
1111
const MarkdownBlock = CompLibrary.MarkdownBlock;
1212
const Container = CompLibrary.Container;
1313

14-
const siteConfig = require(process.cwd() + "/siteConfig.js");
14+
const siteConfig = require(process.cwd() + '/siteConfig.js');
1515

1616
const pinnedApps = siteConfig.users.filter(app => {
1717
return app.pinned;
@@ -23,8 +23,7 @@ class Button extends React.Component {
2323
<a
2424
className="big-button"
2525
href={this.props.href}
26-
target={this.props.target}
27-
>
26+
target={this.props.target}>
2827
{this.props.children}
2928
</a>
3029
);
@@ -36,12 +35,11 @@ class HomeCallToAction extends React.Component {
3635
return (
3736
<div>
3837
<Button
39-
href={siteConfig.baseUrl + "docs/getting-started"}
40-
target="_self"
41-
>
38+
href={siteConfig.baseUrl + 'docs/getting-started'}
39+
target="_self">
4240
Get Started
4341
</Button>
44-
<Button href={siteConfig.baseUrl + "docs/tutorial"} target="_self">
42+
<Button href={siteConfig.baseUrl + 'docs/tutorial'} target="_self">
4543
Learn the Basics
4644
</Button>
4745
</div>
@@ -92,8 +90,8 @@ class AppList extends React.Component {
9290

9391
_renderAppIcon(app) {
9492
let imgSource = app.icon;
95-
if (!app.icon.startsWith("http")) {
96-
imgSource = siteConfig.baseUrl + "img/showcase/" + app.icon;
93+
if (!app.icon.startsWith('http')) {
94+
imgSource = siteConfig.baseUrl + 'img/showcase/' + app.icon;
9795
}
9896
return <img src={imgSource} alt={app.name} />;
9997
}
@@ -255,8 +253,8 @@ class MiniShowcase extends React.Component {
255253
<p>
256254
Thousands of apps are using React Native, from established Fortune 500
257255
companies to hot new startups. If you're curious to see what can be
258-
accomplished with React Native,{" "}
259-
<a href={siteConfig.baseUrl + "showcase"}>check out these apps</a>!
256+
accomplished with React Native,{' '}
257+
<a href={siteConfig.baseUrl + 'showcase'}>check out these apps</a>!
260258
</p>
261259
<div className="logos">
262260
<AppList apps={pinnedApps} />

0 commit comments

Comments
 (0)