Skip to content

Commit

Permalink
Update copyright headers to yearless format
Browse files Browse the repository at this point in the history
  • Loading branch information
hramos committed Nov 2, 2018
1 parent d141a48 commit 8de54a3
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 152 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion website/core/Footer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
24 changes: 12 additions & 12 deletions website/image-check.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const glob = require("glob-promise");
const fs = require("fs-extra");
const path = require("path");
const siteConfig = require("./siteConfig");
const glob = require('glob-promise');
const fs = require('fs-extra');
const path = require('path');
const siteConfig = require('./siteConfig');

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

let missingAssets = [];
let queue = Promise.resolve();
glob("../docs/**/*.md")
glob('../docs/**/*.md')
.then(files => {
files.forEach(file => {
queue = queue
Expand All @@ -25,10 +25,10 @@ glob("../docs/**/*.md")
let matches;
while ((matches = imageReferenceRegExp.exec(contents))) {
const pathToFile = path.join(
"..",
matches[1].replace(siteConfig.baseUrl, "")
'..',
matches[1].replace(siteConfig.baseUrl, '')
);
missingAssets.push({ imagePath: pathToFile, markdownPath: file });
missingAssets.push({imagePath: pathToFile, markdownPath: file});
}
});
});
Expand All @@ -37,17 +37,17 @@ glob("../docs/**/*.md")
.then(() => {
queue = Promise.resolve();
missingAssets.forEach(missingAsset => {
const { imagePath, markdownPath } = missingAsset;
const {imagePath, markdownPath} = missingAsset;
queue = queue
.then(() => {
return fs.stat(imagePath);
})
.then(stats => {})
.catch(e => {
console.error(
"Could not find " +
'Could not find ' +
imagePath +
" which has at least one reference in " +
' which has at least one reference in ' +
markdownPath +
". Did you forget to add the asset to '/docs/assets'?"
);
Expand Down
80 changes: 40 additions & 40 deletions website/pages/en/help.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const React = require("react");
const React = require('react');

const CompLibrary = require("../../core/CompLibrary.js");
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;

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

class Help extends React.Component {
render() {
Expand All @@ -33,40 +33,40 @@ class Help extends React.Component {
Facebook's React Native team. But there are far more people in the
community who make key contributions and fix things. If the issue
you are facing is code related, you should consider checking the
open issues in the{" "}
open issues in the{' '}
<a href="https://github.com/facebook/react-native/issues">
main repository
</a>. If you cannot find an existing issue, please{" "}
</a>. If you cannot find an existing issue, please{' '}
<a href="https://github.com/facebook/react-native/issues/new?template=bug_report.md">
use the Bug Report template
</a>{" "}
</a>{' '}
to create an issue with a minimal example.
</p>
<h3>Stack Overflow</h3>
<p>
Many members of the community use Stack Overflow to ask questions.
Read through the{" "}
Read through the{' '}
<a href="http://stackoverflow.com/questions/tagged/react-native?sort=frequent">
existing questions
</a>{" "}
tagged with <strong>react-native</strong> or{" "}
</a>{' '}
tagged with <strong>react-native</strong> or{' '}
<a href="http://stackoverflow.com/questions/ask?tags=react-native">
ask your own
</a>!
</p>
<h2>Staying up to date</h2>
<h3>Official channels</h3>
<p>
The <a href="https://twitter.com/reactjs">React Twitter account</a>{" "}
covers both React and React Native. Follow the React Native{" "}
<a href="https://twitter.com/reactnative">Twitter account</a> and{" "}
The <a href="https://twitter.com/reactjs">React Twitter account</a>{' '}
covers both React and React Native. Follow the React Native{' '}
<a href="https://twitter.com/reactnative">Twitter account</a> and{' '}
<a href="/react-native/blog/">blog</a> to find out what's happening
in the world of React Native.
</p>
<h3>Discussion Forum</h3>
<p>
For longer-form conversations about React Native, we’ve set up a
discussion forum at{" "}
discussion forum at{' '}
<a href="https://discuss.reactjs.org/t/welcome-react-native-community-group/10239">
<strong>discuss.reactjs.org</strong>
</a>. This is a great place for discussion about best practices and
Expand All @@ -78,94 +78,94 @@ class Help extends React.Component {
React Native is still a young framework, and its rapid release cycle
leaves the door open for discussing how it can evolve at every step
of the way. If you want to know what the current proposals and RFCs
are talking about, you can read through the{" "}
are talking about, you can read through the{' '}
<a href="https://github.com/react-native-community/discussions-and-proposals">
Discussions and Proposals repository
</a>
{"."}
{'.'}
</p>
<h3>Conferences</h3>
<p>
There are a lot of{" "}
There are a lot of{' '}
<a href="http://www.meetup.com/topics/react-native/">
React Native Meetups
</a>{" "}
</a>{' '}
that happen around the world. Often there is React Native content in
React meetups as well. React Native has been covered often in past
React Conf talks. Videos for these talks can be found online in the
following playlists:{" "}
following playlists:{' '}
<a href="https://www.youtube.com/playlist?list=PLb0IAmt7-GS3fZ46IGFirdqKTIxlws7e0">
React Conf 2017
</a>
{", "}
{', '}
<a href="https://www.youtube.com/playlist?list=PLb0IAmt7-GS0M8Q95RIc2lOM6nc77q1IY">
React Conf 2016
</a>
{", "}
and{" "}
{', '}
and{' '}
<a href="https://www.youtube.com/watch?list=PLb0IAmt7-GS1cbw4qonlQztYV1TAW0sCr&v=KVZ-P-ZI6W4">
React Conf 2015
</a>
{". "}
{'. '}
The next <a href="https://conf.reactjs.org/">React Conf</a> will
take place October 25 and 26 in Henderson, Nevada. You can also find
a list of dedicated React Native conferences{" "}
a list of dedicated React Native conferences{' '}
<a href="http://www.awesome-react-native.com/#conferences">here</a>
{"."}
{'.'}
</p>
<h2>Communities at large</h2>
<h3>Reactiflux Chat</h3>
<p>
If you need an answer right away, check out the{" "}
<a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Discord</a>{" "}
If you need an answer right away, check out the{' '}
<a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Discord</a>{' '}
community. There are usually a number of React Native experts there
who can help out or point you to somewhere you might want to look.
</p>
<h3>Forum-like groups</h3>
<p>
If you want to create less temporary conversations, check out the{" "}
If you want to create less temporary conversations, check out the{' '}
<a href="https://spectrum.chat/react-native">
React Native Spectrum
</a>{" "}
community or the{" "}
</a>{' '}
community or the{' '}
<a href="https://www.facebook.com/groups/react.native.community">
React Native Facebook Group
</a>
{", "} which is more focused on post announcements, blog posts,
talks, videos, cool new libraries, and apps.{" "}
{', '} which is more focused on post announcements, blog posts,
talks, videos, cool new libraries, and apps.{' '}
<a href="https://forums.expo.io">The Expo Forums</a> are a good
place to get help if you are using Expo.
</p>
<h3>Company-based Communities</h3>
<p>
Some companies actively involved in the React Native have also their
own communication channels focused towards the projects they
maintain, like{" "}
maintain, like{' '}
<a href="https://discordapp.com/invite/zwR2Cdh">
Callstack.io's Discord server
</a>
{", "}
{', '}
<a href="https://discord.gg/C9aK28N">
Invertase.io's Discord server (e.g. React Native Firebase)
</a>
{", "}
{', '}
<a href="https://infiniteredcommunity.herokuapp.com/">
Infinite Red's Slack Group
</a>
{" and "}
{' and '}
<a href="https://slack.expo.io/">The Expo Slack Group</a>.
</p>
<h3>Content sharing</h3>
<p>
<a href="https://dev.to/t/reactnative">DevTo community's</a> and{" "}
<a href="https://dev.to/t/reactnative">DevTo community's</a> and{' '}
<a href="https://medium.com/tag/react-native">Medium's</a> React
Native tag are places where you can share React Native projects,
articles and tutorials as well as start discussions and ask for
feedback on React Native related topics. (but remember to give some
love to the{" "}
love to the{' '}
<a href="https://github.com/facebook/react-native-website">
main documentation
</a>{" "}
</a>{' '}
too!)
</p>
</Container>
Expand All @@ -175,7 +175,7 @@ class Help extends React.Component {
}

Help.defaultProps = {
language: "en"
language: 'en',
};

module.exports = Help;
26 changes: 12 additions & 14 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const React = require("react");
const React = require('react');

const CompLibrary = require("../../core/CompLibrary.js");
const CompLibrary = require('../../core/CompLibrary.js');
const MarkdownBlock = CompLibrary.MarkdownBlock;
const Container = CompLibrary.Container;

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

const pinnedApps = siteConfig.users.filter(app => {
return app.pinned;
Expand All @@ -23,8 +23,7 @@ class Button extends React.Component {
<a
className="big-button"
href={this.props.href}
target={this.props.target}
>
target={this.props.target}>
{this.props.children}
</a>
);
Expand All @@ -36,12 +35,11 @@ class HomeCallToAction extends React.Component {
return (
<div>
<Button
href={siteConfig.baseUrl + "docs/getting-started"}
target="_self"
>
href={siteConfig.baseUrl + 'docs/getting-started'}
target="_self">
Get Started
</Button>
<Button href={siteConfig.baseUrl + "docs/tutorial"} target="_self">
<Button href={siteConfig.baseUrl + 'docs/tutorial'} target="_self">
Learn the Basics
</Button>
</div>
Expand Down Expand Up @@ -92,8 +90,8 @@ class AppList extends React.Component {

_renderAppIcon(app) {
let imgSource = app.icon;
if (!app.icon.startsWith("http")) {
imgSource = siteConfig.baseUrl + "img/showcase/" + app.icon;
if (!app.icon.startsWith('http')) {
imgSource = siteConfig.baseUrl + 'img/showcase/' + app.icon;
}
return <img src={imgSource} alt={app.name} />;
}
Expand Down Expand Up @@ -255,8 +253,8 @@ class MiniShowcase extends React.Component {
<p>
Thousands of apps are using React Native, from established Fortune 500
companies to hot new startups. If you're curious to see what can be
accomplished with React Native,{" "}
<a href={siteConfig.baseUrl + "showcase"}>check out these apps</a>!
accomplished with React Native,{' '}
<a href={siteConfig.baseUrl + 'showcase'}>check out these apps</a>!
</p>
<div className="logos">
<AppList apps={pinnedApps} />
Expand Down
Loading

0 comments on commit 8de54a3

Please sign in to comment.