@social-mail/social-mail-client 1.8.442 → 1.8.444
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.global.css +1 -1
- package/dist/admin/AdminAppIndex.pack.global.css.map +1 -1
- package/dist/admin/AdminAppIndex.pack.js +33 -57
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/StringFormat.d.ts +2 -0
- package/dist/common/StringFormat.d.ts.map +1 -1
- package/dist/common/StringFormat.js +13 -1
- package/dist/common/StringFormat.js.map +1 -1
- package/dist/common/menu/MenuService.d.ts.map +1 -1
- package/dist/common/menu/MenuService.js +2 -5
- package/dist/common/menu/MenuService.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.local.css +1 -1
- package/dist/public/channel/ChannelApp.pack.local.css.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.local.css +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.local.css.map +1 -1
- package/dist/public/preview/video/PreviewVideo.pack.local.css +1 -1
- package/dist/public/preview/video/PreviewVideo.pack.local.css.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.local.css +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.local.css.map +1 -1
- package/dist/public/store/StoreApp.pack.local.css +1 -1
- package/dist/public/store/StoreApp.pack.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.global.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.global.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +33 -57
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/style/global-style.local.css +1 -1
- package/dist/style/global-style.local.css.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.d.ts.map +1 -1
- package/dist/web/AppIndex.js +5 -2
- package/dist/web/AppIndex.js.map +1 -1
- package/dist/web/AppIndex.pack.global.css +1 -1
- package/dist/web/AppIndex.pack.global.css.map +1 -1
- package/dist/web/AppIndex.pack.js +38 -59
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.local.css +1 -1
- package/dist/web/AppIndex.pack.local.css.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/home/HomePage.d.ts +9 -0
- package/dist/web/page/home/HomePage.d.ts.map +1 -1
- package/dist/web/page/home/HomePage.global.css +2 -0
- package/dist/web/page/home/HomePage.global.css.map +1 -0
- package/dist/web/page/home/HomePage.js +15 -5
- package/dist/web/page/home/HomePage.js.map +1 -1
- package/dist/web/page/home/recent/RecentMails.d.ts +9 -0
- package/dist/web/page/home/recent/RecentMails.d.ts.map +1 -0
- package/dist/web/page/home/recent/RecentMails.global.css +2 -0
- package/dist/web/page/home/recent/RecentMails.global.css.map +1 -0
- package/dist/web/page/home/recent/RecentMails.js +76 -0
- package/dist/web/page/home/recent/RecentMails.js.map +1 -0
- package/dist/web/page/mails/contacts/MailboxContact.local.css +1 -1
- package/dist/web/page/mails/contacts/MailboxContact.local.css.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.d.ts.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.js +3 -46
- package/dist/web/page/mails/contacts/MailboxContacts.js.map +1 -1
- package/package.json +1 -1
- package/src/common/StringFormat.ts +12 -1
- package/src/common/menu/MenuService.tsx +0 -1
- package/src/style/global-style.local.css +0 -1
- package/src/web/AppIndex.tsx +3 -0
- package/src/web/page/home/HomePage.global.css +7 -0
- package/src/web/page/home/HomePage.tsx +22 -0
- package/src/web/page/home/recent/RecentMails.global.css +37 -0
- package/src/web/page/home/recent/RecentMails.tsx +65 -0
- package/src/web/page/mails/contacts/MailboxContact.local.css +9 -6
- package/src/web/page/mails/contacts/MailboxContacts.tsx +2 -38
|
@@ -23,7 +23,7 @@ import MailboxService from "../../../../common/pages/mailboxes/services/MailboxS
|
|
|
23
23
|
import { toKMBString } from "../../../../common/NumberFormats";
|
|
24
24
|
import { MailAppEvents } from "../../../commands/MailAppEvents";
|
|
25
25
|
import EntityService from "../../../../services/EntityService";
|
|
26
|
-
import { toSentenceCase } from "../../../../common/StringFormat";
|
|
26
|
+
import { mailboxContactTitle, toSentenceCase } from "../../../../common/StringFormat";
|
|
27
27
|
import MenuService from "../../../../common/menu/MenuService";
|
|
28
28
|
import WebHookListPage from "../web-hooks/WebHookListPage";
|
|
29
29
|
import { DateFormats } from "../../../../common/date/DateFormats";
|
|
@@ -34,42 +34,6 @@ import Badge from "../../../../common/controls/badge/Badge";
|
|
|
34
34
|
import ConversationBar from "./ConversationBar";
|
|
35
35
|
import SocialMailApp from "../../../../common/SocialMailApp";
|
|
36
36
|
|
|
37
|
-
const displayName = (item: IMailboxContact) => {
|
|
38
|
-
const { emailAddress: { emailAddress, name } = {} } = item;
|
|
39
|
-
if(name && name !== emailAddress) {
|
|
40
|
-
return name;
|
|
41
|
-
}
|
|
42
|
-
return emailAddress.split("@")[0];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const types = [
|
|
46
|
-
{ label: "Contacts", value: false },
|
|
47
|
-
{ label: "Blocked", value: true }
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
const conversationTypes = [
|
|
51
|
-
{ label: "All", value: "all" },
|
|
52
|
-
{ label: "Open", value: "open" },
|
|
53
|
-
{ label: "Closed", value: "closed" },
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
const getConversationNumber = (item, mb:IMailbox) => {
|
|
57
|
-
let count = Number(mb.totalThreads);
|
|
58
|
-
switch(item.value) {
|
|
59
|
-
case "open":
|
|
60
|
-
count = Number(mb.openThreads);
|
|
61
|
-
break;
|
|
62
|
-
// return toKMBString(Number(mb.openThreads));
|
|
63
|
-
case "closed":
|
|
64
|
-
count = Number(mb.totalThreads) - Number(mb.openThreads);
|
|
65
|
-
break;
|
|
66
|
-
// return toKMBString(Number(mb.totalThreads) - Number(mb.openThreads));
|
|
67
|
-
}
|
|
68
|
-
if (!count) {
|
|
69
|
-
return "0";
|
|
70
|
-
}
|
|
71
|
-
return toKMBString(count);
|
|
72
|
-
};
|
|
73
37
|
|
|
74
38
|
export default class MailsPage extends MasterDetailPage {
|
|
75
39
|
|
|
@@ -177,7 +141,7 @@ export default class MailsPage extends MasterDetailPage {
|
|
|
177
141
|
cancelToken
|
|
178
142
|
}))}
|
|
179
143
|
itemRenderer={(item: IMailboxContact) => {
|
|
180
|
-
const name =
|
|
144
|
+
const name = mailboxContactTitle(item);
|
|
181
145
|
const fullName = name + " " + item.emailAddress.emailAddress;
|
|
182
146
|
const subject = item.lastEmail?.subject;
|
|
183
147
|
const summary = item.lastEmail?.summary;
|