@social-mail/social-mail-client 1.2.605 → 1.2.607
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 +74 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +16 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +9 -3
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.d.ts.map +1 -1
- package/dist/public/preview/zip/DownloadZip.js +7 -3
- package/dist/public/preview/zip/DownloadZip.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.js +7 -3
- package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +74 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +16 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +7 -0
- package/src/public/preview/zip/DownloadZip.tsx +2 -3
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ import WebSiteBlogsPage from "../blogs/WebSiteBlogsPage";
|
|
|
27
27
|
import GrapesJSEditor from "../../../controls/html/grapes-js/GrapesJSEditor";
|
|
28
28
|
import { apiPath } from "../../../apiPath";
|
|
29
29
|
import FileHistoryPage from "../../files/FileHistoryPage";
|
|
30
|
+
import DownloadZip from "../../../../web/page/files/preview/document/DownloadZip";
|
|
30
31
|
|
|
31
32
|
const css = styled.css `
|
|
32
33
|
display: grid;
|
|
@@ -163,6 +164,12 @@ export default class WebSiteStudioPage extends ContentPage {
|
|
|
163
164
|
data-click-event="new-template"
|
|
164
165
|
text="New Template"/>
|
|
165
166
|
</div>}
|
|
167
|
+
|
|
168
|
+
<EditIconTextButton
|
|
169
|
+
icon="fad fa-save"
|
|
170
|
+
text="Download Site"
|
|
171
|
+
event-click={() => PageNavigator.pushPage(DownloadZip, this.webSite.folder) }
|
|
172
|
+
/>
|
|
166
173
|
</div>;
|
|
167
174
|
|
|
168
175
|
this.renderer = <div
|
|
@@ -19,11 +19,10 @@ import { Sql } from "../../../common/Sql";
|
|
|
19
19
|
import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
|
|
20
20
|
import AtomRepeater from "@web-atoms/web-controls/dist/basic/AtomRepeater";
|
|
21
21
|
import { toKMBString } from "../../../common/NumberFormats";
|
|
22
|
+
import { UMD } from "@web-atoms/core/dist/core/types";
|
|
22
23
|
|
|
23
24
|
let fileInfo: Partial<IAppFile> = (window as any).fileInfo;
|
|
24
25
|
|
|
25
|
-
declare let JSZip: any;
|
|
26
|
-
|
|
27
26
|
if (!fileInfo) {
|
|
28
27
|
fileInfo = (window as any).fileInfo = {};
|
|
29
28
|
const url = new URL(location.href);
|
|
@@ -60,7 +59,7 @@ export default class DownloadZip extends AtomControl {
|
|
|
60
59
|
<div>Preparing Zip</div>
|
|
61
60
|
</div>;
|
|
62
61
|
|
|
63
|
-
await
|
|
62
|
+
const { JSZip } = await UMD.import("https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js") as any;
|
|
64
63
|
|
|
65
64
|
this.zipFile = new JSZip();
|
|
66
65
|
|