[Pkg-javascript-commits] [rainloop] 05/06: Unbundled node-progressjs and node-js-cookie.

Daniel Ring techwolf-guest at moszumanska.debian.org
Wed Jan 3 10:42:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

techwolf-guest pushed a commit to branch master
in repository rainloop.

commit bc53c97cad62750f2d607f78a4f4175bd5f57e0d
Author: Daniel Ring <dring at wolfishly.me>
Date:   Tue Jan 2 00:12:37 2018 -0800

    Unbundled node-progressjs and node-js-cookie.
---
 debian/Makefile                        |   2 +-
 debian/control                         |   2 +
 debian/copyright                       |   8 -
 debian/lib/js-cookie/js.cookie.js      | 165 -----------
 debian/lib/progressjs/progress.js      | 518 ---------------------------------
 debian/lib/progressjs/progressjs.css   | 181 ------------
 debian/patches/bundled-libraries.patch |  28 +-
 7 files changed, 29 insertions(+), 875 deletions(-)

diff --git a/debian/Makefile b/debian/Makefile
index 74da443..1e83b1a 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -53,7 +53,7 @@ cssMainCSS = \
 	/usr/lib/nodejs/pikaday/pikaday.css \
 	/usr/lib/nodejs/lightgallery/dist/css/lightgallery.css \
 	/usr/lib/nodejs/lightgallery/dist/css/lg-transitions.css \
-	debian/lib/progressjs/progressjs.css \
+	/usr/lib/nodejs/progressjs/src/progressjs.css \
 	dev/Styles/_progressjs.css
 
 cssMainLess = dev/Styles/@Main.less
diff --git a/debian/control b/debian/control
index 70e70b2..ffe74fb 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Build-Depends:
  , node-style-loader
  , node-autolinker
  , node-classnames
+ , node-js-cookie
  , node-knockout
  , node-knockout-sortable
  , node-knockout-transformations
@@ -27,6 +28,7 @@ Build-Depends:
  , node-normalize.css
  , node-opentip
  , node-pikaday
+ , node-progressjs
  , node-simplestatemanager
  , node-jquery (>= 2.2.4), node-jquery (<< 3.0.0)
  , libjs-jquery-backstretch
diff --git a/debian/copyright b/debian/copyright
index 48d404a..e5536e0 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -90,18 +90,10 @@ Copyright: 2012 Miller Medeiros
 License: MIT
 
 
