mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Uploading and preparing the repository to the dev version.
Original unminified source code (dev folder - js, css, less) (fixes #6) Grunt build system Multiple identities correction (fixes #9) Compose html editor (fixes #12) New general settings - Loading Description New warning about default admin password Split general and login screen settings
This commit is contained in:
parent
afad45137e
commit
4cc2207513
846 changed files with 99453 additions and 2123 deletions
96
vendors/jquery-mousewheel/ChangeLog.markdown
vendored
Normal file
96
vendors/jquery-mousewheel/ChangeLog.markdown
vendored
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
# Mouse Wheel ChangeLog
|
||||
|
||||
## 3.1.4
|
||||
|
||||
* Always set the deltaY
|
||||
* Add back in the deltaX and deltaY support for older Firefox versions
|
||||
|
||||
## 3.1.3
|
||||
|
||||
* Include `MozMousePixelScroll` in the to fix list to avoid inconsistent behavior in older Firefox
|
||||
|
||||
## 3.1.2
|
||||
|
||||
* Include grunt utilities for development purposes (jshint and uglify)
|
||||
* Include support for browserify
|
||||
* Some basic cleaning up
|
||||
|
||||
## 3.1.1
|
||||
|
||||
* Fix rounding issue with deltas less than zero
|
||||
|
||||
|
||||
## 3.1.0
|
||||
|
||||
* Fix Firefox 17+ issues by using new wheel event
|
||||
* Normalize delta values
|
||||
* Adds horizontal support for IE 9+ by using new wheel event
|
||||
* Support AMD loaders
|
||||
|
||||
|
||||
## 3.0.6
|
||||
|
||||
* Fix issue with delta being 0 in Firefox
|
||||
|
||||
|
||||
## 3.0.5
|
||||
|
||||
* jQuery 1.7 compatibility
|
||||
|
||||
|
||||
## 3.0.4
|
||||
|
||||
* Fix IE issue
|
||||
|
||||
|
||||
## 3.0.3
|
||||
|
||||
* Added `deltaX` and `deltaY` for horizontal scrolling support (Thanks to Seamus Leahy)
|
||||
|
||||
|
||||
## 3.0.2
|
||||
|
||||
* Fixed delta being opposite value in latest Opera
|
||||
* No longer fix `pageX`, `pageY` for older Mozilla browsers
|
||||
* Removed browser detection
|
||||
* Cleaned up the code
|
||||
|
||||
|
||||
## 3.0.1
|
||||
|
||||
* Bad release... creating a new release due to plugins.jquery.com issue :(
|
||||
|
||||
|
||||
## 3.0
|
||||
|
||||
* Uses new special events API in jQuery 1.2.2+
|
||||
* You can now treat `mousewheel` as a normal event and use `.bind`, `.unbind` and `.trigger`
|
||||
* Using jQuery.data API for expandos
|
||||
|
||||
|
||||
## 2.2
|
||||
|
||||
* Fixed `pageX`, `pageY`, `clientX` and `clientY` event properties for Mozilla based browsers
|
||||
|
||||
|
||||
## 2.1.1
|
||||
|
||||
* Updated to work with jQuery 1.1.3
|
||||
* Used one instead of bind to do unload event for clean up
|
||||
|
||||
|
||||
## 2.1
|
||||
|
||||
* Fixed an issue with the unload handler
|
||||
|
||||
|
||||
## 2.0
|
||||
|
||||
* Major reduction in code size and complexity (internals have change a whole lot)
|
||||
|
||||
|
||||
## 1.0
|
||||
|
||||
* Fixed Opera issue
|
||||
* Fixed an issue with children elements that also have a mousewheel handler
|
||||
* Added ability to handle multiple handlers
|
||||
20
vendors/jquery-mousewheel/LICENSE.txt
vendored
Normal file
20
vendors/jquery-mousewheel/LICENSE.txt
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Copyright (c) 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.
|
||||
58
vendors/jquery-mousewheel/README.markdown
vendored
Normal file
58
vendors/jquery-mousewheel/README.markdown
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# jQuery Mouse Wheel Plugin
|
||||
|
||||
A [jQuery](http://jquery.com/) plugin that adds cross-browser mouse wheel support.
|
||||
|
||||
In order to use the plugin, simply bind the `mousewheel` event to an element.
|
||||
It also provides two helper methods called `mousewheel` and `unmousewheel`
|
||||
that act just like other event helper methods in jQuery. The event callback
|
||||
receives three extra arguments which are the normalized "deltas" of the mouse wheel.
|
||||
|
||||
Here is an example of using both the bind and helper method syntax:
|
||||
|
||||
```js
|
||||
// using bind
|
||||
$('#my_elem').on('mousewheel', function(event, delta, deltaX, deltaY) {
|
||||
console.log(delta, deltaX, deltaY);
|
||||
});
|
||||
|
||||
// using the event helper
|
||||
$('#my_elem').mousewheel(function(event, delta, deltaX, deltaY) {
|
||||
console.log(delta, deltaX, deltaY);
|
||||
});
|
||||
```
|
||||
|
||||
## See it in action
|
||||
[See the tests on Github](http://brandonaaron.github.io/jquery-mousewheel/test).
|
||||
|
||||
## Using with [Browserify](http://browserify.org)
|
||||
|
||||
Support for browserify is baked in.
|
||||
|
||||
```bash
|
||||
npm install jquery-mousewheel
|
||||
npm install jquery-browserify
|
||||
```
|
||||
|
||||
In your server-side node.js code:
|
||||
|
||||
```js
|
||||
var express = require('express');
|
||||
var app = express.createServer();
|
||||
|
||||
app.use(require('browserify')({
|
||||
require : [ 'jquery-browserify', 'jquery-mousewheel' ]
|
||||
}));
|
||||
```
|
||||
|
||||
In your browser-side javascript:
|
||||
|
||||
```js
|
||||
var $ = require('jquery-browserify');
|
||||
require('jquery-mousewheel')($);
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This plugin is licensed under the [MIT License](LICENSE.txt).
|
||||
|
||||
Copyright (c) 2013 [Brandon Aaron](http://brandon.aaron.sh)
|
||||
2
vendors/jquery-mousewheel/jquery.mousewheel-3.1.4.min.js
vendored
Normal file
2
vendors/jquery-mousewheel/jquery.mousewheel-3.1.4.min.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/*! jquery.mousewheel v3.1.4 (c) 2013 Brandon Aaron (http://brandon.aaron.sh) | MIT */
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var e,f=b||window.event,g=[].slice.call(arguments,1),h=0,i=0,j=0,k=0,l=0;return b=a.event.fix(f),b.type="mousewheel",f.wheelDelta&&(h=f.wheelDelta),f.detail&&(h=-1*f.detail),j=h,void 0!==f.axis&&f.axis===f.HORIZONTAL_AXIS&&(j=0,i=-1*h),f.deltaY&&(j=-1*f.deltaY,h=j),f.deltaX&&(i=f.deltaX,h=-1*i),void 0!==f.wheelDeltaY&&(j=f.wheelDeltaY),void 0!==f.wheelDeltaX&&(i=-1*f.wheelDeltaX),k=Math.abs(h),(!c||c>k)&&(c=k),l=Math.max(Math.abs(j),Math.abs(i)),(!d||d>l)&&(d=l),e=h>0?"floor":"ceil",h=Math[e](h/c),i=Math[e](i/d),j=Math[e](j/d),g.unshift(b,h,i,j),(a.event.dispatch||a.event.handle).apply(this,g)}var c,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],f="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(a.event.fixHooks)for(var g=e.length;g;)a.event.fixHooks[e[--g]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=f.length;a;)this.addEventListener(f[--a],b,!1);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],b,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
||||
122
vendors/jquery-mousewheel/jquery.mousewheel.js
vendored
Normal file
122
vendors/jquery-mousewheel/jquery.mousewheel.js
vendored
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Version: 3.1.4
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS style for Browserify
|
||||
module.exports = factory;
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
|
||||
var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'];
|
||||
var toBind = 'onwheel' in document || document.documentMode >= 9 ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'];
|
||||
var lowestDelta, lowestDeltaXY;
|
||||
|
||||
if ( $.event.fixHooks ) {
|
||||
for ( var i = toFix.length; i; ) {
|
||||
$.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mousewheel = {
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
for ( var i = toBind.length; i; ) {
|
||||
this.addEventListener( toBind[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = handler;
|
||||
}
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
if ( this.removeEventListener ) {
|
||||
for ( var i = toBind.length; i; ) {
|
||||
this.removeEventListener( toBind[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.extend({
|
||||
mousewheel: function(fn) {
|
||||
return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
|
||||
},
|
||||
|
||||
unmousewheel: function(fn) {
|
||||
return this.unbind('mousewheel', fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function handler(event) {
|
||||
var orgEvent = event || window.event,
|
||||
args = [].slice.call(arguments, 1),
|
||||
delta = 0,
|
||||
deltaX = 0,
|
||||
deltaY = 0,
|
||||
absDelta = 0,
|
||||
absDeltaXY = 0,
|
||||
fn;
|
||||
event = $.event.fix(orgEvent);
|
||||
event.type = 'mousewheel';
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; }
|
||||
if ( orgEvent.detail ) { delta = orgEvent.detail * -1; }
|
||||
|
||||
// At a minimum, setup the deltaY to be delta
|
||||
deltaY = delta;
|
||||
|
||||
// Firefox < 17 related to DOMMouseScroll event
|
||||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaY = 0;
|
||||
deltaX = delta * -1;
|
||||
}
|
||||
|
||||
// New school wheel delta (wheel event)
|
||||
if ( orgEvent.deltaY ) {
|
||||
deltaY = orgEvent.deltaY * -1;
|
||||
delta = deltaY;
|
||||
}
|
||||
if ( orgEvent.deltaX ) {
|
||||
deltaX = orgEvent.deltaX;
|
||||
delta = deltaX * -1;
|
||||
}
|
||||
|
||||
// Webkit
|
||||
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY; }
|
||||
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = orgEvent.wheelDeltaX * -1; }
|
||||
|
||||
// Look for lowest delta to normalize the delta values
|
||||
absDelta = Math.abs(delta);
|
||||
if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; }
|
||||
absDeltaXY = Math.max(Math.abs(deltaY), Math.abs(deltaX));
|
||||
if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; }
|
||||
|
||||
// Get a whole value for the deltas
|
||||
fn = delta > 0 ? 'floor' : 'ceil';
|
||||
delta = Math[fn](delta / lowestDelta);
|
||||
deltaX = Math[fn](deltaX / lowestDeltaXY);
|
||||
deltaY = Math[fn](deltaY / lowestDeltaXY);
|
||||
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||
}
|
||||
|
||||
}));
|
||||
27
vendors/jquery-mousewheel/mousewheel.jquery.json
vendored
Normal file
27
vendors/jquery-mousewheel/mousewheel.jquery.json
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "mousewheel",
|
||||
"title": "jQuery Mousewheel",
|
||||
"description": "A jQuery plugin that adds cross-browser mouse wheel support.",
|
||||
"keywords": [
|
||||
"mousewheel",
|
||||
"mouse",
|
||||
"event"
|
||||
],
|
||||
"version": "3.1.4",
|
||||
"author": {
|
||||
"name": "Brandon Aaron",
|
||||
"url": "http://brandonaaron.net"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://raw.github.com/brandonaaron/jquery-mousewheel/master/LICENSE.txt"
|
||||
}
|
||||
],
|
||||
"bugs": "https://github.com/brandonaaron/jquery-mousewheel/issues",
|
||||
"homepage": "https://github.com/brandonaaron/jquery-mousewheel",
|
||||
"download": "https://github.com/brandonaaron/jquery-mousewheel/tags",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.2.2"
|
||||
}
|
||||
}
|
||||
43
vendors/jquery-mousewheel/package.json
vendored
Normal file
43
vendors/jquery-mousewheel/package.json
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "jquery-mousewheel",
|
||||
"version": "3.1.4",
|
||||
"author": "Brandon Aaron <brandon.aaron@gmail.com> (http://brandonaaron.net/)",
|
||||
"description": "A jQuery plugin that adds cross-browser mouse wheel support.",
|
||||
"main": "./jquery.mousewheel.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/brandonaaron/jquery-mousewheel.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/brandonaaron/jquery-mousewheel/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"jquery",
|
||||
"mouse",
|
||||
"wheel",
|
||||
"event",
|
||||
"mousewheel",
|
||||
"plugin",
|
||||
"browser"
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://raw.github.com/brandonaaron/jquery-mousewheel/master/LICENSE.txt"
|
||||
}
|
||||
],
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-uglify": "~0.2.4"
|
||||
},
|
||||
"readmeFilename": "README.markdown",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"jam": {
|
||||
"dependencies": {
|
||||
"jquery": ">=1.2.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue