@social-mail/social-mail-client 1.0.7 → 1.0.8
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/dist/admin/AdminAppIndex.pack.js +27 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/admin/pages/relays/edit/EditRelayPage.js +28 -0
- package/dist/admin/pages/relays/edit/EditRelayPage.js.map +1 -0
- package/dist/model/model.js +27 -1
- package/dist/model/model.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +27 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/index.js +4 -5
- package/package.json +1 -1
- package/src/admin/pages/relays/edit/EditRelayPage.tsx +17 -0
- package/src/model/model.ts +6 -1
package/index.js
CHANGED
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
};
|
|
46
46
|
document.body.appendChild(s);
|
|
47
47
|
}) (viewUrl, function () {
|
|
48
|
-
var oldProgress = AmdLoader.moduleProgress;
|
|
49
48
|
function empty () {
|
|
50
49
|
return function () {
|
|
51
50
|
return null
|
|
@@ -54,14 +53,14 @@
|
|
|
54
53
|
|
|
55
54
|
AmdLoader.moduleProgress = empty;
|
|
56
55
|
function done () {
|
|
57
|
-
|
|
58
|
-
if(
|
|
59
|
-
|
|
56
|
+
const we = document.getElementById("webAtomsLoader");
|
|
57
|
+
if (We) {
|
|
58
|
+
we.remove();
|
|
60
59
|
}
|
|
61
60
|
};
|
|
62
61
|
UMD.setupRoot(package, packageRoot);
|
|
63
62
|
UMD.lang = "en-US";
|
|
64
|
-
UMD.loadView(viewName, 0).then(
|
|
63
|
+
UMD.loadView(viewName, 0).then(done);
|
|
65
64
|
});
|
|
66
65
|
|
|
67
66
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PopupWindowPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
2
|
+
import { DomainRelay, IDomainRelay } from "../../../../model/model";
|
|
3
|
+
|
|
4
|
+
export default class EditRelayPage extends PopupWindowPage {
|
|
5
|
+
|
|
6
|
+
public parameters: { model?: IDomainRelay };
|
|
7
|
+
|
|
8
|
+
public model: IDomainRelay;
|
|
9
|
+
|
|
10
|
+
async init() {
|
|
11
|
+
this.model = this.parameters.model ?? DomainRelay.create({
|
|
12
|
+
type: "smtp"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
package/src/model/model.ts
CHANGED
|
@@ -79,14 +79,17 @@ export const DomainUser: IModel<IDomainUser> = new Model<IDomainUser>("DomainUse
|
|
|
79
79
|
export interface IDomainRelay extends IClrEntity {
|
|
80
80
|
domainRelayID?: number;
|
|
81
81
|
domainID?: number;
|
|
82
|
-
type?: "smtp" | "ses";
|
|
82
|
+
type?: "smtp" | "ses" | "https";
|
|
83
83
|
host?: string;
|
|
84
84
|
username?: string;
|
|
85
85
|
password?: string;
|
|
86
86
|
priority?: number;
|
|
87
|
+
script?: string | null;
|
|
87
88
|
hostedDomain?: IHostedDomain;
|
|
88
89
|
}
|
|
89
90
|
|
|
91
|
+
export const DomainRelayTypeArray = [{"label":"smtp","value":"smtp"},{"label":"ses","value":"ses"},{"label":"https","value":"https"}];
|
|
92
|
+
|
|
90
93
|
export const DomainRelay: IModel<IDomainRelay> = new Model<IDomainRelay>("DomainRelay", { domainID: 0,type: "smtp",host: "",username: "",password: "",priority: 0 });
|
|
91
94
|
|
|
92
95
|
export interface IDomainKey extends IClrEntity {
|
|
@@ -124,6 +127,8 @@ export interface IEmail extends IClrEntity {
|
|
|
124
127
|
attachments?: ICollection<IEmailAttachment>;
|
|
125
128
|
}
|
|
126
129
|
|
|
130
|
+
export const EmailStatusArray = [{"label":"queued","value":"queued"},{"label":"received","value":"received"},{"label":"draft","value":"draft"},{"label":"scheduled","value":"scheduled"},{"label":"sent","value":"sent"}];
|
|
131
|
+
|
|
127
132
|
export const Email: IModel<IEmail> = new Model<IEmail>("Email", { mailBoxID: 0,subject: "",textBody: "",htmlBody: "",senderName: "",senderID: 0,headerFrom: "",headerTo: "",headerCc: "",headerBcc: "",mdBody: "",dateReceived: new DateTime(),dateCreated: new DateTime(),status: "queued" });
|
|
128
133
|
|
|
129
134
|
export interface IEmailRecipient extends IClrEntity {
|