Skip to content

Commit

Permalink
Adding MPLv2 to the JavaScript files that didn't include it.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwex committed Mar 13, 2013
1 parent f0fa698 commit acb8e81
Show file tree
Hide file tree
Showing 24 changed files with 104 additions and 10 deletions.
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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'";
});
Expand Down
4 changes: 4 additions & 0 deletions 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");
Expand Down
8 changes: 5 additions & 3 deletions 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");
Expand Down
4 changes: 4 additions & 0 deletions 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;
}
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
9 changes: 7 additions & 2 deletions 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;

Expand All @@ -25,3 +29,4 @@ define(["jquery", "util", "session", "ui"], function ($, util, session, ui) {
});

});

8 changes: 6 additions & 2 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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.$;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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");
Expand Down
4 changes: 4 additions & 0 deletions 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');
Expand Down
4 changes: 4 additions & 0 deletions 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:
Expand Down
9 changes: 6 additions & 3 deletions 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;
Expand Down
4 changes: 4 additions & 0 deletions 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*[%][>]/, "");
Expand Down
4 changes: 4 additions & 0 deletions 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 () {

Expand Down
4 changes: 4 additions & 0 deletions 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');
Expand Down

0 comments on commit acb8e81

Please sign in to comment.