mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +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
20
vendors/simple-pace/LICENSE
vendored
Normal file
20
vendors/simple-pace/LICENSE
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Copyright 2013 RainLoop Team
|
||||
|
||||
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.
|
||||
2
vendors/simple-pace/simple-pace-1.0.min.js
vendored
Normal file
2
vendors/simple-pace/simple-pace-1.0.min.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/*! RainLoop Simple Pace v1.0 (c) 2013 RainLoop Team; Licensed under MIT */
|
||||
!function(a){function b(){var b=this;b.el=null,b.done=!1,b.progress=0,b.addInterval=0,b.addSpeed=3,b.stopProgress=100,b.interval=a.setInterval(function(){var c=b.build();c&&a.clearInterval(b.interval)},100)}if(b.prototype.startAddInterval=function(){var b=this;b.stopAddInterval(),b.addInterval=a.setInterval(function(){0<b.progress&&b.stopProgress>b.progress&&b.add(b.addSpeed)},500)},b.prototype.stopAddInterval=function(){a.clearInterval(this.addInterval),this.addInterval=0},b.prototype.build=function(){if(null===this.el){var a=document.querySelector("body");a&&(this.el=document.createElement("div"),this.el.className="simple-pace simple-pace-active",this.el.innerHTML='<div class="simple-pace-progress"><div class="simple-pace-progress-inner"></div></div><div class="simple-pace-activity"></div>',a.firstChild?a.insertBefore(this.el,a.firstChild):a.appendChild(this.el))}return this.el},b.prototype.reset=function(){return this.progress=0,this.render()},b.prototype.update=function(b){var c=a.parseInt(b,10);return c>this.progress&&(this.progress=c,this.progress=100<this.progress?100:this.progress,this.progress=0>this.progress?0:this.progress),this.render()},b.prototype.add=function(b){return this.progress+=a.parseInt(b,10),this.progress=100<this.progress?100:this.progress,this.progress=0>this.progress?0:this.progress,this.render()},b.prototype.setSpeed=function(a,b){this.addSpeed=a,this.stopProgress=b||100},b.prototype.render=function(){var b=this.build();b&&b.children&&b.children[0]&&b.children[0].setAttribute("style","width:"+this.progress+"%"),100!==this.progress||this.done?100>this.progress&&this.done?(this.done=!1,this.startAddInterval(),b.className=b.className.replace("simple-pace-inactive",""),b.className+=" simple-pace-inactive"):100>this.progress&&!this.done&&0===this.addInterval&&this.startAddInterval():(this.done=!0,this.stopAddInterval(),a.setTimeout(function(){b.className=b.className.replace("simple-pace-active",""),b.className+=" simple-pace-inactive"},500))},!a.SimplePace){var c=new b;a.SimplePace={sleep:function(){c.setSpeed(2,95)},set:function(a){c.update(a)},add:function(a){c.add(a)}}}}(window);
|
||||
142
vendors/simple-pace/simple-pace.js
vendored
Normal file
142
vendors/simple-pace/simple-pace.js
vendored
Normal file
|
|
@ -0,0 +1,142 @@
|
|||
/*! RainLoop Simple Pace v1.0 (c) 2013 RainLoop Team; Licensed under MIT */
|
||||
(function (window) {
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function Bar() {
|
||||
var self = this;
|
||||
|
||||
self.el = null;
|
||||
self.done = false;
|
||||
self.progress = 0;
|
||||
self.addInterval = 0;
|
||||
self.addSpeed = 3;
|
||||
self.stopProgress = 100;
|
||||
self.interval = window.setInterval(function () {
|
||||
var oEl = self.build();
|
||||
if (oEl)
|
||||
{
|
||||
window.clearInterval(self.interval);
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
||||
Bar.prototype.startAddInterval = function () {
|
||||
var self = this;
|
||||
self.stopAddInterval();
|
||||
self.addInterval = window.setInterval(function () {
|
||||
if (0 < self.progress && self.stopProgress > self.progress)
|
||||
{
|
||||
self.add(self.addSpeed);
|
||||
}
|
||||
}, 500);
|
||||
};
|
||||
|
||||
Bar.prototype.stopAddInterval = function () {
|
||||
window.clearInterval(this.addInterval);
|
||||
this.addInterval = 0;
|
||||
};
|
||||
|
||||
Bar.prototype.build = function () {
|
||||
if (null === this.el)
|
||||
{
|
||||
var oTargetElement = document.querySelector('body');
|
||||
if (oTargetElement)
|
||||
{
|
||||
this.el = document.createElement('div');
|
||||
this.el.className = 'simple-pace simple-pace-active';
|
||||
this.el.innerHTML = '<div class="simple-pace-progress"><div class="simple-pace-progress-inner"></div></div><div class="simple-pace-activity"></div>';
|
||||
|
||||
if (oTargetElement.firstChild)
|
||||
{
|
||||
oTargetElement.insertBefore(this.el, oTargetElement.firstChild);
|
||||
}
|
||||
else
|
||||
{
|
||||
oTargetElement.appendChild(this.el);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return this.el;
|
||||
};
|
||||
|
||||
Bar.prototype.reset = function () {
|
||||
this.progress = 0;
|
||||
return this.render();
|
||||
};
|
||||
|
||||
Bar.prototype.update = function (iProg) {
|
||||
var iP = window.parseInt(iProg, 10);
|
||||
if (iP > this.progress)
|
||||
{
|
||||
this.progress = iP;
|
||||
this.progress = 100 < this.progress ? 100 : this.progress;
|
||||
this.progress = 0 > this.progress ? 0 : this.progress;
|
||||
}
|
||||
|
||||
return this.render();
|
||||
};
|
||||
|
||||
Bar.prototype.add = function (iProg) {
|
||||
this.progress += window.parseInt(iProg, 10);
|
||||
this.progress = 100 < this.progress ? 100 : this.progress;
|
||||
this.progress = 0 > this.progress ? 0 : this.progress;
|
||||
|
||||
return this.render();
|
||||
};
|
||||
|
||||
Bar.prototype.setSpeed = function (iSpeed, iStopProgress) {
|
||||
this.addSpeed = iSpeed;
|
||||
this.stopProgress = iStopProgress || 100;
|
||||
};
|
||||
|
||||
Bar.prototype.render = function () {
|
||||
var oEl = this.build();
|
||||
if (oEl && oEl.children && oEl.children[0])
|
||||
{
|
||||
oEl.children[0].setAttribute('style', 'width:' + this.progress + '%');
|
||||
}
|
||||
|
||||
if (100 === this.progress && !this.done)
|
||||
{
|
||||
this.done = true;
|
||||
this.stopAddInterval();
|
||||
|
||||
window.setTimeout(function () {
|
||||
oEl.className = oEl.className.replace('simple-pace-active', '');
|
||||
oEl.className += ' simple-pace-inactive';
|
||||
}, 500);
|
||||
}
|
||||
else if (100 > this.progress && this.done)
|
||||
{
|
||||
this.done = false;
|
||||
this.startAddInterval();
|
||||
|
||||
oEl.className = oEl.className.replace('simple-pace-inactive', '');
|
||||
oEl.className += ' simple-pace-inactive';
|
||||
}
|
||||
else if (100 > this.progress && !this.done && 0 === this.addInterval)
|
||||
{
|
||||
this.startAddInterval();
|
||||
}
|
||||
};
|
||||
|
||||
if (!window['SimplePace'])
|
||||
{
|
||||
var oBar = new Bar();
|
||||
window['SimplePace'] = {
|
||||
'sleep': function () {
|
||||
oBar.setSpeed(2, 95);
|
||||
},
|
||||
'set': function (iValue) {
|
||||
oBar.update(iValue);
|
||||
},
|
||||
'add': function (iValue) {
|
||||
oBar.add(iValue);
|
||||
}
|
||||
};
|
||||
}
|
||||
}(window));
|
||||
|
||||
71
vendors/simple-pace/styles.css
vendored
Normal file
71
vendors/simple-pace/styles.css
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
.simple-pace {
|
||||
-webkit-pointer-events: none;
|
||||
pointer-events: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.simple-pace-inactive {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.simple-pace .simple-pace-progress {
|
||||
background-color: #939595;
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 3px;
|
||||
overflow: hidden;
|
||||
|
||||
-webkit-transition: width .5s;
|
||||
-moz-transition: width .5s;
|
||||
-o-transition: width .5s;
|
||||
transition: width .5s;
|
||||
}
|
||||
|
||||
.simple-pace .simple-pace-progress-inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: -32px;
|
||||
bottom: 0;
|
||||
|
||||
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.3)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.3)), color-stop(0.75, rgba(255, 255, 255, 0.3)), color-stop(0.75, transparent), to(transparent));
|
||||
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
|
||||
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
|
||||
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
|
||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
|
||||
-webkit-background-size: 32px 32px;
|
||||
-moz-background-size: 32px 32px;
|
||||
-o-background-size: 32px 32px;
|
||||
background-size: 32px 32px;
|
||||
|
||||
-webkit-animation: simple-pace-stripe-animation 500ms linear infinite;
|
||||
-moz-animation: simple-pace-stripe-animation 500ms linear infinite;
|
||||
-ms-animation: simple-pace-stripe-animation 500ms linear infinite;
|
||||
-o-animation: simple-pace-stripe-animation 500ms linear infinite;
|
||||
animation: simple-pace-stripe-animation 500ms linear infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes simple-pace-stripe-animation {
|
||||
0% { -webkit-transform: none; transform: none; }
|
||||
100% { -webkit-transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
||||
}
|
||||
@-moz-keyframes simple-pace-stripe-animation {
|
||||
0% { -moz-transform: none; transform: none; }
|
||||
100% { -moz-transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
||||
}
|
||||
@-o-keyframes simple-pace-stripe-animation {
|
||||
0% { -o-transform: none; transform: none; }
|
||||
100% { -o-transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
||||
}
|
||||
@-ms-keyframes simple-pace-stripe-animation {
|
||||
0% { -ms-transform: none; transform: none; }
|
||||
100% { -ms-transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
||||
}
|
||||
@keyframes simple-pace-stripe-animation {
|
||||
0% { transform: none; transform: none; }
|
||||
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue