@social-mail/social-mail-client 1.9.121 → 1.9.122
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/site-editor-app/SiteEditorApp.pack.js +22 -2
- package/dist/site-editor-app/SiteEditorApp.pack.js.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/site-editor-app/pages/websites/history/WebSiteHistory.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/history/WebSiteHistory.js +22 -2
- package/dist/site-editor-app/pages/websites/history/WebSiteHistory.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor-app/pages/websites/history/WebSiteHistory.tsx +16 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopupWindowPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
2
|
-
import { IWebSite, IWebSiteVersion } from "../../../../model/model";
|
|
2
|
+
import { IAppFile, IWebSite, IWebSiteVersion } from "../../../../model/model";
|
|
3
3
|
import InjectProperty from "@web-atoms/core/dist/core/InjectProperty";
|
|
4
4
|
import WebSiteService from "../../../../services/websites/WebSiteService";
|
|
5
5
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
@@ -11,6 +11,20 @@ import InfiniteRepeater from "../../../../common/controls/repeater/InfiniteRepea
|
|
|
11
11
|
import { DateFormats } from "../../../../common/date/DateFormats";
|
|
12
12
|
import { toFileSize } from "../../../../common/NumberFormats";
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
const downloadFolder = (folder: IAppFile) => {
|
|
16
|
+
const { name, fileContentID, appFileID, url, path } = folder as any;
|
|
17
|
+
|
|
18
|
+
const q = new URLSearchParams({
|
|
19
|
+
name,
|
|
20
|
+
url,
|
|
21
|
+
path,
|
|
22
|
+
fileContentID,
|
|
23
|
+
appFileID
|
|
24
|
+
});
|
|
25
|
+
return `/social-mail/ui/dist/public/preview/zip/DownloadZip?${q.toString()}`;
|
|
26
|
+
};
|
|
27
|
+
|
|
14
28
|
export default class WebSiteHistory extends PopupWindowPage<IWebSite> {
|
|
15
29
|
|
|
16
30
|
@InjectProperty
|
|
@@ -46,6 +60,7 @@ export default class WebSiteHistory extends PopupWindowPage<IWebSite> {
|
|
|
46
60
|
<span text={DateFormats.relative.short(item.dateCreated)}/>
|
|
47
61
|
<span text={item.author.displayName}/>
|
|
48
62
|
<span text={toFileSize(item.snapshotFolder.fileSize)}/>
|
|
63
|
+
<menu><a href={downloadFolder(item.snapshotFolder)} target="_blank">Download</a></menu>
|
|
49
64
|
</div>}
|
|
50
65
|
/>
|
|
51
66
|
</div>;
|