From acb8e818dbd354e41ae98b5483e3d018e0ad955f Mon Sep 17 00:00:00 2001 From: Simon Wex Date: Wed, 13 Mar 2013 14:21:01 -0700 Subject: [PATCH] Adding MPLv2 to the JavaScript files that didn't include it. --- addon/data/attachment.js | 4 ++++ addon/data/button.js | 4 ++++ addon/lib/main.js | 4 ++++ addon/lib/startup-panel.js | 8 +++++--- app/http/public/recorder.less | 4 ++++ app/http/public/style.css | 4 ++++ app/http/public/towtruck.less | 4 ++++ app/http/public/towtruck/channels.js | 4 ++++ app/http/public/towtruck/chat.js | 4 ++++ app/http/public/towtruck/cobrowse.js | 9 +++++++-- app/http/public/towtruck/cursor.js | 8 ++++++-- app/http/public/towtruck/element-finder.js | 4 ++++ app/http/public/towtruck/eventMaker.js | 4 ++++ app/http/public/towtruck/libs/alien-avatar-generator.js | 4 ++++ app/http/public/towtruck/playback.js | 4 ++++ app/http/public/towtruck/recorder.js | 4 ++++ app/http/public/towtruck/session.js | 4 ++++ app/http/public/towtruck/tracker.js | 4 ++++ app/http/public/towtruck/ui.js | 4 ++++ app/http/public/towtruck/util.js | 4 ++++ app/http/public/towtruck/webrtc.js | 9 ++++++--- app/http/views/towtruck/templates.js | 4 ++++ app/http/views/towtruck/towtruck.js | 4 ++++ app/hub/server.js | 4 ++++ 24 files changed, 104 insertions(+), 10 deletions(-) diff --git a/addon/data/attachment.js b/addon/data/attachment.js index 1455825c1..51b45d29e 100644 --- a/addon/data/attachment.js +++ b/addon/data/attachment.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/. */ + self.port.on("Config", function (config) { var doc = unsafeWindow.document; unsafeWindow._TowTruckBookmarklet = true; diff --git a/addon/data/button.js b/addon/data/button.js index 575385714..e8587b38a 100644 --- a/addon/data/button.js +++ b/addon/data/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/. */ + self.port.on("TowTruckOn", function () { document.getElementById("towtruck-button").innerHTML = "truckin'"; }); diff --git a/addon/lib/main.js b/addon/lib/main.js index 788b9b1ab..044d8be2b 100644 --- a/addon/lib/main.js +++ b/addon/lib/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 widgets = require("widget"); const data = require("self").data; const tabs = require("tabs"); diff --git a/addon/lib/startup-panel.js b/addon/lib/startup-panel.js index f6db8c316..cd379bab9 100644 --- a/addon/lib/startup-panel.js +++ b/addon/lib/startup-panel.js @@ -1,6 +1,8 @@ -/* -Shows a panel (typically describing the addon) the first time an addon is installed. -*/ +/* 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/. */ + +// Shows a panel (typically describing the addon) the first time an addon is installed. const { Panel } = require("panel"); const ss = require("simple-storage"); diff --git a/app/http/public/recorder.less b/app/http/public/recorder.less index c13b41b09..7ce283dfd 100644 --- a/app/http/public/recorder.less +++ b/app/http/public/recorder.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/. */ + body { font-family: sans-serif; } diff --git a/app/http/public/style.css b/app/http/public/style.css index 9bb10109e..697390485 100644 --- a/app/http/public/style.css +++ b/app/http/public/style.css @@ -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/. */ + body { padding-bottom: 0px; background-color: #1baefc; diff --git a/app/http/public/towtruck.less b/app/http/public/towtruck.less index a5acc7f82..a5b997fe3 100644 --- a/app/http/public/towtruck.less +++ b/app/http/public/towtruck.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/. */ + /*Fonts*/ @font-face { font-family: openSansRegular; diff --git a/app/http/public/towtruck/channels.js b/app/http/public/towtruck/channels.js index 473752292..65fb80754 100644 --- a/app/http/public/towtruck/channels.js +++ b/app/http/public/towtruck/channels.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/. */ + /* Channel abstraction. Supported channels: - WebSocket to an address diff --git a/app/http/public/towtruck/chat.js b/app/http/public/towtruck/chat.js index 0abbaf764..ce5581384 100644 --- a/app/http/public/towtruck/chat.js +++ b/app/http/public/towtruck/chat.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/. */ + define(["require", "jquery", "util", "session", "ui", "templates", "playback"], function (require, $, util, session, ui, templates, playback) { var chat = util.Module("chat"); var assert = util.assert; diff --git a/app/http/public/towtruck/cobrowse.js b/app/http/public/towtruck/cobrowse.js index a0e46023b..1bc414162 100644 --- a/app/http/public/towtruck/cobrowse.js +++ b/app/http/public/towtruck/cobrowse.js @@ -1,5 +1,9 @@ -/* Co-browsing: moving around the site together - */ +/* 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/. */ + +// Co-browsing: moving around the site together + define(["jquery", "util", "session", "ui"], function ($, util, session, ui) { var assert = util.assert; @@ -25,3 +29,4 @@ define(["jquery", "util", "session", "ui"], function ($, util, session, ui) { }); }); + diff --git a/app/http/public/towtruck/cursor.js b/app/http/public/towtruck/cursor.js index 898b4f8ad..eec51a550 100644 --- a/app/http/public/towtruck/cursor.js +++ b/app/http/public/towtruck/cursor.js @@ -1,5 +1,9 @@ -/* Cursor viewing support - */ +/* 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/. */ + +// Cursor viewing support + define(["jquery", "ui", "util", "session", "element-finder", "tinycolor", "eventMaker"], function ($, ui, util, session, elementFinder, tinycolor, eventMaker) { var assert = util.assert; var AssertionError = util.AssertionError; diff --git a/app/http/public/towtruck/element-finder.js b/app/http/public/towtruck/element-finder.js index 051bdc440..74d482b8b 100644 --- a/app/http/public/towtruck/element-finder.js +++ b/app/http/public/towtruck/element-finder.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/. */ + define(["util", "jquery"], function (util, $) { var elementFinder = util.Module("element-finder"); var assert = util.assert; diff --git a/app/http/public/towtruck/eventMaker.js b/app/http/public/towtruck/eventMaker.js index 220096280..798472e5b 100644 --- a/app/http/public/towtruck/eventMaker.js +++ b/app/http/public/towtruck/eventMaker.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/. */ + define(["jquery", "util"], function ($, util) { var eventMaker = util.Module("eventMaker"); var assert = util.assert; diff --git a/app/http/public/towtruck/libs/alien-avatar-generator.js b/app/http/public/towtruck/libs/alien-avatar-generator.js index dc13a5d2c..fe1b54047 100644 --- a/app/http/public/towtruck/libs/alien-avatar-generator.js +++ b/app/http/public/towtruck/libs/alien-avatar-generator.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/. */ + (function () { var $ = window.$; diff --git a/app/http/public/towtruck/playback.js b/app/http/public/towtruck/playback.js index 7fbcaf681..628405acd 100644 --- a/app/http/public/towtruck/playback.js +++ b/app/http/public/towtruck/playback.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/. */ + define(["jquery", "util", "session"], function ($, util, session) { var playback = util.Module("playback"); var assert = util.assert; diff --git a/app/http/public/towtruck/recorder.js b/app/http/public/towtruck/recorder.js index b8b35925c..fe1526be6 100644 --- a/app/http/public/towtruck/recorder.js +++ b/app/http/public/towtruck/recorder.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/. */ + define(["jquery", "util", "channels"], function ($, util, channels) { var recorder = util.Module("recorder"); var assert = util.assert; diff --git a/app/http/public/towtruck/session.js b/app/http/public/towtruck/session.js index 576844e73..29fe7f5f5 100644 --- a/app/http/public/towtruck/session.js +++ b/app/http/public/towtruck/session.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/. */ + define(["require", "util", "channels", "jquery"], function (require, util, channels, $) { var DEBUG = true; diff --git a/app/http/public/towtruck/tracker.js b/app/http/public/towtruck/tracker.js index 6fe1b6309..89ed49745 100644 --- a/app/http/public/towtruck/tracker.js +++ b/app/http/public/towtruck/tracker.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/. */ + define(["jquery", "util", "session", "element-finder"], function ($, util, session, elementFinder) { var tracker = util.Module("tracker"); diff --git a/app/http/public/towtruck/ui.js b/app/http/public/towtruck/ui.js index 9c2fa9d9d..468fc78ae 100644 --- a/app/http/public/towtruck/ui.js +++ b/app/http/public/towtruck/ui.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/. */ + define(["require", "jquery", "util", "session", "templates", "element-finder"], function (require, $, util, session, templates, elementFinder) { TowTruck.$ = $; var ui = util.Module('ui'); diff --git a/app/http/public/towtruck/util.js b/app/http/public/towtruck/util.js index 0d54193d2..06f2bd910 100644 --- a/app/http/public/towtruck/util.js +++ b/app/http/public/towtruck/util.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/. */ + define([], function () { var util = {}; /* A simple class pattern, use like: diff --git a/app/http/public/towtruck/webrtc.js b/app/http/public/towtruck/webrtc.js index 6e8d2314c..f21548adc 100644 --- a/app/http/public/towtruck/webrtc.js +++ b/app/http/public/towtruck/webrtc.js @@ -1,6 +1,9 @@ -/* WebRTC support - Note that this relies on parts of the interface code that usually goes in ui.js - */ +/* 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/. */ + +// WebRTC support -- Note that this relies on parts of the interface code that usually goes in ui.js + define(["require", "jquery", "util", "session", "ui"], function (require, $, util, session, ui) { var webrtc = util.Module("webrtc"); var assert = util.assert; diff --git a/app/http/views/towtruck/templates.js b/app/http/views/towtruck/templates.js index 04957b56b..372569444 100644 --- a/app/http/views/towtruck/templates.js +++ b/app/http/views/towtruck/templates.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/. */ + define(["util"], function (util) { function clean(t) { t = t.replace(/[<][%]\s*\/\*[\S\s\r\n]*\*\/\s*[%][>]/, ""); diff --git a/app/http/views/towtruck/towtruck.js b/app/http/views/towtruck/towtruck.js index 17653da9e..8c2e7c516 100644 --- a/app/http/views/towtruck/towtruck.js +++ b/app/http/views/towtruck/towtruck.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/. */ + /*jshint scripturl:true */ (function () { diff --git a/app/hub/server.js b/app/hub/server.js index 44c03f0ec..1ade2952d 100644 --- a/app/hub/server.js +++ b/app/hub/server.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 WebSocketServer = require('websocket').server; var WebSocketRouter = require('websocket').router; var http = require('http');