From be985a8acf1979cb0c98854325d0d130ad55be8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 23 May 2020 22:58:29 +0200 Subject: [PATCH] trivial: remove unused copy of bgiframe.js and related files (#43241) --- README | 9 - .../static/js/bgiframe/ChangeLog.markdown | 33 -- wcs/qommon/static/js/bgiframe/LICENSE.txt | 20 - wcs/qommon/static/js/bgiframe/README.markdown | 47 -- .../static/js/bgiframe/jquery.bgiframe.js | 64 --- .../static/js/bgiframe/jquery.bgiframe.min.js | 6 - wcs/qommon/static/js/methods/array.js | 197 -------- wcs/qommon/static/js/methods/date.js | 467 ------------------ wcs/qommon/static/js/methods/date_be_utf8.js | 10 - wcs/qommon/static/js/methods/date_de.js | 6 - wcs/qommon/static/js/methods/date_es.js | 6 - wcs/qommon/static/js/methods/date_fr.js | 6 - wcs/qommon/static/js/methods/date_it.js | 6 - wcs/qommon/static/js/methods/date_pl.js | 11 - wcs/qommon/static/js/methods/date_ru_utf8.js | 10 - .../static/js/methods/date_ru_win1251.js | 10 - wcs/qommon/static/js/methods/date_ua_utf8.js | 11 - wcs/qommon/static/js/methods/methodsTest.html | 412 --------------- wcs/qommon/static/js/methods/string.js | 153 ------ 19 files changed, 1484 deletions(-) delete mode 100644 wcs/qommon/static/js/bgiframe/ChangeLog.markdown delete mode 100644 wcs/qommon/static/js/bgiframe/LICENSE.txt delete mode 100644 wcs/qommon/static/js/bgiframe/README.markdown delete mode 100644 wcs/qommon/static/js/bgiframe/jquery.bgiframe.js delete mode 100644 wcs/qommon/static/js/bgiframe/jquery.bgiframe.min.js delete mode 100644 wcs/qommon/static/js/methods/array.js delete mode 100644 wcs/qommon/static/js/methods/date.js delete mode 100644 wcs/qommon/static/js/methods/date_be_utf8.js delete mode 100644 wcs/qommon/static/js/methods/date_de.js delete mode 100644 wcs/qommon/static/js/methods/date_es.js delete mode 100644 wcs/qommon/static/js/methods/date_fr.js delete mode 100644 wcs/qommon/static/js/methods/date_it.js delete mode 100644 wcs/qommon/static/js/methods/date_pl.js delete mode 100644 wcs/qommon/static/js/methods/date_ru_utf8.js delete mode 100644 wcs/qommon/static/js/methods/date_ru_win1251.js delete mode 100644 wcs/qommon/static/js/methods/date_ua_utf8.js delete mode 100644 wcs/qommon/static/js/methods/methodsTest.html delete mode 100644 wcs/qommon/static/js/methods/string.js diff --git a/README b/README index 9c485b9f2..6e3b19268 100644 --- a/README +++ b/README @@ -147,15 +147,6 @@ WYSIWYG - jQuery plugin 0.3 # # Dual licensed under the MIT and GPL licenses: -jQuery Date Picker: - # Copyright (c) 2007 Kelvin Luck (http://www.kelvinluck.com/) - # Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - # and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - -bgiframe: - # Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) - # Licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php) - svg-pan-zoom: # Copyright 2009-2010 Andrea Leofreddi # Licensed under the BSD 2-clause license (http://opensource.org/licenses/BSD-2-Clause) diff --git a/wcs/qommon/static/js/bgiframe/ChangeLog.markdown b/wcs/qommon/static/js/bgiframe/ChangeLog.markdown deleted file mode 100644 index 901f277c3..000000000 --- a/wcs/qommon/static/js/bgiframe/ChangeLog.markdown +++ /dev/null @@ -1,33 +0,0 @@ -# bgiframe Change Log - -## 3.0.0 - -* Rewrite of the plugin -* New conditional option (no longer restricted to IE6 only) -* No longer uses CSS Expressions -* Supoprts AMD loaders - - -## 2.1.2 - -* Fixed visual test (test.html) -* Small optimization to only check for IE once - -## 2.1.1 - -* Removed $.browser.version for jQuery < 1.1.3 - -## 2.1 - -* Updated to work with jQuery 1.1.3 -* Added $.browser.version for jQuery < 1.1.3 -* Optimized duplication check by using child selector and using .length test - -## 2.0 - -* Added ability change settings like width, height, src and more. - -## 1.0 - -* Only adds iframe once per an element -* Works with SSL enabled pages diff --git a/wcs/qommon/static/js/bgiframe/LICENSE.txt b/wcs/qommon/static/js/bgiframe/LICENSE.txt deleted file mode 100644 index a1342a60f..000000000 --- a/wcs/qommon/static/js/bgiframe/LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright 2013, Brandon Aaron (http://brandonaaron.net/) - -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/wcs/qommon/static/js/bgiframe/README.markdown b/wcs/qommon/static/js/bgiframe/README.markdown deleted file mode 100644 index 20231629b..000000000 --- a/wcs/qommon/static/js/bgiframe/README.markdown +++ /dev/null @@ -1,47 +0,0 @@ -# bgiframe - -Plugin has been rewritten to remove the use of CSS Expressions and to lift the restriction to IE6 only. The IE6 limitation is on by default but is now configurable by passing the `conditional` option. You may want to do this for instance if you are trying to layer on top of Silverlight in later IE versions. As a result of removing the CSS Expressions, you'll now need to re-run the bgiframe on elements that change their width, height, and/or borders after they are changed. - -The bgiframe plugin is chainable and applies the iframe hack to get around zIndex issues. It will only apply itself in IE6 (by default) and adds a class to the iframe called 'bgiframe'. The iframe is appended as the first child of the matched element(s) with a tabIndex and zIndex of -1. - -By default the plugin will take borders, sized with pixel units, into account. If a different unit is used for the border's width, then you will need to use the top and left settings as explained below. - - -## How do I use it? - -The usage is simple. Just call bgiframe on a jQuery collection of elements. - - $('.fix-z-index').bgiframe(); - -If your element changes width, height, or border widths then you'll need to call bgiframe on those elements after the change. - -Here is an example of using a different conditional and recalling `bgiframe` on the manipulated element. - - var settings = { conditional: /MSIE/.test(navigator.userAgent) }, - $testing = $('#testing'); - $testing - .bgiframe(settings) - .bind('click', function(e) { - $testing - .width( $testing.width() + 10 ) - .height( $testing.height() + 10 ) - .bgiframe(settings); - }); - -### Settings - -The plugin tries its best to handle most situations but sometimes some configuration is necessary. The following is a list of available settings. - -* `top` *(String|Number)*: The iframe must be offset to the top by the width of the top border. This should be a negative number representing the border-top-width. If a number is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use the elements border top width as calculated by jQuery. -* `left` *(String|Number)*: The iframe must be offset to the left by the width of the left border. This should be a negative number representing the border-left-width. If a number is is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use the elements border left width as calculated by jQuery. -* `width` *(String|Number)*: This is the width of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will the offsetWidth of the element. -* `height` *(String|Number)*: This is the height of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use the offsetHeight of the element. -* `opacity` *(Boolean)*: This is a boolean representing whether or not to use opacity. If set to true, the opacity of 0 is applied. If set to false, the opacity filter is not applied. Default: true. -* `src` *(String)*: This setting is provided so that one could change the src of the iframe to whatever they need. Default: "javascript:false;" -* `conditional` *(Boolean|Function)*: Turn on or off the injection of the iFrame. `true` to turn on the iFrame and `false` to turn it off. Default is IE6 only conditional. - -## License - -The bgiframe plugin is licensed under the MIT License (LICENSE.txt). - -Copyright (c) 2013 [Brandon Aaron](http://brandonaaron.net) diff --git a/wcs/qommon/static/js/bgiframe/jquery.bgiframe.js b/wcs/qommon/static/js/bgiframe/jquery.bgiframe.js deleted file mode 100644 index 6ff8f3bb6..000000000 --- a/wcs/qommon/static/js/bgiframe/jquery.bgiframe.js +++ /dev/null @@ -1,64 +0,0 @@ -/*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net) - * Licensed under the MIT License (LICENSE.txt). - * - * Version 3.0.0 - */ - -(function (factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['jquery'], factory); - } else { - // Browser globals - factory(jQuery); - } -}(function ($) { - $.fn.bgiframe = function(s) { - s = $.extend({ - top : 'auto', // auto == borderTopWidth - left : 'auto', // auto == borderLeftWidth - width : 'auto', // auto == offsetWidth - height : 'auto', // auto == offsetHeight - opacity : true, - src : 'javascript:false;', - conditional : /MSIE 6.0/.test(navigator.userAgent) // expresion or function. return false to prevent iframe insertion - }, s); - - // wrap conditional in a function if it isn't already - if (!$.isFunction(s.conditional)) { - var condition = s.conditional; - s.conditional = function() { return condition; }; - } - - var $iframe = $('