@social-mail/social-mail-client 1.9.94 → 1.9.96
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/content/templates/plain/blank.html +38 -0
- package/dist/admin/AdminAppIndex.pack.js +29 -25
- 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/common/pages/files/service/CloudFileService.d.ts +2 -0
- package/dist/common/pages/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.js +6 -4
- package/dist/common/pages/files/service/CloudFileService.js.map +1 -1
- package/dist/services/files/LocalFileService.js +23 -21
- package/dist/services/files/LocalFileService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +61 -28
- 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/studio/WebSiteStudioPage.d.ts +1 -0
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +32 -3
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +29 -25
- 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/package.json +1 -1
- package/src/common/pages/files/service/CloudFileService.ts +5 -4
- package/src/services/files/LocalFileService.tsx +19 -17
- package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +31 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<link rel="stylesheet" styler-css="vars.css" href="./../../styles/vars.css">
|
|
5
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@latest/css/all.min.css">
|
|
6
|
+
<link styler-css="styler.css" rel="stylesheet"
|
|
7
|
+
href="//cdn.jsdelivr.net/npm/@social-mail/social-mail-client@latest/styler-lite/styler.css">
|
|
8
|
+
<script web-components="social" async="true" defer="true"
|
|
9
|
+
src="//cdn.jsdelivr.net/npm/@social-mail/web-components@latest/dist/main.js"></script>
|
|
10
|
+
|
|
11
|
+
<meta charset="utf-8">
|
|
12
|
+
<title></title>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body styler-expansion-enabled="true">
|
|
16
|
+
<main styler-layout="main">
|
|
17
|
+
<inject src="/templates/header.html"></inject>
|
|
18
|
+
|
|
19
|
+
<section styler-layout="column">
|
|
20
|
+
<section>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam sollicitudin vel tellus id viverra.
|
|
21
|
+
In et odio vitae nunc tincidunt ornare. Sed arcu massa, aliquam id sem id, rhoncus luctus sem. Class
|
|
22
|
+
aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris porttitor
|
|
23
|
+
ex imperdiet imperdiet auctor.</section>
|
|
24
|
+
<section>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mattis ipsum et luctus mollis. Sed
|
|
25
|
+
et massa at risus cursus maximus. Donec iaculis quis ex a dignissim. Integer tempus fermentum neque. Sed
|
|
26
|
+
ullamcorper orci a metus consequat, sit amet porttitor est eleifend. In consectetur dui sit amet ante
|
|
27
|
+
pharetra consectetur.</section>
|
|
28
|
+
<section>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque fringilla quam ac odio mollis
|
|
29
|
+
sollicitudin. Donec libero nisi, interdum quis urna sed, cursus auctor neque. Mauris quis ligula sed
|
|
30
|
+
tellus tincidunt mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
|
|
31
|
+
inceptos himenaeos. Praesent tincidunt tempus vehicula. Nullam.</section>
|
|
32
|
+
</section>
|
|
33
|
+
<inject src="/templates/footer.html"></inject>
|
|
34
|
+
</main>
|
|
35
|
+
|
|
36
|
+
</body>
|
|
37
|
+
|
|
38
|
+
</html>
|
|
@@ -23724,30 +23724,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
|
|
|
23724
23724
|
text: Bind.source(file, x => x.source.error)
|
|
23725
23725
|
}))
|
|
23726
23726
|
})));
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23727
|
+
this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
|
|
23728
|
+
try {
|
|
23729
|
+
const ct = new CancelToken();
|
|
23730
|
+
this.registerDisposable({
|
|
23731
|
+
dispose: () => {
|
|
23732
|
+
ct.cancel();
|
|
23733
|
+
}
|
|
23734
|
+
});
|
|
23735
|
+
const tasks = this.files.map(x => x.promise);
|
|
23736
|
+
const files = yield Promise.all(tasks);
|
|
23737
|
+
const extra = this.parameters.extra;
|
|
23738
|
+
this.close({
|
|
23739
|
+
files,
|
|
23740
|
+
extra
|
|
23741
|
+
});
|
|
23742
|
+
} catch (error) {
|
|
23743
|
+
if (CancelToken.isCancelled(error)) {
|
|
23744
|
+
this.cancel(error);
|
|
23745
|
+
return;
|
|
23732
23746
|
}
|
|
23733
|
-
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
const extra = this.parameters.extra;
|
|
23737
|
-
this.close({
|
|
23738
|
-
files,
|
|
23739
|
-
extra
|
|
23740
|
-
});
|
|
23741
|
-
} catch (error) {
|
|
23742
|
-
if (CancelToken.isCancelled(error)) {
|
|
23747
|
+
yield PopupService.alert({
|
|
23748
|
+
message: error
|
|
23749
|
+
});
|
|
23743
23750
|
this.cancel(error);
|
|
23744
|
-
return;
|
|
23745
23751
|
}
|
|
23746
|
-
|
|
23747
|
-
message: error
|
|
23748
|
-
});
|
|
23749
|
-
this.cancel(error);
|
|
23750
|
-
}
|
|
23752
|
+
}));
|
|
23751
23753
|
});
|
|
23752
23754
|
}
|
|
23753
23755
|
};
|
|
@@ -23940,7 +23942,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23940
23942
|
return __awaiter(this, arguments, void 0, function* (id, cancelToken = null) {
|
|
23941
23943
|
const folder = yield this.entityService.query(AppFile).where({
|
|
23942
23944
|
id
|
|
23943
|
-
}, p => x => x.appFileID === p.id).include(x => x.creator).firstOrDefault({
|
|
23945
|
+
}, p => x => x.appFileID === p.id && x.isDeleted === false).include(x => x.creator).firstOrDefault({
|
|
23944
23946
|
cancelToken
|
|
23945
23947
|
});
|
|
23946
23948
|
folder.children = [];
|
|
@@ -23963,7 +23965,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23963
23965
|
const path = root.path + "%";
|
|
23964
23966
|
const files = yield this.entityService.query(AppFile).where({
|
|
23965
23967
|
path
|
|
23966
|
-
}, p => x => Sql.text.like(x.path, p.path) && x.isDeleted === false && (x.contentType === "text/html" || x.isFolder === true)).include(x => x.creator).
|
|
23968
|
+
}, p => x => Sql.text.like(x.path, p.path) && x.isDeleted === false && (x.contentType === "text/html" || x.isFolder === true)).include(x => x.creator).toArray({
|
|
23967
23969
|
cancelToken
|
|
23968
23970
|
});
|
|
23969
23971
|
root.children = [];
|
|
@@ -24191,12 +24193,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24191
24193
|
appFileID,
|
|
24192
24194
|
content,
|
|
24193
24195
|
parentID,
|
|
24194
|
-
folder
|
|
24196
|
+
folder,
|
|
24197
|
+
name
|
|
24195
24198
|
} = fm;
|
|
24196
24199
|
return this.localFileService.uploadFile(content, {
|
|
24197
24200
|
appFileID,
|
|
24198
24201
|
parentID,
|
|
24199
|
-
folder
|
|
24202
|
+
folder,
|
|
24203
|
+
name
|
|
24200
24204
|
});
|
|
24201
24205
|
});
|
|
24202
24206
|
}
|