Browse Source
Merge pull request #388 from frozzare/issue-376
Remove "use strict" from source files
main
Brian Vaughn
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
63 changed files with
0 additions and
126 deletions
-
src/components/ButtonLink/ButtonLink.js
-
src/components/ButtonLink/index.js
-
src/components/CodeEditor/CodeEditor.js
-
src/components/CodeEditor/index.js
-
src/components/Container/Container.js
-
src/components/Container/index.js
-
src/components/ErrorDecoder/ErrorDecoder.js
-
src/components/ErrorDecoder/index.js
-
src/components/Flex/Flex.js
-
src/components/Flex/index.js
-
src/components/Header/Header.js
-
src/components/Header/index.js
-
src/components/LayoutFooter/ExternalFooterLink.js
-
src/components/LayoutFooter/Footer.js
-
src/components/LayoutFooter/FooterLink.js
-
src/components/LayoutFooter/FooterNav.js
-
src/components/LayoutFooter/index.js
-
src/components/LayoutHeader/Header.js
-
src/components/LayoutHeader/HeaderLink.js
-
src/components/LayoutHeader/SearchSvg.js
-
src/components/LayoutHeader/index.js
-
src/components/MarkdownHeader/MarkdownHeader.js
-
src/components/MarkdownHeader/index.js
-
src/components/MarkdownPage/MarkdownPage.js
-
src/components/MarkdownPage/index.js
-
src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js
-
src/components/StickyResponsiveSidebar/index.js
-
src/components/TitleAndMetaTags/TitleAndMetaTags.js
-
src/components/TitleAndMetaTags/index.js
-
src/html.js
-
src/layouts/index.js
-
src/pages/404.js
-
src/pages/acknowledgements.html.js
-
src/pages/blog/all.html.js
-
src/pages/docs/error-decoder.html.js
-
src/pages/index.js
-
src/pages/jsx-compiler.html.js
-
src/prism-styles.js
-
src/site-constants.js
-
src/templates/blog.js
-
src/templates/codepen-example.js
-
src/templates/community.js
-
src/templates/components/ChevronSvg/index.js
-
src/templates/components/ExternalLinkSvg/index.js
-
src/templates/components/MetaTitle/index.js
-
src/templates/components/NavigationFooter/NavigationFooter.js
-
src/templates/components/NavigationFooter/index.js
-
src/templates/components/Sidebar/ScrollSyncSection.js
-
src/templates/components/Sidebar/Section.js
-
src/templates/components/Sidebar/Sidebar.js
-
src/templates/components/Sidebar/index.js
-
src/templates/docs.js
-
src/templates/tutorial.js
-
src/theme.js
-
src/utils/createLink.js
-
src/utils/createOgUrl.js
-
src/utils/findSectionForPath.js
-
src/utils/isItemActive.js
-
src/utils/loadScript.js
-
src/utils/mountCodeExample.js
-
src/utils/sectionList.js
-
src/utils/slugify.js
-
src/utils/toCommaSeparatedList.js
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Link from 'gatsby-link'; |
|
|
|
import React from 'react'; |
|
|
|
import {colors, media} from 'theme'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import ButtonLink from './ButtonLink'; |
|
|
|
|
|
|
|
export default ButtonLink; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React, {Component} from 'react'; |
|
|
|
import ReactDOM from 'react-dom'; |
|
|
|
import Remarkable from 'remarkable'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import CodeEditor from './CodeEditor'; |
|
|
|
|
|
|
|
export default CodeEditor; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
import {media} from 'theme'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from './Container'; |
|
|
|
|
|
|
|
export default Container; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
import type {Node} from 'react'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import ErrorDecoder from './ErrorDecoder'; |
|
|
|
|
|
|
|
export default ErrorDecoder; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import {createElement} from 'glamor/react'; |
|
|
|
|
|
|
|
import type {Node} from 'react'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Flex from './Flex'; |
|
|
|
|
|
|
|
export default Flex; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import {colors, fonts} from 'theme'; |
|
|
|
|
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Header from './Header'; |
|
|
|
|
|
|
|
export default Header; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import {colors} from 'theme'; |
|
|
|
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import ExternalFooterLink from './ExternalFooterLink'; |
|
|
|
import FooterLink from './FooterLink'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Link from 'gatsby-link'; |
|
|
|
import React from 'react'; |
|
|
|
import {colors} from 'theme'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import {media} from 'theme'; |
|
|
|
|
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Footer from './Footer'; |
|
|
|
|
|
|
|
export default Footer; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import HeaderLink from './HeaderLink'; |
|
|
|
import Link from 'gatsby-link'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Link from 'gatsby-link'; |
|
|
|
import React from 'react'; |
|
|
|
import {colors, media} from 'theme'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
const SearchSvg = () => ( |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Header from './Header'; |
|
|
|
|
|
|
|
export default Header; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Flex from 'components/Flex'; |
|
|
|
import React from 'react'; |
|
|
|
import {colors, fonts, media} from 'theme'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import MarkdownHeader from './MarkdownHeader'; |
|
|
|
|
|
|
|
export default MarkdownHeader; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import Flex from 'components/Flex'; |
|
|
|
import MarkdownHeader from 'components/MarkdownHeader'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import MarkdownPage from './MarkdownPage'; |
|
|
|
|
|
|
|
export default MarkdownPage; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import React, {Component} from 'react'; |
|
|
|
import Sidebar from 'templates/components/Sidebar'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import StickyResponsiveSidebar from './StickyResponsiveSidebar'; |
|
|
|
|
|
|
|
export default StickyResponsiveSidebar; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Helmet from 'react-helmet'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import TitleAndMetaTags from './TitleAndMetaTags'; |
|
|
|
|
|
|
|
export default TitleAndMetaTags; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React, {Component} from 'react'; |
|
|
|
|
|
|
|
let stylesStr; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
// Polyfills for IE
|
|
|
|
import 'array-from'; |
|
|
|
import 'string.prototype.includes'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import Header from 'components/Header'; |
|
|
|
import TitleAndMetaTags from 'components/TitleAndMetaTags'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import Header from 'components/Header'; |
|
|
|
import TitleAndMetaTags from 'components/TitleAndMetaTags'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Link from 'gatsby-link'; |
|
|
|
import Container from 'components/Container'; |
|
|
|
import Header from 'components/Header'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import ErrorDecoder from 'components/ErrorDecoder'; |
|
|
|
import Flex from 'components/Flex'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import ButtonLink from 'components/ButtonLink'; |
|
|
|
import Container from 'components/Container'; |
|
|
|
import Flex from 'components/Flex'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import Header from 'components/Header'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import {css} from 'glamor'; |
|
|
|
import {colors} from 'theme'; |
|
|
|
|
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
// NOTE: We can't just use `location.toString()` because when we are rendering
|
|
|
|
// the SSR part in node.js we won't have a proper location.
|
|
|
|
const urlRoot = 'https://reactjs.org'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import React from 'react'; |
|
|
|
import MarkdownPage from 'components/MarkdownPage'; |
|
|
|
|
|
@ -1,5 +1,3 @@ |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React, {Component} from 'react'; |
|
|
|
import Container from 'components/Container'; |
|
|
|
import {colors} from 'theme'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import MarkdownPage from 'components/MarkdownPage'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
type Props = { |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
const ExternalLinkSvg = ({cssProps = {}}: {cssProps: Object}) => ( |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import {colors} from 'theme'; |
|
|
|
|
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Container from 'components/Container'; |
|
|
|
import Flex from 'components/Flex'; |
|
|
|
import Link from 'gatsby-link'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import NavigationFooter from './NavigationFooter'; |
|
|
|
|
|
|
|
export default NavigationFooter; |
|
|
|
|
|
@ -7,8 +7,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React, {Component} from 'react'; |
|
|
|
import Section from './Section'; |
|
|
|
|
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
import {colors, media} from 'theme'; |
|
|
|
import isItemActive from 'utils/isItemActive'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React, {Component} from 'react'; |
|
|
|
import Flex from 'components/Flex'; |
|
|
|
import Section from './Section'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Sidebar from './Sidebar'; |
|
|
|
|
|
|
|
export default Sidebar; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import MarkdownPage from 'components/MarkdownPage'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import MarkdownPage from 'components/MarkdownPage'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
/** |
|
|
|
* Theme contains variables shared by styles of multiple components. |
|
|
|
*/ |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import Link from 'gatsby-link'; |
|
|
|
import React from 'react'; |
|
|
|
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import {urlRoot} from 'site-constants'; |
|
|
|
|
|
|
|
export default (slug: string): string | null => |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import slugify from './slugify'; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import slugify from 'utils/slugify'; |
|
|
|
|
|
|
|
const toAnchor = (href: string = ''): string => { |
|
|
|
|
|
@ -7,8 +7,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
export default url => |
|
|
|
new Promise((resolve, reject) => |
|
|
|
document.head.appendChild( |
|
|
|
|
|
@ -4,8 +4,6 @@ |
|
|
|
* @emails react-core |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import CodeEditor from '../components/CodeEditor'; |
|
|
|
import React from 'react'; |
|
|
|
import ReactDOM from 'react-dom'; |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
// $FlowExpectedError
|
|
|
|
import navCommunity from '../../content/community/nav.yml'; |
|
|
|
// $FlowExpectedError
|
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import slugify from 'slugify'; |
|
|
|
|
|
|
|
export default (string: string, directory?: string): string => { |
|
|
|
|
|
@ -5,8 +5,6 @@ |
|
|
|
* @flow |
|
|
|
*/ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
import type {Node} from 'react'; |
|
|
|