@capillarytech/creatives-library 3.0.35 → 3.1.0
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/assets/noImage.png +0 -0
- package/components/BreadCrumbs/messages.js +1 -1
- package/components/CapTagList/index.js +3 -3
- package/components/CapTagList/messages.js +4 -16
- package/components/Ckeditor/messages.js +1 -1
- package/components/CustomPopOver/index.js +4 -3
- package/components/CustomPopOver/messages.js +1 -5
- package/components/DateFilter/index.js +12 -12
- package/components/DateFilter/messages.js +0 -40
- package/components/DateRange/index.js +4 -5
- package/components/DateRange/messages.js +1 -13
- package/components/Edmeditor/messages.js +1 -1
- package/components/EmailPreview/index.js +4 -4
- package/components/EmailPreview/messages.js +2 -18
- package/components/Footer/messages.js +1 -1
- package/components/FormBuilder/index.js +19 -15
- package/components/FormBuilder/messages.js +1 -33
- package/components/Header/messages.js +4 -4
- package/components/ImagePreview/index.js +1 -1
- package/components/ImagePreview/messages.js +1 -5
- package/components/PageHeader/messages.js +1 -1
- package/components/PreviewSideBar/index.js +2 -2
- package/components/PreviewSideBar/messages.js +6 -14
- package/components/Sidebar/messages.js +3 -3
- package/components/SmsTest/index.js +4 -6
- package/components/SmsTest/messages.js +1 -9
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +3 -3
- package/components/TemplatePreview/index.js +10 -11
- package/components/TemplatePreview/messages.js +7 -23
- package/components/Toastr/messages.js +1 -1
- package/components/ToastrMessage/index.js +1 -4
- package/components/ToastrMessage/messages.js +1 -5
- package/components/TopBar/messages.js +1 -1
- package/config/app.js +0 -2
- package/containers/Assets/Gallery/messages.js +20 -20
- package/containers/Cap/index.js +5 -5
- package/containers/Dashboard/index.js +2 -2
- package/containers/Dashboard/messages.js +1 -1
- package/containers/Ebill/index.js +1 -1
- package/containers/Ebill/messages.js +16 -20
- package/containers/Email/index.js +24 -24
- package/containers/Email/messages.js +59 -107
- package/containers/Line/Create/index.js +7 -7
- package/containers/Line/Create/messages.js +42 -58
- package/containers/Line/Edit/index.js +14 -14
- package/containers/Line/Edit/messages.js +38 -58
- package/containers/Login/components/LoginForm/index.js +7 -10
- package/containers/Login/components/LoginForm/messages.js +3 -15
- package/containers/Login/index.js +1 -1
- package/containers/Login/messages.js +3 -7
- package/containers/MobilePush/Create/index.js +45 -45
- package/containers/MobilePush/Create/messages.js +75 -111
- package/containers/MobilePush/Edit/index.js +45 -45
- package/containers/MobilePush/Edit/messages.js +83 -100
- package/containers/NotFoundPage/messages.js +1 -1
- package/containers/Sms/Create/index.js +8 -7
- package/containers/Sms/Create/messages.js +19 -43
- package/containers/Sms/Edit/index.js +4 -4
- package/containers/Sms/Edit/messages.js +20 -36
- package/containers/TagList/messages.js +1 -1
- package/containers/Templates/index.js +19 -20
- package/containers/Templates/messages.js +64 -136
- package/containers/TestPage/messages.js +1 -1
- package/containers/Testv2/index.js +2 -2
- package/containers/Testv2/messages.js +1 -9
- package/containers/WeChat/MapTemplates/index.js +10 -10
- package/containers/WeChat/MapTemplates/messages.js +17 -49
- package/containers/WeChat/RichmediaTemplates/Create/messages.js +33 -33
- package/containers/WeChat/RichmediaTemplates/Edit/messages.js +1 -1
- package/containers/WeChat/RichmediaTemplates/View/index.js +2 -2
- package/containers/WeChat/RichmediaTemplates/View/messages.js +1 -9
- package/index.js +20 -8
- package/package.json +4 -1
- package/routes.js +16 -2
- package/services/api.js +2 -17
- package/services/getSchema.js +4 -1
- package/translations/en.json +360 -1396
- package/translations/zh.json +381 -1417
- package/utils/smsCharCountV2.js +10 -26
- package/v2Components/BreadCrumbs/messages.js +1 -1
- package/v2Components/CallTaskPreview/messages.js +1 -1
- package/v2Components/CapTagList/index.js +5 -6
- package/v2Components/CapTagList/messages.js +4 -24
- package/v2Components/Ckeditor/index.js +0 -1
- package/v2Components/Ckeditor/messages.js +1 -1
- package/v2Components/CmsTemplatesComponent/messages.js +2 -2
- package/v2Components/CustomPopOver/index.js +2 -4
- package/v2Components/CustomPopOver/messages.js +1 -5
- 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/messages.js +1 -1
- package/v2Components/EmailPreview/index.js +2 -2
- package/v2Components/EmailPreview/messages.js +3 -11
- package/v2Components/EmailPreviewV2/index.js +1 -1
- package/v2Components/EmailPreviewV2/messages.js +9 -13
- package/v2Components/Footer/messages.js +1 -1
- package/v2Components/FormBuilder/_formBuilder.scss +19 -0
- package/v2Components/FormBuilder/index.js +58 -27
- package/v2Components/FormBuilder/messages.js +1 -49
- package/v2Components/Header/index.js +2 -2
- package/v2Components/Header/messages.js +4 -4
- package/v2Components/ImagePreview/index.js +2 -3
- package/v2Components/ImagePreview/messages.js +1 -5
- package/v2Components/MobilePushPreviewV2/index.js +5 -2
- package/v2Components/MobilePushPreviewV2/messages.js +1 -9
- package/v2Components/NavigationBar/messages.js +1 -1
- package/v2Components/NewCallTask/messages.js +5 -5
- 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/PreviewSideBar/messages.js +6 -6
- 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/SmsEditor/index.js +55 -0
- package/v2Components/SmsEditor/tests/index.test.js +10 -0
- package/v2Components/SmsTest/index.js +4 -6
- package/v2Components/SmsTest/messages.js +1 -9
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +2 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +18 -28
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +3 -3
- package/v2Components/TemplatePreview/_templatePreview.scss +0 -9
- package/v2Components/TemplatePreview/index.js +16 -35
- package/v2Components/TemplatePreview/messages.js +7 -23
- package/v2Components/Toastr/messages.js +1 -1
- package/v2Components/ToastrMessage/index.js +2 -3
- package/v2Components/ToastrMessage/messages.js +1 -5
- package/v2Components/TopBar/_topbar.scss +46 -0
- package/v2Components/TopBar/messages.js +7 -7
- package/v2Containers/App/constants.js +0 -11
- package/v2Containers/Assets/Gallery/messages.js +24 -24
- package/v2Containers/CallTask/messages.js +6 -6
- package/v2Containers/Cap/actions.js +0 -1
- package/v2Containers/Cap/index.js +9 -6
- package/v2Containers/Cap/messsages.js +15 -19
- package/v2Containers/Cap/sagas.js +8 -1
- package/v2Containers/ChannelTemplates/messages.js +1 -1
- package/v2Containers/CreativesContainer/SlideBoxContent.js +39 -1
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +7 -1
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +21 -3
- package/v2Containers/CreativesContainer/index.js +95 -50
- package/v2Containers/CreativesContainer/index.scss +15 -0
- package/v2Containers/CreativesContainer/messages.js +12 -16
- package/v2Containers/Dashboard/index.js +1 -2
- package/v2Containers/Dashboard/messages.js +1 -1
- package/v2Containers/Ebill/index.js +1 -1
- package/v2Containers/Ebill/messages.js +16 -20
- package/v2Containers/Email/index.js +20 -20
- package/v2Containers/Email/messages.js +61 -101
- package/v2Containers/EmailWrapper/index.js +44 -64
- package/v2Containers/EmailWrapper/messages.js +12 -12
- package/v2Containers/Line/Create/index.js +3 -3
- package/v2Containers/Line/Create/messages.js +41 -53
- package/v2Containers/Line/Edit/index.js +10 -10
- package/v2Containers/Line/Edit/messages.js +39 -55
- package/v2Containers/Login/components/LoginForm/index.js +6 -9
- package/v2Containers/Login/components/LoginForm/messages.js +3 -15
- package/v2Containers/Login/index.js +1 -1
- package/v2Containers/Login/messages.js +3 -7
- package/v2Containers/MobilePush/Create/_mobilePushCreate.scss +3 -0
- package/v2Containers/MobilePush/Create/index.js +33 -33
- package/v2Containers/MobilePush/Create/messages.js +81 -109
- package/v2Containers/MobilePush/Edit/_mobilePushCreate.scss +3 -0
- package/v2Containers/MobilePush/Edit/index.js +22 -22
- package/v2Containers/MobilePush/Edit/messages.js +79 -95
- package/v2Containers/MobilePush/initialSchema.js +1 -2
- package/v2Containers/MobilepushWrapper/messages.js +5 -5
- package/v2Containers/NotFoundPage/messages.js +1 -1
- package/v2Containers/Sms/Create/index.js +6 -6
- package/v2Containers/Sms/Create/messages.js +21 -41
- package/v2Containers/Sms/Edit/index.js +6 -6
- package/v2Containers/Sms/Edit/messages.js +20 -36
- package/v2Containers/TagList/messages.js +1 -1
- package/v2Containers/Templates/_templates.scss +31 -5
- package/v2Containers/Templates/index.js +243 -248
- package/v2Containers/Templates/messages.js +7 -15
- package/v2Containers/Templates/sagas.js +0 -1
- package/v2Containers/TemplatesV2/_templatesV2.scss +5 -0
- package/v2Containers/TemplatesV2/index.js +4 -1
- package/v2Containers/TemplatesV2/messages.js +5 -29
- package/v2Containers/TestPage/messages.js +1 -1
- package/v2Containers/Testv2/index.js +2 -2
- package/v2Containers/Testv2/messages.js +1 -9
- package/v2Containers/WeChat/MapTemplates/_mapTemplates.scss +16 -0
- package/v2Containers/WeChat/MapTemplates/actions.js +4 -2
- package/v2Containers/WeChat/MapTemplates/index.js +800 -872
- package/v2Containers/WeChat/MapTemplates/initialSchema.js +184 -0
- package/v2Containers/WeChat/MapTemplates/messages.js +19 -43
- package/v2Containers/WeChat/MapTemplates/sagas.js +6 -2
- package/v2Containers/WeChat/MapTemplates/selectors.js +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +118 -28
- package/v2Containers/WeChat/RichmediaTemplates/Create/actions.js +3 -1
- package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +262 -306
- package/v2Containers/WeChat/RichmediaTemplates/Create/messages.js +43 -95
- package/v2Containers/WeChat/RichmediaTemplates/Create/reducer.js +2 -1
- package/v2Containers/WeChat/RichmediaTemplates/Create/richmediaschema.js +113 -246
- package/v2Containers/WeChat/RichmediaTemplates/Create/sagas.js +5 -2
- package/v2Containers/WeChat/RichmediaTemplates/Create/selectors.js +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/Edit/actions.js +2 -2
- package/v2Containers/WeChat/RichmediaTemplates/Edit/index.js +11 -10
- package/v2Containers/WeChat/RichmediaTemplates/Edit/messages.js +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/Edit/reducer.js +1 -0
- package/v2Containers/WeChat/RichmediaTemplates/Edit/sagas.js +4 -2
- package/v2Containers/WeChat/RichmediaTemplates/Edit/selectors.js +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/View/messages.js +1 -9
- package/v2Containers/WeChat/Wrapper/_wrapper.scss +0 -0
- package/v2Containers/WeChat/Wrapper/constants.js +5 -0
- package/v2Containers/WeChat/Wrapper/index.js +194 -0
- package/v2Containers/WeChat/Wrapper/messages.js +21 -0
- package/v2Containers/WeChat/helper.js +12 -0
- package/containers/Cap/messages.js +0 -75
- package/v2Containers/Cap/messages.js +0 -75
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export const response = {
|
|
2
|
+
metaEntities: [
|
|
3
|
+
{
|
|
4
|
+
_id: "5a29d0759f601644d4fbf8ec",
|
|
5
|
+
type: "LAYOUT",
|
|
6
|
+
definition: {
|
|
7
|
+
module: "Campaigns",
|
|
8
|
+
channel: "WECHAT",
|
|
9
|
+
containers: [
|
|
10
|
+
|
|
11
|
+
],
|
|
12
|
+
standalone: {
|
|
13
|
+
sections: [
|
|
14
|
+
{
|
|
15
|
+
childSections: [
|
|
16
|
+
{
|
|
17
|
+
inputFields: [
|
|
18
|
+
{
|
|
19
|
+
cols: [],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
type: "multicols",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
childSections: [
|
|
26
|
+
{
|
|
27
|
+
childSections: [
|
|
28
|
+
{
|
|
29
|
+
inputFields: [
|
|
30
|
+
{
|
|
31
|
+
supportedEvents: [
|
|
32
|
+
"onSelect",
|
|
33
|
+
],
|
|
34
|
+
standalone: true,
|
|
35
|
+
customComponent: false,
|
|
36
|
+
offSet: 6,
|
|
37
|
+
width: 19,
|
|
38
|
+
order: 1,
|
|
39
|
+
styling: "semantic",
|
|
40
|
+
style: {
|
|
41
|
+
display: "none",
|
|
42
|
+
marginBottom: "16px",
|
|
43
|
+
fontStyle: "normal",
|
|
44
|
+
fontFamily: "open-sans",
|
|
45
|
+
fontSize: "14px",
|
|
46
|
+
},
|
|
47
|
+
fluid: true,
|
|
48
|
+
required: true,
|
|
49
|
+
datatype: "string",
|
|
50
|
+
metaType: "text",
|
|
51
|
+
options: [
|
|
52
|
+
|
|
53
|
+
],
|
|
54
|
+
type: "select",
|
|
55
|
+
placeholder: "Select Wechat Template",
|
|
56
|
+
labelStyle: {
|
|
57
|
+
display: "none",
|
|
58
|
+
padding: ".5em .833em",
|
|
59
|
+
fontStyle: "normal",
|
|
60
|
+
fontFamily: "open-sans",
|
|
61
|
+
fontWeight: "400",
|
|
62
|
+
fontSize: "14px",
|
|
63
|
+
lineHeight: "24px",
|
|
64
|
+
color: "#333333",
|
|
65
|
+
textAlign: "left",
|
|
66
|
+
backgroundColor: "white",
|
|
67
|
+
},
|
|
68
|
+
id: "wechat-accounts",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
supportedEvents: [
|
|
72
|
+
"onSelect",
|
|
73
|
+
],
|
|
74
|
+
standalone: true,
|
|
75
|
+
customComponent: false,
|
|
76
|
+
offSet: 6,
|
|
77
|
+
width: 23,
|
|
78
|
+
order: 1,
|
|
79
|
+
styling: "semantic",
|
|
80
|
+
style: {
|
|
81
|
+
display: "none",
|
|
82
|
+
},
|
|
83
|
+
disabled: false,
|
|
84
|
+
fluid: true,
|
|
85
|
+
required: true,
|
|
86
|
+
datatype: "string",
|
|
87
|
+
metaType: "text",
|
|
88
|
+
options: [
|
|
89
|
+
|
|
90
|
+
],
|
|
91
|
+
// type: "select",
|
|
92
|
+
placeholder: "Select Wechat Template",
|
|
93
|
+
// label: "Template",
|
|
94
|
+
id: "wechat-template",
|
|
95
|
+
labelStyle: {
|
|
96
|
+
display: 'none',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
type: "col-label",
|
|
101
|
+
},
|
|
102
|
+
// {
|
|
103
|
+
// type: "multicols",
|
|
104
|
+
// inputFields: [
|
|
105
|
+
// {
|
|
106
|
+
// cols: [
|
|
107
|
+
|
|
108
|
+
// ],
|
|
109
|
+
// },
|
|
110
|
+
// ],
|
|
111
|
+
// },
|
|
112
|
+
],
|
|
113
|
+
type: "parent",
|
|
114
|
+
width: 15,
|
|
115
|
+
colStyle: {
|
|
116
|
+
height: "70vh",
|
|
117
|
+
paddingTop: "16px",
|
|
118
|
+
overflow: "auto",
|
|
119
|
+
marginTop: "-32px",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputFields: [
|
|
124
|
+
{
|
|
125
|
+
cols: [
|
|
126
|
+
{
|
|
127
|
+
channel: "WECHAT",
|
|
128
|
+
offset: 7,
|
|
129
|
+
onlyDisplay: true,
|
|
130
|
+
width: 5,
|
|
131
|
+
order: 1,
|
|
132
|
+
styling: "semantic",
|
|
133
|
+
fluid: true,
|
|
134
|
+
required: true,
|
|
135
|
+
metaType: "preview",
|
|
136
|
+
content: "",
|
|
137
|
+
style: {
|
|
138
|
+
overflowX: "hidden",
|
|
139
|
+
},
|
|
140
|
+
customStyling: {
|
|
141
|
+
overflowX: "hidden",
|
|
142
|
+
padding: "0",
|
|
143
|
+
},
|
|
144
|
+
charCounterEnabled: false,
|
|
145
|
+
customComponent: true,
|
|
146
|
+
type: "sms-preview",
|
|
147
|
+
id: "sms-preview",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
colStyle: {
|
|
153
|
+
height: "100%",
|
|
154
|
+
paddingTop: "16px",
|
|
155
|
+
marginTop: "-60px",
|
|
156
|
+
},
|
|
157
|
+
type: "multicols",
|
|
158
|
+
width: 8,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
rowStyle: {
|
|
162
|
+
marginTop: "16px",
|
|
163
|
+
height: "100%",
|
|
164
|
+
},
|
|
165
|
+
type: "parent",
|
|
166
|
+
width: 24,
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
rowStyle: {
|
|
170
|
+
height: "100%",
|
|
171
|
+
},
|
|
172
|
+
width: 24,
|
|
173
|
+
type: "parent",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
isActive: true,
|
|
179
|
+
updatedBy: 15000449,
|
|
180
|
+
createdAt: "2017-12-07T23:36:21.272Z",
|
|
181
|
+
updatedAt: "2017-12-21T09:56:59.217Z",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
};
|
|
@@ -7,99 +7,75 @@ import { defineMessages } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
export default defineMessages({
|
|
9
9
|
"header": {
|
|
10
|
-
id: '
|
|
10
|
+
id: 'app.containers.WeChat.header',
|
|
11
11
|
defaultMessage: 'WeChat',
|
|
12
12
|
},
|
|
13
13
|
'Template mapping': {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'app.containers.WeChat.templateMapping',
|
|
15
15
|
defaultMessage: 'Template mapping',
|
|
16
16
|
},
|
|
17
17
|
'Discard': {
|
|
18
|
-
id: '
|
|
18
|
+
id: 'app.containers.WeChat.discard',
|
|
19
19
|
defaultMessage: 'Discard',
|
|
20
20
|
},
|
|
21
21
|
'Cancel': {
|
|
22
|
-
id: '
|
|
22
|
+
id: 'app.containers.WeChat.cancel',
|
|
23
23
|
defaultMessage: 'Cancel',
|
|
24
24
|
},
|
|
25
25
|
'Save': {
|
|
26
|
-
id: '
|
|
26
|
+
id: 'app.containers.WeChat.save',
|
|
27
27
|
defaultMessage: 'Save',
|
|
28
28
|
},
|
|
29
29
|
'Account Id': {
|
|
30
|
-
id: '
|
|
30
|
+
id: 'app.containers.WeChat.accountId',
|
|
31
31
|
defaultMessage: 'Account id',
|
|
32
32
|
},
|
|
33
33
|
'Select Wechat Account': {
|
|
34
|
-
id: '
|
|
34
|
+
id: 'app.containers.WeChat.selectWechatAccount',
|
|
35
35
|
defaultMessage: 'Select wechat account',
|
|
36
36
|
},
|
|
37
37
|
'Template': {
|
|
38
|
-
id: '
|
|
38
|
+
id: 'app.containers.WeChat.template',
|
|
39
39
|
defaultMessage: 'Template',
|
|
40
40
|
},
|
|
41
41
|
'Select Wechat Template': {
|
|
42
|
-
id: '
|
|
42
|
+
id: 'app.containers.WeChat.selectWechatTemplate',
|
|
43
43
|
defaultMessage: 'Select wechat template',
|
|
44
44
|
},
|
|
45
45
|
'Link': {
|
|
46
|
-
id: '
|
|
46
|
+
id: 'app.containers.WeChat.link',
|
|
47
47
|
defaultMessage: 'Link',
|
|
48
48
|
},
|
|
49
|
-
'
|
|
50
|
-
id: '
|
|
49
|
+
'Is this internal url': {
|
|
50
|
+
id: 'app.containers.WeChat.isInternalUrl',
|
|
51
51
|
defaultMessage: 'Is this internal url',
|
|
52
52
|
},
|
|
53
53
|
"Tags": {
|
|
54
|
-
id: '
|
|
54
|
+
id: 'app.containers.WeChat.tagsLabel',
|
|
55
55
|
defaultMessage: "Tags",
|
|
56
56
|
},
|
|
57
57
|
"gettingTemplateData": {
|
|
58
|
-
id: '
|
|
58
|
+
id: 'app.containers.WeChat.gettingTemplateData',
|
|
59
59
|
defaultMessage: "Getting template data..",
|
|
60
60
|
},
|
|
61
61
|
"wechatEditSuccess": {
|
|
62
|
-
id: '
|
|
62
|
+
id: 'app.containers.WeChat.wechatEditSuccess',
|
|
63
63
|
defaultMessage: "WeChat template unmapped successfully",
|
|
64
64
|
},
|
|
65
65
|
"wechatCreateSuccess": {
|
|
66
|
-
id: '
|
|
66
|
+
id: 'app.containers.WeChat.wechatCreateSuccess',
|
|
67
67
|
defaultMessage: "WeChat template mapped successfully",
|
|
68
68
|
},
|
|
69
69
|
"somethingWentWrong": {
|
|
70
|
-
id: '
|
|
70
|
+
id: 'app.containers.WeChat.somethingWentWrong',
|
|
71
71
|
defaultMessage: "Something went wrong!!",
|
|
72
72
|
},
|
|
73
|
-
"alertMessage": {
|
|
74
|
-
id: 'creatives.containersV2.WeChat.alertMessage',
|
|
75
|
-
defaultMessage: "Alert",
|
|
76
|
-
},
|
|
77
|
-
"goBackTemporaryChangesLost": {
|
|
78
|
-
id: 'creatives.containersV2.WeChat.goBackTemporaryChangesLost',
|
|
79
|
-
defaultMessage: "Do you really want to go back? All your temporary changes will be lost!",
|
|
80
|
-
},
|
|
81
|
-
"hasValidContent": {
|
|
82
|
-
id: 'creatives.containersV2.WeChat.hasValidContent',
|
|
83
|
-
defaultMessage: "has valid content.",
|
|
84
|
-
},
|
|
85
|
-
"linkCantEmpty": {
|
|
86
|
-
id: 'creatives.containersV2.WeChat.linkCantEmpty',
|
|
87
|
-
defaultMessage: "has valid content.",
|
|
88
|
-
},
|
|
89
73
|
"select": {
|
|
90
|
-
id: '
|
|
74
|
+
id: 'app.containers.WeChat.select',
|
|
91
75
|
defaultMessage: 'Select',
|
|
92
76
|
},
|
|
93
77
|
"newWechat": {
|
|
94
|
-
id: '
|
|
78
|
+
id: 'app.containers.WeChat.newWechat',
|
|
95
79
|
defaultMessage: 'New wechat',
|
|
96
80
|
},
|
|
97
|
-
"linkErrorMessage": {
|
|
98
|
-
id: 'creatives.containers.WeChat.linkErrorMessage',
|
|
99
|
-
defaultMessage: 'Link cannot be empty.',
|
|
100
|
-
},
|
|
101
|
-
"hasInvalidContent": {
|
|
102
|
-
id: 'creatives.containers.WeChat.hasInvalidContent',
|
|
103
|
-
defaultMessage: 'has invalid content.',
|
|
104
|
-
},
|
|
105
81
|
});
|
|
@@ -13,12 +13,16 @@ export function* getDefaultWeChatTemplates(params) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function* createTemplate(template) {
|
|
16
|
+
export function* createTemplate({template, callback}) {
|
|
17
17
|
try {
|
|
18
|
-
const result = yield call(Api.createWeChatTemplate, template);
|
|
18
|
+
const result = yield call(Api.createWeChatTemplate, {template});
|
|
19
|
+
if (callback) {
|
|
20
|
+
yield call(callback, result.response);
|
|
21
|
+
}
|
|
19
22
|
// const sidebar = result.response.sidebar;
|
|
20
23
|
yield put({ type: types.CREATE_TEMPLATE_SUCCESS, data: result.response, statusCode: result.status ? result.status.code : '' });
|
|
21
24
|
} catch (error) {
|
|
25
|
+
console.log("error in sage", error);
|
|
22
26
|
yield put({ type: types.CREATE_TEMPLATE_FAILURE, error });
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -3,7 +3,7 @@ import { createSelector } from 'reselect';
|
|
|
3
3
|
/**
|
|
4
4
|
* Direct selector to the weChat state domain
|
|
5
5
|
*/
|
|
6
|
-
const selectWeChatDomain = () => (state) => state.get('
|
|
6
|
+
const selectWeChatDomain = () => (state) => state.get('weChatMapTemplate');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Other specific selectors
|
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
.hover-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
1
|
.richmedia-icons {
|
|
5
2
|
display: none;
|
|
6
3
|
position: absolute;
|
|
7
4
|
top: 50%;
|
|
8
5
|
}
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
.richmedia-card-clicked {
|
|
25
|
-
border: 2px solid #1D5B96!important;
|
|
26
|
-
}
|
|
27
|
-
.richmedia-card-rectangle-clicked {
|
|
28
|
-
border: 2px solid #1D5B96!important;
|
|
29
|
-
}
|
|
30
|
-
.hover-container .richmedia-card, .hover-container .richmedia-card-rectangle {
|
|
31
|
-
border: 1px solid #707070;
|
|
6
|
+
.richmedia-card-clicked::before, .richmedia-card-rectangle-clicked::before{
|
|
7
|
+
content: "";
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: -webkit-calc(100% - 5px); /*may require prefix for old browser support*/
|
|
10
|
+
left: calc(100% - 5px); /*i.e. half the height*/
|
|
11
|
+
top: calc((100% - 6px)/2);
|
|
12
|
+
top: -webkit-calc((100% - 6px)/2);
|
|
13
|
+
height: 12px;
|
|
14
|
+
width: 12px;
|
|
15
|
+
background: #dfe2e7;
|
|
16
|
+
transform: rotate(45deg);
|
|
17
|
+
border-top:inherit;
|
|
18
|
+
border-right:inherit;
|
|
19
|
+
box-shadow:inherit;
|
|
32
20
|
}
|
|
33
21
|
.hover-icons {
|
|
34
22
|
font-size: 20px;
|
|
@@ -36,6 +24,108 @@
|
|
|
36
24
|
.richmedia-container {
|
|
37
25
|
height: 100%;
|
|
38
26
|
overflow-y: auto;
|
|
27
|
+
.richmedia-card-rectangle {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
.richmedia-card {
|
|
31
|
+
padding: 8px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
.cap-card-v2 {
|
|
34
|
+
margin-right: 8px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.component-with-label-label {
|
|
38
|
+
margin-bottom: 0px;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
}
|
|
42
|
+
.component-with-label-inductive-text {
|
|
43
|
+
color: #5e6c84;
|
|
44
|
+
}
|
|
45
|
+
#post-comments-label {
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
line-height: 20px;
|
|
48
|
+
margin-bottom: 8px;
|
|
49
|
+
}
|
|
50
|
+
.richmedia-template-name {
|
|
51
|
+
.component-with-label-label {
|
|
52
|
+
margin-bottom: 6px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.custom-card {
|
|
56
|
+
padding: 12px;
|
|
57
|
+
background-color: white;
|
|
58
|
+
height: 96px;
|
|
59
|
+
border-bottom-left-radius: 4px;
|
|
60
|
+
border-bottom-right-radius: 4px;
|
|
61
|
+
}
|
|
62
|
+
.custom-image {
|
|
63
|
+
position: relative;
|
|
64
|
+
.name-container {
|
|
65
|
+
position: absolute;
|
|
66
|
+
bottom: 0px;
|
|
67
|
+
height: 44px;
|
|
68
|
+
padding-top: 16px;
|
|
69
|
+
padding-left: 12px;
|
|
70
|
+
color: #ffffff;
|
|
71
|
+
opacity: 0.7;
|
|
72
|
+
width: 100%;
|
|
73
|
+
background-image: linear-gradient(to top, black 0%, transparent 100%);
|
|
74
|
+
border-bottom-left-radius: 4px;
|
|
75
|
+
border-bottom-right-radius: 4px;
|
|
76
|
+
div {
|
|
77
|
+
color: #ffffff;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
img {
|
|
81
|
+
border-top-left-radius: 4px;
|
|
82
|
+
border-top-right-radius: 4px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.custom-image-border-bottom img {
|
|
86
|
+
border-bottom-left-radius: 4px;
|
|
87
|
+
border-bottom-right-radius: 4px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.richmedia-card-container {
|
|
91
|
+
width: 244px;
|
|
92
|
+
margin: 8px;
|
|
93
|
+
height: 56px;
|
|
94
|
+
background-color: white;
|
|
95
|
+
border-radius: 4px;
|
|
96
|
+
display: flex;
|
|
97
|
+
.title {
|
|
98
|
+
padding: 12px;
|
|
99
|
+
padding-top: 20px;
|
|
100
|
+
}
|
|
101
|
+
.image {
|
|
102
|
+
padding: 8px;
|
|
103
|
+
margin-right: 8px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
.richmedia-card-rectangle-clicked, .richmedia-card-clicked {
|
|
107
|
+
border: 1px solid #091e42;
|
|
108
|
+
background-color: #dfe2e7;
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
}
|
|
111
|
+
.card-nav-container {
|
|
112
|
+
border: 1px solid #dfe2e7;
|
|
113
|
+
border-radius: 4px;
|
|
114
|
+
height: 56px;
|
|
115
|
+
width: 20px;
|
|
116
|
+
background: white;
|
|
117
|
+
.cap-icon-v2 {
|
|
118
|
+
color: #091e42;
|
|
119
|
+
}
|
|
120
|
+
.anticon {
|
|
121
|
+
font-size: 14px;
|
|
122
|
+
}
|
|
123
|
+
.disabled-action .cap-icon-v2 {
|
|
124
|
+
cursor: not-allowed;
|
|
125
|
+
color: #b3bac5;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
39
129
|
}
|
|
40
130
|
.template-form-header {
|
|
41
131
|
margin-bottom: 2.5rem;
|
|
@@ -45,7 +135,7 @@
|
|
|
45
135
|
}
|
|
46
136
|
.wechat-richmedia-row {
|
|
47
137
|
margin-bottom: 1.5rem;
|
|
48
|
-
width: 50rem;
|
|
138
|
+
// width: 50rem;
|
|
49
139
|
}
|
|
50
140
|
.overflow-wrap-fields {
|
|
51
141
|
text-overflow: ellipsis;
|
|
@@ -53,5 +143,5 @@
|
|
|
53
143
|
overflow-wrap: break-word;
|
|
54
144
|
display: -webkit-box !important;
|
|
55
145
|
-webkit-box-orient: vertical;
|
|
56
|
-
-webkit-line-clamp:
|
|
146
|
+
-webkit-line-clamp: 1;
|
|
57
147
|
}
|
|
@@ -22,10 +22,12 @@ export function uploadAsset(file, assetType, fileParams, mode, wechatParams, con
|
|
|
22
22
|
uploadId,
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
export function saveTemplate(template) {
|
|
25
|
+
export function saveTemplate(template, callback) {
|
|
26
|
+
console.log("inside saveTemplate action", template, callback);
|
|
26
27
|
return {
|
|
27
28
|
type: types.SAVE_TEMPLATE_REQUEST,
|
|
28
29
|
template,
|
|
30
|
+
callback,
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export function clearContentImageStore() {
|