@social-mail/social-mail-client 1.2.714 → 1.2.715
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 +296 -50
- 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/model/model.d.ts +63 -12
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +296 -50
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +296 -50
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.js +296 -50
- 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/public/store/StoreApp.pack.js +297 -51
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +2 -2
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +296 -50
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/public/store/pages/StoreOrderPage.js +1 -1
- package/dist/public/store/pages/StoreOrderPage.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +403 -54
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +3 -3
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/store/products/ProductEditor.d.ts.map +1 -1
- package/dist/site-editor-app/pages/store/products/ProductEditor.js +27 -3
- package/dist/site-editor-app/pages/store/products/ProductEditor.js.map +1 -1
- package/dist/site-editor-app/pages/store/web-hooks/WebHookPage.d.ts +10 -0
- package/dist/site-editor-app/pages/store/web-hooks/WebHookPage.d.ts.map +1 -0
- package/dist/site-editor-app/pages/store/web-hooks/WebHookPage.js +76 -0
- package/dist/site-editor-app/pages/store/web-hooks/WebHookPage.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +296 -50
- 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/model/model.ts +85 -26
- package/src/public/store/pages/StoreOrderPage.tsx +1 -1
- package/src/site-editor-app/pages/store/products/ProductEditor.tsx +20 -1
- package/src/site-editor-app/pages/store/web-hooks/WebHookPage.tsx +59 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import { ContentPage, PopupWindowPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
3
|
+
import { IWebHook, WebHook, WebHookEventTypeArray } from "../../../../model/model";
|
|
4
|
+
import Form from "@web-atoms/web-controls/dist/basic/Form";
|
|
5
|
+
import FormField from "@web-atoms/web-controls/dist/basic/FormField";
|
|
6
|
+
import Select from "@web-atoms/web-controls/dist/basic/Select";
|
|
7
|
+
import Bind from "@web-atoms/core/dist/core/Bind";
|
|
8
|
+
import { SaveIconTextButton } from "../../../../common/controls/buttons/IconButton";
|
|
9
|
+
import Action from "@web-atoms/core/dist/view-model/Action";
|
|
10
|
+
import InjectProperty from "@web-atoms/core/dist/core/InjectProperty";
|
|
11
|
+
import EntityService from "../../../../services/EntityService";
|
|
12
|
+
|
|
13
|
+
export default class WebHookPage extends PopupWindowPage<IWebHook> {
|
|
14
|
+
|
|
15
|
+
model = WebHook.create({});
|
|
16
|
+
|
|
17
|
+
@InjectProperty
|
|
18
|
+
entityService: EntityService;
|
|
19
|
+
|
|
20
|
+
async init() {
|
|
21
|
+
|
|
22
|
+
this.title = "Web Hook";
|
|
23
|
+
|
|
24
|
+
if (this.parameters) {
|
|
25
|
+
this.model = this.parameters;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
this.renderer = <div>
|
|
29
|
+
<Form>
|
|
30
|
+
|
|
31
|
+
<FormField label="Type">
|
|
32
|
+
<Select
|
|
33
|
+
items={WebHookEventTypeArray}
|
|
34
|
+
value={Bind.twoWaysImmediate(() => this.model.eventType)}
|
|
35
|
+
/>
|
|
36
|
+
</FormField>
|
|
37
|
+
|
|
38
|
+
<FormField label="Url">
|
|
39
|
+
<input value={Bind.twoWaysImmediate(() => this.model.url)}/>
|
|
40
|
+
</FormField>
|
|
41
|
+
|
|
42
|
+
<div>
|
|
43
|
+
<SaveIconTextButton
|
|
44
|
+
data-submit-event="save-item"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
</Form>
|
|
49
|
+
</div>;
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@Action({ onEvent: "save-item", close: true})
|
|
54
|
+
async saveItem() {
|
|
55
|
+
await this.entityService.save(this.model, (c) => c);
|
|
56
|
+
return this.model;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|