Relicense Javascript code in accordance with project's new license

The primary license of the project is changing to:
  AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later

The Additional Permission is designed to permit publicly distributed
Javascript code to be relicensed under LGPL-3.0-or-later, but not server-side
Javascript code.  As such, we've relicensed here static Javscript files under
LGPL-3.0-or-later, and those that run as part of build and/or server side
under AGPL-3.0-or-later.

Note that in future, Javascript files may be updated to be stronger copyleft
license with the Additional Permission, particularly if they adapted to run
on server side and/or turned into templates.  Of course, we'd seek public
discussion with the contributor community about such changes.

This commit is one of the many steps to relicense the entire codebase.

Documentation granting permission for this relicensing (from all past
contributors who hold copyrights) is on file with Software Freedom
Conservancy, Inc.
This commit is contained in:
Bradley M. Kuhn 2018-03-25 14:03:08 -04:00
parent 847bc3864c
commit fc77ee76d6
251 changed files with 254 additions and 3 deletions

View file

@ -1,3 +1,4 @@
// License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
module.exports = {
"env": {
"browser": true,

View file

@ -1 +1,2 @@
// License: LGPL-3.0-or-later
require('./index.es6')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var request = require('../common/super-agent-frp')
var a = document.querySelector(".js-event-resendBankConfirmEmail")

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
if(app.user)
require('../new/wizard')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
require('../../common/pikaday-timepicker')
require('../../components/wizard')
require('../../common/image_uploader')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
require('../new/wizard')
var request = require("../../common/client")

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
require('../../common/pikaday-timepicker')
require('../../common/restful_resource')
const request = require('../../common/client')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('snabbdom/h')
const flyd = require('flyd')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('snabbdom/h')
const branding = require('../../components/nonprofit-branding')
const format = require('../../common/format')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('snabbdom/h')
const flyd = require('flyd')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('snabbdom/h')
const soldOut = require('./is-sold-out')

View file

@ -1,2 +1,3 @@
// License: LGPL-3.0-or-later
module.exports = g => g.quantity && (g.quantity - g.total_gifts <= 0)

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const flyd = require('flyd')
const h = require('snabbdom/h')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const h = require('snabbdom/h')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
require('../../common/vendor/bootstrap-tour-standalone')
var tour_campaign = new Tour({

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
require('../../timeline')
require('../../totals')
require('./index.es6')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const request = require('../common/client')
const R = require('ramda')
const Chart = require('chart.js')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const request = require('../common/request')
const flyd = require('flyd')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// Include the cards/fields partial to use with this.
// Call appl.card_form.create(card_obj) to start the card creation process.
// Use the appl.card_form.on_fail callback to handle failures.

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var R = require('ramda')
var request = require('../client')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var request = require('../client')
module.exports = function(npo_id) {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var confirmation = require('./confirmation')
var notification = require('./notification')
var request = require("superagent")

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const bind = require('attr-binder')
const Pikaday = require('pikaday')
const moment = require('moment')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var confirmation = require('./confirmation')
var notification = require('./notification')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = {
helvetica: {family: "'Helvetica Neue', Helvetica, Arial, sans-serif", name: 'Helvetica'},
futura: {family: "'Futura', Arial, sans-serif", name: 'Futura'},

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
module.exports = (classes='') => R.reduce(

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// superapi wrapper with our api defaults
var request = require('superagent')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = {
// BLUES
'$dark-turquoise': "#306563"

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var confirmation = function(msg, success_cb) {
var $confirm_modal = $('#confirmation-modal')
var $msg = $confirm_modal.find('.msg')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
// Reference: https://en.wikipedia.org/wiki/Luhn_algorithm

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = (dir, to, from) =>
` background-image: -webkit-linear-gradient(${dir}, ${to}, ${from});
background-image: -moz-linear-gradient(${dir}, ${to}, ${from});

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var notification = require('./notification')
$('form.dynamic').submit(function(e) {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// if you are instantiating more than one WYSIWYG on a page,
// be sure to give them id's to differentiate them
// to avoid unwanted display side effects

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var el_swapo = {}
$('*[swap-in]').each(function(i) {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var actions = [ 'change', 'click', 'dblclick', 'mousedown', 'mouseup', 'mouseenter', 'mouseleave', 'scroll', 'blur', 'focus', 'input', 'submit', 'keydown', 'keypress', 'keyup' ]
function event(id, fn) {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// Convert a form to an object literal
module.exports = function(form) {
if(form === undefined) throw new Error("form is undefined")

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var form = module.exports = {
loading: loading,
showErr: showErr,

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var moment = require('moment')
var format = {}

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// This is a little utility to convert a superagent response that has an error
// into a readable single string message
//

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const format = require('../common/format')
require('../common/restful_resource')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var geo = {}

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flimflam/flyd')
const request = require("../common/request")

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const filter = require('flyd/module/filter')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
$('.image-upload input').change(function(e) {
var self = this
appl.def('image_upload.is_selecting', true)

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
$.fn.serializeObject = function() {
return this.serializeArray().reduce(function(obj, field) {
if(field.value)

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var notification = function(msg, err) {
var el = document.getElementById('js-notification')
if(err) {el.className = 'show error'}

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const sanitize = require('./sanitize-slug')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
function calculateIOS()
{
var userAgent = window.navigator.userAgent;

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flimflam/flyd')
const h = require('flimflam/h')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var $panelsLayout = $('.panelsLayout'),
$panelsLayoutBody = $panelsLayout.find('.panelsLayout-body'),
$sidePanel = $panelsLayoutBody.find('.sidePanel'),

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const bind = require('attr-binder')
const Pikaday = require('pikaday-time')
const moment = require('moment')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// Console fallback
if (!window.console) {
window.console = new function() {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const request = require('flyd-ajax')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/* A simple module for dealing with ajax-based resources in viewscript
*
*

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = str =>
str.trim().toLowerCase()
.replace(/\s*[^A-Za-z0-9\-]\s*/g, '-') // Replace any oddballs with a hyphen

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = function(el, className, parentClass) {
var $el = $(el)
var elPxFromTop = $el.offset().top

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const h = require('flimflam/h')
const flyd = require('flimflam/flyd')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// super-agent with default json and csrf wrappers
// Also has a FRP api (using flyd) rather than the default '.end'
// Every call to .perform() returns a flyd stream

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// super-agent with default json and csrf wrappers
// Also has a Promise api ('.then' and '.catch') rather than the default '.end'

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const flyd_every = require('flyd/module/every')
const moment = require('moment-timezone')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// Utilities!
// XXX remove this whole file and split into modules with specific concerns
const phoneFormatter = require('phone-formatter');

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/*!
* Chart.js
* http://chartjs.org/

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/* ===========================================================
# bootstrap-tour - v0.9.3
# http://bootstraptour.com

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/*!
* Bootstrap v3.3.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/*
colpick Color Picker
Copyright 2013 Jose Vargas. Licensed under GPL license. Based on Stefan Petre's Color Picker www.eyecon.ro, dual licensed under the MIT and GPL licenses

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
/*!
* Salvattore 1.0.8 by @rnmp and @ppold
* https://github.com/rnmp/salvattore

View file

@ -1,2 +1,3 @@
// License: LGPL-3.0-or-later

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const h = require('snabbdom/h')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const flyd = require('flyd')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var request = require('../../common/client')
module.exports = function(url, type) {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const h = require('flimflam/h')
const flyd = require('flimflam/flyd')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
// see https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
// used for encoded and decoding data for email text

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const brandColors = require('../components/nonprofit-branding')
$('[if-branded]').each(function() {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const h = require('flimflam/h')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var chartOptions = {}
chartOptions.default = {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('flimflam/h')
const uuid = require('uuid')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const h = require('snabbdom/h')
const uuid = require('uuid')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const moment = require('moment')
require('moment-range')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var Pikaday = require('pikaday')
var moment = require('moment')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('flimflam/h')
module.exports = (name, placeholder, value) => {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const dragula = require('dragula')
const serialize = require('form-serialize')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const request = require('../common/request')
const flatMap = require('flyd/module/flatmap')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const b64 = require('./b64')
module.exports = o => {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('flimflam/h')
const R = require('ramda')
const validatedForm = require('flimflam/ui/validated-form')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
if(app.header_image_url) {
var cssString = "display: block; background-image: url(" + app.header_image_url + ")"
document.getElementById('js-fundraisingHeader').className ='fundraisingHeader--image container'

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var request = require('../../common/client')
var map_options = require('./default_options')
var cc_map = {}

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var styles = require('./styles');
module.exports = {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
module.exports = function(){
if(app.nonprofit.latitude) {
return {

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var Styles = {}
// style credit: https://snazzymaps.com/style/1735/discreet

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('flimflam/h')
const modal = require('flimflam/ui/modal')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const color = require('color')
var brandColor = app.nonprofit.brand_color || '#5FB88D'

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('flimflam/h')
const classObject = require('../common/class-object')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const h = require('snabbdom/h')
const R = require('ramda')
const flyd = require('flyd')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const flyd = require('flyd')
const h = require('snabbdom/h')
const R = require('ramda')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
var h = require("virtual-dom/h")
// a constructor function for creating radio-label pairs

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const R = require('ramda')
const h = require('flimflam/h')
const uuid = require('uuid')

View file

@ -1,3 +1,4 @@
// License: LGPL-3.0-or-later
const snabbdom = require('snabbdom')
const render = require('ff-core/render')
const activities = require('./public-activities')

Some files were not shown because too many files have changed in this diff Show more