debian/0000755000000000000000000000000012250657045007174 5ustar debian/compat0000644000000000000000000000000212250654500010363 0ustar 9 debian/control0000644000000000000000000000321712250654500010573 0ustar Source: bugs-everywhere Section: devel Priority: extra Maintainer: maxigas Uploaders: Antoine Beaupré Homepage: http://bugseverywhere.org/ VCS-git: git://git.debian.org/git/dgit-repos/repos/bugs-everywhere.git VCS-Browser: http://anonscm.debian.org/gitweb/?p=dgit-repos/repos/bugs-everywhere.git;a=summary Build-Depends-Indep: debhelper (>= 9), libparse-debianchangelog-perl, docbook-to-man, xsltproc, python-sphinx, python-yaml, bzr, git, mercurial, tla, darcs, monotone, rcs, python-numpydoc, python-support (>= 0.90), python Standards-Version: 3.9.4 Package: bugs-everywhere Architecture: all Depends: python-yaml, python-jinja2, ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} Recommends: bzr | git | mercurial | tla | bazaar | darcs | monotone | rcs Description: distributed bug tracking system using VCS storage Bugs Everywhere is a “distributed bug tracker”, designed to complement a distributed version control system (VCS). By using a distributed VCS as a back-end for bug state, it gains several convenient features: . * Bugs and code that live on branches are tracked together. * Users can fully modify bug state while offline. * When a user checks out a project’s source code, she gets the current bug state for free. * A web interface to the bug database becomes just another client that merges with the main repository. . Bugs Everywhere currently supports the following VCS back-ends: . * GNU Arch (tla, baz) * Bazaar (bzr) * git * Mercurial (hg) * Darcs * Monotone (mtn) * GNU RCS debian/README.source0000644000000000000000000000126612250654500011351 0ustar To build this package, you should use: git-buildpackage However, it should build using regular toolchain too. To upgrade the package, you should use git: git remote add upstream git://gitorious.org/be/be git fetch upstream git merge upstream/1.1.1 dch -v1.1.1 new upstream release ./debian/rules new-version We then use dgit to build and upload the package (assuming you are in sid already): dgit git-build dgit push If you aren't, you will need to use git-buildpackage with a sid chroot and move the resulting .changes files (and dependents) in .., then run dgit push normally. -- Antoine Beaupré , Sun, 20 Oct 2013 17:34:19 -0400 debian/changelog0000644000000000000000000001250612250654500011043 0ustar bugs-everywhere (1.1.1-3) unstable; urgency=low * add missing python-jinja2 dependency (Closes: #731579) -- Antoine Beaupré Fri, 06 Dec 2013 21:16:46 -0500 bugs-everywhere (1.1.1-2) unstable; urgency=low * Patch: ship missing source for jquery.corners. Sent upstream. * Update copyright notice to cover for jquery.corners. * Remove other patches with upstream after review: * generate our own libbe/_version.py file without git, and disable it without a patch - this requires a new build-dependency, for parse-changelogs * hardcode build parameters on the commandline instead of making the Makefile flexible -- Antoine Beaupré Fri, 29 Nov 2013 12:36:26 -0500 bugs-everywhere (1.1.1-1) unstable; urgency=low * Take over orphan package, give maintainership to maxigas, put myself as uploader. * New upstream release (Closes: #694744). * Manpage installed now managed upstream, drop our manual install. * We manage the libbe/_version.py file manually in the git repository since we loose the git repo when building with git-buildpackge. Instructions are in debian/README.source. * Start using (d)git for version control. * Add nympydoc dependency. * Update to standards 3.9.4, needed to add some targets. * Use single-debian-patch so we don't have to maintain individual patches from git, patches will be sent upstream properly. * Disable tests, as they fail in a sid chroot. * Switch to debhelper 9. -- Antoine Beaupré Sun, 20 Oct 2013 16:04:00 -0400 bugs-everywhere (1.0.1-1) UNRELEASED; urgency=low * First upstream release (Closes: bug#609519). + Now supports Monotone and Darcs. * debian/watch: + Specify upstream tarball location. * debian/control: + Add new dependencies for upstream version: * ‘python-yaml’ for new data format * ‘xsltproc’ and ‘python-sphinx’ for building documentation + Depend on current package name for Git. + Add VCS backends as ‘Build-Depends’ for automated tests. + Conform to “Standards-Version: 3.9.2”. * debian/control, debian/rules: + Convert to ‘dh_python2’ packaging helper. + Add recommended build targets. * debian/rules, debian/get-orig-source: + Use official upstream tarball for pristine source. * debian/copyright: + Update notices, reformat file to candidate DEP-5 format. * debian/source/format: + Switch to source format “3.0 (quilt)”. -- Ben Finney Sat, 30 Jul 2011 16:35:20 +1000 bugs-everywhere (0.0.193+bzr.r217-2) unstable; urgency=low * debian/control: + Improve synopsis description. + Update to ‘Standards-Version: 3.8.2’; no changes required. -- Ben Finney Fri, 24 Jul 2009 16:46:00 +1000 bugs-everywhere (0.0.193+bzr.r217-1) UNRELEASED; urgency=low * debian/control: + Update to ‘Standards-Version: 3.8.1’. + Specify ‘Build-Depends-Indep’ only, since we don't build any arch-dependent packages. + Relax to ‘Build-Depends-Indep: python’ instead of ‘python-all-dev’, since we're not building any extension modules. + Describe supported VCS back-ends in description. + Set ‘VCS-*’ fields to point to actual branch. * debian/rules: + Upgrade packaging to debhelper 7. + Add ‘get-orig-source’ target as per Policy §4.9. + Install ‘NEWS’ file as upstream changelog. * debian/control, debian/rules: + Switch to ‘python-support’ for Python package management. * debian/get-orig-source: + New program to fetch upstream source archive. * debian/watch: + Satisfy Policy §4.11 by adding this file. + Document lack of released upstream source archives. * debian/copyright: + Convert to proposed machine-parseable format. + Add copyright notices as found in upstream source files. * debian/docs: + Add ‘AUTHORS’ file. -- Ben Finney Wed, 10 Jun 2009 01:23:48 +1000 bugs-everywhere (0.0.193-2~rc1) UNRELEASED; urgency=low * Add VCS-bzr field to debian/control. -- Ben Finney Tue, 22 Apr 2008 22:54:38 +1000 bugs-everywhere (0.0.193-1.3) UNRELEASED; urgency=low * debian/copyright: - Convert to machine-parseable format, as per . - Cover all currently known copyright holders. -- Ben Finney Tue, 22 Apr 2008 20:26:14 +1000 bugs-everywhere (0.0.193-1.2) UNRELEASED; urgency=low * debian/README.debian: - Useless, remove. * debian/compat: - Matching version with debhelper. -- Ben Finney Mon, 21 Apr 2008 22:17:01 +1000 bugs-everywhere (0.0.193-1.1) UNRELEASED; urgency=low * doc/be.1.sgml: - Better SGML markup for manpage. * debian/control: - Enumerate supported back-end VCS systems. -- Ben Finney Mon, 21 Apr 2008 19:27:25 +1000 bugs-everywhere (0.0.193-1) UNRELEASED; urgency=low * Initial Debian release (Closes: #477125). -- Ben Finney Mon, 21 Apr 2008 17:08:47 +1000 bugs-everywhere (0.0.193-0.1) UNRELEASED; urgency=low * Initial work on Debianised package. -- Ben Finney Fri, 18 Apr 2008 19:41:41 +1000 debian/gbp.conf0000644000000000000000000000010312250654500010576 0ustar [git-buildpackage] debian-branch=dgit/sid upstream-tag=%(version)s debian/docs0000644000000000000000000000002412250654500010034 0ustar NEWS README AUTHORS debian/rules0000755000000000000000000000341112250654500010244 0ustar #! /usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # # debian/rules # Part of Debian ‘bugs-everywhere’ package. # # Copyright © 2008–2011 Ben Finney # This is free software; you may copy, modify, and/or distribute this work # under the terms of the GNU General Public License, version 2 or later. # No warranty expressed or implied. # See the file ‘/usr/share/common-licenses/GPL-2’ for details. %: dh $@ --with=python2 override_dh_auto_install: dh_auto_install -- INSTALL_OPTIONS="--install-layout=deb --root=$(CURDIR)/debian/bugs-everywhere --prefix=/usr" LIBBE_VERSION= # this mess is to automatically generate the _version.py file that contains git commit metadata # since we usually build in a clean export of the git repository, the upstream build system fails # so we disable that build and build it ourselves # generate metadata that willbe included in the file version=$(shell parsechangelog --format=rfc822 | grep Version: | cut -d' ' -f2-) date=$(shell date +%Y-%m-%d) LIBBE_VERSION:=libbe/_version.py show-version: $(LIBBE_VERSION) cat $(LIBBE_VERSION) # disable generation of the metadata, hook our generation in there override_dh_auto_build: $(LIBBE_VERSION) dh_auto_build -- LIBBE_VERSION= # generate version file based on our generated metadata $(LIBBE_VERSION): printf "# -*- coding: utf-8 -*-\n# Autogenerated by debian/rules libbe/_version.py\nversion_info = {\n 'date': '$(date)',\n 'revision': '$(version)',\n 'committer': 'Debian build scripts'}\n" > $@ override_dh_auto_clean: dh_auto_clean rm -f $(LIBBE_VERSION) override_dh_auto_test: override_dh_installchangelogs: dh_installchangelogs -k NEWS # Local Variables: # mode: makefile # coding: utf-8 # End: # vim: filetype=make fileencoding=utf-8 : debian/watch0000644000000000000000000000036512250654500010222 0ustar # debian/watch # Debian uscan file for ‘bugs-everywhere’ package. # Manpage: uscan(1) # Compulsory line, this is a version 3 file. version=3 # Current version from project site. http://download.bugseverywhere.org/releases/be-(.+)\.tar\.gz debian/copyright0000644000000000000000000000625612250654500011131 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: Bugs Everywhere Upstream-Contact: Chris Ball Source: http://download.bugseverywhere.org/releases/ https://www.cs.cmu.edu/~aiton/netflix/jquery-corners-0.3/ https://github.com/ndbroadbent/shell-fm_sinatra/tree/master/dev/jquery-corners-0.3_0/jquery-corners-0.3 Files: * Copyright: © 2005–2007 Aaron Bentley and Panometrics, Inc. © 2005 Oleg Romanyshyn © 2006–2011 Aaron Bentley © 2006 Thomas Gerigk © 2006 Marien Zwart © 2007 Steve Borho © 2008–2011 Ben Finney © 2008–2011 Gianluca Montecchi © 2009–2011 W. Trevor King © 2008–2011 Chris Ball License: GPL-2+ Files: interfaces/web/static/scripts/* Copyright: © 2008 David Turnbull, Steven Wittens License: GPL-2+ or MIT Files: debian/* Copyright: © 2008–2011 Ben Finney © 2013 Antoine Beaupré License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in ‘/usr/share/common-licenses/GPL-2’. License: MIT 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. debian/patches/0000755000000000000000000000000012250654500010614 5ustar debian/patches/series0000644000000000000000000000010112250654500012021 0ustar auto-1.1.1-3-3caf93f13fc59943cc6162949b57ffdf57daad25-1386435107 debian/patches/auto-1.1.1-3-3caf93f13fc59943cc6162949b57ffdf57daad25-13864351070000644000000000000000000013755012250654500021224 0ustar Description: Automatically generated patch (1.1.1-3) Last (up to) 3 git changes, FYI: . commit 3caf93f13fc59943cc6162949b57ffdf57daad25 Author: Antoine Beaupré Date: Fri Dec 6 21:18:38 2013 -0500 . add missing python-jinja2 dependency (Closes: #731579) . commit 75c539efe35a17f727b10e9cf445c8e645e87c88 Author: Antoine Beaupré Date: Mon Dec 2 16:06:40 2013 -0500 . fix URL to VCS browser . commit f14f50d643493fd6665b9069b68d8d663ed9b156 Author: Antoine Beaupré Date: Fri Nov 29 12:36:32 2013 -0500 . prepare -2 Author: Antoine Beaupré --- --- /dev/null +++ bugs-everywhere-1.1.1/interfaces/web/static/scripts/MIT-LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) 2008 David Turnbull, Steven Wittens + +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. --- /dev/null +++ bugs-everywhere-1.1.1/interfaces/web/static/scripts/jquery.corners.js @@ -0,0 +1,405 @@ +/*! + * jQuery Corners 0.3 + * Copyright (c) 2008 David Turnbull, Steven Wittens + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + */ + +jQuery.fn.corners = function(options) { + var doneClass = 'rounded_by_jQuery_corners'; /* To prevent double rounding */ + var settings = parseOptions(options); + var webkitAvailable = false; + try { + webkitAvailable = (document.body.style.WebkitBorderRadius !== undefined); + /* Google Chrome corners look awful */ + var versionIndex = navigator.userAgent.indexOf('Chrome'); + if (versionIndex >= 0) webkitAvailable = false; + } catch(err) {} + var mozillaAvailable = false; + try { + mozillaAvailable = (document.body.style.MozBorderRadius !== undefined); + /* Firefox 2 corners look worse */ + var versionIndex = navigator.userAgent.indexOf('Firefox'); + if (versionIndex >= 0 && parseInt(navigator.userAgent.substring(versionIndex+8)) < 3) mozillaAvailable = false; + } catch(err) {} + return this.each(function(i,e){ + $e = jQuery(e); + if ($e.hasClass(doneClass)) return; + $e.addClass(doneClass); + var classScan = /{(.*)}/.exec(e.className); + var s = classScan ? parseOptions(classScan[1], settings) : settings; + var nodeName = e.nodeName.toLowerCase(); + if (nodeName=='input') e = changeInput(e); + if (webkitAvailable && s.webkit) roundWebkit(e, s); + else if(mozillaAvailable && s.mozilla && (s.sizex == s.sizey)) roundMozilla(e, s); + else { + var bgColor = backgroundColor(e.parentNode); + var fgColor = backgroundColor(e); + switch (nodeName) { + case 'a': + case 'input': + roundLink(e, s, bgColor, fgColor); + break; + default: + roundDiv(e, s, bgColor, fgColor); + break; + } + } + }); + + function roundWebkit(e, s) { + var radius = '' + s.sizex + 'px ' + s.sizey + 'px'; + var $e = jQuery(e); + if (s.tl) $e.css('WebkitBorderTopLeftRadius', radius); + if (s.tr) $e.css('WebkitBorderTopRightRadius', radius); + if (s.bl) $e.css('WebkitBorderBottomLeftRadius', radius); + if (s.br) $e.css('WebkitBorderBottomRightRadius', radius); + } + + function roundMozilla(e, s) + { + var radius = '' + s.sizex + 'px'; + var $e = jQuery(e); + if (s.tl) $e.css('-moz-border-radius-topleft', radius); + if (s.tr) $e.css('-moz-border-radius-topright', radius); + if (s.bl) $e.css('-moz-border-radius-bottomleft', radius); + if (s.br) $e.css('-moz-border-radius-bottomright', radius); + } + + function roundLink(e, s, bgColor, fgColor) { + var table = tableElement("table"); + var tbody = tableElement("tbody"); + table.appendChild(tbody); + var tr1 = tableElement("tr"); + var td1 = tableElement("td", "top"); + tr1.appendChild(td1); + var tr2 = tableElement("tr"); + var td2 = relocateContent(e, s, tableElement("td")); + tr2.appendChild(td2); + var tr3 = tableElement("tr"); + var td3 = tableElement("td", "bottom"); + tr3.appendChild(td3); + if (s.tl||s.tr) { + tbody.appendChild(tr1); + addCorners(td1, s, bgColor, fgColor, true); + } + tbody.appendChild(tr2); + if (s.bl||s.br) { + tbody.appendChild(tr3); + addCorners(td3, s, bgColor, fgColor, false); + } + e.appendChild(table); + /* Clicking on $('a>table') in IE will trigger onclick but not the href */ + if (jQuery.browser.msie) table.onclick = ieLinkBypass; + /* Firefox 2 will render garbage unless we hide the overflow here */ + e.style.overflow = 'hidden'; + } + + function ieLinkBypass() { + if (!this.parentNode.onclick) this.parentNode.click(); + } + + function changeInput(e) { + var a1 = document.createElement("a"); + a1.id = e.id; + a1.className = e.className; + if (e.onclick) { + a1.href = 'javascript:' + a1.onclick = e.onclick; + } else { + jQuery(e).parent('form').each(function() {a1.href = this.action;}); + a1.onclick = submitForm; + } + var a2 = document.createTextNode(e.value); + a1.appendChild(a2); + e.parentNode.replaceChild(a1, e); + return a1; + } + + function submitForm() { + jQuery(this).parent('form').each(function() {this.submit()}); + return false; + } + + function roundDiv(e, s, bgColor, fgColor) { + var div = relocateContent(e, s, document.createElement('div')); + e.appendChild(div); + if (s.tl||s.tr) addCorners(e, s, bgColor, fgColor, true); + if (s.bl||s.br) addCorners(e, s, bgColor, fgColor, false); + } + + function relocateContent(e, s, d) { + var $e = jQuery(e); + var c; + while(c=e.firstChild) d.appendChild(c); + if (e.style.height) { + var h = parseInt($e.css('height')); + d.style.height = h + 'px'; + h += parseInt($e.css('padding-top')) + parseInt($e.css('padding-bottom')); + e.style.height = h + 'px'; + } + if (e.style.width) { + var w = parseInt($e.css('width')); + d.style.width = w + 'px'; + w += parseInt($e.css('padding-left')) + parseInt($e.css('padding-right')); + e.style.width = w + 'px'; + } + d.style.paddingLeft = $e.css('padding-left'); + d.style.paddingRight = $e.css('padding-right'); + if (s.tl||s.tr) { + d.style.paddingTop = adjustedPadding(e, s, $e.css('padding-top'), true); + } else { + d.style.paddingTop = $e.css('padding-top'); + } + if (s.bl||s.br) { + d.style.paddingBottom = adjustedPadding(e, s, $e.css('padding-bottom'), false); + } else { + d.style.paddingBottom = $e.css('padding-bottom'); + } + e.style.padding = 0; + return d; + } + + function adjustedPadding(e, s, pad, top) { + if (pad.indexOf("px") < 0) { + try { + //TODO Make this check work otherwise remove it + console.error('%s padding not in pixels', (top ? 'top' : 'bottom'), e); + } + catch(err) {} + pad = s.sizey + 'px'; + } + pad = parseInt(pad); + if (pad - s.sizey < 0) { + try { + console.error('%s padding is %ipx for %ipx corner:', (top ? 'top' : 'bottom'), pad, s.sizey, e); + } + catch(err) {} + pad = s.sizey; + } + return pad - s.sizey + 'px'; + } + + function tableElement(kind, valign) { + var e = document.createElement(kind) + e.style.border = 'none'; + e.style.borderCollapse = 'collapse'; + e.style.borderSpacing = 0; + e.style.padding = 0; + e.style.margin = 0; + if (valign) e.style.verticalAlign = valign; + return e; + } + + function backgroundColor(e) { + try { + var c = jQuery.css(e, "background-color"); + if ( c.match(/^(transparent|rgba\(0,\s*0,\s*0,\s*0\))$/i) && e.parentNode ) + return backgroundColor(e.parentNode); + if (c==null) + return "#ffffff"; + if (c.indexOf("rgb") > -1) + c = rgb2hex(c); + if (c.length == 4) + c = hexShort2hex(c); + return c; + } catch(err) { + return "#ffffff"; + } + } + + function hexShort2hex(c) { + return '#' + + c.substring(1,2) + + c.substring(1,2) + + c.substring(2,3) + + c.substring(2,3) + + c.substring(3,4) + + c.substring(3,4); + } + + function rgb2hex(c) { + var x = 255; + var hex = ''; + var i; + var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/; + var array=regexp.exec(c); + for(i=1;i<4;i++) hex += ('0'+parseInt(array[i]).toString(16)).slice(-2); + return '#'+hex; + } + + function parseOptions(options, settings) { + var options = options || ''; + var s = {sizex:5, sizey:5, tl: false, tr: false, bl: false, br: false, webkit:true, mozilla: true, transparent:false}; + if (settings) { + s.sizex = settings.sizex; + s.sizey = settings.sizey; + s.webkit = settings.webkit; + s.transparent = settings.transparent; + s.mozilla = settings.mozilla; + } + var sizex_set = false; + var corner_set = false; + jQuery.each(options.split(' '), function(idx, option) { + option = option.toLowerCase(); + var i = parseInt(option); + if (i > 0 && option == i + 'px') { + s.sizey = i; + if (!sizex_set) s.sizex = i; + sizex_set = true; + } else switch (option) { + case 'no-native': s.webkit = s.mozilla = false; break; + case 'webkit': s.webkit = true; break; + case 'no-webkit': s.webkit = false; break; + case 'mozilla': s.mozilla = true; break; + case 'no-mozilla': s.mozilla = false; break; + case 'anti-alias': s.transparent = false; break; + case 'transparent': s.transparent = true; break; + case 'top': corner_set = s.tl = s.tr = true; break; + case 'right': corner_set = s.tr = s.br = true; break; + case 'bottom': corner_set = s.bl = s.br = true; break; + case 'left': corner_set = s.tl = s.bl = true; break; + case 'top-left': corner_set = s.tl = true; break; + case 'top-right': corner_set = s.tr = true; break; + case 'bottom-left': corner_set = s.bl = true; break; + case 'bottom-right': corner_set = s.br = true; break; + } + }); + if (!corner_set) { + if (!settings) { + s.tl = s.tr = s.bl = s.br = true; + } else { + s.tl = settings.tl; + s.tr = settings.tr; + s.bl = settings.bl; + s.br = settings.br; + } + } + return s; + } + + function alphaBlend(a, b, alpha) { + var ca = Array( + parseInt('0x' + a.substring(1, 3)), + parseInt('0x' + a.substring(3, 5)), + parseInt('0x' + a.substring(5, 7)) + ); + var cb = Array( + parseInt('0x' + b.substring(1, 3)), + parseInt('0x' + b.substring(3, 5)), + parseInt('0x' + b.substring(5, 7)) + ); + r = '0' + Math.round(ca[0] + (cb[0] - ca[0])*alpha).toString(16); + g = '0' + Math.round(ca[1] + (cb[1] - ca[1])*alpha).toString(16); + b = '0' + Math.round(ca[2] + (cb[2] - ca[2])*alpha).toString(16); + return '#' + + r.substring(r.length - 2) + + g.substring(g.length - 2) + + b.substring(b.length - 2); + } + + function addCorners(e, s, bgColor, fgColor, top) { + if (s.transparent) addTransparentCorners(e, s, bgColor, top); + else addAntiAliasedCorners(e, s, bgColor, fgColor, top); + } + + function addAntiAliasedCorners(e, s, bgColor, fgColor, top) { + var i, j; + var d = document.createElement("div"); + d.style.fontSize = '1px'; + d.style.backgroundColor = bgColor; + var lastarc = 0; + for (i = 1; i <= s.sizey; i++) { + var coverage, arc2, arc3; + // Find intersection of arc with bottom of pixel row + arc = Math.sqrt(1.0 - Math.pow(1.0 - i / s.sizey, 2)) * s.sizex; + // Calculate how many pixels are bg, fg and blended. + var n_bg = s.sizex - Math.ceil(arc); + var n_fg = Math.floor(lastarc); + var n_aa = s.sizex - n_bg - n_fg; + // Create pixel row wrapper + var x = document.createElement("div"); + var y = d; + x.style.margin = "0px " + n_bg + "px"; + x.style.height = '1px'; + x.style.overflow = 'hidden'; + // Create the pixel divs for a row (at least one) + for (j = 1; j <= n_aa; j++) { + // Calculate coverage per pixel (approximates arc within the pixel) + if (j == 1) { + if (j == n_aa) { + // Single pixel + coverage = ((arc + lastarc) * .5) - n_fg; + } + else { + // First in a run + arc2 = Math.sqrt(1.0 - Math.pow(1.0 - (n_bg + 1) / s.sizex, 2)) * s.sizey; + coverage = (arc2 - (s.sizey - i)) * (arc - n_fg - n_aa + 1) * .5; + } + } + else if (j == n_aa) { + // Last in a run + arc2 = Math.sqrt(1.0 - Math.pow((s.sizex - n_bg - j + 1) / s.sizex, 2)) * s.sizey; + coverage = 1.0 - (1.0 - (arc2 - (s.sizey - i))) * (1.0 - (lastarc - n_fg)) * .5; + } + else { + // Middle of a run + arc3 = Math.sqrt(1.0 - Math.pow((s.sizex - n_bg - j) / s.sizex, 2)) * s.sizey; + arc2 = Math.sqrt(1.0 - Math.pow((s.sizex - n_bg - j + 1) / s.sizex, 2)) * s.sizey; + coverage = ((arc2 + arc3) * .5) - (s.sizey - i); + } + + addCornerDiv(s, x, y, top, alphaBlend(bgColor, fgColor, coverage)); + y = x; + var x = y.cloneNode(false); + x.style.margin = "0px 1px"; + } + addCornerDiv(s, x, y, top, fgColor); + lastarc = arc; + } + if (top) + e.insertBefore(d, e.firstChild); + else + e.appendChild(d); + } + + function addCornerDiv(s, x, y, top, color) { + if (top && !s.tl) x.style.marginLeft = 0; + if (top && !s.tr) x.style.marginRight = 0; + if (!top && !s.bl) x.style.marginLeft = 0; + if (!top && !s.br) x.style.marginRight = 0; + x.style.backgroundColor = color; + if (top) + y.appendChild(x); + else + y.insertBefore(x, y.firstChild); + } + + function addTransparentCorners(e, s, bgColor, top) { + var d = document.createElement("div"); + d.style.fontSize = '1px'; + var strip = document.createElement('div'); + strip.style.overflow = 'hidden'; + strip.style.height = '1px'; + strip.style.borderColor = bgColor; + strip.style.borderStyle = 'none solid'; + var sizex = s.sizex-1; + var sizey = s.sizey-1; + if (!sizey) sizey = 1; /* hint for 1x1 */ + for (var i=0; i < s.sizey; i++) { + var w = sizex - Math.floor(Math.sqrt(1.0 - Math.pow(1.0 - i / sizey, 2)) * sizex); + if (i==2 && s.sizex==6 && s.sizey==6) w = 2; /* hint for 6x6 */ + var x = strip.cloneNode(false); + x.style.borderWidth = '0 '+ w +'px'; + if (top) x.style.borderWidth = '0 '+(s.tr?w:0)+'px 0 '+(s.tl?w:0)+'px'; + else x.style.borderWidth = '0 '+(s.br?w:0)+'px 0 '+(s.bl?w:0)+'px'; + top ? d.appendChild(x) : d.insertBefore(x, d.firstChild); + } + if (top) + e.insertBefore(d, e.firstChild); + else + e.appendChild(d); + } + + +} --- /dev/null +++ bugs-everywhere-1.1.1/interfaces/web/static/scripts/jquery.corners.html @@ -0,0 +1,465 @@ + + + + + + jQuery Corners + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

