mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Code refactoring
This commit is contained in:
parent
4a95dd6195
commit
36329110e5
81 changed files with 3474 additions and 2124 deletions
2
vendors/rl/rl-1.1.min.js
vendored
2
vendors/rl/rl-1.1.min.js
vendored
|
|
@ -1,2 +1,2 @@
|
|||
/*! RainLoop Index Helper v1.1 (c) 2014 RainLoop Team; Licensed under MIT */
|
||||
!function(t,n){function e(){}e.prototype.s=t.sessionStorage,e.prototype.t=t.top||t,e.prototype.getHash=function(){var t=null;if(this.s)t=this.s.getItem("__rlA")||null;else if(this.t){var e=this.t.name&&n&&"{"===this.t.name.toString().substr(0,1)?n.parse(this.t.name.toString()):null;t=e?e.__rlA||null:null}return t},e.prototype.setHash=function(){var e=t.rainloopAppData,s=null;this.s?this.s.setItem("__rlA",e&&e.AuthAccountHash?e.AuthAccountHash:""):this.t&&n&&(s={},s.__rlA=e&&e.AuthAccountHash?e.AuthAccountHash:"",this.t.name=n.stringify(s))},e.prototype.clearHash=function(){this.s?this.s.setItem("__rlA",""):this.t&&(this.t.name="")},t._rlhh=new e,t.__rlah=function(){return t._rlhh?t._rlhh.getHash():null},t.__rlah_set=function(){t._rlhh&&t._rlhh.setHash()},t.__rlah_clear=function(){t._rlhh&&t._rlhh.clearHash()},t.__includeScr=function(t){document.write(unescape('%3Cscript data-cfasync="false" type="text/javascript" src="'+t+'"%3E%3C/script%3E'))},t.__showError=function(){var n=document.getElementById("rl-loading"),e=document.getElementById("rl-loading-error");n&&(n.style.display="none"),e&&(e.style.display="block"),t.SimplePace&&t.SimplePace.set(100)},t.__simplePace=function(n){t.SimplePace&&t.SimplePace.add(n)},t.__runBoot=function(n){t.__RLBOOT&&!n?t.__RLBOOT(function(t){t||__showError()}):__showError()}}(window,window.JSON);
|
||||
!function(t,n,e){function s(){}s.prototype.s=t.sessionStorage,s.prototype.t=t.top||t,s.prototype.getHash=function(){var t=null;if(this.s)t=this.s.getItem("__rlA")||null;else if(this.t){var n=this.t.name&&e&&"{"===this.t.name.toString().substr(0,1)?e.parse(this.t.name.toString()):null;t=n?n.__rlA||null:null}return t},s.prototype.setHash=function(){var n=t.rainloopAppData,s=null;this.s?this.s.setItem("__rlA",n&&n.AuthAccountHash?n.AuthAccountHash:""):this.t&&e&&(s={},s.__rlA=n&&n.AuthAccountHash?n.AuthAccountHash:"",this.t.name=e.stringify(s))},s.prototype.clearHash=function(){this.s?this.s.setItem("__rlA",""):this.t&&(this.t.name="")},t._rlhh=new s,t.__rlah=function(){return t._rlhh?t._rlhh.getHash():null},t.__rlah_set=function(){t._rlhh&&t._rlhh.setHash()},t.__rlah_clear=function(){t._rlhh&&t._rlhh.clearHash()},t.__includeScr=function(t){n.write(unescape('%3Cscript data-cfasync="false" type="text/javascript" src="'+t+'"%3E%3C/script%3E'))},t.__showError=function(){var e=n.getElementById("rl-loading"),s=n.getElementById("rl-loading-error");e&&(e.style.display="none"),s&&(s.style.display="block"),t.SimplePace&&t.SimplePace.set(100)},t.__simplePace=function(n){t.SimplePace&&t.SimplePace.add(n)},t.__runBoot=function(n){t.__APP_BOOT&&!n?t.__APP_BOOT(function(t){t||__showError()}):__showError()}}(window,window.document,window.JSON);
|
||||
10
vendors/rl/rl.js
vendored
10
vendors/rl/rl.js
vendored
|
|
@ -1,5 +1,5 @@
|
|||
/*! RainLoop Index Helper v1.1 (c) 2013 RainLoop Team; Licensed under MIT */
|
||||
(function (window, JSON) {
|
||||
/*! RainLoop Index Helper v1.2 (c) 2013 RainLoop Team; Licensed under MIT */
|
||||
(function (window, document, JSON) {
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
|
|
@ -85,8 +85,8 @@
|
|||
};
|
||||
|
||||
window['__runBoot'] = function (bWithError) {
|
||||
if (window.__RLBOOT && !bWithError) {
|
||||
window.__RLBOOT(function (bV) {
|
||||
if (window.__APP_BOOT && !bWithError) {
|
||||
window.__APP_BOOT(function (bV) {
|
||||
if (!bV) {
|
||||
__showError();
|
||||
}
|
||||
|
|
@ -96,4 +96,4 @@
|
|||
}
|
||||
};
|
||||
|
||||
}(window, window.JSON));
|
||||
}(window, window.document, window.JSON));
|
||||
|
|
|
|||
5
vendors/underscore/1.6.0/underscore-min.js
vendored
Normal file
5
vendors/underscore/1.6.0/underscore-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
vendors/underscore/1.6.0/underscore-min.map
vendored
Normal file
1
vendors/underscore/1.6.0/underscore-min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1343
vendors/underscore/1.6.0/underscore.js
vendored
Normal file
1343
vendors/underscore/1.6.0/underscore.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
vendors/underscore/CONTRIBUTING.md
vendored
9
vendors/underscore/CONTRIBUTING.md
vendored
|
|
@ -1,9 +0,0 @@
|
|||
## How to contribute to Underscore.js
|
||||
|
||||
* Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.
|
||||
|
||||
* Before sending a pull request for a feature, be sure to have [tests](http://underscorejs.org/test/).
|
||||
|
||||
* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/underscore/blob/master/underscore.js).
|
||||
|
||||
* In your pull request, do not add documentation or re-build the minified `underscore-min.js` file. We'll do those things before cutting a new release.
|
||||
22
vendors/underscore/README.md
vendored
22
vendors/underscore/README.md
vendored
|
|
@ -1,22 +0,0 @@
|
|||
__
|
||||
/\ \ __
|
||||
__ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____
|
||||
/\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\
|
||||
\ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\
|
||||
\ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
|
||||
\/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/
|
||||
\ \____/
|
||||
\/___/
|
||||
|
||||
Underscore.js is a utility-belt library for JavaScript that provides
|
||||
support for the usual functional suspects (each, map, reduce, filter...)
|
||||
without extending any core JavaScript objects.
|
||||
|
||||
For Docs, License, Tests, and pre-packed downloads, see:
|
||||
http://underscorejs.org
|
||||
|
||||
Underscore is an open-sourced component of DocumentCloud:
|
||||
https://github.com/documentcloud
|
||||
|
||||
Many thanks to our contributors:
|
||||
https://github.com/jashkenas/underscore/contributors
|
||||
6
vendors/underscore/bower.json
vendored
6
vendors/underscore/bower.json
vendored
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "underscore",
|
||||
"version": "1.5.2",
|
||||
"main": "underscore.js",
|
||||
"ignore" : ["underscore-min.js", "docs", "test", "*.yml", "*.map"]
|
||||
}
|
||||
10
vendors/underscore/component.json
vendored
10
vendors/underscore/component.json
vendored
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"name" : "underscore",
|
||||
"description" : "JavaScript's functional programming helper library.",
|
||||
"keywords" : ["util", "functional", "server", "client", "browser"],
|
||||
"repo" : "jashkenas/underscore",
|
||||
"main" : "underscore.js",
|
||||
"scripts" : ["underscore.js"],
|
||||
"version" : "1.5.2",
|
||||
"license" : "MIT"
|
||||
}
|
||||
25
vendors/underscore/package.json
vendored
25
vendors/underscore/package.json
vendored
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"name" : "underscore",
|
||||
"description" : "JavaScript's functional programming helper library.",
|
||||
"homepage" : "http://underscorejs.org",
|
||||
"keywords" : ["util", "functional", "server", "client", "browser"],
|
||||
"author" : "Jeremy Ashkenas <jeremy@documentcloud.org>",
|
||||
"repository" : {"type": "git", "url": "git://github.com/jashkenas/underscore.git"},
|
||||
"main" : "underscore.js",
|
||||
"version" : "1.5.2",
|
||||
"devDependencies": {
|
||||
"phantomjs": "1.9.0-1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phantomjs test/vendor/runner.js test/index.html?noglobals=true",
|
||||
"build": "uglifyjs underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m --source-map underscore-min.map -o underscore-min.js",
|
||||
"doc": "docco underscore.js"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://raw.github.com/jashkenas/underscore/master/LICENSE"
|
||||
}
|
||||
],
|
||||
"files" : ["underscore.js", "underscore-min.js", "LICENSE"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue