@capillarytech/creatives-library 2.0.81 → 2.0.83
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/components/CapTagList/index.js +24 -21
- package/components/CardGrid/index.js +10 -16
- package/components/Ckeditor/index.js +1 -2
- package/components/CustomPopOver/index.js +1 -1
- package/components/EmailPreview/index.js +2 -3
- package/components/FormBuilder/_formBuilder.scss +15 -8
- package/components/FormBuilder/index.js +192 -258
- package/components/Header/index.js +1 -4
- package/components/PreviewSideBar/_previewsidebar.scss +1 -1
- package/components/PreviewSideBar/index.js +5 -3
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -2
- package/components/TemplatePreview/_templatePreview.scss +1 -1
- package/components/TemplatePreview/index.js +47 -47
- package/components/TemplatePreview/messages.js +1 -9
- package/containers/Assets/Gallery/index.js +1 -1
- package/containers/Email/index.js +1 -1
- package/containers/Login/components/LoginForm/index.js +1 -1
- package/containers/Templates/index.js +1 -1
- package/containers/WeChat/RichmediaTemplates/Create/index.js +1 -1
- package/package.json +2 -1
- package/v2Components/BreadCrumbs/index.js +65 -0
- package/v2Components/BreadCrumbs/messages.js +13 -0
- package/v2Components/BreadCrumbs/tests/index.test.js +10 -0
- package/v2Components/CallTaskPreview/_callTaskPreview.scss +17 -0
- package/v2Components/CallTaskPreview/images/Footer.png +0 -0
- package/v2Components/CallTaskPreview/images/Header.png +0 -0
- package/v2Components/CallTaskPreview/index.js +37 -0
- package/v2Components/CallTaskPreview/messages.js +13 -0
- package/v2Components/CallTaskPreview/tests/index.test.js +15 -0
- package/v2Components/CapTagList/index.js +232 -0
- package/v2Components/CapTagList/messages.js +25 -0
- package/{containers/TemplatesV2 → v2Components/CapTagList}/tests/index.test.js +2 -2
- package/v2Components/Card/_customCard.scss +27 -0
- package/v2Components/Card/index.js +78 -0
- package/{containers/WeChat → v2Components/Card}/tests/index.test.js +2 -2
- package/v2Components/CardGrid/index.js +77 -0
- package/{containers/EmailWrapper → v2Components/CardGrid}/tests/index.test.js +2 -2
- package/v2Components/Ckeditor/index.js +234 -0
- package/v2Components/Ckeditor/messages.js +13 -0
- package/{containers/ChannelTemplates → v2Components/Ckeditor}/tests/index.test.js +2 -2
- package/v2Components/CmsTemplatesComponent/index.js +33 -0
- package/v2Components/CmsTemplatesComponent/messages.js +17 -0
- package/v2Components/CmsTemplatesComponent/tests/index.test.js +10 -0
- package/v2Components/Component/index.js +29 -0
- package/v2Components/Component/tests/index.test.js +10 -0
- package/v2Components/CustomPopOver/index.js +82 -0
- package/v2Components/CustomPopOver/messages.js +13 -0
- package/v2Components/CustomPopOver/tests/index.test.js +10 -0
- package/v2Components/DateFilter/index.js +349 -0
- package/v2Components/DateFilter/messages.js +17 -0
- package/v2Components/DateFilter/tests/index.test.js +15 -0
- package/v2Components/DateRange/index.js +113 -0
- package/v2Components/DateRange/messages.js +13 -0
- package/v2Components/DateRange/tests/index.test.js +10 -0
- package/v2Components/Edmeditor/index.js +65 -0
- package/v2Components/Edmeditor/messages.js +13 -0
- package/v2Components/Edmeditor/tests/index.test.js +10 -0
- package/v2Components/EmailMobilePreview/index.js +129 -0
- package/v2Components/EmailMobilePreview/index.scss +55 -0
- package/v2Components/EmailPreview/_emailPreview.scss +119 -0
- package/v2Components/EmailPreview/index.js +106 -0
- package/v2Components/EmailPreview/messages.js +17 -0
- package/v2Components/EmailPreview/tests/index.test.js +10 -0
- package/v2Components/EmailPreviewV2/_emailPreviewV2.scss +69 -0
- package/v2Components/EmailPreviewV2/index.js +132 -0
- package/v2Components/EmailPreviewV2/messages.js +41 -0
- package/v2Components/EmailPreviewV2/tests/index.test.js +10 -0
- package/v2Components/Footer/index.js +27 -0
- package/v2Components/Footer/messages.js +13 -0
- package/v2Components/Footer/tests/index.test.js +10 -0
- package/v2Components/FormBuilder/_formBuilder.scss +78 -0
- package/v2Components/FormBuilder/index.js +3309 -0
- package/v2Components/FormBuilder/messages.js +13 -0
- package/v2Components/FormBuilder/tests/index.test.js +10 -0
- package/v2Components/Header/index.js +46 -0
- package/v2Components/Header/messages.js +25 -0
- package/v2Components/Header/tests/index.test.js +10 -0
- package/v2Components/ImagePreview/_imagePreview.scss +63 -0
- package/v2Components/ImagePreview/index.js +52 -0
- package/v2Components/ImagePreview/messages.js +13 -0
- package/v2Components/ImagePreview/tests/index.test.js +10 -0
- package/v2Components/MobilePushPreviewV2/index.js +120 -0
- package/v2Components/MobilePushPreviewV2/messages.js +13 -0
- package/{containers/MobilepushWrapper → v2Components/MobilePushPreviewV2}/tests/index.test.js +2 -2
- package/v2Components/NewCallTask/_newCallTask.scss +9 -0
- package/v2Components/NewCallTask/index.js +152 -0
- package/v2Components/NewCallTask/messages.js +29 -0
- package/{containers/CallTask → v2Components/NewCallTask}/tests/index.test.js +2 -2
- package/v2Components/PageHeader/_pageHeader.scss +22 -0
- package/v2Components/PageHeader/index.js +37 -0
- package/v2Components/PageHeader/messages.js +13 -0
- package/v2Components/PageHeader/tests/index.test.js +10 -0
- package/v2Components/Pagination/_pagination.scss +5 -0
- package/v2Components/Pagination/index.js +49 -0
- package/v2Components/Pagination/tests/index.test.js +10 -0
- package/v2Components/PreviewSideBar/_previewsidebar.scss +28 -0
- package/v2Components/PreviewSideBar/index.js +150 -0
- package/v2Components/PreviewSideBar/messages.js +33 -0
- package/v2Components/PreviewSideBar/tests/index.test.js +10 -0
- package/v2Components/Sidebar/_sidebar.scss +115 -0
- package/v2Components/Sidebar/index.js +208 -0
- package/v2Components/Sidebar/messages.js +21 -0
- package/v2Components/Sidebar/tests/index.test.js +10 -0
- package/v2Components/SlideBox/_slideBox.scss +63 -0
- package/v2Components/SlideBox/index.js +48 -0
- package/v2Components/SlideBox/tests/index.test.js +103 -0
- package/v2Components/SmsEditor/index.js +55 -0
- package/v2Components/SmsEditor/tests/index.test.js +10 -0
- package/v2Components/SmsTest/index.js +115 -0
- package/v2Components/SmsTest/messages.js +13 -0
- package/v2Components/SmsTest/tests/index.test.js +10 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +42 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +139 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +21 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -0
- package/v2Components/TemplatePreview/_templatePreview.scss +352 -0
- package/v2Components/TemplatePreview/assets/images/WECHAT_5x.png +0 -0
- package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +45 -0
- package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +135 -0
- package/v2Components/TemplatePreview/assets/images/mobile.svg +24 -0
- package/v2Components/TemplatePreview/assets/images/sms-body.png +0 -0
- package/v2Components/TemplatePreview/assets/images/sms-icon.png +0 -0
- package/v2Components/TemplatePreview/assets/images/sms_mobile.png +0 -0
- package/v2Components/TemplatePreview/assets/images/user-icon.svg +19 -0
- package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +78 -0
- package/v2Components/TemplatePreview/index.js +175 -0
- package/v2Components/TemplatePreview/messages.js +37 -0
- package/v2Components/TemplatePreview/tests/index.test.js +10 -0
- package/v2Components/Toastr/index.js +60 -0
- package/v2Components/Toastr/messages.js +13 -0
- package/v2Components/Toastr/tests/index.test.js +10 -0
- package/v2Components/ToastrMessage/index.js +110 -0
- package/v2Components/ToastrMessage/messages.js +13 -0
- package/v2Components/ToastrMessage/tests/index.test.js +10 -0
- package/v2Components/TopBar/_topbar.scss +46 -0
- package/v2Components/TopBar/assets/images/capillary_logo.png +0 -0
- package/v2Components/TopBar/index.js +113 -0
- package/v2Components/TopBar/messages.js +29 -0
- package/v2Components/TopBar/tests/index.test.js +10 -0
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/CallTask/index.js +1 -1
- package/v2Containers/Cap/index.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxContent.js +3 -3
- package/v2Containers/CreativesContainer/index.js +1 -0
- package/v2Containers/Dashboard/index.js +2 -2
- package/v2Containers/Ebill/index.js +2 -2
- package/v2Containers/Email/index.js +13 -13
- package/v2Containers/EmailWrapper/index.js +1 -1
- package/v2Containers/Line/Create/index.js +1 -1
- package/v2Containers/Line/Edit/index.js +1 -1
- package/v2Containers/Login/index.js +1 -1
- package/v2Containers/MobilePush/Create/index.js +26 -3
- package/v2Containers/MobilePush/Edit/index.js +32 -7
- package/v2Containers/MobilePush/initialSchema.js +2 -0
- package/v2Containers/Sms/Create/index.js +1 -1
- package/v2Containers/Sms/Edit/index.js +1 -1
- package/v2Containers/TagList/index.js +1 -1
- package/v2Containers/Templates/index.js +4 -4
- package/v2Containers/TestPage/index.js +1 -1
- package/v2Containers/WeChat/MapTemplates/index.js +3 -3
- package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +3 -3
- package/components/FormBuilder/test +0 -1845
- package/containers/CallTask/_callTask.scss +0 -5
- package/containers/CallTask/actions.js +0 -15
- package/containers/CallTask/constants.js +0 -7
- package/containers/CallTask/index.js +0 -141
- package/containers/CallTask/messages.js +0 -21
- package/containers/CallTask/reducer.js +0 -23
- package/containers/CallTask/sagas.js +0 -11
- package/containers/CallTask/selectors.js +0 -25
- package/containers/CallTask/tests/actions.test.js +0 -18
- package/containers/CallTask/tests/reducer.test.js +0 -9
- package/containers/CallTask/tests/sagas.test.js +0 -15
- package/containers/CallTask/tests/selectors.test.js +0 -10
- package/containers/ChannelTemplates/actions.js +0 -20
- package/containers/ChannelTemplates/constants.js +0 -8
- package/containers/ChannelTemplates/index.js +0 -48
- package/containers/ChannelTemplates/messages.js +0 -13
- package/containers/ChannelTemplates/reducer.js +0 -34
- package/containers/ChannelTemplates/sagas.js +0 -32
- package/containers/ChannelTemplates/selectors.js +0 -25
- package/containers/ChannelTemplates/tests/actions.test.js +0 -18
- package/containers/ChannelTemplates/tests/reducer.test.js +0 -9
- package/containers/ChannelTemplates/tests/sagas.test.js +0 -15
- package/containers/ChannelTemplates/tests/selectors.test.js +0 -10
- package/containers/CreativesContainer/SlideBoxContent.js +0 -248
- package/containers/CreativesContainer/SlideBoxFooter.js +0 -38
- package/containers/CreativesContainer/SlideBoxHeader.js +0 -65
- package/containers/CreativesContainer/actions.js +0 -27
- package/containers/CreativesContainer/constants.js +0 -13
- package/containers/CreativesContainer/index.js +0 -418
- package/containers/CreativesContainer/index.scss +0 -27
- package/containers/CreativesContainer/messages.js +0 -17
- package/containers/CreativesContainer/reducer.js +0 -29
- package/containers/CreativesContainer/sagas.js +0 -11
- package/containers/CreativesContainer/selectors.js +0 -30
- package/containers/CreativesContainer/tests/actions.test.js +0 -18
- package/containers/CreativesContainer/tests/index.test.js +0 -10
- package/containers/CreativesContainer/tests/reducer.test.js +0 -9
- package/containers/CreativesContainer/tests/sagas.test.js +0 -15
- package/containers/CreativesContainer/tests/selectors.test.js +0 -10
- package/containers/EmailWrapper/actions.js +0 -15
- package/containers/EmailWrapper/constants.js +0 -7
- package/containers/EmailWrapper/index.js +0 -238
- package/containers/EmailWrapper/messages.js +0 -57
- package/containers/EmailWrapper/reducer.js +0 -23
- package/containers/EmailWrapper/sagas.js +0 -11
- package/containers/EmailWrapper/selectors.js +0 -25
- package/containers/EmailWrapper/tests/actions.test.js +0 -18
- package/containers/EmailWrapper/tests/reducer.test.js +0 -9
- package/containers/EmailWrapper/tests/sagas.test.js +0 -15
- package/containers/EmailWrapper/tests/selectors.test.js +0 -10
- package/containers/MobilePush/commonMethods.js +0 -249
- package/containers/MobilePush/eventsMap.js +0 -127
- package/containers/MobilePush/initialSchema.js +0 -1739
- package/containers/MobilepushWrapper/_mobilepushWrapper.scss +0 -18
- package/containers/MobilepushWrapper/index.js +0 -97
- package/containers/MobilepushWrapper/messages.js +0 -25
- package/containers/TemplatesV2/_templatesV2.scss +0 -5
- package/containers/TemplatesV2/actions.js +0 -16
- package/containers/TemplatesV2/constants.js +0 -10
- package/containers/TemplatesV2/index.js +0 -207
- package/containers/TemplatesV2/messages.js +0 -29
- package/containers/TemplatesV2/selectors.js +0 -25
- package/containers/TemplatesV2/tests/actions.test.js +0 -18
- package/containers/TemplatesV2/tests/reducer.test.js +0 -9
- package/containers/TemplatesV2/tests/sagas.test.js +0 -15
- package/containers/TemplatesV2/tests/selectors.test.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Create/testschema.js +0 -379
- package/containers/WeChat/_wechat.scss +0 -8
- package/containers/WeChat/actions.js +0 -52
- package/containers/WeChat/constants.js +0 -28
- package/containers/WeChat/index.js +0 -1635
- package/containers/WeChat/messages.js +0 -73
- package/containers/WeChat/reducer.js +0 -74
- package/containers/WeChat/sagas.js +0 -86
- package/containers/WeChat/selectors.js +0 -25
- package/containers/WeChat/tests/actions.test.js +0 -18
- package/containers/WeChat/tests/reducer.test.js +0 -9
- package/containers/WeChat/tests/sagas.test.js +0 -15
- package/containers/WeChat/tests/selectors.test.js +0 -10
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
standalone: {
|
|
3
|
-
sections: [
|
|
4
|
-
{
|
|
5
|
-
type: "multicols",
|
|
6
|
-
inputFields: [
|
|
7
|
-
{
|
|
8
|
-
rowClassName: "wechat-richmedia-row",
|
|
9
|
-
cols: [
|
|
10
|
-
{
|
|
11
|
-
id: "title-label",
|
|
12
|
-
metaType: "label",
|
|
13
|
-
value: "Title",
|
|
14
|
-
primitive: true,
|
|
15
|
-
dynamicTab: false,
|
|
16
|
-
type: "div",
|
|
17
|
-
width: 4,
|
|
18
|
-
style: {
|
|
19
|
-
backgroundColor: "white",
|
|
20
|
-
textAlign: "left",
|
|
21
|
-
color: "#333333",
|
|
22
|
-
lineHeight: "24px",
|
|
23
|
-
fontSize: "14px",
|
|
24
|
-
fontFamily: "open-sans",
|
|
25
|
-
fontStyle: "normal",
|
|
26
|
-
},
|
|
27
|
-
onlyDisplay: true,
|
|
28
|
-
colStyle: {
|
|
29
|
-
flex: 1,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: "title-value",
|
|
34
|
-
label: "Title",
|
|
35
|
-
type: "input",
|
|
36
|
-
metaType: "text",
|
|
37
|
-
datatype: "string",
|
|
38
|
-
required: true,
|
|
39
|
-
width: 16,
|
|
40
|
-
placeholder: "Please input title",
|
|
41
|
-
fluid: true,
|
|
42
|
-
styling: "semantic",
|
|
43
|
-
order: 1,
|
|
44
|
-
disabled: false,
|
|
45
|
-
customComponent: false,
|
|
46
|
-
onlyDisplay: false,
|
|
47
|
-
supportedEvents: [
|
|
48
|
-
"onChange",
|
|
49
|
-
],
|
|
50
|
-
errorMessage: "This field is required!",
|
|
51
|
-
}],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
rowClassName: "wechat-richmedia-row",
|
|
55
|
-
cols: [
|
|
56
|
-
{
|
|
57
|
-
id: "author-label",
|
|
58
|
-
metaType: "label",
|
|
59
|
-
value: "Author",
|
|
60
|
-
primitive: true,
|
|
61
|
-
dynamicTab: false,
|
|
62
|
-
type: "div",
|
|
63
|
-
width: 4,
|
|
64
|
-
style: {
|
|
65
|
-
backgroundColor: "white",
|
|
66
|
-
textAlign: "left",
|
|
67
|
-
color: "#333333",
|
|
68
|
-
lineHeight: "24px",
|
|
69
|
-
fontSize: "14px",
|
|
70
|
-
fontFamily: "open-sans",
|
|
71
|
-
fontStyle: "normal",
|
|
72
|
-
},
|
|
73
|
-
onlyDisplay: true,
|
|
74
|
-
colStyle: {
|
|
75
|
-
flex: 1,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: "author-value",
|
|
80
|
-
label: "Author",
|
|
81
|
-
type: "input",
|
|
82
|
-
metaType: "text",
|
|
83
|
-
datatype: "string",
|
|
84
|
-
required: true,
|
|
85
|
-
width: 16,
|
|
86
|
-
placeholder: "Please input author",
|
|
87
|
-
fluid: true,
|
|
88
|
-
styling: "semantic",
|
|
89
|
-
order: 1,
|
|
90
|
-
disabled: false,
|
|
91
|
-
customComponent: false,
|
|
92
|
-
supportedEvents: [
|
|
93
|
-
"onChange",
|
|
94
|
-
],
|
|
95
|
-
errorMessage: "This field is required!",
|
|
96
|
-
}],
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
rowClassName: "wechat-richmedia-row",
|
|
100
|
-
cols: [
|
|
101
|
-
{
|
|
102
|
-
id: "image-label",
|
|
103
|
-
metaType: "label",
|
|
104
|
-
value: "Cover image",
|
|
105
|
-
primitive: true,
|
|
106
|
-
dynamicTab: false,
|
|
107
|
-
type: "div",
|
|
108
|
-
width: 4,
|
|
109
|
-
style: {
|
|
110
|
-
backgroundColor: "white",
|
|
111
|
-
textAlign: "left",
|
|
112
|
-
color: "#333333",
|
|
113
|
-
lineHeight: "24px",
|
|
114
|
-
fontSize: "14px",
|
|
115
|
-
fontFamily: "open-sans",
|
|
116
|
-
fontStyle: "normal",
|
|
117
|
-
},
|
|
118
|
-
offset: 0,
|
|
119
|
-
onlyDisplay: true,
|
|
120
|
-
colStyle: {
|
|
121
|
-
flex: 1,
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "image-value",
|
|
126
|
-
label: "Upload Image",
|
|
127
|
-
type: "upload",
|
|
128
|
-
width: 5,
|
|
129
|
-
metaType: "text",
|
|
130
|
-
datatype: "string",
|
|
131
|
-
required: true,
|
|
132
|
-
fluid: true,
|
|
133
|
-
styling: "semantic",
|
|
134
|
-
order: 1,
|
|
135
|
-
disabled: false,
|
|
136
|
-
customComponent: true,
|
|
137
|
-
submitAction: "onUpload",
|
|
138
|
-
supportedEvents: [
|
|
139
|
-
"onUpload",
|
|
140
|
-
],
|
|
141
|
-
}],
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
rowClassName: "wechat-richmedia-row",
|
|
145
|
-
cols: [
|
|
146
|
-
{
|
|
147
|
-
id: "cover-abstract-label",
|
|
148
|
-
metaType: "label",
|
|
149
|
-
value: "Cover abstract",
|
|
150
|
-
primitive: true,
|
|
151
|
-
dynamicTab: false,
|
|
152
|
-
type: "div",
|
|
153
|
-
width: 4,
|
|
154
|
-
style: {
|
|
155
|
-
backgroundColor: "white",
|
|
156
|
-
textAlign: "left",
|
|
157
|
-
color: "#333333",
|
|
158
|
-
lineHeight: "24px",
|
|
159
|
-
fontSize: "14px",
|
|
160
|
-
fontFamily: "open-sans",
|
|
161
|
-
fontStyle: "normal",
|
|
162
|
-
},
|
|
163
|
-
onlyDisplay: true,
|
|
164
|
-
colStyle: {
|
|
165
|
-
flex: 1,
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
id: "cover-abstract-value",
|
|
170
|
-
label: "Cover abstract",
|
|
171
|
-
type: "input",
|
|
172
|
-
metaType: "text",
|
|
173
|
-
datatype: "string",
|
|
174
|
-
required: true,
|
|
175
|
-
width: 16,
|
|
176
|
-
placeholder: "Please input cover abstract",
|
|
177
|
-
fluid: true,
|
|
178
|
-
styling: "semantic",
|
|
179
|
-
order: 1,
|
|
180
|
-
disabled: false,
|
|
181
|
-
customComponent: false,
|
|
182
|
-
supportedEvents: [
|
|
183
|
-
"onChange",
|
|
184
|
-
],
|
|
185
|
-
errorMessage: "This field is required!",
|
|
186
|
-
}],
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
rowClassName: "wechat-richmedia-row",
|
|
190
|
-
cols: [
|
|
191
|
-
{
|
|
192
|
-
id: "source-link-label",
|
|
193
|
-
metaType: "label",
|
|
194
|
-
value: "Source link",
|
|
195
|
-
primitive: true,
|
|
196
|
-
dynamicTab: false,
|
|
197
|
-
type: "div",
|
|
198
|
-
width: 4,
|
|
199
|
-
style: {
|
|
200
|
-
backgroundColor: "white",
|
|
201
|
-
textAlign: "left",
|
|
202
|
-
color: "#333333",
|
|
203
|
-
lineHeight: "24px",
|
|
204
|
-
fontSize: "14px",
|
|
205
|
-
fontFamily: "open-sans",
|
|
206
|
-
fontStyle: "normal",
|
|
207
|
-
},
|
|
208
|
-
onlyDisplay: true,
|
|
209
|
-
colStyle: {
|
|
210
|
-
flex: 1,
|
|
211
|
-
},
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
id: "source-link-value",
|
|
215
|
-
label: "Cover abstract",
|
|
216
|
-
type: "input",
|
|
217
|
-
metaType: "text",
|
|
218
|
-
datatype: "string",
|
|
219
|
-
required: true,
|
|
220
|
-
width: 16,
|
|
221
|
-
placeholder: "Please input source link",
|
|
222
|
-
fluid: true,
|
|
223
|
-
styling: "semantic",
|
|
224
|
-
order: 1,
|
|
225
|
-
disabled: false,
|
|
226
|
-
customComponent: false,
|
|
227
|
-
supportedEvents: [
|
|
228
|
-
"onChange",
|
|
229
|
-
],
|
|
230
|
-
errorMessage: "This field is required!",
|
|
231
|
-
}],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
rowClassName: "wechat-richmedia-row",
|
|
235
|
-
cols: [
|
|
236
|
-
{
|
|
237
|
-
id: "content-label",
|
|
238
|
-
metaType: "label",
|
|
239
|
-
value: "Content",
|
|
240
|
-
primitive: true,
|
|
241
|
-
dynamicTab: false,
|
|
242
|
-
type: "div",
|
|
243
|
-
width: 4,
|
|
244
|
-
style: {
|
|
245
|
-
backgroundColor: "white",
|
|
246
|
-
textAlign: "left",
|
|
247
|
-
color: "#333333",
|
|
248
|
-
lineHeight: "24px",
|
|
249
|
-
fontSize: "14px",
|
|
250
|
-
fontFamily: "open-sans",
|
|
251
|
-
fontStyle: "normal",
|
|
252
|
-
},
|
|
253
|
-
onlyDisplay: true,
|
|
254
|
-
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
id: "content-value",
|
|
258
|
-
label: "Content",
|
|
259
|
-
type: "textarea",
|
|
260
|
-
metaType: "text",
|
|
261
|
-
datatype: "string",
|
|
262
|
-
required: true,
|
|
263
|
-
errorMessage: "This field is required!",
|
|
264
|
-
placeholder: "Please input content",
|
|
265
|
-
fluid: false,
|
|
266
|
-
styling: "semantic",
|
|
267
|
-
onlyDisplay: false,
|
|
268
|
-
width: 16,
|
|
269
|
-
disabled: false,
|
|
270
|
-
autosize: true,
|
|
271
|
-
autosizeParams: {
|
|
272
|
-
maxRows: 18,
|
|
273
|
-
minRows: 3,
|
|
274
|
-
},
|
|
275
|
-
order: 2,
|
|
276
|
-
customComponent: true,
|
|
277
|
-
supportedEvents: [
|
|
278
|
-
"onChange",
|
|
279
|
-
],
|
|
280
|
-
}],
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
rowClassName: "wechat-richmedia-row",
|
|
284
|
-
cols: [
|
|
285
|
-
{
|
|
286
|
-
id: "show-cover-pic-label",
|
|
287
|
-
metaType: "label",
|
|
288
|
-
value: "Show cover picture",
|
|
289
|
-
primitive: true,
|
|
290
|
-
dynamicTab: false,
|
|
291
|
-
type: "div",
|
|
292
|
-
width: 4,
|
|
293
|
-
style: {
|
|
294
|
-
backgroundColor: "white",
|
|
295
|
-
textAlign: "left",
|
|
296
|
-
color: "#333333",
|
|
297
|
-
lineHeight: "24px",
|
|
298
|
-
fontSize: "14px",
|
|
299
|
-
fontFamily: "open-sans",
|
|
300
|
-
fontStyle: "normal",
|
|
301
|
-
},
|
|
302
|
-
offset: 0,
|
|
303
|
-
onlyDisplay: true,
|
|
304
|
-
colStyle: {
|
|
305
|
-
flex: 1,
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
id: "show-cover-pic-value",
|
|
310
|
-
supportedEvents: [
|
|
311
|
-
"onChange",
|
|
312
|
-
],
|
|
313
|
-
type: "checkbox",
|
|
314
|
-
metaType: "text",
|
|
315
|
-
datatype: "boolean",
|
|
316
|
-
required: true,
|
|
317
|
-
fluid: true,
|
|
318
|
-
styling: "semantic",
|
|
319
|
-
order: 1,
|
|
320
|
-
width: 10,
|
|
321
|
-
offset: 0,
|
|
322
|
-
value: 0,
|
|
323
|
-
onlyDisplay: false,
|
|
324
|
-
disabled: false,
|
|
325
|
-
errorMessage: "Please check if you intend to use unicode characters.",
|
|
326
|
-
customComponent: false,
|
|
327
|
-
}],
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
rowClassName: "wechat-richmedia-row",
|
|
331
|
-
cols: [
|
|
332
|
-
{
|
|
333
|
-
id: "post-comments-label",
|
|
334
|
-
metaType: "label",
|
|
335
|
-
value: "Who can post comments on this content",
|
|
336
|
-
primitive: true,
|
|
337
|
-
dynamicTab: false,
|
|
338
|
-
type: "div",
|
|
339
|
-
width: 4,
|
|
340
|
-
style: {
|
|
341
|
-
backgroundColor: "white",
|
|
342
|
-
textAlign: "left",
|
|
343
|
-
color: "#333333",
|
|
344
|
-
lineHeight: "24px",
|
|
345
|
-
fontSize: "14px",
|
|
346
|
-
fontFamily: "open-sans",
|
|
347
|
-
fontStyle: "normal",
|
|
348
|
-
},
|
|
349
|
-
offset: 0,
|
|
350
|
-
onlyDisplay: true,
|
|
351
|
-
colStyle: {
|
|
352
|
-
flex: 1,
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
id: "post-comments-value",
|
|
357
|
-
type: "radioGroup",
|
|
358
|
-
metaType: "text",
|
|
359
|
-
datatype: "string",
|
|
360
|
-
options: ["No one", "Anyone", "Only followers"],
|
|
361
|
-
value: "No one",
|
|
362
|
-
required: true,
|
|
363
|
-
width: 18,
|
|
364
|
-
errorMessage: "Please select",
|
|
365
|
-
fluid: true,
|
|
366
|
-
styling: "semantic",
|
|
367
|
-
order: 1,
|
|
368
|
-
disabled: false,
|
|
369
|
-
customComponent: false,
|
|
370
|
-
supportedEvents: ["onChange"],
|
|
371
|
-
}],
|
|
372
|
-
}],
|
|
373
|
-
actionFields: [],
|
|
374
|
-
}],
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
channel: "WECHAT",
|
|
378
|
-
module: "Campaigns",
|
|
379
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* WeChat actions
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as types from './constants';
|
|
8
|
-
|
|
9
|
-
export function getDefaultWeChatTemplates(channel, queryParams) {
|
|
10
|
-
return {
|
|
11
|
-
type: types.GET_WECHAT_DEFAULT_TEMPLATES_REQUEST,
|
|
12
|
-
channel,
|
|
13
|
-
queryParams,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export function createTemplate(template) {
|
|
17
|
-
return {
|
|
18
|
-
type: types.CREATE_TEMPLATE_REQUEST, template,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function clearCreateResponse() {
|
|
23
|
-
return {
|
|
24
|
-
type: types.CLEAR_CREATE_RESPONSE_REQUEST,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function getWeCrmAccounts() {
|
|
29
|
-
return {
|
|
30
|
-
type: types.GET_WECRM_ACCOUNTS_REQUEST,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function setWeChatAccount(weChatAccount) {
|
|
35
|
-
return {
|
|
36
|
-
type: types.SET_WECHAT_ACCOUNT,
|
|
37
|
-
weChatAccount,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function getTemplateDetails(id) {
|
|
42
|
-
console.log('getting template', id);
|
|
43
|
-
return {
|
|
44
|
-
type: types.GET_TEMPLATE_DETAILS_REQUEST, id,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export function setTemplateDetails(templateDetails) {
|
|
48
|
-
return {
|
|
49
|
-
type: types.GET_TEMPLATE_DETAILS_SUCCESS,
|
|
50
|
-
data: templateDetails,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* WeChat constants
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_REQUEST = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_REQUEST';
|
|
8
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS';
|
|
9
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_FAILURE = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_FAILURE';
|
|
10
|
-
|
|
11
|
-
export const CREATE_TEMPLATE_REQUEST = 'app/containers/WeChat/CREATE_TEMPLATE_REQUEST';
|
|
12
|
-
export const CREATE_TEMPLATE_SUCCESS = 'app/containers/WeChat/CREATE_TEMPLATE_SUCCESS';
|
|
13
|
-
export const CREATE_TEMPLATE_FAILURE = 'app/containers/WeChat/CREATE_TEMPLATE_FAILURE';
|
|
14
|
-
|
|
15
|
-
export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_REQUEST';
|
|
16
|
-
export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_SUCCESS';
|
|
17
|
-
export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_FAILURE';
|
|
18
|
-
|
|
19
|
-
export const GET_WECRM_ACCOUNTS_REQUEST = "app/containers/WeChat/GET_WECRM_ACCOUNTS_REQUEST";
|
|
20
|
-
export const GET_WECRM_ACCOUNTS_SUCCESS = "app/containers/WeChat/GET_WECRM_ACCOUNTS_SUCCESS";
|
|
21
|
-
export const GET_WECRM_ACCOUNTS_FAILURE = "app/containers/WeChat/GET_WECRM_ACCOUNTS_FAILURE";
|
|
22
|
-
|
|
23
|
-
export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_REQUEST';
|
|
24
|
-
export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_SUCCESS';
|
|
25
|
-
export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_FAILURE';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export const SET_WECHAT_ACCOUNT = "app/containers/WeChat/SET_WECHAT_ACCOUNT";
|