@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,310 @@
|
|
|
1
|
+
<ul class="email-toolbar">
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<li class="dropdown-container">
|
|
6
|
+
<a href="" class="dropdown-trigger"
|
|
7
|
+
ng-click="toggleDropdown($event, 'display')"
|
|
8
|
+
ng-class="{ open: dropdownOpen == 'display' }"
|
|
9
|
+
>
|
|
10
|
+
<span ng-if="!panelVisibility || panelVisibility === 'html'"><i class="fas fa-file-code"></i> HTML</span>
|
|
11
|
+
<span ng-if="panelVisibility === 'plain'"><i class="fas fa-file-alt"></i> Text</span>
|
|
12
|
+
<span ng-if="panelVisibility === 'attachments'"><i class="fas fa-paperclip"></i> Attachments</span>
|
|
13
|
+
<span ng-if="panelVisibility === 'headers'"><i class="fas fa-th-list"></i> Headers</span>
|
|
14
|
+
<span ng-if="panelVisibility === 'source'"><i class="fas fa-code"></i> Source</span>
|
|
15
|
+
</a>
|
|
16
|
+
<ul class="dropdown-menu">
|
|
17
|
+
<li>
|
|
18
|
+
<a href="" class=""
|
|
19
|
+
ng-click="show('html')"
|
|
20
|
+
ng-class="{ active: panelVisibility == 'html', disabled: !item.html }">
|
|
21
|
+
<span>
|
|
22
|
+
<i class="fas fa-file-code"></i>
|
|
23
|
+
HTML
|
|
24
|
+
</span>
|
|
25
|
+
</a>
|
|
26
|
+
</li>
|
|
27
|
+
<li>
|
|
28
|
+
<a href="" class=""
|
|
29
|
+
ng-click="show('plain')"
|
|
30
|
+
ng-class="{ active: panelVisibility == 'plain', disabled: !item.text }">
|
|
31
|
+
<span>
|
|
32
|
+
<i class="fas fa-file-alt"></i>
|
|
33
|
+
Text
|
|
34
|
+
</span>
|
|
35
|
+
</a>
|
|
36
|
+
</li>
|
|
37
|
+
<li>
|
|
38
|
+
<a href="" class=""
|
|
39
|
+
ng-click="show('attachments')"
|
|
40
|
+
ng-class="{ active: panelVisibility == 'attachments', disabled: !item.attachments }">
|
|
41
|
+
<span>
|
|
42
|
+
<i class="fas fa-paperclip"></i>
|
|
43
|
+
Attachments
|
|
44
|
+
</span>
|
|
45
|
+
</a>
|
|
46
|
+
</li>
|
|
47
|
+
<li>
|
|
48
|
+
<a href="" class=""
|
|
49
|
+
ng-click="show('headers')"
|
|
50
|
+
ng-class="{ active: panelVisibility == 'headers' }">
|
|
51
|
+
<span>
|
|
52
|
+
<i class="fas fa-th-list"></i>
|
|
53
|
+
Headers
|
|
54
|
+
</span>
|
|
55
|
+
</a>
|
|
56
|
+
</li>
|
|
57
|
+
<li>
|
|
58
|
+
<a href="" class=""
|
|
59
|
+
ng-click="show('source')"
|
|
60
|
+
ng-class="{ active: panelVisibility == 'source' }">
|
|
61
|
+
<span>
|
|
62
|
+
<i class="fas fa-code"></i>
|
|
63
|
+
Source ({{item.sizeHuman}})
|
|
64
|
+
</span>
|
|
65
|
+
</a>
|
|
66
|
+
</li>
|
|
67
|
+
</ul>
|
|
68
|
+
</li>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<li class="dropdown-container">
|
|
73
|
+
<a href="" class="dropdown-trigger"
|
|
74
|
+
ng-click="toggleDropdown($event, 'viewport')"
|
|
75
|
+
ng-class="{ open: dropdownOpen == 'viewport', disabled: panelVisibility != 'html' }">
|
|
76
|
+
<!--
|
|
77
|
+
<span ng-if="iframeSize == null"><i class="fas fa-ruler-combined"></i> 100%</span> -->
|
|
78
|
+
<span ng-if="iframeSize == null"><i class="fas fa-desktop"></i> 100%</span>
|
|
79
|
+
<span ng-if="iframeSize == '1440px'"><i class="fas fa-desktop"></i> 1440px</span>
|
|
80
|
+
<span ng-if="iframeSize == '1024px'"><i class="fas fa-tablet-alt"></i> 1024px</span>
|
|
81
|
+
<span ng-if="iframeSize == '768px'"><i class="fas fa-tablet-alt"></i> 768px</span>
|
|
82
|
+
<span ng-if="iframeSize == '425px'"><i class="fas fa-mobile-alt"></i> 425px</span>
|
|
83
|
+
<span ng-if="iframeSize == '375px'"><i class="fas fa-mobile-alt"></i> 375px</span>
|
|
84
|
+
<span ng-if="iframeSize == '320px'"><i class="fas fa-mobile-alt"></i> 320px</span>
|
|
85
|
+
|
|
86
|
+
</a>
|
|
87
|
+
<ul class="dropdown-menu">
|
|
88
|
+
|
|
89
|
+
<li>
|
|
90
|
+
<a href="" class=""
|
|
91
|
+
ng-click="resize()"
|
|
92
|
+
ng-class="{ active: iframeSize == null }">
|
|
93
|
+
<span>
|
|
94
|
+
<i class="fas fa-desktop"></i>
|
|
95
|
+
100%
|
|
96
|
+
</span>
|
|
97
|
+
</a>
|
|
98
|
+
</li>
|
|
99
|
+
<li>
|
|
100
|
+
<a href="" class=""
|
|
101
|
+
ng-click="resize('1440px')"
|
|
102
|
+
ng-class="{ active: iframeSize == '1440px' }">
|
|
103
|
+
<span>
|
|
104
|
+
<i class="fas fa-desktop"></i>
|
|
105
|
+
1440px
|
|
106
|
+
</span>
|
|
107
|
+
</a>
|
|
108
|
+
</li>
|
|
109
|
+
<li>
|
|
110
|
+
<a href="" class=""
|
|
111
|
+
ng-click="resize('1024px')"
|
|
112
|
+
ng-class="{ active: iframeSize == '1024px' }">
|
|
113
|
+
<span>
|
|
114
|
+
<i class="fas fa-tablet-alt"></i>
|
|
115
|
+
1024px
|
|
116
|
+
</span>
|
|
117
|
+
</a>
|
|
118
|
+
</li>
|
|
119
|
+
<li>
|
|
120
|
+
<a href="" class=""
|
|
121
|
+
ng-click="resize('768px')"
|
|
122
|
+
ng-class="{ active: iframeSize == '768px' }">
|
|
123
|
+
<span>
|
|
124
|
+
<i class="fas fa-tablet-alt"></i>
|
|
125
|
+
768px
|
|
126
|
+
</span>
|
|
127
|
+
</a>
|
|
128
|
+
</li>
|
|
129
|
+
<li>
|
|
130
|
+
<a href="" class=""
|
|
131
|
+
ng-click="resize('425px')"
|
|
132
|
+
ng-class="{ active: iframeSize == '425px' }">
|
|
133
|
+
<span>
|
|
134
|
+
<i class="fas fa-mobile-alt"></i>
|
|
135
|
+
425px
|
|
136
|
+
</span>
|
|
137
|
+
</a>
|
|
138
|
+
</li>
|
|
139
|
+
<li>
|
|
140
|
+
<a href="" class=""
|
|
141
|
+
ng-click="resize('375px')"
|
|
142
|
+
ng-class="{ active: iframeSize == '375px' }">
|
|
143
|
+
<span>
|
|
144
|
+
<i class="fas fa-mobile-alt"></i>
|
|
145
|
+
375px
|
|
146
|
+
</span>
|
|
147
|
+
</a>
|
|
148
|
+
</li>
|
|
149
|
+
<li>
|
|
150
|
+
<a href="" class=""
|
|
151
|
+
ng-click="resize('320px')"
|
|
152
|
+
ng-class="{ active: iframeSize == '320px' }">
|
|
153
|
+
<span>
|
|
154
|
+
<i class="fas fa-mobile-alt"></i>
|
|
155
|
+
320px
|
|
156
|
+
</span>
|
|
157
|
+
</a>
|
|
158
|
+
</li>
|
|
159
|
+
</ul>
|
|
160
|
+
</li>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<li>
|
|
164
|
+
<a href="email/{{item.id}}/download" class="">
|
|
165
|
+
<span>
|
|
166
|
+
<i class="fas fa-cloud-download-alt"></i>
|
|
167
|
+
Download
|
|
168
|
+
</span>
|
|
169
|
+
</a>
|
|
170
|
+
</li>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<li class="dropdown-container">
|
|
176
|
+
<a href="" class="dropdown-trigger"
|
|
177
|
+
ng-click="toggleDropdown($event, 'relay')"
|
|
178
|
+
ng-class="{ open: dropdownOpen == 'relay', disabled: !config.isOutgoingEnabled }"
|
|
179
|
+
>
|
|
180
|
+
<span>
|
|
181
|
+
<i class="fas fa-paper-plane"></i>
|
|
182
|
+
Relay
|
|
183
|
+
</span>
|
|
184
|
+
</a>
|
|
185
|
+
<ul class="dropdown-menu">
|
|
186
|
+
<li>
|
|
187
|
+
<a href="" class=""
|
|
188
|
+
ng-click="relay(item)"
|
|
189
|
+
ng-class="{ disabled: !config.isOutgoingEnabled }">
|
|
190
|
+
<span>
|
|
191
|
+
<i class="fas fa-paper-plane"></i>
|
|
192
|
+
Relay
|
|
193
|
+
</span>
|
|
194
|
+
</a>
|
|
195
|
+
</li>
|
|
196
|
+
<li>
|
|
197
|
+
<a href="" class=""
|
|
198
|
+
ng-click="relayTo(item)"
|
|
199
|
+
ng-class="{ disabled: !config.isOutgoingEnabled }">
|
|
200
|
+
<span>
|
|
201
|
+
<i class="fas fa-paper-plane"></i>
|
|
202
|
+
Relay to...
|
|
203
|
+
</span>
|
|
204
|
+
</a>
|
|
205
|
+
</li>
|
|
206
|
+
</ul>
|
|
207
|
+
</li>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<li>
|
|
212
|
+
<a href="" class=""
|
|
213
|
+
ng-click="delete(item)"
|
|
214
|
+
>
|
|
215
|
+
<span>
|
|
216
|
+
<i class="fas fa-trash-alt"></i>
|
|
217
|
+
Delete
|
|
218
|
+
</span>
|
|
219
|
+
</a>
|
|
220
|
+
</li>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
</ul>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
<div class="email-meta">
|
|
227
|
+
<div class="subject">{{item.subject}}</div>
|
|
228
|
+
<div class="row from">
|
|
229
|
+
<div class="description">From:</div>
|
|
230
|
+
<div class="description-value">
|
|
231
|
+
<app-address ng-repeat="a in item.from" address="a"></app-address>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="row to">
|
|
235
|
+
<div class="description">To:</div>
|
|
236
|
+
<div class="description-value">
|
|
237
|
+
<app-address ng-repeat="a in item.to" address="a"></app-address>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
<div ng-if="item.cc.length" class="row cc">
|
|
241
|
+
<div class="description">Cc:</div>
|
|
242
|
+
<div class="description-value">
|
|
243
|
+
<app-address ng-repeat="a in item.cc" address="a"></app-address>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
<div ng-if="item.calculatedBcc.length" class="row calculated-bcc">
|
|
247
|
+
<div class="description">Bcc:</div>
|
|
248
|
+
<div class="description-value">
|
|
249
|
+
<app-address ng-repeat="a in item.calculatedBcc" address="a"></app-address>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<div class="email-content">
|
|
263
|
+
|
|
264
|
+
<div class="email-content-view email-content-view-html" ng-hide="panelVisibility != 'html'">
|
|
265
|
+
<iframe ng-src="{{ item.iframeUrl }}" class="preview-iframe panel-html"></iframe>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<div class="email-content-view email-content-view-plain" ng-hide="panelVisibility != 'plain'">
|
|
269
|
+
<div class="plain-text panel-plain" ng-bind-html=" item.text|escapeHTML"></div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<div class="email-content-view email-content-view-attachments" ng-hide="panelVisibility != 'attachments'">
|
|
273
|
+
<div class="panel-attachments" >
|
|
274
|
+
<span ng-repeat="attachment in item.attachments">
|
|
275
|
+
<a target="_blank" ng-href="email/{{item.id}}/attachment/{{attachment.generatedFileName | encodeURIComponent}}">
|
|
276
|
+
<strong>{{attachment.generatedFileName}}</strong>
|
|
277
|
+
</a>
|
|
278
|
+
<br>
|
|
279
|
+
</span>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="email-content-view email-content-view-headers" ng-hide="panelVisibility != 'headers'">
|
|
284
|
+
<div class="panel-headers" >
|
|
285
|
+
<table class="table">
|
|
286
|
+
<!--
|
|
287
|
+
<thead>
|
|
288
|
+
<tr>
|
|
289
|
+
<th>Key</th>
|
|
290
|
+
<th>Value</th>
|
|
291
|
+
</tr>
|
|
292
|
+
</thead>
|
|
293
|
+
-->
|
|
294
|
+
<tr ng-repeat="(headerKey, headerValue) in item.headers">
|
|
295
|
+
<td class="span3">
|
|
296
|
+
<strong>{{headerKey}}</strong>
|
|
297
|
+
</td>
|
|
298
|
+
<td>
|
|
299
|
+
{{headerValue}}
|
|
300
|
+
</td>
|
|
301
|
+
</tr>
|
|
302
|
+
</table>
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
<div class="email-content-view email-content-view-source" ng-hide="panelVisibility != 'source'">
|
|
307
|
+
<iframe ng-src="{{ rawEmail }}" class="preview-iframe panel-source" ></iframe>
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div class="main-content">
|
|
2
|
+
<h2>
|
|
3
|
+
Now receiving all emails on port {{ config.smtpPort }}
|
|
4
|
+
</h2>
|
|
5
|
+
|
|
6
|
+
<p>
|
|
7
|
+
For information on how to send emails from your application, please refer the "<a href="https://github.com/maildev/maildev#configure-your-project" target="_blank">Configure your project</a>" guide.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p>
|
|
11
|
+
For questions, feature requests or to report issues visit the <a href="https://github.com/maildev/maildev" target="_blank">GitHub repository</a>.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p>
|
|
15
|
+
<small>You are running MailDev {{ config.version }}</small>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
</div>
|
|
Binary file
|