[Pkg-mozext-commits] [lightbeam] 02/02: New upstream release [1.2.1] + changelog summary
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Mon Apr 20 10:24:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch master
in repository lightbeam.
commit 1121aa1 (HEAD, master)
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Mon Apr 20 10:17:53 2015
New upstream release [1.2.1] + changelog summary
---
debian/changelog | 8 +
debian/copyright | 3 +-
debian/install | 1 -
debian/links | 2 +-
debian/missing-sources/picoModal/LICENSE.md | 23 ---
debian/missing-sources/picoModal/README | 1 -
debian/missing-sources/picoModal/README.md | 151 --------------
.../picoModal/picoModal-1.0.0.min.js | 1 -
debian/missing-sources/picoModal/picoModal.js | 230 ---------------------
9 files changed, 10 insertions(+), 410 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 63db648..5f21049 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+lightbeam (1.2.1+dfsg-1) UNRELEASED; urgency=low
+
+ * New upstream release [February 2015].
+ * Removed obsolete "debian/missing-sources".
+ * watch: repacksuffix=+dfsg.
+
+ -- Dmitry Smirnov <onlyjob at debian.org> Mon, 20 Apr 2015 20:14:17 +1000
+
lightbeam (1.0.10.2+dfsg-1) unstable; urgency=low
* Initial release (Closes: #661741).
diff --git a/debian/copyright b/debian/copyright
index e2133a2..3df8aaf 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -18,12 +18,11 @@ Copyright: Steven Levithan <stevenlevithan.com>
License: Expat
Files: resources/lightbeam/data/picoModal/*.js
- debian/missing-sources/picoModal/*
Copyright: 2012 James Frasca
License: Expat
Files: debian/*
-Copyright: 2013-2014 Dmitry Smirnov <onlyjob at debian.org>
+Copyright: 2013-2015 Dmitry Smirnov <onlyjob at debian.org>
License: GPL-3+ or MPL-2.0
License: Expat
diff --git a/debian/install b/debian/install
deleted file mode 100644
index 6e02962..0000000
--- a/debian/install
+++ /dev/null
@@ -1 +0,0 @@
-debian/missing-sources/picoModal/*.js /usr/share/xul-ext/lightbeam/resources/lightbeam/data/picoModal/
diff --git a/debian/links b/debian/links
index 6c68f9c..5e3f771 100644
--- a/debian/links
+++ b/debian/links
@@ -5,4 +5,4 @@
/usr/share/texlive/texmf-dist/fonts/truetype/public/opensans/OpenSans-LightItalic.ttf /usr/share/xul-ext/lightbeam/resources/lightbeam/data/font/OpenSans-LightItalic.ttf
/usr/share/fonts/woff/font-awesome/fontawesome-webfont.woff /usr/share/xul-ext/lightbeam/resources/lightbeam/data/font/fontawesome-webfont.woff
/usr/share/fonts-font-awesome/css/font-awesome.css /usr/share/xul-ext/lightbeam/resources/lightbeam/data/font-awesome.css
-/usr/share/javascript/d3/d3.js /usr/share/xul-ext/lightbeam/resources/lightbeam/data/d3/d3.min.js
+/usr/share/javascript/d3/d3.js /usr/share/xul-ext/lightbeam/resources/lightbeam/data/d3/d3.js
diff --git a/debian/missing-sources/picoModal/LICENSE.md b/debian/missing-sources/picoModal/LICENSE.md
deleted file mode 100644
index abd662b..0000000
--- a/debian/missing-sources/picoModal/LICENSE.md
+++ /dev/null
@@ -1,23 +0,0 @@
-The MIT License (MIT)
----------------------
-
-Copyright (c) 2012 James Frasca
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/debian/missing-sources/picoModal/README b/debian/missing-sources/picoModal/README
deleted file mode 100644
index 211cfc8..0000000
--- a/debian/missing-sources/picoModal/README
+++ /dev/null
@@ -1 +0,0 @@
-https://github.com/Nycto/PicoModal/releases
diff --git a/debian/missing-sources/picoModal/README.md b/debian/missing-sources/picoModal/README.md
deleted file mode 100644
index d77cfae..0000000
--- a/debian/missing-sources/picoModal/README.md
+++ /dev/null
@@ -1,151 +0,0 @@
-PicoModal [](http://travis-ci.org/Nycto/PicoModal)
-=========
-
-A small, self-contained JavaScript modal library
-
-Features
---------
-
-* Small: At just over 1.6kb, its small and easily embeddable
-* No Library Dependencies: PicoModal does not depend on any JS libraries,
- so you can use it in places where you don't have access to one.
-* Self-contained: No extra CSS or images required
-* Simple: The interface is easy to use
-* Customizable: Its easy to apply your own styling
-
-Browser Support
----------------
-
-IE7+, Chrome, FireFox, Safari and Opera
-
-Download
---------
-
-The latest version of PicoModal is available here:
-[Download](https://github.com/Nycto/PicoModal/tree/release/release)
-
-Example Code
-------------
-
-If all you want to do is display a modal, it's as easy as
-this: ([Run this code](http://jsfiddle.net/z2t9e/))
-
-```javascript
- picoModal("Ah, the pitter patter of tiny feet in huge combat boots.");
-```
-
-For more control over the behaviour of the modal, you can pass in a
-settings object: ([Run this code](http://jsfiddle.net/BqHeY/))
-
-```javascript
- picoModal({
- content: "Ah, the pitter patter of tiny feet in huge combat boots.",
- overlayStyles: {
- backgroundColor: "#169",
- opacity: 0.75
- }
- });
-```
-
-A full list of settings is documented below.
-
-If you need to be able to programatically close the modal you can do it like
-this: ([Run this code](http://jsfiddle.net/8pPTD/))
-
-```javascript
- var modal = picoModal(
- "<p>Ah, the pitter patter of tiny feet in huge combat boots.<p>"
- + "<p><a href='#' class='dismiss'>Dismiss</a></p>"
- );
-
- document.getElementsByClassName("dismiss")[0].onclick = function () {
- modal.close();
- };
-```
-
-You can also attach an event to fire when the modal is closed:
-([Run this code](http://jsfiddle.net/TM95X/))
-
-```javascript
- var modal = picoModal(
- "Ah, the pitter patter of tiny feet in huge combat boots."
- );
-
- modal.onClose(function () {
- alert("Closed");
- });
-```
-
-To disable the close button, and instead just rely on someone clicking
-outside of the modal, you can do this:
-([Run this code](http://jsfiddle.net/dwhcX/))
-
-```javascript
- picoModal({
- content: "Ah, the pitter patter of tiny feet in huge combat boots.",
- closeButton: false
- });
-```
-
-Or, to disable closing when someone clicks outside of the modal, you can
-do this: ([Run this code](http://jsfiddle.net/WkG3d/))
-
-```javascript
- picoModal({
- content: "Ah, the pitter patter of tiny feet in huge combat boots.",
- overlayClose: false
- });
-```
-
-To generate custom close button do this:
-([Run this code](http://jsfiddle.net/emSBr/))
-
-```javascript
- picoModal({
- content: "Ah, the pitter patter of tiny feet in huge combat boots.",
- closeHtml: "<span>Close</span>",
- closeStyles: {
- position: "absolute", top: "-10px", right: "-10px",
- background: "#eee", padding: "5px 10px", cursor: "pointer",
- borderRadius: "5px", border: "1px solid #ccc"
- }
- });
-```
-
-Settings
---------
-
-The following settings are available:
-
-* __content__: The data to display to the user
-* __width__: The forced width of the modal
-* __closeButton__: Boolean whether to display the close button
-* __closeHtml__: Custom HTML content for the close button
-* __closeStyles__: A hash of CSS properties to apply to the close button
-* __overlayClose__: Boolean whether a click on the shadow should close the modal
-* __overlayStyles__: A hash of additional CSS properties to apply to the
- overlay behind the modal
-* __modalStyles__: A hash of additional CSS properties to apply to the
- modal element
-* __closeStyles__: A hash of additional CSS properties to apply to the
- close button element
-
-Return Object Properties
-------------------------
-
-The following properties are available on the object returned by picoModal:
-
-* __modalElem__: A reference to the modal DOM element
-* __closeElem__: A reference to the close DOM element
-* __overlayElem__: A reference to the overlay DOM element
-* __close__: A function to close the modal
-* __onClose__: A function that registers a callback to invoke when the
- modal is closed
-
-License
--------
-
-PicoModal is released under the MIT License, which is pretty spiffy. You should
-have received a copy of the MIT License along with this program. If not, see
-http://www.opensource.org/licenses/mit-license.php
-
diff --git a/debian/missing-sources/picoModal/picoModal-1.0.0.min.js b/debian/missing-sources/picoModal/picoModal-1.0.0.min.js
deleted file mode 120000
index 34311f6..0000000
--- a/debian/missing-sources/picoModal/picoModal-1.0.0.min.js
+++ /dev/null
@@ -1 +0,0 @@
-picoModal.js
\ No newline at end of file
diff --git a/debian/missing-sources/picoModal/picoModal.js b/debian/missing-sources/picoModal/picoModal.js
deleted file mode 100644
index 2462afa..0000000
--- a/debian/missing-sources/picoModal/picoModal.js
+++ /dev/null
@@ -1,230 +0,0 @@
-/**
- * Copyright (c) 2012 James Frasca
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/**
- * A self-contained modal library
- */
-window.picoModal = (function(window, document) {
- "use strict";
-
- // Generates observable objects that can be watched and triggered
- var observable = function() {
- var callbacks = [];
- return {
- watch: function(callback) {
- callbacks.push(callback);
- },
- trigger: function() {
- for (var i = 0; i < callbacks.length; i++) {
- window.setTimeout(callbacks[i], 1);
- }
- }
- };
- };
-
- // A small interface for creating and managing a dom element
- var make = function( parent ) {
-
- var elem = document.createElement('div');
- (parent || document.body).appendChild(elem);
-
- var iface = {
-
- elem: elem,
-
- // Creates a child of this node
- child: function () {
- return make(elem);
- },
-
- // Applies a set of styles to an element
- stylize: function(styles) {
- styles = styles || {};
-
- if ( typeof styles.opacity !== "undefined" ) {
- styles.filter =
- "alpha(opacity=" + (styles.opacity * 100) + ")";
- }
-
- for (var prop in styles) {
- if (styles.hasOwnProperty(prop)) {
- elem.style[prop] = styles[prop];
- }
- }
-
- return iface;
- },
-
- // Adds a class name
- clazz: function (clazz) {
- elem.className += clazz;
- return iface;
- },
-
- // Sets the HTML
- html: function (content) {
- elem.innerHTML = content;
- return iface;
- },
-
- // Returns the width of this element
- getWidth: function () {
- return elem.clientWidth;
- },
-
- // Adds a click handler to this element
- onClick: function(callback) {
- if (elem.attachEvent) {
- elem.attachEvent('onclick', callback);
- }
- else {
- elem.addEventListener('click', callback);
- }
-
- return iface;
- },
-
- // Removes this element from the DOM
- destroy: function() {
- document.body.removeChild(elem);
- return iface;
- }
-
- };
-
- return iface;
- };
-
- // An interface for generating the grey-out effect
- var overlay = function( getOption ) {
-
- // The registered on click events
- var clickCallbacks = observable();
-
- // The overlay element
- var elem = make()
- .clazz("pico-overlay")
- .stylize({
- display: "block",
- position: "fixed",
- top: "0px",
- left: "0px",
- height: "100%",
- width: "100%",
- zIndex: 10000
- })
- .stylize( getOption('overlayStyles', {
- opacity: 0.5,
- background: "#000"
- }) )
- .onClick(clickCallbacks.trigger);
-
- return {
- elem: elem.elem,
- destroy: elem.destroy,
- onClick: clickCallbacks.watch
- };
- };
-
- // A function for easily displaying a modal with the given content
- return function(options) {
-
- if ( typeof options === "string" ) {
- options = { content: options };
- }
-
- // Returns a named option if it has been explicitly defined. Otherwise,
- // it returns the given default value
- function getOption ( opt, defaultValue ) {
- return options[opt] === void(0) ? defaultValue : options[opt];
- }
-
- var shadow = overlay( getOption );
-
- var closeCallbacks = observable();
-
- var elem = make()
- .clazz("pico-content")
- .stylize({
- display: 'block',
- position: 'fixed',
- zIndex: 10001,
- left: "50%",
- top: "50px"
- })
- .html(options.content);
-
- var width = getOption('width', elem.getWidth());
-
- elem
- .stylize({
- width: width + "px",
- margin: "0 0 0 " + (-(width / 2) + "px")
- })
- .stylize( getOption('modalStyles', {
- backgroundColor: "white",
- padding: "20px",
- borderRadius: "5px"
- }) );
-
- var close = function () {
- closeCallbacks.trigger();
- shadow.destroy();
- elem.destroy();
- };
-
- if ( getOption('overlayClose', true) ) {
- shadow.onClick(close);
- }
-
- var closeButton;
- if ( getOption('closeButton', true) ) {
- closeButton = elem.child()
- .html( getOption('closeHtml', "×") )
- .clazz("pico-close")
- .stylize( getOption('closeStyles', {
- borderRadius: "2px",
- cursor: "pointer",
- height: "15px",
- width: "15px",
- position: "absolute",
- top: "5px",
- right: "5px",
- fontSize: "16px",
- textAlign: "center",
- lineHeight: "15px",
- background: "#CCC"
- }) )
- .onClick(close);
- }
-
- return {
- modalElem: elem.elem,
- closeElem: closeButton ? closeButton.elem : null,
- overlayElem: shadow.elem,
- close: close,
- onClose: closeCallbacks.watch
- };
- };
-
-}(window, document));
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/lightbeam.git
More information about the Pkg-mozext-commits
mailing list