diff --git a/app/content/webviewPreload.js b/app/content/webviewPreload.js index c5335616d5b..b21a17d0812 100644 --- a/app/content/webviewPreload.js +++ b/app/content/webviewPreload.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + var webFrame = require('electron').webFrame var ipc = require('electron').ipcRenderer diff --git a/app/index.js b/app/index.js index b16b7604146..67c62674c5e 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + 'use strict' const electron = require('electron') const ipcMain = electron.ipcMain @@ -84,4 +88,3 @@ app.on('ready', function () { Menu.init() }) - diff --git a/app/menu.js b/app/menu.js index 0c881b9cdd8..96a661d5c14 100644 --- a/app/menu.js +++ b/app/menu.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const electron = require('electron') const app = electron.app const Menu = require('menu') diff --git a/js/actions/appActions.js b/js/actions/appActions.js index de3ea394bb2..47bf59b11a2 100644 --- a/js/actions/appActions.js +++ b/js/actions/appActions.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + 'use strict' const AppDispatcher = require('../dispatcher/appDispatcher') diff --git a/js/components/app.js b/js/components/app.js index ed73b557daa..5f169f35ba7 100644 --- a/js/components/app.js +++ b/js/components/app.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + // Controller view which manages the top level immutable state for the app const React = require('react') diff --git a/js/components/button.js b/js/components/button.js index ab6e46ea4e7..288af73d738 100644 --- a/js/components/button.js +++ b/js/components/button.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ImmutableComponent = require('./immutableComponent') const cx = require('../lib/classSet.js') diff --git a/js/components/frame.js b/js/components/frame.js index 23edaa3c4ff..b82ea9352cc 100644 --- a/js/components/frame.js +++ b/js/components/frame.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ReactDOM = require('react-dom') const AppActions = require('../actions/appActions') diff --git a/js/components/immutableComponent.js b/js/components/immutableComponent.js index 1f25cb4875b..a1b30793fad 100644 --- a/js/components/immutableComponent.js +++ b/js/components/immutableComponent.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const Immutable = require('immutable') diff --git a/js/components/main.js b/js/components/main.js index 61c09c90e55..4911fc08b60 100644 --- a/js/components/main.js +++ b/js/components/main.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ImmutableComponent = require('./immutableComponent') const electron = global.require('electron') diff --git a/js/components/navigationBar.js b/js/components/navigationBar.js index 0820dc8efac..12fad0bafdc 100644 --- a/js/components/navigationBar.js +++ b/js/components/navigationBar.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ImmutableComponent = require('./immutableComponent') diff --git a/js/components/tabs.js b/js/components/tabs.js index 1c8b7a6d0bf..190f6e6d4a0 100644 --- a/js/components/tabs.js +++ b/js/components/tabs.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ReactDOM = require('react-dom') diff --git a/js/components/urlBar.js b/js/components/urlBar.js index 23567c3e38d..2491c255df6 100644 --- a/js/components/urlBar.js +++ b/js/components/urlBar.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const ReactDOM = require('react-dom') diff --git a/js/components/urlBarSuggestions.js b/js/components/urlBarSuggestions.js index 73f127daaf7..3ed024bc446 100644 --- a/js/components/urlBarSuggestions.js +++ b/js/components/urlBarSuggestions.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const React = require('react') const AppActions = require('../actions/appActions') diff --git a/js/constants/appConstants.js b/js/constants/appConstants.js index 1a0705357ee..1fb6876fada 100644 --- a/js/constants/appConstants.js +++ b/js/constants/appConstants.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + module.exports = { APP_SET_URL: 1, APP_SET_NAVBAR_INPUT: 2, diff --git a/js/data/top500.js b/js/data/top500.js index 8eca47ae4e8..994ba5b099b 100644 --- a/js/data/top500.js +++ b/js/data/top500.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + import Immutable from 'immutable' // Top 500 alexa sites sorted by popularity diff --git a/js/dispatcher/appDispatcher.js b/js/dispatcher/appDispatcher.js index 18a63c016b1..ad7de0ebe86 100644 --- a/js/dispatcher/appDispatcher.js +++ b/js/dispatcher/appDispatcher.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + var Dispatcher = require('./Dispatcher') class AppDispatcher extends Dispatcher { diff --git a/js/dispatcher/dispatcher.js b/js/dispatcher/dispatcher.js index 2375009ad16..391f76d8a37 100644 --- a/js/dispatcher/dispatcher.js +++ b/js/dispatcher/dispatcher.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + class Dispatcher { constructor () { diff --git a/js/entry.js b/js/entry.js index 4a372c020e3..dfac18d54de 100644 --- a/js/entry.js +++ b/js/entry.js @@ -1,3 +1,6 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ // Stylesheets are included here for webpack live reloading require('../less/browser.less') diff --git a/js/lib/appUrlUtil.js b/js/lib/appUrlUtil.js index 3b567bf9282..ab82d921d24 100644 --- a/js/lib/appUrlUtil.js +++ b/js/lib/appUrlUtil.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const Immutable = require('immutable') /** diff --git a/js/lib/debounce.js b/js/lib/debounce.js index a04c83cd52f..b6ddb93cc47 100644 --- a/js/lib/debounce.js +++ b/js/lib/debounce.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + export default function debounce (fn, bufferInterval, ...args) { var timeout return () => { diff --git a/js/lib/faviconUtil.js b/js/lib/faviconUtil.js index 6fc16bd9f10..e0ca0cb511d 100644 --- a/js/lib/faviconUtil.js +++ b/js/lib/faviconUtil.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + import { isSourceAboutUrl } from './appUrlUtil.js' const UrlUtil = require('../../node_modules/urlutil.js/dist/node-urlutil.js') diff --git a/js/lib/siteUtil.js b/js/lib/siteUtil.js index d8e5607dccc..93789539a24 100644 --- a/js/lib/siteUtil.js +++ b/js/lib/siteUtil.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + import Immutable from 'immutable' /** diff --git a/js/stores/appStore.js b/js/stores/appStore.js index 40b1d85d35a..bddf4c5a931 100644 --- a/js/stores/appStore.js +++ b/js/stores/appStore.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + const AppDispatcher = require('../dispatcher/appDispatcher') const EventEmitter = require('events').EventEmitter const AppConstants = require('../constants/appConstants') diff --git a/less/button.less b/less/button.less index 5a664d48a27..d495374b279 100644 --- a/less/button.less +++ b/less/button.less @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + @import "variables.less"; span.browserButton { diff --git a/less/main.less b/less/main.less index 47e276bff3a..b6a3224373e 100644 --- a/less/main.less +++ b/less/main.less @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + @bodyBG: #000; @appContainerFG: #f00; diff --git a/package.json b/package.json index 958d246fb89..0c8450a0724 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "Brave", + "name": "brave", "version": "0.0.1", "description": "Brave laptop and desktop browser", "main": "./app/index.js", @@ -21,7 +21,7 @@ "url": "git+https://github.com/bbondy/electron-sample.git" }, "author": "Brian R. Bondy (http://www.brianbondy.com)", - "license": "MIT", + "license": "MPL-2.0", "bugs": { "url": "https://github.com/bbondy/electron-sample/issues" }, diff --git a/webpack.config.js b/webpack.config.js index 4656b41ce98..07b47ae859f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + var webpack = require('webpack') module.exports = { @@ -65,4 +69,3 @@ module.exports = { publicPath: 'http://localhost:8080/built/' } } -