diff --git a/v2/.eslintrc.js b/v2/.eslintrc.js index 2d8ce0fadb..5d7711c808 100644 --- a/v2/.eslintrc.js +++ b/v2/.eslintrc.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const OFF = 0; const WARNING = 1; const ERROR = 2; diff --git a/v2/babel.config.js b/v2/babel.config.js index 0463bc9131..8d9313c391 100644 --- a/v2/babel.config.js +++ b/v2/babel.config.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { presets: ['@babel/env', '@babel/react'], }; diff --git a/v2/bin/docusaurus.js b/v2/bin/docusaurus.js index ea7fc3ef50..49d68f0032 100644 --- a/v2/bin/docusaurus.js +++ b/v2/bin/docusaurus.js @@ -1,5 +1,12 @@ #!/usr/bin/env node +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const chalk = require('chalk'); const semver = require('semver'); const path = require('path'); diff --git a/v2/jest.transform.js b/v2/jest.transform.js index 53f44714ea..007fdfb91b 100644 --- a/v2/jest.transform.js +++ b/v2/jest.transform.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const babelConfig = require('./babel.config'); module.exports = require('babel-jest').createTransformer(babelConfig); diff --git a/v2/lib/commands/build.js b/v2/lib/commands/build.js index dcc907e63f..6a02b37f07 100644 --- a/v2/lib/commands/build.js +++ b/v2/lib/commands/build.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const webpack = require('webpack'); const path = require('path'); const chalk = require('chalk'); diff --git a/v2/lib/commands/deploy.js b/v2/lib/commands/deploy.js index ba2d3851c8..384937cdba 100644 --- a/v2/lib/commands/deploy.js +++ b/v2/lib/commands/deploy.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const shell = require('shelljs'); const fs = require('fs-extra'); diff --git a/v2/lib/commands/eject.js b/v2/lib/commands/eject.js index 3914d2bd78..9c8581d949 100644 --- a/v2/lib/commands/eject.js +++ b/v2/lib/commands/eject.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const chalk = require('chalk'); const path = require('path'); diff --git a/v2/lib/commands/init.js b/v2/lib/commands/init.js index cdc13aca82..cb5bed2b94 100644 --- a/v2/lib/commands/init.js +++ b/v2/lib/commands/init.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = async function init(projectDir, cliOptions = {}) { console.log('Init command invoked ...'); console.log(projectDir); diff --git a/v2/lib/commands/start.js b/v2/lib/commands/start.js index b21700ea1b..080b9d31eb 100644 --- a/v2/lib/commands/start.js +++ b/v2/lib/commands/start.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const fs = require('fs-extra'); const chalk = require('chalk'); diff --git a/v2/lib/core/App.js b/v2/lib/core/App.js index 272024b653..86f60d7151 100644 --- a/v2/lib/core/App.js +++ b/v2/lib/core/App.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import {renderRoutes} from 'react-router-config'; import routes from '@generated/routes'; // eslint-disable-line diff --git a/v2/lib/core/clientEntry.js b/v2/lib/core/clientEntry.js index 339d29b3ef..001eaea047 100644 --- a/v2/lib/core/clientEntry.js +++ b/v2/lib/core/clientEntry.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Loadable from 'react-loadable'; import {BrowserRouter} from 'react-router-dom'; diff --git a/v2/lib/core/devTemplate.ejs b/v2/lib/core/devTemplate.ejs index 40db60cae3..2857217403 100644 --- a/v2/lib/core/devTemplate.ejs +++ b/v2/lib/core/devTemplate.ejs @@ -9,4 +9,4 @@
- \ No newline at end of file + diff --git a/v2/lib/core/preload.js b/v2/lib/core/preload.js index f4eaf58fd7..6236210a2d 100644 --- a/v2/lib/core/preload.js +++ b/v2/lib/core/preload.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import {matchRoutes} from 'react-router-config'; /** diff --git a/v2/lib/core/serverEntry.js b/v2/lib/core/serverEntry.js index 2047fe869d..fd742fea86 100644 --- a/v2/lib/core/serverEntry.js +++ b/v2/lib/core/serverEntry.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import {StaticRouter} from 'react-router-dom'; import ReactDOMServer from 'react-dom/server'; diff --git a/v2/lib/core/sitemap.js b/v2/lib/core/sitemap.js index bf5c6897ae..147059c706 100644 --- a/v2/lib/core/sitemap.js +++ b/v2/lib/core/sitemap.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const sitemap = require('sitemap'); module.exports = async function createSitemap({ diff --git a/v2/lib/index.js b/v2/lib/index.js index e44cb898fb..60c36dc6d5 100644 --- a/v2/lib/index.js +++ b/v2/lib/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const build = require('./commands/build'); const init = require('./commands/init'); const start = require('./commands/start'); diff --git a/v2/lib/load/blog.js b/v2/lib/load/blog.js index dcc8d2d4e8..68680faf31 100644 --- a/v2/lib/load/blog.js +++ b/v2/lib/load/blog.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const globby = require('globby'); const path = require('path'); const fs = require('fs-extra'); diff --git a/v2/lib/load/config.js b/v2/lib/load/config.js index edaf404d10..8f696976ca 100644 --- a/v2/lib/load/config.js +++ b/v2/lib/load/config.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); diff --git a/v2/lib/load/docs/index.js b/v2/lib/load/docs/index.js index b1d6165f32..361f996a7a 100644 --- a/v2/lib/load/docs/index.js +++ b/v2/lib/load/docs/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const globby = require('globby'); const createOrder = require('./order'); diff --git a/v2/lib/load/docs/metadata.js b/v2/lib/load/docs/metadata.js index 54df3a99d2..477ed03e9c 100644 --- a/v2/lib/load/docs/metadata.js +++ b/v2/lib/load/docs/metadata.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); const {getSubFolder, idx, parse} = require('../utils'); diff --git a/v2/lib/load/docs/order.js b/v2/lib/load/docs/order.js index fe033fa7f6..409a4049b9 100644 --- a/v2/lib/load/docs/order.js +++ b/v2/lib/load/docs/order.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // build the docs meta such as next, previous, category and sidebar module.exports = function createOrder(allSidebars = {}) { diff --git a/v2/lib/load/docs/sidebars.js b/v2/lib/load/docs/sidebars.js index 1d941691d4..7b2670f4f6 100644 --- a/v2/lib/load/docs/sidebars.js +++ b/v2/lib/load/docs/sidebars.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); const {idx} = require('../utils'); diff --git a/v2/lib/load/env.js b/v2/lib/load/env.js index 530321bc46..c41a641471 100644 --- a/v2/lib/load/env.js +++ b/v2/lib/load/env.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); const {idx} = require('./utils'); diff --git a/v2/lib/load/index.js b/v2/lib/load/index.js index 221907ca8c..56d1530b03 100644 --- a/v2/lib/load/index.js +++ b/v2/lib/load/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const loadBlog = require('./blog'); const loadConfig = require('./config'); diff --git a/v2/lib/load/pages.js b/v2/lib/load/pages.js index 4c4ab0f97d..52c1276751 100644 --- a/v2/lib/load/pages.js +++ b/v2/lib/load/pages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const globby = require('globby'); const path = require('path'); const {encodePath, fileToPath, idx} = require('./utils'); diff --git a/v2/lib/load/routes.js b/v2/lib/load/routes.js index e042dfdecf..5080a451c0 100644 --- a/v2/lib/load/routes.js +++ b/v2/lib/load/routes.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + async function genRoutesConfig({ docsMetadatas = {}, pagesMetadatas = [], diff --git a/v2/lib/load/theme.js b/v2/lib/load/theme.js index 8f0c681ff5..19b9c1786f 100644 --- a/v2/lib/load/theme.js +++ b/v2/lib/load/theme.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); diff --git a/v2/lib/load/utils.js b/v2/lib/load/utils.js index 08708810e7..e6ab3677bd 100644 --- a/v2/lib/load/utils.js +++ b/v2/lib/load/utils.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const fm = require('front-matter'); const escapeStringRegexp = require('escape-string-regexp'); diff --git a/v2/lib/theme/BlogPage/index.js b/v2/lib/theme/BlogPage/index.js index 1bff3b127e..905796205f 100644 --- a/v2/lib/theme/BlogPage/index.js +++ b/v2/lib/theme/BlogPage/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/BlogPost/index.js b/v2/lib/theme/BlogPost/index.js index cfbab6c74f..b45b79f5c6 100644 --- a/v2/lib/theme/BlogPost/index.js +++ b/v2/lib/theme/BlogPost/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/BlogPost/styles.css b/v2/lib/theme/BlogPost/styles.css index 650f364a50..eac69f06fa 100644 --- a/v2/lib/theme/BlogPost/styles.css +++ b/v2/lib/theme/BlogPost/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .postHeader { margin-bottom: 10px; } diff --git a/v2/lib/theme/Doc/index.js b/v2/lib/theme/Doc/index.js index 32b6a40d2f..0409aa3906 100644 --- a/v2/lib/theme/Doc/index.js +++ b/v2/lib/theme/Doc/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/Doc/styles.css b/v2/lib/theme/Doc/styles.css index 976f93c4e2..ebb8b17400 100644 --- a/v2/lib/theme/Doc/styles.css +++ b/v2/lib/theme/Doc/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .mainContainer { padding-left: 300px; } diff --git a/v2/lib/theme/DocsPaginator/index.js b/v2/lib/theme/DocsPaginator/index.js index 13b6a5a0c3..b4f3e5f3cf 100644 --- a/v2/lib/theme/DocsPaginator/index.js +++ b/v2/lib/theme/DocsPaginator/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/DocsPaginator/styles.css b/v2/lib/theme/DocsPaginator/styles.css index 95d94c31b6..4da996007c 100644 --- a/v2/lib/theme/DocsPaginator/styles.css +++ b/v2/lib/theme/DocsPaginator/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .paginatorContainer { display: flex; flex-direction: row; diff --git a/v2/lib/theme/Footer/index.js b/v2/lib/theme/Footer/index.js index 287808b478..b4515e9237 100644 --- a/v2/lib/theme/Footer/index.js +++ b/v2/lib/theme/Footer/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/Footer/styles.css b/v2/lib/theme/Footer/styles.css index 7f2fe6d753..9233a6591b 100644 --- a/v2/lib/theme/Footer/styles.css +++ b/v2/lib/theme/Footer/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .footer { background: #20232a; border: none; diff --git a/v2/lib/theme/Layout/index.js b/v2/lib/theme/Layout/index.js index aad70976e8..a716c703e8 100644 --- a/v2/lib/theme/Layout/index.js +++ b/v2/lib/theme/Layout/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/lib/theme/Layout/styles.css b/v2/lib/theme/Layout/styles.css index 4646c10513..d93d1bfd70 100644 --- a/v2/lib/theme/Layout/styles.css +++ b/v2/lib/theme/Layout/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + :global(body) { margin: 0; padding: 0; diff --git a/v2/lib/theme/Loading.js b/v2/lib/theme/Loading.js index 910e0032f4..d7438f21c7 100644 --- a/v2/lib/theme/Loading.js +++ b/v2/lib/theme/Loading.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; export default props => { diff --git a/v2/lib/theme/Markdown/anchors.js b/v2/lib/theme/Markdown/anchors.js index 176bc9fda4..c02471aebd 100644 --- a/v2/lib/theme/Markdown/anchors.js +++ b/v2/lib/theme/Markdown/anchors.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import toSlug from './toSlug'; export default function anchors(md) { diff --git a/v2/lib/theme/Markdown/index.js b/v2/lib/theme/Markdown/index.js index 3e5bc33df3..6a2d085dbf 100644 --- a/v2/lib/theme/Markdown/index.js +++ b/v2/lib/theme/Markdown/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import React from 'react'; diff --git a/v2/lib/theme/Markdown/toSlug.js b/v2/lib/theme/Markdown/toSlug.js index b6598d8831..832bf91759 100644 --- a/v2/lib/theme/Markdown/toSlug.js +++ b/v2/lib/theme/Markdown/toSlug.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ const letters = diff --git a/v2/lib/theme/Navbar/index.js b/v2/lib/theme/Navbar/index.js index 4ab7d44b83..6eb516b8bf 100644 --- a/v2/lib/theme/Navbar/index.js +++ b/v2/lib/theme/Navbar/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import {NavLink} from 'react-router-dom'; diff --git a/v2/lib/theme/Navbar/styles.css b/v2/lib/theme/Navbar/styles.css index 5e5e794320..2b98a2df86 100644 --- a/v2/lib/theme/Navbar/styles.css +++ b/v2/lib/theme/Navbar/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .navbar { height: 60px; width: 100%; diff --git a/v2/lib/theme/NotFound.js b/v2/lib/theme/NotFound.js index 193b0edb29..722096ae9b 100644 --- a/v2/lib/theme/NotFound.js +++ b/v2/lib/theme/NotFound.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Layout from '@theme/Layout'; diff --git a/v2/lib/theme/Pages/index.js b/v2/lib/theme/Pages/index.js index 12b394ea2f..c355bbcd1c 100644 --- a/v2/lib/theme/Pages/index.js +++ b/v2/lib/theme/Pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /* eslint-disable */ import React from 'react'; import {Link} from 'react-router-dom'; diff --git a/v2/lib/theme/Sidebar/SidebarCategory.js b/v2/lib/theme/Sidebar/SidebarCategory.js index 379ff9053b..85c2388432 100644 --- a/v2/lib/theme/Sidebar/SidebarCategory.js +++ b/v2/lib/theme/Sidebar/SidebarCategory.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import classnames from 'classnames'; diff --git a/v2/lib/theme/Sidebar/SidebarLink.js b/v2/lib/theme/Sidebar/SidebarLink.js index ee7fd6d215..1216a60cc5 100644 --- a/v2/lib/theme/Sidebar/SidebarLink.js +++ b/v2/lib/theme/Sidebar/SidebarLink.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import {NavLink} from 'react-router-dom'; import classnames from 'classnames'; diff --git a/v2/lib/theme/Sidebar/index.js b/v2/lib/theme/Sidebar/index.js index 92a450f661..8e3a36519c 100644 --- a/v2/lib/theme/Sidebar/index.js +++ b/v2/lib/theme/Sidebar/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import SidebarLink from './SidebarLink'; diff --git a/v2/lib/theme/Sidebar/styles.css b/v2/lib/theme/Sidebar/styles.css index 6b186a67f4..6a4d8ac7bf 100644 --- a/v2/lib/theme/Sidebar/styles.css +++ b/v2/lib/theme/Sidebar/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .sidebar { border-right: 1px solid #dadde1; bottom: 0; diff --git a/v2/lib/webpack/base.js b/v2/lib/webpack/base.js index 88fc422d4a..a609943673 100644 --- a/v2/lib/webpack/base.js +++ b/v2/lib/webpack/base.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const Config = require('webpack-chain'); const CSSExtractPlugin = require('mini-css-extract-plugin'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); diff --git a/v2/lib/webpack/client.js b/v2/lib/webpack/client.js index 1e46e8bd80..1c4b507707 100644 --- a/v2/lib/webpack/client.js +++ b/v2/lib/webpack/client.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const webpackNiceLog = require('webpack-nicelog'); const {StatsWriterPlugin} = require('webpack-stats-plugin'); diff --git a/v2/lib/webpack/loader/markdown.js b/v2/lib/webpack/loader/markdown.js index 42f398d16e..df5df6489b 100644 --- a/v2/lib/webpack/loader/markdown.js +++ b/v2/lib/webpack/loader/markdown.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const {getOptions} = require('loader-utils'); const path = require('path'); const fm = require('front-matter'); diff --git a/v2/lib/webpack/server.js b/v2/lib/webpack/server.js index d5c6aaa721..d735dba4da 100644 --- a/v2/lib/webpack/server.js +++ b/v2/lib/webpack/server.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const staticSiteGenerator = require('static-site-generator-webpack-plugin'); const webpackNiceLog = require('webpack-nicelog'); diff --git a/v2/lib/webpack/utils.js b/v2/lib/webpack/utils.js index abb0698e83..f9f79f70d8 100644 --- a/v2/lib/webpack/utils.js +++ b/v2/lib/webpack/utils.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const merge = require('webpack-merge'); // Modify the generated webpack config with normal webpack config diff --git a/v2/test/__fixtures__/custom-site/pages/bar/baz.js b/v2/test/__fixtures__/custom-site/pages/bar/baz.js index 75a8c70015..983aa3de41 100644 --- a/v2/test/__fixtures__/custom-site/pages/bar/baz.js +++ b/v2/test/__fixtures__/custom-site/pages/bar/baz.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; export default () =>
Baz
; diff --git a/v2/test/__fixtures__/custom-site/pages/foo.js b/v2/test/__fixtures__/custom-site/pages/foo.js index 3b52ec615c..3172cf83fd 100644 --- a/v2/test/__fixtures__/custom-site/pages/foo.js +++ b/v2/test/__fixtures__/custom-site/pages/foo.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; export default () =>
Foo
; diff --git a/v2/test/__fixtures__/custom-site/pages/foo/index.js b/v2/test/__fixtures__/custom-site/pages/foo/index.js index 5faf67ae13..df5dca6889 100644 --- a/v2/test/__fixtures__/custom-site/pages/foo/index.js +++ b/v2/test/__fixtures__/custom-site/pages/foo/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; export default () =>
Foo in subfolder
; diff --git a/v2/test/__fixtures__/custom-site/pages/index.js b/v2/test/__fixtures__/custom-site/pages/index.js index 13063810a7..0a075a6f77 100644 --- a/v2/test/__fixtures__/custom-site/pages/index.js +++ b/v2/test/__fixtures__/custom-site/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; export default () =>
Index
; diff --git a/v2/test/__fixtures__/custom-site/siteConfig.js b/v2/test/__fixtures__/custom-site/siteConfig.js index 603d053627..9c92b854cf 100644 --- a/v2/test/__fixtures__/custom-site/siteConfig.js +++ b/v2/test/__fixtures__/custom-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Sakura', tagline: 'This is not an ordinary site', diff --git a/v2/test/__fixtures__/simple-site/pages/hello/world.js b/v2/test/__fixtures__/simple-site/pages/hello/world.js index 8ad467948a..f69e92e5b9 100644 --- a/v2/test/__fixtures__/simple-site/pages/hello/world.js +++ b/v2/test/__fixtures__/simple-site/pages/hello/world.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/simple-site/pages/index.js b/v2/test/__fixtures__/simple-site/pages/index.js index 023f0fb2f9..2a6696a5ea 100644 --- a/v2/test/__fixtures__/simple-site/pages/index.js +++ b/v2/test/__fixtures__/simple-site/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/simple-site/static/css/basic.css b/v2/test/__fixtures__/simple-site/static/css/basic.css index e6e089cbfa..36a80ef795 100644 --- a/v2/test/__fixtures__/simple-site/static/css/basic.css +++ b/v2/test/__fixtures__/simple-site/static/css/basic.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + html, body { margin: 0; @@ -36,7 +43,7 @@ body { } button, -input[type="checkbox"] { +input[type='checkbox'] { outline: none; } @@ -48,8 +55,7 @@ input[type="checkbox"] { background: #fff; margin: 130px 0 40px 0; position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), - 0 25px 50px 0 rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); } .todoapp input::-webkit-input-placeholder { @@ -108,7 +114,7 @@ input[type="checkbox"] { padding: 16px 16px 16px 60px; border: none; background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03); + box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); } .main { @@ -262,11 +268,9 @@ label[for='toggle-all'] { left: 0; height: 50px; overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), - 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), - 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, + 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, + 0 17px 2px -6px rgba(0, 0, 0, 0.2); } .todo-count { @@ -349,7 +353,7 @@ html .clear-completed:active { Hack to remove background from Mobile Safari. Can't use it globally since it destroys checkboxes in Firefox */ -@media screen and (-webkit-min-device-pixel-ratio:0) { +@media screen and (-webkit-min-device-pixel-ratio: 0) { .toggle-all, .todo-list li .toggle { background: none; diff --git a/v2/test/__fixtures__/translated-site/languages.js b/v2/test/__fixtures__/translated-site/languages.js index d7e55bf050..296a6d6f08 100644 --- a/v2/test/__fixtures__/translated-site/languages.js +++ b/v2/test/__fixtures__/translated-site/languages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const languages = [ { enabled: true, diff --git a/v2/test/__fixtures__/translated-site/pages/hello/world.js b/v2/test/__fixtures__/translated-site/pages/hello/world.js index 8ad467948a..f69e92e5b9 100644 --- a/v2/test/__fixtures__/translated-site/pages/hello/world.js +++ b/v2/test/__fixtures__/translated-site/pages/hello/world.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/translated-site/pages/index.js b/v2/test/__fixtures__/translated-site/pages/index.js index 023f0fb2f9..2a6696a5ea 100644 --- a/v2/test/__fixtures__/translated-site/pages/index.js +++ b/v2/test/__fixtures__/translated-site/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/translated-site/siteConfig.js b/v2/test/__fixtures__/translated-site/siteConfig.js index 8f3f6bd626..783328af3f 100644 --- a/v2/test/__fixtures__/translated-site/siteConfig.js +++ b/v2/test/__fixtures__/translated-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/__fixtures__/translated-site/static/css/basic.css b/v2/test/__fixtures__/translated-site/static/css/basic.css index e6e089cbfa..36a80ef795 100644 --- a/v2/test/__fixtures__/translated-site/static/css/basic.css +++ b/v2/test/__fixtures__/translated-site/static/css/basic.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + html, body { margin: 0; @@ -36,7 +43,7 @@ body { } button, -input[type="checkbox"] { +input[type='checkbox'] { outline: none; } @@ -48,8 +55,7 @@ input[type="checkbox"] { background: #fff; margin: 130px 0 40px 0; position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), - 0 25px 50px 0 rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); } .todoapp input::-webkit-input-placeholder { @@ -108,7 +114,7 @@ input[type="checkbox"] { padding: 16px 16px 16px 60px; border: none; background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03); + box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); } .main { @@ -262,11 +268,9 @@ label[for='toggle-all'] { left: 0; height: 50px; overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), - 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), - 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, + 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, + 0 17px 2px -6px rgba(0, 0, 0, 0.2); } .todo-count { @@ -349,7 +353,7 @@ html .clear-completed:active { Hack to remove background from Mobile Safari. Can't use it globally since it destroys checkboxes in Firefox */ -@media screen and (-webkit-min-device-pixel-ratio:0) { +@media screen and (-webkit-min-device-pixel-ratio: 0) { .toggle-all, .todo-list li .toggle { background: none; diff --git a/v2/test/__fixtures__/transversioned-site/languages.js b/v2/test/__fixtures__/transversioned-site/languages.js index d7e55bf050..296a6d6f08 100644 --- a/v2/test/__fixtures__/transversioned-site/languages.js +++ b/v2/test/__fixtures__/transversioned-site/languages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const languages = [ { enabled: true, diff --git a/v2/test/__fixtures__/transversioned-site/pages/hello/world.js b/v2/test/__fixtures__/transversioned-site/pages/hello/world.js index 8ad467948a..f69e92e5b9 100644 --- a/v2/test/__fixtures__/transversioned-site/pages/hello/world.js +++ b/v2/test/__fixtures__/transversioned-site/pages/hello/world.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/transversioned-site/pages/index.js b/v2/test/__fixtures__/transversioned-site/pages/index.js index 023f0fb2f9..2a6696a5ea 100644 --- a/v2/test/__fixtures__/transversioned-site/pages/index.js +++ b/v2/test/__fixtures__/transversioned-site/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/transversioned-site/siteConfig.js b/v2/test/__fixtures__/transversioned-site/siteConfig.js index 8f3f6bd626..783328af3f 100644 --- a/v2/test/__fixtures__/transversioned-site/siteConfig.js +++ b/v2/test/__fixtures__/transversioned-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/__fixtures__/transversioned-site/static/css/basic.css b/v2/test/__fixtures__/transversioned-site/static/css/basic.css index e6e089cbfa..36a80ef795 100644 --- a/v2/test/__fixtures__/transversioned-site/static/css/basic.css +++ b/v2/test/__fixtures__/transversioned-site/static/css/basic.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + html, body { margin: 0; @@ -36,7 +43,7 @@ body { } button, -input[type="checkbox"] { +input[type='checkbox'] { outline: none; } @@ -48,8 +55,7 @@ input[type="checkbox"] { background: #fff; margin: 130px 0 40px 0; position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), - 0 25px 50px 0 rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); } .todoapp input::-webkit-input-placeholder { @@ -108,7 +114,7 @@ input[type="checkbox"] { padding: 16px 16px 16px 60px; border: none; background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03); + box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); } .main { @@ -262,11 +268,9 @@ label[for='toggle-all'] { left: 0; height: 50px; overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), - 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), - 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, + 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, + 0 17px 2px -6px rgba(0, 0, 0, 0.2); } .todo-count { @@ -349,7 +353,7 @@ html .clear-completed:active { Hack to remove background from Mobile Safari. Can't use it globally since it destroys checkboxes in Firefox */ -@media screen and (-webkit-min-device-pixel-ratio:0) { +@media screen and (-webkit-min-device-pixel-ratio: 0) { .toggle-all, .todo-list li .toggle { background: none; diff --git a/v2/test/__fixtures__/versioned-site/pages/hello/world.js b/v2/test/__fixtures__/versioned-site/pages/hello/world.js index 8ad467948a..f69e92e5b9 100644 --- a/v2/test/__fixtures__/versioned-site/pages/hello/world.js +++ b/v2/test/__fixtures__/versioned-site/pages/hello/world.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/versioned-site/pages/index.js b/v2/test/__fixtures__/versioned-site/pages/index.js index 023f0fb2f9..2a6696a5ea 100644 --- a/v2/test/__fixtures__/versioned-site/pages/index.js +++ b/v2/test/__fixtures__/versioned-site/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/test/__fixtures__/versioned-site/siteConfig.js b/v2/test/__fixtures__/versioned-site/siteConfig.js index 9fe39b8a33..1bd557fa87 100644 --- a/v2/test/__fixtures__/versioned-site/siteConfig.js +++ b/v2/test/__fixtures__/versioned-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/__fixtures__/versioned-site/static/css/basic.css b/v2/test/__fixtures__/versioned-site/static/css/basic.css index e6e089cbfa..36a80ef795 100644 --- a/v2/test/__fixtures__/versioned-site/static/css/basic.css +++ b/v2/test/__fixtures__/versioned-site/static/css/basic.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + html, body { margin: 0; @@ -36,7 +43,7 @@ body { } button, -input[type="checkbox"] { +input[type='checkbox'] { outline: none; } @@ -48,8 +55,7 @@ input[type="checkbox"] { background: #fff; margin: 130px 0 40px 0; position: relative; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), - 0 25px 50px 0 rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); } .todoapp input::-webkit-input-placeholder { @@ -108,7 +114,7 @@ input[type="checkbox"] { padding: 16px 16px 16px 60px; border: none; background: rgba(0, 0, 0, 0.003); - box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03); + box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); } .main { @@ -262,11 +268,9 @@ label[for='toggle-all'] { left: 0; height: 50px; overflow: hidden; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), - 0 8px 0 -3px #f6f6f6, - 0 9px 1px -3px rgba(0, 0, 0, 0.2), - 0 16px 0 -6px #f6f6f6, - 0 17px 2px -6px rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, + 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, + 0 17px 2px -6px rgba(0, 0, 0, 0.2); } .todo-count { @@ -349,7 +353,7 @@ html .clear-completed:active { Hack to remove background from Mobile Safari. Can't use it globally since it destroys checkboxes in Firefox */ -@media screen and (-webkit-min-device-pixel-ratio:0) { +@media screen and (-webkit-min-device-pixel-ratio: 0) { .toggle-all, .todo-list li .toggle { background: none; diff --git a/v2/test/core/sitemap.test.js b/v2/test/core/sitemap.test.js index ac359b2c37..a91d7e187d 100644 --- a/v2/test/core/sitemap.test.js +++ b/v2/test/core/sitemap.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import '@babel/polyfill'; import createSitemap from '@lib/core/sitemap'; import loadSetup from '../loadSetup'; diff --git a/v2/test/jest.config.js b/v2/test/jest.config.js index 0d5f2c5da2..c19e7bcd91 100644 --- a/v2/test/jest.config.js +++ b/v2/test/jest.config.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); module.exports = { diff --git a/v2/test/load/__fixtures__/bad-site/languages.js b/v2/test/load/__fixtures__/bad-site/languages.js index fb5033422d..f04bec1e33 100644 --- a/v2/test/load/__fixtures__/bad-site/languages.js +++ b/v2/test/load/__fixtures__/bad-site/languages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const languages = [ { enabled: false, diff --git a/v2/test/load/__fixtures__/bad-site/siteConfig.js b/v2/test/load/__fixtures__/bad-site/siteConfig.js index 5994a0e203..29b66deacc 100644 --- a/v2/test/load/__fixtures__/bad-site/siteConfig.js +++ b/v2/test/load/__fixtures__/bad-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'docusaurus', baseUrl: '/', diff --git a/v2/test/load/__fixtures__/simple-site/siteConfig.js b/v2/test/load/__fixtures__/simple-site/siteConfig.js index 9fe39b8a33..1bd557fa87 100644 --- a/v2/test/load/__fixtures__/simple-site/siteConfig.js +++ b/v2/test/load/__fixtures__/simple-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/load/__fixtures__/translated-site/languages.js b/v2/test/load/__fixtures__/translated-site/languages.js index 14c4aca911..2bb754b1a6 100644 --- a/v2/test/load/__fixtures__/translated-site/languages.js +++ b/v2/test/load/__fixtures__/translated-site/languages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const languages = [ { enabled: true, diff --git a/v2/test/load/__fixtures__/translated-site/siteConfig.js b/v2/test/load/__fixtures__/translated-site/siteConfig.js index 8f3f6bd626..783328af3f 100644 --- a/v2/test/load/__fixtures__/translated-site/siteConfig.js +++ b/v2/test/load/__fixtures__/translated-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/load/__fixtures__/transversioned-site/languages.js b/v2/test/load/__fixtures__/transversioned-site/languages.js index 14c4aca911..2bb754b1a6 100644 --- a/v2/test/load/__fixtures__/transversioned-site/languages.js +++ b/v2/test/load/__fixtures__/transversioned-site/languages.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const languages = [ { enabled: true, diff --git a/v2/test/load/__fixtures__/transversioned-site/siteConfig.js b/v2/test/load/__fixtures__/transversioned-site/siteConfig.js index 8f3f6bd626..783328af3f 100644 --- a/v2/test/load/__fixtures__/transversioned-site/siteConfig.js +++ b/v2/test/load/__fixtures__/transversioned-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/load/__fixtures__/versioned-site/siteConfig.js b/v2/test/load/__fixtures__/versioned-site/siteConfig.js index 9fe39b8a33..1bd557fa87 100644 --- a/v2/test/load/__fixtures__/versioned-site/siteConfig.js +++ b/v2/test/load/__fixtures__/versioned-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/load/__fixtures__/wrong-site/siteConfig.js b/v2/test/load/__fixtures__/wrong-site/siteConfig.js index 9a395fe960..271902ef6e 100644 --- a/v2/test/load/__fixtures__/wrong-site/siteConfig.js +++ b/v2/test/load/__fixtures__/wrong-site/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'Hello', tagline: 'Hello World', diff --git a/v2/test/load/config.test.js b/v2/test/load/config.test.js index c414008939..622db84246 100644 --- a/v2/test/load/config.test.js +++ b/v2/test/load/config.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import path from 'path'; import loadConfig from '@lib/load/config'; diff --git a/v2/test/load/docs/index.test.js b/v2/test/load/docs/index.test.js index 4132c0ad9b..a98b8c256c 100644 --- a/v2/test/load/docs/index.test.js +++ b/v2/test/load/docs/index.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import '@babel/polyfill'; import path from 'path'; import loadDocs from '@lib/load/docs'; diff --git a/v2/test/load/docs/metadata.test.js b/v2/test/load/docs/metadata.test.js index 406e128869..5ada4b7ada 100644 --- a/v2/test/load/docs/metadata.test.js +++ b/v2/test/load/docs/metadata.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import '@babel/polyfill'; import path from 'path'; import processMetadata from '@lib/load/docs/metadata'; diff --git a/v2/test/load/docs/order.test.js b/v2/test/load/docs/order.test.js index 7f0826386c..ca41a15d4f 100644 --- a/v2/test/load/docs/order.test.js +++ b/v2/test/load/docs/order.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import createOrder from '@lib/load/docs/order'; describe('createOrder', () => { diff --git a/v2/test/load/docs/sidebars.test.js b/v2/test/load/docs/sidebars.test.js index 75246179e1..2f4289767a 100644 --- a/v2/test/load/docs/sidebars.test.js +++ b/v2/test/load/docs/sidebars.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import path from 'path'; import loadSidebars from '@lib/load/docs/sidebars'; diff --git a/v2/test/load/env.test.js b/v2/test/load/env.test.js index bb7e90b4b2..55b6f7a4f8 100644 --- a/v2/test/load/env.test.js +++ b/v2/test/load/env.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import path from 'path'; import loadEnv from '@lib/load/env'; diff --git a/v2/test/load/pages.test.js b/v2/test/load/pages.test.js index 252556fec3..9e57965c10 100644 --- a/v2/test/load/pages.test.js +++ b/v2/test/load/pages.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import loadPages from '@lib/load/pages'; import path from 'path'; import loadSetup from '../loadSetup'; diff --git a/v2/test/load/routes.test.js b/v2/test/load/routes.test.js index 28ba6c19df..385f9f949f 100644 --- a/v2/test/load/routes.test.js +++ b/v2/test/load/routes.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import genRoutesConfig from '@lib/load/routes'; import loadSetup from '../loadSetup'; diff --git a/v2/test/load/utils.test.js b/v2/test/load/utils.test.js index 87f129f461..4488113fd0 100644 --- a/v2/test/load/utils.test.js +++ b/v2/test/load/utils.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import path from 'path'; import { fileToPath, diff --git a/v2/test/loadSetup.js b/v2/test/loadSetup.js index 85346d5d0d..323135dead 100644 --- a/v2/test/loadSetup.js +++ b/v2/test/loadSetup.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import '@babel/polyfill'; import path from 'path'; import load from '@lib/load'; diff --git a/v2/test/webpack/base.test.js b/v2/test/webpack/base.test.js index 1e17156703..d5edddaffc 100644 --- a/v2/test/webpack/base.test.js +++ b/v2/test/webpack/base.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import createBaseConfig from '@lib/webpack/base'; import {validate} from 'webpack'; import loadSetup from '../loadSetup'; diff --git a/v2/test/webpack/client.test.js b/v2/test/webpack/client.test.js index 2f22a3ffd0..327dc36f51 100644 --- a/v2/test/webpack/client.test.js +++ b/v2/test/webpack/client.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import createClientConfig from '@lib/webpack/client'; import {validate} from 'webpack'; import loadSetup from '../loadSetup'; diff --git a/v2/test/webpack/server.test.js b/v2/test/webpack/server.test.js index 9e4abf7b9b..013b5e77e4 100644 --- a/v2/test/webpack/server.test.js +++ b/v2/test/webpack/server.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import createServerConfig from '@lib/webpack/server'; import {validate} from 'webpack'; import loadSetup from '../loadSetup'; diff --git a/v2/test/webpack/utils.test.js b/v2/test/webpack/utils.test.js index f56c18600d..f2ce990671 100644 --- a/v2/test/webpack/utils.test.js +++ b/v2/test/webpack/utils.test.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import '@babel/polyfill'; import {validate} from 'webpack'; import path from 'path'; diff --git a/v2/website/components/Tictactoe/board.js b/v2/website/components/Tictactoe/board.js index a189cb5a45..a8806603f4 100644 --- a/v2/website/components/Tictactoe/board.js +++ b/v2/website/components/Tictactoe/board.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Square from './square'; import styles from './styles.css'; diff --git a/v2/website/components/Tictactoe/index.js b/v2/website/components/Tictactoe/index.js index 66eaa066c5..f2979f08fb 100644 --- a/v2/website/components/Tictactoe/index.js +++ b/v2/website/components/Tictactoe/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; import Layout from '@theme/Layout'; diff --git a/v2/website/components/Tictactoe/square.js b/v2/website/components/Tictactoe/square.js index 1fed93a270..df3a4b92f3 100644 --- a/v2/website/components/Tictactoe/square.js +++ b/v2/website/components/Tictactoe/square.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import styles from './styles.css'; diff --git a/v2/website/components/Tictactoe/styles.css b/v2/website/components/Tictactoe/styles.css index 3785308702..a1c1610426 100644 --- a/v2/website/components/Tictactoe/styles.css +++ b/v2/website/components/Tictactoe/styles.css @@ -1,6 +1,13 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .boardRow:after { clear: both; - content: ""; + content: ''; display: table; } @@ -41,4 +48,4 @@ .gameBoard { margin-left: 10px; -} \ No newline at end of file +} diff --git a/v2/website/pages/index.js b/v2/website/pages/index.js index 585ba11201..20266eb4a5 100644 --- a/v2/website/pages/index.js +++ b/v2/website/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; diff --git a/v2/website/pages/styles.css b/v2/website/pages/styles.css index 88c1f4c919..682d0da9d5 100644 --- a/v2/website/pages/styles.css +++ b/v2/website/pages/styles.css @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + .section { padding: 72px 0; } diff --git a/v2/website/pages/tictactoe.js b/v2/website/pages/tictactoe.js index b7aa6baacd..f4872cdb16 100644 --- a/v2/website/pages/tictactoe.js +++ b/v2/website/pages/tictactoe.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; import Tictactoe from '@site/components/Tictactoe'; diff --git a/v2/website/pages/youtube.js b/v2/website/pages/youtube.js index 9e39698617..de2003309a 100644 --- a/v2/website/pages/youtube.js +++ b/v2/website/pages/youtube.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Helmet from 'react-helmet'; import YouTube from 'react-youtube'; diff --git a/v2/website/siteConfig.js b/v2/website/siteConfig.js index 0f36758544..9052b4917f 100644 --- a/v2/website/siteConfig.js +++ b/v2/website/siteConfig.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { title: 'docusaurus', tagline: '📝⚡️ Transform your document (문서) to a website',