@timshel_npm/maildev 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +16 -0
- package/README.md +287 -0
- package/bin/maildev +13 -0
- package/dist/app/components/angular/angular.js +20282 -0
- package/dist/app/components/angular/angular.min.js +201 -0
- package/dist/app/components/angular/angular.min.js.map +8 -0
- package/dist/app/components/angular-cookies/angular-cookies.js +202 -0
- package/dist/app/components/angular-cookies/angular-cookies.min.js +8 -0
- package/dist/app/components/angular-cookies/angular-cookies.min.js.map +8 -0
- package/dist/app/components/angular-resource/angular-resource.js +546 -0
- package/dist/app/components/angular-resource/angular-resource.min.js +12 -0
- package/dist/app/components/angular-resource/angular-resource.min.js.map +8 -0
- package/dist/app/components/angular-route/angular-route.js +891 -0
- package/dist/app/components/angular-route/angular-route.min.js +14 -0
- package/dist/app/components/angular-route/angular-route.min.js.map +8 -0
- package/dist/app/components/angular-sanitize/angular-sanitize.js +615 -0
- package/dist/app/components/angular-sanitize/angular-sanitize.min.js +14 -0
- package/dist/app/components/angular-sanitize/angular-sanitize.min.js.map +8 -0
- package/dist/app/components/socket.io/socket.io.min.js +7 -0
- package/dist/app/favicon.ico +0 -0
- package/dist/app/index.html +176 -0
- package/dist/app/scripts/app.js +68 -0
- package/dist/app/scripts/components/address.js +15 -0
- package/dist/app/scripts/controllers/item.js +191 -0
- package/dist/app/scripts/controllers/main.js +259 -0
- package/dist/app/scripts/services.js +84 -0
- package/dist/app/styles/style.css +37 -0
- package/dist/app/views/address.html +3 -0
- package/dist/app/views/item.html +310 -0
- package/dist/app/views/main.html +18 -0
- package/dist/app/webfonts/fa-brands-400.eot +0 -0
- package/dist/app/webfonts/fa-brands-400.svg +3717 -0
- package/dist/app/webfonts/fa-brands-400.ttf +0 -0
- package/dist/app/webfonts/fa-brands-400.woff +0 -0
- package/dist/app/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/app/webfonts/fa-regular-400.eot +0 -0
- package/dist/app/webfonts/fa-regular-400.svg +801 -0
- package/dist/app/webfonts/fa-regular-400.ttf +0 -0
- package/dist/app/webfonts/fa-regular-400.woff +0 -0
- package/dist/app/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/app/webfonts/fa-solid-900.eot +0 -0
- package/dist/app/webfonts/fa-solid-900.svg +5028 -0
- package/dist/app/webfonts/fa-solid-900.ttf +0 -0
- package/dist/app/webfonts/fa-solid-900.woff +0 -0
- package/dist/app/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +50 -0
- package/dist/lib/auth.d.ts +4 -0
- package/dist/lib/auth.js +26 -0
- package/dist/lib/helpers/bcc.d.ts +5 -0
- package/dist/lib/helpers/bcc.js +16 -0
- package/dist/lib/helpers/smtp.d.ts +4 -0
- package/dist/lib/helpers/smtp.js +16 -0
- package/dist/lib/helpers/strtotime.d.ts +2 -0
- package/dist/lib/helpers/strtotime.js +1301 -0
- package/dist/lib/logger.d.ts +2 -0
- package/dist/lib/logger.js +30 -0
- package/dist/lib/mailbuffer.d.ts +21 -0
- package/dist/lib/mailbuffer.js +102 -0
- package/dist/lib/mailparser.d.ts +2 -0
- package/dist/lib/mailparser.js +253 -0
- package/dist/lib/mailserver.d.ts +115 -0
- package/dist/lib/mailserver.js +497 -0
- package/dist/lib/options.d.ts +3 -0
- package/dist/lib/options.js +150 -0
- package/dist/lib/outgoing.d.ts +40 -0
- package/dist/lib/outgoing.js +162 -0
- package/dist/lib/routes.d.ts +2 -0
- package/dist/lib/routes.js +139 -0
- package/dist/lib/type.d.ts +228 -0
- package/dist/lib/type.js +2 -0
- package/dist/lib/utils.d.ts +4 -0
- package/dist/lib/utils.js +65 -0
- package/dist/lib/web.d.ts +32 -0
- package/dist/lib/web.js +90 -0
- package/package.json +109 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license AngularJS v1.2.3
|
|
3
|
+
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
6
|
+
(function(window, angular, undefined) {'use strict';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @ngdoc overview
|
|
10
|
+
* @name ngCookies
|
|
11
|
+
* @description
|
|
12
|
+
*
|
|
13
|
+
* # ngCookies
|
|
14
|
+
*
|
|
15
|
+
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
|
|
16
|
+
*
|
|
17
|
+
* {@installModule cookies}
|
|
18
|
+
*
|
|
19
|
+
* <div doc-module-components="ngCookies"></div>
|
|
20
|
+
*
|
|
21
|
+
* See {@link ngCookies.$cookies `$cookies`} and
|
|
22
|
+
* {@link ngCookies.$cookieStore `$cookieStore`} for usage.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
angular.module('ngCookies', ['ng']).
|
|
27
|
+
/**
|
|
28
|
+
* @ngdoc object
|
|
29
|
+
* @name ngCookies.$cookies
|
|
30
|
+
* @requires $browser
|
|
31
|
+
*
|
|
32
|
+
* @description
|
|
33
|
+
* Provides read/write access to browser's cookies.
|
|
34
|
+
*
|
|
35
|
+
* Only a simple Object is exposed and by adding or removing properties to/from
|
|
36
|
+
* this object, new cookies are created/deleted at the end of current $eval.
|
|
37
|
+
*
|
|
38
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
<doc:example>
|
|
42
|
+
<doc:source>
|
|
43
|
+
<script>
|
|
44
|
+
function ExampleController($cookies) {
|
|
45
|
+
// Retrieving a cookie
|
|
46
|
+
var favoriteCookie = $cookies.myFavorite;
|
|
47
|
+
// Setting a cookie
|
|
48
|
+
$cookies.myFavorite = 'oatmeal';
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
</doc:source>
|
|
52
|
+
</doc:example>
|
|
53
|
+
*/
|
|
54
|
+
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
|
|
55
|
+
var cookies = {},
|
|
56
|
+
lastCookies = {},
|
|
57
|
+
lastBrowserCookies,
|
|
58
|
+
runEval = false,
|
|
59
|
+
copy = angular.copy,
|
|
60
|
+
isUndefined = angular.isUndefined;
|
|
61
|
+
|
|
62
|
+
//creates a poller fn that copies all cookies from the $browser to service & inits the service
|
|
63
|
+
$browser.addPollFn(function() {
|
|
64
|
+
var currentCookies = $browser.cookies();
|
|
65
|
+
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
|
|
66
|
+
lastBrowserCookies = currentCookies;
|
|
67
|
+
copy(currentCookies, lastCookies);
|
|
68
|
+
copy(currentCookies, cookies);
|
|
69
|
+
if (runEval) $rootScope.$apply();
|
|
70
|
+
}
|
|
71
|
+
})();
|
|
72
|
+
|
|
73
|
+
runEval = true;
|
|
74
|
+
|
|
75
|
+
//at the end of each eval, push cookies
|
|
76
|
+
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
|
|
77
|
+
// strings or browser refuses to store some cookies, we update the model in the push fn.
|
|
78
|
+
$rootScope.$watch(push);
|
|
79
|
+
|
|
80
|
+
return cookies;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Pushes all the cookies from the service to the browser and verifies if all cookies were
|
|
85
|
+
* stored.
|
|
86
|
+
*/
|
|
87
|
+
function push() {
|
|
88
|
+
var name,
|
|
89
|
+
value,
|
|
90
|
+
browserCookies,
|
|
91
|
+
updated;
|
|
92
|
+
|
|
93
|
+
//delete any cookies deleted in $cookies
|
|
94
|
+
for (name in lastCookies) {
|
|
95
|
+
if (isUndefined(cookies[name])) {
|
|
96
|
+
$browser.cookies(name, undefined);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
//update all cookies updated in $cookies
|
|
101
|
+
for(name in cookies) {
|
|
102
|
+
value = cookies[name];
|
|
103
|
+
if (!angular.isString(value)) {
|
|
104
|
+
if (angular.isDefined(lastCookies[name])) {
|
|
105
|
+
cookies[name] = lastCookies[name];
|
|
106
|
+
} else {
|
|
107
|
+
delete cookies[name];
|
|
108
|
+
}
|
|
109
|
+
} else if (value !== lastCookies[name]) {
|
|
110
|
+
$browser.cookies(name, value);
|
|
111
|
+
updated = true;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//verify what was actually stored
|
|
116
|
+
if (updated){
|
|
117
|
+
updated = false;
|
|
118
|
+
browserCookies = $browser.cookies();
|
|
119
|
+
|
|
120
|
+
for (name in cookies) {
|
|
121
|
+
if (cookies[name] !== browserCookies[name]) {
|
|
122
|
+
//delete or reset all cookies that the browser dropped from $cookies
|
|
123
|
+
if (isUndefined(browserCookies[name])) {
|
|
124
|
+
delete cookies[name];
|
|
125
|
+
} else {
|
|
126
|
+
cookies[name] = browserCookies[name];
|
|
127
|
+
}
|
|
128
|
+
updated = true;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}]).
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @ngdoc object
|
|
138
|
+
* @name ngCookies.$cookieStore
|
|
139
|
+
* @requires $cookies
|
|
140
|
+
*
|
|
141
|
+
* @description
|
|
142
|
+
* Provides a key-value (string-object) storage, that is backed by session cookies.
|
|
143
|
+
* Objects put or retrieved from this storage are automatically serialized or
|
|
144
|
+
* deserialized by angular's toJson/fromJson.
|
|
145
|
+
*
|
|
146
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
*/
|
|
150
|
+
factory('$cookieStore', ['$cookies', function($cookies) {
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* @ngdoc method
|
|
155
|
+
* @name ngCookies.$cookieStore#get
|
|
156
|
+
* @methodOf ngCookies.$cookieStore
|
|
157
|
+
*
|
|
158
|
+
* @description
|
|
159
|
+
* Returns the value of given cookie key
|
|
160
|
+
*
|
|
161
|
+
* @param {string} key Id to use for lookup.
|
|
162
|
+
* @returns {Object} Deserialized cookie value.
|
|
163
|
+
*/
|
|
164
|
+
get: function(key) {
|
|
165
|
+
var value = $cookies[key];
|
|
166
|
+
return value ? angular.fromJson(value) : value;
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @ngdoc method
|
|
171
|
+
* @name ngCookies.$cookieStore#put
|
|
172
|
+
* @methodOf ngCookies.$cookieStore
|
|
173
|
+
*
|
|
174
|
+
* @description
|
|
175
|
+
* Sets a value for given cookie key
|
|
176
|
+
*
|
|
177
|
+
* @param {string} key Id for the `value`.
|
|
178
|
+
* @param {Object} value Value to be stored.
|
|
179
|
+
*/
|
|
180
|
+
put: function(key, value) {
|
|
181
|
+
$cookies[key] = angular.toJson(value);
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @ngdoc method
|
|
186
|
+
* @name ngCookies.$cookieStore#remove
|
|
187
|
+
* @methodOf ngCookies.$cookieStore
|
|
188
|
+
*
|
|
189
|
+
* @description
|
|
190
|
+
* Remove given cookie
|
|
191
|
+
*
|
|
192
|
+
* @param {string} key Id of the key-value pair to delete.
|
|
193
|
+
*/
|
|
194
|
+
remove: function(key) {
|
|
195
|
+
delete $cookies[key];
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
}]);
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
})(window, window.angular);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
AngularJS v1.2.3
|
|
3
|
+
(c) 2010-2014 Google, Inc. http://angularjs.org
|
|
4
|
+
License: MIT
|
|
5
|
+
*/
|
|
6
|
+
(function(p,f,n){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,b){var c={},g={},h,k=!1,l=f.copy,m=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&&(h=a,l(a,g),l(a,c),k&&d.$apply())})();k=!0;d.$watch(function(){var a,e,d;for(a in g)m(c[a])&&b.cookies(a,n);for(a in c)(e=c[a],f.isString(e))?e!==g[a]&&(b.cookies(a,e),d=!0):f.isDefined(g[a])?c[a]=g[a]:delete c[a];if(d)for(a in e=b.cookies(),c)c[a]!==e[a]&&(m(e[a])?delete c[a]:c[a]=e[a])});
|
|
7
|
+
return c}]).factory("$cookieStore",["$cookies",function(d){return{get:function(b){return(b=d[b])?f.fromJson(b):b},put:function(b,c){d[b]=f.toJson(c)},remove:function(b){delete d[b]}}}])})(window,window.angular);
|
|
8
|
+
//# sourceMappingURL=angular-cookies.min.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version":3,
|
|
3
|
+
"file":"angular-cookies.min.js",
|
|
4
|
+
"lineCount":7,
|
|
5
|
+
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAoBtCD,CAAAE,OAAA,CAAe,WAAf,CAA4B,CAAC,IAAD,CAA5B,CAAAC,QAAA,CA4BW,UA5BX,CA4BuB,CAAC,YAAD,CAAe,UAAf,CAA2B,QAAS,CAACC,CAAD,CAAaC,CAAb,CAAuB,CAAA,IACxEC,EAAU,EAD8D,CAExEC,EAAc,EAF0D,CAGxEC,CAHwE,CAIxEC,EAAU,CAAA,CAJ8D,CAKxEC,EAAOV,CAAAU,KALiE,CAMxEC,EAAcX,CAAAW,YAGlBN,EAAAO,UAAA,CAAmB,QAAQ,EAAG,CAC5B,IAAIC,EAAiBR,CAAAC,QAAA,EACjBE,EAAJ,EAA0BK,CAA1B,GACEL,CAGA,CAHqBK,CAGrB,CAFAH,CAAA,CAAKG,CAAL,CAAqBN,CAArB,CAEA,CADAG,CAAA,CAAKG,CAAL,CAAqBP,CAArB,CACA,CAAIG,CAAJ,EAAaL,CAAAU,OAAA,EAJf,CAF4B,CAA9B,CAAA,EAUAL,EAAA,CAAU,CAAA,CAKVL,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,CAFxB,CAZd,KA4BAS,QAAQ,CAACF,CAAD,CAAMP,CAAN,CAAa,CACxBK,CAAA,CAASE,CAAT,CAAA,CAAgBzB,CAAA4B,OAAA,CAAeV,CAAf,CADQ,CA5BrB,QA0CGW,QAAQ,CAACJ,CAAD,CAAM,CACpB,OAAOF,CAAA,CAASE,CAAT,CADa,CA1CjB,CAF8C,CAAhC,CA5H3B,CApBsC,CAArC,CAAA,CAoME1B,MApMF,CAoMUA,MAAAC,QApMV;",
|
|
6
|
+
"sources":["angular-cookies.js"],
|
|
7
|
+
"names":["window","angular","undefined","module","factory","$rootScope","$browser","cookies","lastCookies","lastBrowserCookies","runEval","copy","isUndefined","addPollFn","currentCookies","$apply","$watch","push","name","value","updated","isString","isDefined","browserCookies","$cookies","get","key","fromJson","put","toJson","remove"]
|
|
8
|
+
}
|