-Files: debian/lib/js-cookie/*
-Copyright: 2006-2015 Klaus Hartl & Fagner Brack
-License: MIT
-
 Files: debian/lib/openpgp/*
 Copyright: 2017 Bart Butler, Tankred Hase, and Thomas Oberndorfer
 License: LGPL-3
 
-Files: debian/lib/progressjs/*
-Copyright: 2013 Afshin Mehrabani
-License: MIT
-
 
 License: AGPL-3
                      GNU AFFERO GENERAL PUBLIC LICENSE
diff --git a/debian/lib/js-cookie/js.cookie.js b/debian/lib/js-cookie/js.cookie.js
deleted file mode 100644
index c6c3975..0000000
--- a/debian/lib/js-cookie/js.cookie.js
+++ /dev/null
@@ -1,165 +0,0 @@
-/*!
- * JavaScript Cookie v2.1.4
- * https://github.com/js-cookie/js-cookie
- *
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
- * Released under the MIT license
- */
-;(function (factory) {
-	var registeredInModuleLoader = false;
-	if (typeof define === 'function' && define.amd) {
-		define(factory);
-		registeredInModuleLoader = true;
-	}
-	if (typeof exports === 'object') {
-		module.exports = factory();
-		registeredInModuleLoader = true;
-	}
-	if (!registeredInModuleLoader) {
-		var OldCookies = window.Cookies;
-		var api = window.Cookies = factory();
-		api.noConflict = function () {
-			window.Cookies = OldCookies;
-			return api;
-		};
-	}
-}(function () {
-	function extend () {
-		var i = 0;
-		var result = {};
-		for (; i < arguments.length; i++) {
-			var attributes = arguments[ i ];
-			for (var key in attributes) {
-				result[key] = attributes[key];
-			}
-		}
-		return result;
-	}
-
-	function init (converter) {
-		function api (key, value, attributes) {
-			var result;
-			if (typeof document === 'undefined') {
-				return;
-			}
-
-			// Write
-
-			if (arguments.length > 1) {
-				attributes = extend({
-					path: '/'
-				}, api.defaults, attributes);
-
-				if (typeof attributes.expires === 'number') {
-					var expires = new Date();
-					expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
-					attributes.expires = expires;
-				}
-
-				// We're using "expires" because "max-age" is not supported by IE
-				attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
-
-				try {
-					result = JSON.stringify(value);
-					if (/^[\{\[]/.test(result)) {
-						value = result;
-					}
-				} catch (e) {}
-
-				if (!converter.write) {
-					value = encodeURIComponent(String(value))
-						.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
-				} else {
-					value = converter.write(value, key);
-				}
-
-				key = encodeURIComponent(String(key));
-				key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
-				key = key.replace(/[\(\)]/g, escape);
-
-				var stringifiedAttributes = '';
-
-				for (var attributeName in attributes) {
-					if (!attributes[attributeName]) {
-						continue;
-					}
-					stringifiedAttributes += '; ' + attributeName;
-					if (attributes[attributeName] === true) {
-						continue;
-					}
-					stringifiedAttributes += '=' + attributes[attributeName];
-				}
-				return (document.cookie = key + '=' + value + stringifiedAttributes);
-			}
-
-			// Read
-
-			if (!key) {
-				result = {};
-			}
-
-			// To prevent the for loop in the first place assign an empty array
-			// in case there are no cookies at all. Also prevents odd result when
-			// calling "get()"
-			var cookies = document.cookie ? document.cookie.split('; ') : [];
-			var rdecode = /(%[0-9A-Z]{2})+/g;
-			var i = 0;
-
-			for (; i < cookies.length; i++) {
-				var parts = cookies[i].split('=');
-				var cookie = parts.slice(1).join('=');
-
-				if (cookie.charAt(0) === '"') {
-					cookie = cookie.slice(1, -1);
-				}
-
-				try {
-					var name = parts[0].replace(rdecode, decodeURIComponent);
-					cookie = converter.read ?
-						converter.read(cookie, name) : converter(cookie, name) ||
-						cookie.replace(rdecode, decodeURIComponent);
-
-					if (this.json) {
-						try {
-							cookie = JSON.parse(cookie);
-						} catch (e) {}
-					}
-
-					if (key === name) {
-						result = cookie;
-						break;
-					}
-
-					if (!key) {
-						result[name] = cookie;
-					}
-				} catch (e) {}
-			}
-
-			return result;
-		}
-
-		api.set = api;
-		api.get = function (key) {
-			return api.call(api, key);
-		};
-		api.getJSON = function () {
-			return api.apply({
-				json: true
-			}, [].slice.call(arguments));
-		};
-		api.defaults = {};
-
-		api.remove = function (key, attributes) {
-			api(key, '', extend(attributes, {
-				expires: -1
-			}));
-		};
-
-		api.withConverter = init;
-
-		return api;
-	}
-
-	return init(function () {});
-}));
diff --git a/debian/lib/progressjs/progress.js b/debian/lib/progressjs/progress.js
deleted file mode 100644
index 9669e8e..0000000
--- a/debian/lib/progressjs/progress.js
+++ /dev/null
@@ -1,518 +0,0 @@
-/**
- * Progress.js v0.1.0
- * https://github.com/usablica/progress.js
- * MIT licensed
- *
- * Copyright (C) 2013 usabli.ca - Afshin Mehrabani (@afshinmeh)
- */
-
-(function (root, factory) {
-  if (typeof exports === 'object') {
-    // CommonJS
-    factory(exports);
-  } else if (typeof define === 'function' && define.amd) {
-    // AMD. Register as an anonymous module.
-    define(['exports'], factory);
-  } else {
-    // Browser globals
-    factory(root);
-  }
-} (this, function (exports) {
-  //Default config/variables
-  var VERSION = '0.1.0';
-
-  /**
-   * ProgressJs main class
-   *
-   * @class ProgressJs
-   */
-  function ProgressJs(obj) {
-
-    if (typeof obj.length != 'undefined') {
-      this._targetElement = obj; 
-    } else {
-      this._targetElement = [obj];
-    }
-
-    if (typeof window._progressjsId === 'undefined')
-      window._progressjsId = 1;
-
-    if (typeof window._progressjsIntervals === 'undefined') 
-      window._progressjsIntervals = {};
-
-    this._options = {
-      //progress bar theme
-      theme: 'blue',
-      //overlay mode makes an overlay layer in the target element
-      overlayMode: false,
-      //to consider CSS3 transitions in events
-      considerTransition: true
-    };
-  }
-
-  /**
-   * Start progress for specific element(s)
-   *
-   * @api private
-   * @method _createContainer 
-   */
-  function _startProgress() {
-
-    //call onBeforeStart callback
-    if (typeof this._onBeforeStartCallback != 'undefined') {
-      this._onBeforeStartCallback.call(this);
-    }
-
-    //create the container for progress bar
-    _createContainer.call(this);
-
-    for (var i = 0, elmsLength = this._targetElement.length; i < elmsLength; i++) {
-      _setProgress.call(this, this._targetElement[i]);
-    }
-  }
-
-  /**
-   * Set progress bar for specific element
-   *
-   * @api private
-   * @method _setProgress
-   * @param {Object} targetElement
-   */
-  function _setProgress(targetElement) {
-    
-    //if the target element already as `data-progressjs`, ignore the init
-    if (targetElement.hasAttribute("data-progressjs"))
-      return;
-
-    //get target element position
-    var targetElementOffset = _getOffset.call(this, targetElement);
-
-    targetElement.setAttribute("data-progressjs", window._progressjsId);
-    
-    var progressElementContainer = document.createElement('div');
-    progressElementContainer.className = 'progressjs-progress progressjs-theme-' + this._options.theme;
-
-
-    //set the position percent elements, it depends on targetElement tag
-    if (targetElement.tagName.toLowerCase() === 'body') {
-      progressElementContainer.style.position = 'fixed';
-    } else {
-      progressElementContainer.style.position = 'absolute';
-    }
-
-    progressElementContainer.setAttribute("data-progressjs", window._progressjsId);
-    var progressElement = document.createElement("div");
-    progressElement.className = "progressjs-inner";
-
-    //create an element for current percent of progress bar
-    var progressPercentElement = document.createElement('div');
-    progressPercentElement.className = "progressjs-percent";
-    progressPercentElement.innerHTML = "1%";
-
-    progressElement.appendChild(progressPercentElement);
-    
-    if (this._options.overlayMode && targetElement.tagName.toLowerCase() === 'body') {
-      //if we have `body` for target element and also overlay mode is enable, we should use a different
-      //position for progress bar container element
-      progressElementContainer.style.left   = 0;
-      progressElementContainer.style.right  = 0;
-      progressElementContainer.style.top    = 0;
-      progressElementContainer.style.bottom = 0;
-    } else {
-      //set progress bar container size and offset
-      progressElementContainer.style.left  = targetElementOffset.left + 'px';
-      progressElementContainer.style.top   = targetElementOffset.top + 'px';
-      progressElementContainer.style.width = targetElementOffset.width + 'px';
-
-      if (this._options.overlayMode) {
-        progressElementContainer.style.height = targetElementOffset.height + 'px';
-      }
-    }
-
-    progressElementContainer.appendChild(progressElement);
-
-    //append the element to container
-    var container = document.querySelector('.progressjs-container');
-    container.appendChild(progressElementContainer);
-
-    _setPercentFor(targetElement, 1);
-
-    //and increase the progressId
-    ++window._progressjsId;
-  }
-
-  /**
-   * Set percent for all elements
-   *
-   * @api private
-   * @method _setPercent
-   * @param {Number} percent
-   */
-  function _setPercent(percent) {
-    for (var i = 0, elmsLength = this._targetElement.length; i < elmsLength; i++) {
-      _setPercentFor.call(this, this._targetElement[i], percent);
-    }
-  }
-
-  /**
-   * Set percent for specific element
-   *
-   * @api private
-   * @method _setPercentFor
-   * @param {Object} targetElement
-   * @param {Number} percent
-   */
-  function _setPercentFor(targetElement, percent) {
-    var self = this;
-    
-    //prevent overflow!
-    if (percent >= 100)
-      percent = 100;
-
-    if (targetElement.hasAttribute("data-progressjs")) {
-      //setTimeout for better CSS3 animation applying in some cases
-      setTimeout(function() {
-
-        //call the onprogress callback
-        if (typeof self._onProgressCallback != 'undefined') {
-          self._onProgressCallback.call(self, targetElement, percent);
-        }
-
-        var percentElement = _getPercentElement(targetElement);
-        percentElement.style.width = parseInt(percent) + '%';
-
-        var percentElement  = percentElement.querySelector(".progressjs-percent");
-        var existingPercent = parseInt(percentElement.innerHTML.replace('%', ''));
-
-        //start increase/decrease the percent element with animation
-        (function(percentElement, existingPercent, currentPercent) {
-
-          var increasement = true;
-          if (existingPercent > currentPercent) {
-            increasement = false;
-          }
-          
-          var intervalIn = 10;
-          function changePercentTimer(percentElement, existingPercent, currentPercent) {
-            //calculate the distance between two percents
-            var distance = Math.abs(existingPercent - currentPercent);
-            if (distance < 3) {
-              intervalIn = 30;
-            } else if (distance < 20) {
-              intervalIn = 20;
-            } else {
-              intervanIn = 1;
-            }
-
-            if ((existingPercent - currentPercent) != 0) {
-              //set the percent
-              percentElement.innerHTML = (increasement ? (++existingPercent) : (--existingPercent)) + '%';
-              setTimeout(function() { changePercentTimer(percentElement, existingPercent, currentPercent); }, intervalIn);
-            }
-          }
-          
-          changePercentTimer(percentElement, existingPercent, currentPercent);
-          
-        })(percentElement, existingPercent, parseInt(percent));
-        
-      }, 50);
-    }
-  }
-
-  /**
-   * Get the progress bar element 
-   *
-   * @api private
-   * @method _getPercentElement
-   * @param {Object} targetElement
-   */
-  function _getPercentElement(targetElement) {
-    var progressjsId = parseInt(targetElement.getAttribute('data-progressjs'));
-    return document.querySelector('.progressjs-container > .progressjs-progress[data-progressjs="' + progressjsId + '"] > .progressjs-inner');  
-  }
-
-  /**
-   * Auto increase the progress bar every X milliseconds
-   *
-   * @api private
-   * @method _autoIncrease
-   * @param {Number} size
-   * @param {Number} millisecond
-   */
-  function _autoIncrease(size, millisecond) {
-    var self = this;
-    
-    var progressjsId = parseInt(this._targetElement[0].getAttribute('data-progressjs'));
-    
-    if (typeof window._progressjsIntervals[progressjsId] != 'undefined') {
-      clearInterval(window._progressjsIntervals[progressjsId]);
-    }
-    window._progressjsIntervals[progressjsId] = setInterval(function() {
-      _increasePercent.call(self, size);
-    }, millisecond);
-  }
-
-  /**
-   * Increase the size of progress bar
-   *
-   * @api private
-   * @method _increasePercent
-   * @param {Number} size
-   */
-  function _increasePercent(size) {
-    for (var i = 0, elmsLength = this._targetElement.length; i < elmsLength; i++) {
-      var currentElement = this._targetElement[i];
-      if (currentElement.hasAttribute('data-progressjs')) {
-        var percentElement  = _getPercentElement(currentElement);
-        var existingPercent = parseInt(percentElement.style.width.replace('%', ''));
-        if (existingPercent) {
-          _setPercentFor.call(this, currentElement, existingPercent + (size || 1));
-        }
-      }
-    }
-  }
-
-  /**
-   * Close and remove progress bar 
-   *
-   * @api private
-   * @method _end
-   */
-  function _end() {
-
-    //call onBeforeEnd callback
-    if (typeof this._onBeforeEndCallback != 'undefined') {
-      if (this._options.considerTransition === true) {
-        //we can safety assume that all layers would be the same, so `this._targetElement[0]` is the same as `this._targetElement[1]`
-        _getPercentElement(this._targetElement[0]).addEventListener(whichTransitionEvent(), this._onBeforeEndCallback, false);
-      } else {
-        this._onBeforeEndCallback.call(this);
-      }
-    } 
-
-    var progressjsId = parseInt(this._targetElement[0].getAttribute('data-progressjs'));
-    
-    for (var i = 0, elmsLength = this._targetElement.length; i < elmsLength; i++) {
-      var currentElement = this._targetElement[i];
-      var percentElement = _getPercentElement(currentElement);
-
-      if (!percentElement)
-        return;
-
-      var existingPercent = parseInt(percentElement.style.width.replace('%', ''));
-      
-      var timeoutSec = 1;
-      if (existingPercent < 100) {
-        _setPercentFor.call(this, currentElement, 100);
-        timeoutSec = 500;
-      }
-
-      //I believe I should handle this situation with eventListener and `transitionend` event but I'm not sure
-      //about compatibility with IEs. Should be fixed in further versions.
-      (function(percentElement, currentElement) {
-        setTimeout(function() {
-          percentElement.parentNode.className += " progressjs-end";
-
-          setTimeout(function() {
-            //remove the percent element from page
-            percentElement.parentNode.parentNode.removeChild(percentElement.parentNode);
-            //and remove the attribute
-            currentElement.removeAttribute("data-progressjs");
-          }, 1000);
-        }, timeoutSec);
-      })(percentElement, currentElement);
-    }
-
-    //clean the setInterval for autoIncrease function
-    if (window._progressjsIntervals[progressjsId]) {
-      //`delete` keyword has some problems in IE
-      try {
-        clearInterval(window._progressjsIntervals[progressjsId]);
-        window._progressjsIntervals[progressjsId] = null;
-        delete window._progressjsIntervals[progressjsId];
-      } catch(ex) { }
-    }
-  }
-
-  /**
-   * Create the progress bar container
-   *
-   * @api private
-   * @method _createContainer
-   */
-  function _createContainer() {
-    //first check if we have an container already, we don't need to create it again
-    if (!document.querySelector(".progressjs-container")) {
-      var containerElement = document.createElement("div");
-      containerElement.className = "progressjs-container";
-      document.body.appendChild(containerElement);
-    }
-  }
-
-  /**
-   * Get an element position on the page
-   * Thanks to `meouw`: http://stackoverflow.com/a/442474/375966
-   *
-   * @api private
-   * @method _getOffset
-   * @param {Object} element
-   * @returns Element's position info
-   */
-  function _getOffset(element) {
-    var elementPosition = {};
-
-    if (element.tagName.toLowerCase() === 'body') {
-      //set width
-      elementPosition.width = element.clientWidth;
-      //set height
-      elementPosition.height = element.clientHeight;
-    } else {
-      //set width
-      elementPosition.width = element.offsetWidth;
-      //set height
-      elementPosition.height = element.offsetHeight;
-    }
-
-    //calculate element top and left
-    var _x = 0;
-    var _y = 0;
-    while (element && !isNaN(element.offsetLeft) && !isNaN(element.offsetTop)) {
-      _x += element.offsetLeft;
-      _y += element.offsetTop;
-      element = element.offsetParent;
-    }
-    //set top
-    elementPosition.top = _y;
-    //set left
-    elementPosition.left = _x;
-
-    return elementPosition;
-  }
-
-  /**
-   * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1
-   * via: http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically
-   *
-   * @param obj1
-   * @param obj2
-   * @returns obj3 a new object based on obj1 and obj2
-   */
-  function _mergeOptions(obj1, obj2) {
-    var obj3 = {};
-    for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
-    for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
-    return obj3;
-  }
-
-  var progressJs = function (targetElm) {
-    if (typeof (targetElm) === 'object') {
-      //Ok, create a new instance
-      return new ProgressJs(targetElm);
-
-    } else if (typeof (targetElm) === 'string') {
-      //select the target element with query selector
-      var targetElement = document.querySelectorAll(targetElm);
-       
-      if (targetElement) {
-        return new ProgressJs(targetElement);
-      } else {
-        throw new Error('There is no element with given selector.');
-      }
-    } else {
-      return new ProgressJs(document.body);
-    }
-  };
-
-  /**
-   * Get correct transition callback
-   * Thanks @webinista: http://stackoverflow.com/a/9090128/375966
-   *
-   * @returns transition name
-   */
-  function whichTransitionEvent() {
-    var t;
-    var el = document.createElement('fakeelement');
-    var transitions = {
-      'transition': 'transitionend',
-      'OTransition': 'oTransitionEnd',
-      'MozTransition': 'transitionend',
-      'WebkitTransition': 'webkitTransitionEnd'
-    }
-
-    for (t in transitions) {
-      if (el.style[t] !== undefined) {
-        return transitions[t];
-      }
-    }
-  }
-
-  /**
-   * Current ProgressJs version
-   *
-   * @property version
-   * @type String
-   */
-  progressJs.version = VERSION;
-
-  //Prototype
-  progressJs.fn = ProgressJs.prototype = {
-    clone: function () {
-      return new ProgressJs(this);
-    },
-    setOption: function(option, value) {
-      this._options[option] = value;
-      return this;
-    },
-    setOptions: function(options) {
-      this._options = _mergeOptions(this._options, options);
-      return this;
-    },
-    start: function() {
-      _startProgress.call(this);
-      return this;
-    },
-    set: function(percent) {
-      _setPercent.call(this, percent);
-      return this;
-    },
-    increase: function(size) {
-      _increasePercent.call(this, size);
-      return this;
-    },
-    autoIncrease: function(size, millisecond) {
-      _autoIncrease.call(this, size, millisecond);
-      return this;
-    },
-    end: function() {
-      _end.call(this);
-      return this;
-    },
-    onbeforeend: function(providedCallback) {
-      if (typeof (providedCallback) === 'function') {
-        this._onBeforeEndCallback = providedCallback;
-      } else {
-        throw new Error('Provided callback for onbeforeend was not a function');
-      }
-      return this;
-    },
-    onbeforestart: function(providedCallback) {
-      if (typeof (providedCallback) === 'function') {
-        this._onBeforeStartCallback = providedCallback;
-      } else {
-        throw new Error('Provided callback for onbeforestart was not a function');
-      }
-      return this;
-    },
-    onprogress: function(providedCallback) {
-      if (typeof (providedCallback) === 'function') {
-        this._onProgressCallback = providedCallback;
-      } else {
-        throw new Error('Provided callback for onprogress was not a function');
-      }
-      return this;
-    }
-  };
-
-  exports.progressJs = progressJs;
-  return progressJs;
-}));
diff --git a/debian/lib/progressjs/progressjs.css b/debian/lib/progressjs/progressjs.css
deleted file mode 100644
index 892bd6f..0000000
--- a/debian/lib/progressjs/progressjs.css
+++ /dev/null
@@ -1,181 +0,0 @@
-.progressjs-inner {
-    width: 0;
-}
-.progressjs-progress {
-    z-index: 9999999;
-}
-
-/* blue theme, like iOS 7 progress bar */
-.progressjs-theme-blue .progressjs-inner {
-    height: 2px;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-}
-.progressjs-theme-blue.progressjs-end {
-    -webkit-transition: opacity 0.2s ease-out;
-    -moz-transition: opacity 0.2s ease-out;
-    -o-transition: opacity 0.2s ease-out;
-    transition: opacity 0.2s ease-out;
-    opacity: 0;
-}
-.progressjs-theme-blue .progressjs-percent {
-    display: none;
-}
-
-/* blue theme with overlay layer, no percent bar */
-.progressjs-theme-blueOverlay {
-    background-color: white;
-    -webkit-transition: all 0.2s ease-out;
-    -moz-transition: all 0.2s ease-out;
-    -o-transition: all 0.2s ease-out;
-    transition: all 0.2s ease-out;
-}
-.progressjs-theme-blueOverlay .progressjs-inner {
-    height: 100%;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-}
-.progressjs-theme-blueOverlay.progressjs-end {
-    opacity: 0 !important;
-}
-.progressjs-theme-blueOverlay .progressjs-percent {
-    display: none;
-}
-
-/* blue theme with overlay layer, no percent bar */
-.progressjs-theme-blueOverlay {
-    background-color: white;
-    -webkit-transition: all 0.2s ease-out;
-    -moz-transition: all 0.2s ease-out;
-    -o-transition: all 0.2s ease-out;
-    transition: all 0.2s ease-out;
-}
-.progressjs-theme-blueOverlay .progressjs-inner {
-    height: 100%;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-}
-.progressjs-theme-blueOverlay.progressjs-end {
-    opacity: 0 !important;
-}
-.progressjs-theme-blueOverlay .progressjs-percent {
-    display: none;
-}
-
-/* Blue theme with border radius and overlay layer */
-.progressjs-theme-blueOverlayRadius {
-    background-color: white;
-    -webkit-transition: all 0.2s ease-out;
-    -moz-transition: all 0.2s ease-out;
-    -o-transition: all 0.2s ease-out;
-    transition: all 0.2s ease-out;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadius .progressjs-inner {
-    height: 100%;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadius.progressjs-end {
-    opacity: 0 !important;
-}
-.progressjs-theme-blueOverlayRadius .progressjs-percent {
-    display: none;
-}
-
-/* Blue theme with border radius and overlay layer */
-.progressjs-theme-blueOverlayRadiusHalfOpacity {
-    background-color: white;
-    opacity: 0.5;
-   -webkit-transition: all 0.2s ease-out;
-    -moz-transition: all 0.2s ease-out;
-    -o-transition: all 0.2s ease-out;
-    transition: all 0.2s ease-out;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadiusHalfOpacity .progressjs-inner {
-    height: 100%;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadiusHalfOpacity.progressjs-end {
-    opacity: 0 !important;
-}
-.progressjs-theme-blueOverlayRadiusHalfOpacity .progressjs-percent {
-    display: none;
-}
-
-/* Blue theme with border radius, overlay layer and percent bar */
-.progressjs-theme-blueOverlayRadiusWithPercentBar {
-    background-color: white;
-    -webkit-transition: all 0.2s ease-out;
-    -moz-transition: all 0.2s ease-out;
-    -o-transition: all 0.2s ease-out;
-    transition: all 0.2s ease-out;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadiusWithPercentBar .progressjs-inner {
-    height: 100%;
-    -webkit-transition: all 0.3s ease-out;
-    -moz-transition: all 0.3s ease-out;
-    -o-transition: all 0.3s ease-out;
-    transition: all 0.3s ease-out;
-    background-color: #3498db;
-    border-radius: 5px;
-}
-.progressjs-theme-blueOverlayRadiusWithPercentBar.progressjs-end {
-    opacity: 0 !important;
-}
-.progressjs-theme-blueOverlayRadiusWithPercentBar .progressjs-percent {
-    width: 70px;
-    text-align: center;
-    height: 40px;
-    position: absolute;
-    right: 50%;
-    margin-right: -35px;
-    top: 50%;
-    margin-top: -20px;
-    font-size: 30px;
-    opacity: .5;
-}
-
-.progressjs-theme-blackRadiusInputs {
-    height: 10px;
-    border-radius: 10px;
-    overflow: hidden;
-}
-.progressjs-theme-blackRadiusInputs .progressjs-inner {
-    height: 2px;
-    -webkit-transition: all 1s ease-out;
-    -moz-transition: all 1s ease-out;
-    -o-transition: all 1s ease-out;
-    transition: all 1s ease-out;
-    background-color: #34495e;
-}
-.progressjs-theme-blackRadiusInputs.progressjs-end {
-    -webkit-transition: opacity 0.2s ease-out;
-    -moz-transition: opacity 0.2s ease-out;
-    -o-transition: opacity 0.2s ease-out;
-    transition: opacity 0.2s ease-out;
-    opacity: 0;
-}
-.progressjs-theme-blackRadiusInputs .progressjs-percent {
-    display: none;
-}
\ No newline at end of file
diff --git a/debian/patches/bundled-libraries.patch b/debian/patches/bundled-libraries.patch
index 7d71d81..3e6b713 100644
--- a/debian/patches/bundled-libraries.patch
+++ b/debian/patches/bundled-libraries.patch
@@ -7,7 +7,7 @@ Bundled libraries missing from Debian.
  
 -import {Promise} from 'es6-promise-polyfill/promise.js';
 -import {progressJs} from '../node_modules/Progress.js/src/progress.js';
-+import {progressJs} from '../debian/lib/progressjs/progress.js';
++import {progressJs} from '/usr/lib/nodejs/progressjs/src/progress.js';
  
 -window.Promise = window.Promise || Promise;
  window.progressJs = window.progressJs || progressJs();
@@ -38,8 +38,32 @@ Bundled libraries missing from Debian.
  			extensions: ['.js'],
  			alias: {
 +				'pikaday$': __dirname + '/usr/lib/nodejs/pikaday/pikaday.js',
-+				'js-cookie$': __dirname + '/debian/lib/js-cookie/js.cookie.js',
++				'js-cookie$': __dirname + '/usr/lib/nodejs/js-cookie/src/js.cookie.js',
 +				'classnames$': __dirname + '/usr/lib/nodejs/classnames/index.js',
  				'Opentip$': __dirname  + '/dev/External/Opentip.js',
  				'ko$': __dirname  + '/dev/External/ko.js'
  			}
+@@ -47,7 +50,7 @@
+ 			rules: [
+ 				{
+ 					test: /\.js$/,
+-					loader: 'babel-loader',
++					loader: '/usr/lib/nodejs/babel-loader',
+ 					include: [devPath],
+ 					options: {
+ 						cacheDirectory: true,
+@@ -63,12 +66,12 @@
+ 				},
+ 				{
+ 					test: /\.(html|css)$/,
+-					loader: 'raw-loader',
++					loader: '/usr/lib/nodejs/raw-loader',
+ 					include: [devPath]
+ 				},
+ 				{
+ 					test: /\.json$/,
+-					loader: 'json-loader',
++					loader: '/usr/lib/nodejs/json-loader',
+ 					include: [devPath]
+ 				}
+ 			]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/rainloop.git



More information about the Pkg-javascript-commits mailing list