jQuery Corners 0.3

+
+ + + + +
+ +

This jQuery plugin will easily create beautifully rounded corners. + No images or obtrusive markup necessary.

+
Architectural features: +
    +
  • Less than 8000 bytes after yui compression.
  • +
  • Beautiful and fast anti-aliasing for older or stubborn browsers.
  • +
  • Degrades well for browsers with javascript turned off.
  • +
  • Native browser corners used on Safari, iPhone, and Firefox 3.
  • +
  • Form and anchor buttons are easily styled and rounded.
  • +
  • Documentation and test coverage (this file).
  • +
+
+ +
+ +

Works with:

+
    +
  • iPhone
  • +
  • Chrome
  • +
  • Firefox
  • +
  • Safari 2+
  • +
  • Opera 9.0+
  • +
  • Internet Explorer 6+
  • +
  • and probably more...
  • +
+
+
+ + + + +
+
+
+ +
+ + +
+ +
+ Once jQuery and jQuery.corners scripts are loaded, rounding corners is easy. + + <div style="background-color:#acc; padding:5px" class="rounded">
+   Simple Example
+ </div>
+ <script>$(document).ready( function(){
+   $('.rounded').corners();
+ });</script>
+
+
+ Simple Example +
+
+ The rounding algorithm accepts options. + + <div style="background-color:#acc; padding:10px" class="rounded">
+   Example with different x and y sizes.
+ </div>
+ <script>$(document).ready( function(){
+   $('.rounded').corners("30px 10px");
+ });</script>
+
+
+ Example with different x and y sizes. +
+
+ You may override the options in the element's class. + + <div style="background-color:#acc; padding:10px" class="rounded {10px}">
+   class="rounded {10px}"
+ </div>
+ <script>$(document).ready( function(){
+   $('.rounded').corners("4px");
+ });</script>
+
+
+ class="rounded {10px}" +
+
+ +
+ Options are passed as a string. For example: "6px transparent top"; +
+
+
+
5px
+
Sets the corner radius. Default is 5.
+
10px 6px
+
Sets the x and y radii to different values.
+
anti-alias
+
Corners are anti-aliased. Default.
+
transparent
+
For background images or hover states, use this transparent style.
+
no-native
+
Disables all of the following border-radius extensions. Mostly used for testing.
+
webkit
+
Enables use of -webkit-border-radius on compatible browsers such as Safari and iPhone. Currently disabled for Google Chrome. Default.
+
no-webkit
+
Will not use -webkit-border-radius on any browser.
+
mozilla
+
Enables use of -moz-border-radius on Firefox 3+ and other Mozilla based browsers. Default.
+
no-mozilla
+
Will not use -moz-border-radius on any browser.
+
top
+
right
+
bottom
+
left
+
top-left
+
top-right
+
bottom-left
+
bottom-right
+
Mix and match to round only specific corners.
+
+
+ +
+ Anchor <a> elements can be turned into rounded buttons. + + <a href="javascript:" onclick="alert('Hello, World!')" class="rounded {transparent} button">
+   Press
+ </a> for a greeting. +
+ + Press + for a greeting.
+
+ Form buttons too. Input elements are transmogrified to an anchor. + Browsers without javascript render buttons like the square examples here. + + <form action="?">
+ <input type="submit" value="Submit" class="button">&nbsp;
+ <input type="submit" value="Submit" class="rounded {transparent} button">&nbsp;
+ <input type="button" value="Javascript" class="button" onclick="alert('OK!'); return false;">&nbsp;
+ <input type="button" value="Javascript" class="rounded {transparent} button" onclick="alert('OK!'); return false;">
+ </form>
+
+
+   +   +   + +
+
+ Anchors and buttons require CSS like so. + + a.rounded, .button {
+   outline: none;
+   border: none;
+   text-decoration: none;
+   cursor: pointer;
+   white-space: nowrap;
+   vertical-align: middle; /* or top */
+   display: -moz-inline-box;
+   display: inline-block;
+   overflow: visible; /* IE6 form button fix */
+ }
+ .button {
+   color: #000;
+   background-color: #acc;
+   padding: 5px 7px;
+ }
+ .button:hover {
+   background-color: #cee;
+ } +
+
+ +
+
+ Your browser has a supported border-radius extension. You deserve a cookie. +
+ 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 +
+
+
+ jQuery Corners contains its own algorithm to create anti-aliased corners. + Native browser support has been disabled here. +
+ 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 +
+
+ If you plan on using a background image or hover state, this transparent style will do the trick. + Your browser has border-radius support and will normally display these like the first example. +
+ 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 +
+
+ Width, height, margin and padding attributes supported. +
+
+
+ No-native floating right test. +
+
+
+   +
+ +
+ Obtain support and the latest version at: http://plugins.jquery.com/project/corners +
+
+ There needs to be enough padding to insert corners otherwise the layout + will not look the same across browsers or with javascript disabled. + If jQuery.corners doesn't find enough padding and you have Firebug or Firebug Lite running, + an error will be logged to the console. Note that if your browser supports border-radius + extensions then you will need to apply "no-native" to the elements you want checked. +
+
+ Elements can only be rounded once. This allows for easier ajax support since you can + use the same callback for $(document).ready and ajaxComplete. +
+
+ If you're having trouble on your own pages, make sure you're not in + quirks mode. +
+
+ Fun things to try with this page: + View the source for more examples. + View it with an iPhone. + Turn off javascript and reload. + Increase or decrease the font size with your browser. +
+ +
+
+ + + + --- /dev/null +++ bugs-everywhere-1.1.1/interfaces/web/static/scripts/GPL-LICENSE.txt @@ -0,0 +1,278 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. debian/source/0000755000000000000000000000000012250654500010465 5ustar debian/source/format0000644000000000000000000000001412250654500011673 0ustar 3.0 (quilt) debian/source/patch-header0000644000000000000000000000063112250654500012735 0ustar Subject: Collected Debian patches for bugs-everywhere Author: Antoine Beaupré The bugs-everywhere package is maintained in Git rather than maintaining patches as separate files, and separating the patches doesn't seem to be worth the effort. They are therefore all included in this single Debian patch. For full commit history and separated commits, see the packaging Git repository. debian/source/options0000644000000000000000000000002412250654500012077 0ustar single-debian-patch