@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
|
@@ -7,183 +7,167 @@ import { defineMessages } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
export default defineMessages({
|
|
9
9
|
"imageUploadLabel": {
|
|
10
|
-
id: '
|
|
10
|
+
id: 'app.containers.Line.Create.ImageUploadLabel',
|
|
11
11
|
defaultMessage: 'Upload image',
|
|
12
12
|
},
|
|
13
13
|
"Enter template name*": {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'app.containers.Line.Create.enterTemplateNameImportant',
|
|
15
15
|
defaultMessage: 'Enter template name*',
|
|
16
16
|
},
|
|
17
17
|
"Enter template name": {
|
|
18
|
-
id: '
|
|
18
|
+
id: 'app.containers.Line.Create.enterTemplateName',
|
|
19
19
|
defaultMessage: 'Enter template name',
|
|
20
20
|
},
|
|
21
21
|
"Template name cannot be empty": {
|
|
22
|
-
id: '
|
|
22
|
+
id: 'app.containers.Line.Create.templateCantEmpty',
|
|
23
23
|
defaultMessage: 'Template name cannot be empty',
|
|
24
24
|
},
|
|
25
25
|
"Discard Changes": {
|
|
26
|
-
id: '
|
|
26
|
+
id: 'app.containers.Line.Create.discardChanges',
|
|
27
27
|
defaultMessage: 'Discard changes',
|
|
28
28
|
},
|
|
29
29
|
"Cancel": {
|
|
30
|
-
id: '
|
|
30
|
+
id: 'app.containers.Line.Create.cancel',
|
|
31
31
|
defaultMessage: 'Cancel',
|
|
32
32
|
},
|
|
33
33
|
"Save": {
|
|
34
|
-
id: '
|
|
34
|
+
id: 'app.containers.Line.Create.save',
|
|
35
35
|
defaultMessage: 'Save',
|
|
36
36
|
},
|
|
37
37
|
"Select Line Account": {
|
|
38
|
-
id: '
|
|
38
|
+
id: 'app.containers.Line.Create.selectLineAccount',
|
|
39
39
|
defaultMessage: 'Select line account',
|
|
40
40
|
},
|
|
41
41
|
"Account Id": {
|
|
42
|
-
id: '
|
|
42
|
+
id: 'app.containers.Line.Create.accountId',
|
|
43
43
|
defaultMessage: 'Account id',
|
|
44
44
|
},
|
|
45
45
|
"Select Line Template": {
|
|
46
|
-
id: '
|
|
46
|
+
id: 'app.containers.Line.Create.selectLineTemplate',
|
|
47
47
|
defaultMessage: 'Select line template',
|
|
48
48
|
},
|
|
49
49
|
"Template": {
|
|
50
|
-
id: '
|
|
50
|
+
id: 'app.containers.Line.Create.template',
|
|
51
51
|
defaultMessage: 'Template',
|
|
52
52
|
},
|
|
53
53
|
"Title*": {
|
|
54
|
-
id: '
|
|
54
|
+
id: 'app.containers.Line.Create.titleLabel',
|
|
55
55
|
defaultMessage: 'Title*',
|
|
56
56
|
},
|
|
57
57
|
"Title": {
|
|
58
|
-
id: '
|
|
58
|
+
id: 'app.containers.Line.Create.title',
|
|
59
59
|
defaultMessage: 'Title',
|
|
60
60
|
},
|
|
61
61
|
"Please input message title name.": {
|
|
62
|
-
id: '
|
|
62
|
+
id: 'app.containers.Line.Create.titleNameInvalid',
|
|
63
63
|
defaultMessage: 'Please enter the message title',
|
|
64
64
|
},
|
|
65
65
|
"Template message has unsupported/missing tags!": {
|
|
66
|
-
id: '
|
|
66
|
+
id: 'app.containers.Line.Create.messageHasUnsupportedTag',
|
|
67
67
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
68
68
|
},
|
|
69
69
|
"Tags": {
|
|
70
|
-
id: '
|
|
70
|
+
id: 'app.containers.Line.Create.Tags',
|
|
71
71
|
defaultMessage: 'Tags',
|
|
72
72
|
},
|
|
73
73
|
"Message*": {
|
|
74
|
-
id: '
|
|
74
|
+
id: 'app.containers.Line.Create.messageLabel',
|
|
75
75
|
defaultMessage: 'Message*',
|
|
76
76
|
},
|
|
77
77
|
"Message": {
|
|
78
|
-
id: '
|
|
78
|
+
id: 'app.containers.Line.Create.message',
|
|
79
79
|
defaultMessage: 'Message',
|
|
80
80
|
},
|
|
81
81
|
"Please input line template content.": {
|
|
82
|
-
id: '
|
|
82
|
+
id: 'app.containers.Line.Create.inputLineTemplateContent',
|
|
83
83
|
defaultMessage: 'Please enter the message content',
|
|
84
84
|
},
|
|
85
85
|
"Template title has unsupported/missing tags.": {
|
|
86
|
-
id: '
|
|
86
|
+
id: 'app.containers.Line.Create.titleHasUnsupportedTag',
|
|
87
87
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
88
88
|
},
|
|
89
89
|
"Template name cannot be empty.": {
|
|
90
|
-
id: '
|
|
90
|
+
id: 'app.containers.Line.Create.templateNameNotEmpty',
|
|
91
91
|
defaultMessage: 'Please provide a template name ',
|
|
92
92
|
},
|
|
93
93
|
"Message title has unsupported/missing tags!": {
|
|
94
|
-
id: '
|
|
94
|
+
id: 'app.containers.Line.Create.messageTitleWithUnsupportedTag',
|
|
95
95
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
96
96
|
},
|
|
97
97
|
"Image": {
|
|
98
|
-
id: '
|
|
98
|
+
id: 'app.containers.Line.Create.Image',
|
|
99
99
|
defaultMessage: 'Image',
|
|
100
100
|
},
|
|
101
101
|
"Max file size acceptable is 5mb": {
|
|
102
|
-
id: '
|
|
102
|
+
id: 'app.containers.Line.Create.maxUploadFileSize',
|
|
103
103
|
defaultMessage: 'Max file size acceptable is 5mb',
|
|
104
104
|
},
|
|
105
105
|
"Please upload Image": {
|
|
106
|
-
id: '
|
|
106
|
+
id: 'app.containers.Line.Create.pleaseUploadImage',
|
|
107
107
|
defaultMessage: 'Please upload Image',
|
|
108
108
|
},
|
|
109
109
|
"Upload Image": {
|
|
110
|
-
id: '
|
|
110
|
+
id: 'app.containers.Line.Create.uploadImage',
|
|
111
111
|
defaultMessage: 'Upload image',
|
|
112
112
|
},
|
|
113
113
|
"Line Template Created Successfully": {
|
|
114
|
-
id: '
|
|
114
|
+
id: 'app.containers.Line.Create.templateCreatedSuccessfully',
|
|
115
115
|
defaultMessage: 'Line template created successfully',
|
|
116
116
|
},
|
|
117
117
|
"Line Template Edited Successfully": {
|
|
118
|
-
id: '
|
|
118
|
+
id: 'app.containers.Line.Create.templateEditedSuccessfully',
|
|
119
119
|
defaultMessage: 'Line template edited successfully',
|
|
120
120
|
},
|
|
121
121
|
"somethingWentWrong": {
|
|
122
|
-
id: '
|
|
122
|
+
id: 'app.containers.Line.Create.somethingWentWrong',
|
|
123
123
|
defaultMessage: 'Something went wrong!!',
|
|
124
124
|
},
|
|
125
125
|
"Name and Description": {
|
|
126
|
-
id: '
|
|
126
|
+
id: 'app.containers.Line.Create.nameAndDescription',
|
|
127
127
|
defaultMessage: 'Name and description',
|
|
128
128
|
},
|
|
129
129
|
"Button 1": {
|
|
130
|
-
id: '
|
|
130
|
+
id: 'app.containers.Line.Create.button1',
|
|
131
131
|
defaultMessage: 'Button 1',
|
|
132
132
|
},
|
|
133
133
|
"Button 2": {
|
|
134
|
-
id: '
|
|
134
|
+
id: 'app.containers.Line.Create.button2',
|
|
135
135
|
defaultMessage: 'Button 2',
|
|
136
136
|
},
|
|
137
137
|
"File size cannot be more than 1mb": {
|
|
138
|
-
id: '
|
|
138
|
+
id: 'app.containers.Line.Create.uploadFileSizeError',
|
|
139
139
|
defaultMessage: 'File size cannot be more than 1mb',
|
|
140
140
|
},
|
|
141
141
|
"value cannot be empty.": {
|
|
142
|
-
id: '
|
|
142
|
+
id: 'app.containers.Line.Create.valueCantEmpty',
|
|
143
143
|
defaultMessage: 'value cannot be empty.',
|
|
144
144
|
},
|
|
145
|
-
"
|
|
146
|
-
id: '
|
|
145
|
+
"Uploading Image...": {
|
|
146
|
+
id: 'app.containers.Line.Create.uploadingImage',
|
|
147
147
|
defaultMessage: 'Uploading image...',
|
|
148
148
|
},
|
|
149
149
|
"Photo Uploaded Successfully": {
|
|
150
|
-
id: '
|
|
150
|
+
id: 'app.containers.Line.Create.uploadSuccess',
|
|
151
151
|
defaultMessage: 'Photo uploaded successfully',
|
|
152
152
|
},
|
|
153
153
|
"Campaigns": {
|
|
154
|
-
id: '
|
|
154
|
+
id: 'app.containers.Line.Create.Campaigns',
|
|
155
155
|
defaultMessage: 'Campaigns',
|
|
156
156
|
},
|
|
157
157
|
"Creatives": {
|
|
158
|
-
id: '
|
|
158
|
+
id: 'app.containers.Line.Create.Creatives',
|
|
159
159
|
defaultMessage: 'Creatives',
|
|
160
160
|
},
|
|
161
161
|
"Line": {
|
|
162
|
-
id: '
|
|
162
|
+
id: 'app.containers.Line.Create.line',
|
|
163
163
|
defaultMessage: 'Line',
|
|
164
164
|
},
|
|
165
165
|
"Please upload an image to proceed": {
|
|
166
|
-
id: '
|
|
166
|
+
id: 'app.containers.Line.Create.image',
|
|
167
167
|
defaultMessage: 'Please upload an image to proceed',
|
|
168
168
|
},
|
|
169
169
|
"Maximum characters length exceeds": {
|
|
170
|
-
id: '
|
|
170
|
+
id: 'app.containers.Line.Create.line',
|
|
171
171
|
defaultMessage: 'Maximum characters length exceeds',
|
|
172
172
|
},
|
|
173
|
-
"goBackConfirmation": {
|
|
174
|
-
id: 'creatives.containers.Line.Create.goBackConfirmation',
|
|
175
|
-
defaultMessage: "Going back will discard all the changes you've made. Continue?",
|
|
176
|
-
},
|
|
177
|
-
"alertMessage": {
|
|
178
|
-
id: 'creatives.containers.Line.Create.alertMessage',
|
|
179
|
-
defaultMessage: "Alert",
|
|
180
|
-
},
|
|
181
|
-
"templateNotConfigured": {
|
|
182
|
-
id: 'creatives.containers.Line.Create.templateNotConfigured',
|
|
183
|
-
defaultMessage: "template not configured,",
|
|
184
|
-
},
|
|
185
|
-
"savingTemplate": {
|
|
186
|
-
id: 'creatives.containers.Line.Create.savingTemplate',
|
|
187
|
-
defaultMessage: "Saving Template...",
|
|
188
|
-
},
|
|
189
173
|
});
|
|
@@ -81,7 +81,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
81
81
|
injectedTags: {},
|
|
82
82
|
showModal: false,
|
|
83
83
|
eventsMap: map,
|
|
84
|
-
modalContent: {title:
|
|
84
|
+
modalContent: {title: "Alert", body: this.props.intl.formatMessage(messages['template not configured,']), type: 'confirm'},
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
componentWillMount() {
|
|
@@ -655,16 +655,16 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
655
655
|
setModalContent = (type) => {
|
|
656
656
|
if (type === 'ios') {
|
|
657
657
|
const modalContent = {
|
|
658
|
-
title:
|
|
659
|
-
body:
|
|
658
|
+
title: "Alert",
|
|
659
|
+
body: "Android template is not configured. Save without Android template",
|
|
660
660
|
type: 'confirm',
|
|
661
661
|
id: 'ios',
|
|
662
662
|
};
|
|
663
663
|
this.setState({modalContent, showModal: true});
|
|
664
664
|
} else if (type === 'android') {
|
|
665
665
|
const modalContent = {
|
|
666
|
-
title:
|
|
667
|
-
body:
|
|
666
|
+
title: "Alert",
|
|
667
|
+
body: "IOS template is not configured, Save without IOS template",
|
|
668
668
|
type: 'confirm',
|
|
669
669
|
id: 'android',
|
|
670
670
|
};
|
|
@@ -718,8 +718,8 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
718
718
|
this.props.globalActions.addMessageToQueue(message);
|
|
719
719
|
} else {
|
|
720
720
|
const name = data.file.name.split('.');
|
|
721
|
-
|
|
722
|
-
const newFile = new File([
|
|
721
|
+
const blob = data.file.slice(0, -1, 'image');
|
|
722
|
+
const newFile = new File([blob], `${name[0]}${Date.now()}.${name[1]}`, {type: 'image'});
|
|
723
723
|
this.props.actions.uploadAsset(newFile, data.type, data.fileParams);
|
|
724
724
|
}
|
|
725
725
|
};
|
|
@@ -761,8 +761,8 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
761
761
|
moveToTemplates = () => {
|
|
762
762
|
console.log('in move to Templates');
|
|
763
763
|
const modalContent = {
|
|
764
|
-
title:
|
|
765
|
-
body:
|
|
764
|
+
title: "Alert",
|
|
765
|
+
body: "Do you really want to go back? All your temporary changes will be lost!",
|
|
766
766
|
type: 'confirm',
|
|
767
767
|
id: 'template-back-confirm-modal',
|
|
768
768
|
show: true,
|
|
@@ -955,8 +955,8 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
955
955
|
|
|
956
956
|
render() {
|
|
957
957
|
const schema = this.state.schema;
|
|
958
|
-
let tipText = this.props.Edit && ("getTemplateDetailsInProgress" in this.props.Edit && this.props.Edit.getTemplateDetailsInProgress) ?
|
|
959
|
-
tipText = this.props.Edit && ("editTemplateInProgress" in this.props.Edit && this.props.Edit.editTemplateInProgress) ?
|
|
958
|
+
let tipText = this.props.Edit && ("getTemplateDetailsInProgress" in this.props.Edit && this.props.Edit.getTemplateDetailsInProgress) ? 'Getting template details...' : '';
|
|
959
|
+
tipText = this.props.Edit && ("editTemplateInProgress" in this.props.Edit && this.props.Edit.editTemplateInProgress) ? 'Saving Template...' : '';
|
|
960
960
|
const spinning = this.props.Edit.fetchingDefaultTemplates || this.props.Edit.assetUploading || this.state.loading || (this.props.Edit && (("getTemplateDetailsInProgress" in this.props.Edit && this.props.Edit.getTemplateDetailsInProgress) || ("editTemplateInProgress" in this.props.Edit && this.props.Edit.editTemplateInProgress)));
|
|
961
961
|
let tags = this.props.metaEntities && this.props.metaEntities.tags ? this.props.metaEntities.tags.standard : [];
|
|
962
962
|
if (this.props.supportedTags) {
|
|
@@ -969,9 +969,9 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
969
969
|
<Col offset={1}>
|
|
970
970
|
{this.props.location.query.type !== "embedded" &&
|
|
971
971
|
<Breadcrumb>
|
|
972
|
-
<BreadcrumbItem>
|
|
973
|
-
<BreadcrumbItem>
|
|
974
|
-
<BreadcrumbItem>
|
|
972
|
+
<BreadcrumbItem>Campaigns</BreadcrumbItem>
|
|
973
|
+
<BreadcrumbItem>Creatives</BreadcrumbItem>
|
|
974
|
+
<BreadcrumbItem>Mobile Push</BreadcrumbItem>
|
|
975
975
|
</Breadcrumb>
|
|
976
976
|
}
|
|
977
977
|
</Col>
|
|
@@ -7,171 +7,151 @@ import { defineMessages } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
export default defineMessages({
|
|
9
9
|
"imageUploadLabel": {
|
|
10
|
-
id: '
|
|
10
|
+
id: 'app.containers.Line.Edit.ImageUploadLabel',
|
|
11
11
|
defaultMessage: 'Upload image',
|
|
12
12
|
},
|
|
13
13
|
"Enter template name*": {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'app.containers.Line.Edit.enterTemplateNameImportant',
|
|
15
15
|
defaultMessage: 'Enter template name*',
|
|
16
16
|
},
|
|
17
17
|
"Enter template name": {
|
|
18
|
-
id: '
|
|
18
|
+
id: 'app.containers.Line.Edit.enterTemplateName',
|
|
19
19
|
defaultMessage: 'Enter template name',
|
|
20
20
|
},
|
|
21
21
|
"Template name cannot be empty": {
|
|
22
|
-
id: '
|
|
22
|
+
id: 'app.containers.Line.Edit.templateCantEmpty',
|
|
23
23
|
defaultMessage: 'Template name cannot be empty',
|
|
24
24
|
},
|
|
25
25
|
"Discard Changes": {
|
|
26
|
-
id: '
|
|
26
|
+
id: 'app.containers.Line.Edit.discardChanges',
|
|
27
27
|
defaultMessage: 'Discard changes',
|
|
28
28
|
},
|
|
29
29
|
"Cancel": {
|
|
30
|
-
id: '
|
|
30
|
+
id: 'app.containers.Line.Edit.cancel',
|
|
31
31
|
defaultMessage: 'Cancel',
|
|
32
32
|
},
|
|
33
33
|
"Save": {
|
|
34
|
-
id: '
|
|
34
|
+
id: 'app.containers.Line.Edit.save',
|
|
35
35
|
defaultMessage: 'Save',
|
|
36
36
|
},
|
|
37
37
|
"Select Line Template": {
|
|
38
|
-
id: '
|
|
38
|
+
id: 'app.containers.Line.Edit.selectLineTemplate',
|
|
39
39
|
defaultMessage: 'Select line template',
|
|
40
40
|
},
|
|
41
41
|
"Template": {
|
|
42
|
-
id: '
|
|
42
|
+
id: 'app.containers.Line.Edit.template',
|
|
43
43
|
defaultMessage: 'Template',
|
|
44
44
|
},
|
|
45
45
|
"Title*": {
|
|
46
|
-
id: '
|
|
46
|
+
id: 'app.containers.Line.Edit.titleLabel',
|
|
47
47
|
defaultMessage: 'Title*',
|
|
48
48
|
},
|
|
49
49
|
"Title": {
|
|
50
|
-
id: '
|
|
50
|
+
id: 'app.containers.Line.Edit.title',
|
|
51
51
|
defaultMessage: 'Title',
|
|
52
52
|
},
|
|
53
53
|
"Please input message title name.": {
|
|
54
|
-
id: '
|
|
54
|
+
id: 'app.containers.Line.Edit.titleNameInvalid',
|
|
55
55
|
defaultMessage: 'Please enter the message title',
|
|
56
56
|
},
|
|
57
57
|
"Template message has unsupported/missing tags!": {
|
|
58
|
-
id: '
|
|
58
|
+
id: 'app.containers.Line.Edit.messageHasUnsupportedTag',
|
|
59
59
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
60
60
|
},
|
|
61
61
|
"Tags": {
|
|
62
|
-
id: '
|
|
62
|
+
id: 'app.containers.Line.Edit.Tags',
|
|
63
63
|
defaultMessage: 'Tags',
|
|
64
64
|
},
|
|
65
65
|
"Message*": {
|
|
66
|
-
id: '
|
|
66
|
+
id: 'app.containers.Line.Edit.messageLabel',
|
|
67
67
|
defaultMessage: 'Message*',
|
|
68
68
|
},
|
|
69
69
|
"Message": {
|
|
70
|
-
id: '
|
|
70
|
+
id: 'app.containers.Line.Edit.message',
|
|
71
71
|
defaultMessage: 'Message',
|
|
72
72
|
},
|
|
73
73
|
"Please input mobile push template content.": {
|
|
74
|
-
id: '
|
|
74
|
+
id: 'app.containers.Line.Edit.inputLineTemplateContent',
|
|
75
75
|
defaultMessage: 'Please enter the message content',
|
|
76
76
|
},
|
|
77
77
|
"Template title has unsupported/missing tags.": {
|
|
78
|
-
id: '
|
|
78
|
+
id: 'app.containers.Line.Edit.titleHasUnsupportedTag',
|
|
79
79
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
80
80
|
},
|
|
81
81
|
"Template name cannot be empty.": {
|
|
82
|
-
id: '
|
|
82
|
+
id: 'app.containers.Line.Edit.templateNameNotEmpty',
|
|
83
83
|
defaultMessage: 'Please provide a template name ',
|
|
84
84
|
},
|
|
85
85
|
"Message title has unsupported/missing tags!": {
|
|
86
|
-
id: '
|
|
86
|
+
id: 'app.containers.Line.Edit.messageTitleWithUnsupportedTag',
|
|
87
87
|
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
88
88
|
},
|
|
89
89
|
"Image": {
|
|
90
|
-
id: '
|
|
90
|
+
id: 'app.containers.Line.Edit.Image',
|
|
91
91
|
defaultMessage: 'Image',
|
|
92
92
|
},
|
|
93
93
|
"Max file size acceptable is 5mb": {
|
|
94
|
-
id: '
|
|
94
|
+
id: 'app.containers.Line.Edit.maxUploadFileSize',
|
|
95
95
|
defaultMessage: 'Max file size acceptable is 5mb',
|
|
96
96
|
},
|
|
97
97
|
"Please upload Image": {
|
|
98
|
-
id: '
|
|
98
|
+
id: 'app.containers.Line.Edit.pleaseUploadImage',
|
|
99
99
|
defaultMessage: 'Please upload image',
|
|
100
100
|
},
|
|
101
101
|
"Upload Image": {
|
|
102
|
-
id: '
|
|
102
|
+
id: 'app.containers.Line.Edit.uploadImage',
|
|
103
103
|
defaultMessage: 'Upload image',
|
|
104
104
|
},
|
|
105
105
|
"Line Template Edited Successfully": {
|
|
106
|
-
id: '
|
|
106
|
+
id: 'app.containers.Line.Edit.templateEditedSuccessfully',
|
|
107
107
|
defaultMessage: 'Line template edited successfully',
|
|
108
108
|
},
|
|
109
109
|
"somethingWentWrong": {
|
|
110
|
-
id: '
|
|
110
|
+
id: 'app.containers.Line.Edit.somethingWentWrong',
|
|
111
111
|
defaultMessage: 'Something went wrong!!',
|
|
112
112
|
},
|
|
113
|
-
"
|
|
114
|
-
id: '
|
|
113
|
+
"Do you really want to go back? All your temporary changes will be lost!": {
|
|
114
|
+
id: 'app.containers.Line.Edit.goBackConfirmation',
|
|
115
115
|
defaultMessage: "Going back will discard all the changes you've made. Continue?",
|
|
116
116
|
},
|
|
117
|
-
"alertMessage": {
|
|
118
|
-
id: 'creatives.containers.Line.Edit.alertMessage',
|
|
119
|
-
defaultMessage: "Alert",
|
|
120
|
-
},
|
|
121
117
|
"Name and Description": {
|
|
122
|
-
id: '
|
|
118
|
+
id: 'app.containers.Line.Edit.nameAndDescription',
|
|
123
119
|
defaultMessage: 'Name and description',
|
|
124
120
|
},
|
|
125
121
|
"Button 1": {
|
|
126
|
-
id: '
|
|
122
|
+
id: 'app.containers.Line.Edit.button1',
|
|
127
123
|
defaultMessage: 'Button 1',
|
|
128
124
|
},
|
|
129
125
|
"Button 2": {
|
|
130
|
-
id: '
|
|
126
|
+
id: 'app.containers.Line.Edit.button2',
|
|
131
127
|
defaultMessage: 'Button 2',
|
|
132
128
|
},
|
|
133
129
|
"File size cannot be more than 5mb": {
|
|
134
|
-
id: '
|
|
130
|
+
id: 'app.containers.Line.Edit.uploadFileSizeError',
|
|
135
131
|
defaultMessage: 'File size cannot be more than 5mb',
|
|
136
132
|
},
|
|
137
133
|
"value cannot be empty.": {
|
|
138
|
-
id: '
|
|
134
|
+
id: 'app.containers.Line.Edit.valueCantEmpty',
|
|
139
135
|
defaultMessage: 'value cannot be empty.',
|
|
140
136
|
},
|
|
141
137
|
"Uploading Image...": {
|
|
142
|
-
id: '
|
|
138
|
+
id: 'app.containers.Line.Edit.uploadingImage',
|
|
143
139
|
defaultMessage: 'Uploading image...',
|
|
144
140
|
},
|
|
145
141
|
"Campaigns": {
|
|
146
|
-
id: '
|
|
142
|
+
id: 'app.containers.Line.Edit.Campaigns',
|
|
147
143
|
defaultMessage: 'Campaigns',
|
|
148
144
|
},
|
|
149
145
|
"Creatives": {
|
|
150
|
-
id: '
|
|
146
|
+
id: 'app.containers.Line.Edit.Creatives',
|
|
151
147
|
defaultMessage: 'Creatives',
|
|
152
148
|
},
|
|
153
149
|
"Line": {
|
|
154
|
-
id: '
|
|
150
|
+
id: 'app.containers.Line.Edit.mobilePush',
|
|
155
151
|
defaultMessage: 'Mobile Push',
|
|
156
152
|
},
|
|
157
153
|
"template not configured,": {
|
|
158
|
-
id: '
|
|
154
|
+
id: 'app.containers.Line.Edit.templateNotConfigured',
|
|
159
155
|
defaultMessage: 'template not configured,',
|
|
160
156
|
},
|
|
161
|
-
"androidNotConfigured": {
|
|
162
|
-
id: 'creatives.containers.Line.Edit.androidNotConfigured',
|
|
163
|
-
defaultMessage: 'Android template is not configured. Save without Android template',
|
|
164
|
-
},
|
|
165
|
-
"iosNotConfigured": {
|
|
166
|
-
id: 'creatives.containers.Line.Edit.iosNotConfigured',
|
|
167
|
-
defaultMessage: 'IOS template is not configured, Save without IOS template',
|
|
168
|
-
},
|
|
169
|
-
"savingTemplate": {
|
|
170
|
-
id: 'creatives.containers.Line.Edit.savingTemplate',
|
|
171
|
-
defaultMessage: "Saving Template...",
|
|
172
|
-
},
|
|
173
|
-
"gettingTemplate": {
|
|
174
|
-
id: 'creatives.containers.Line.Create.gettingTemplate',
|
|
175
|
-
defaultMessage: "Getting template details...",
|
|
176
|
-
},
|
|
177
157
|
});
|
|
@@ -2,8 +2,6 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Form, Icon } from 'antd';
|
|
4
4
|
import { CapInput, CapButton } from '@capillarytech/cap-react-ui-library';
|
|
5
|
-
import { injectIntl, intlShape } from 'react-intl';
|
|
6
|
-
import messages from './messages';
|
|
7
5
|
const FormItem = Form.Item;
|
|
8
6
|
|
|
9
7
|
class NormalLoginForm extends React.Component {
|
|
@@ -22,27 +20,27 @@ class NormalLoginForm extends React.Component {
|
|
|
22
20
|
<Form onSubmit={this.handleSubmit} className="login-form">
|
|
23
21
|
<FormItem className="login-form-item">
|
|
24
22
|
{getFieldDecorator('username', {
|
|
25
|
-
rules: [{ required: true, message:
|
|
23
|
+
rules: [{ required: true, message: 'Please input your username!' }],
|
|
26
24
|
})(
|
|
27
|
-
<CapInput prefix={<Icon type="user" style={{ fontSize: 13 }} />} placeholder=
|
|
25
|
+
<CapInput prefix={<Icon type="user" style={{ fontSize: 13 }} />} placeholder="Username" />
|
|
28
26
|
)}
|
|
29
27
|
</FormItem>
|
|
30
28
|
<FormItem className="login-form-item">
|
|
31
29
|
{getFieldDecorator('password', {
|
|
32
|
-
rules: [{ required: true, message:
|
|
30
|
+
rules: [{ required: true, message: 'Please input your Password!' }],
|
|
33
31
|
})(
|
|
34
|
-
<CapInput prefix={<Icon type="lock" style={{ fontSize: 13 }} />} type="password" placeholder=
|
|
32
|
+
<CapInput prefix={<Icon type="lock" style={{ fontSize: 13 }} />} type="password" placeholder="Password" />
|
|
35
33
|
)}
|
|
36
34
|
</FormItem>
|
|
37
35
|
{this.props.isError
|
|
38
36
|
? <FormItem>
|
|
39
|
-
<span style={{color: "red"}}>{
|
|
37
|
+
<span style={{color: "red"}}>{"Invalid or Incorrect credentials!"}</span>
|
|
40
38
|
</FormItem>
|
|
41
39
|
: null
|
|
42
40
|
}
|
|
43
41
|
<FormItem>
|
|
44
42
|
<CapButton loading={this.props.loginInProgress} type="primary" htmlType="submit" className="login-form-button">
|
|
45
|
-
|
|
43
|
+
Log in
|
|
46
44
|
</CapButton>
|
|
47
45
|
</FormItem>
|
|
48
46
|
</Form>
|
|
@@ -55,8 +53,7 @@ NormalLoginForm.propTypes = {
|
|
|
55
53
|
loginInProgress: PropTypes.bool,
|
|
56
54
|
isError: PropTypes.bool,
|
|
57
55
|
form: PropTypes.object,
|
|
58
|
-
intl: intlShape.isRequired,
|
|
59
56
|
};
|
|
60
57
|
|
|
61
58
|
const WrappedNormalLoginForm = Form.create()(NormalLoginForm);
|
|
62
|
-
export default
|
|
59
|
+
export default WrappedNormalLoginForm;
|
|
@@ -7,27 +7,15 @@ import { defineMessages } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
export default defineMessages({
|
|
9
9
|
username: {
|
|
10
|
-
id: '
|
|
10
|
+
id: 'reon.modules.Login.components.LoginForm.input.username',
|
|
11
11
|
defaultMessage: 'Username or email',
|
|
12
12
|
},
|
|
13
13
|
password: {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'reon.modules.Login.components.LoginForm.input.password',
|
|
15
15
|
defaultMessage: 'Password',
|
|
16
16
|
},
|
|
17
17
|
loginButton: {
|
|
18
|
-
id: '
|
|
18
|
+
id: 'reon.modules.Login.components.LoginForm.input.loginButton',
|
|
19
19
|
defaultMessage: 'Login',
|
|
20
20
|
},
|
|
21
|
-
invalidCredentials: {
|
|
22
|
-
id: 'creatives.containers.Login.components.LoginForm.input.invalidCredentials',
|
|
23
|
-
defaultMessage: 'Invalid or Incorrect credentials!',
|
|
24
|
-
},
|
|
25
|
-
inputPasswordMandatory: {
|
|
26
|
-
id: 'creatives.containers.Login.components.LoginForm.input.inputPasswordMandatory',
|
|
27
|
-
defaultMessage: 'Please input your Password!',
|
|
28
|
-
},
|
|
29
|
-
inputUsernameMandatory: {
|
|
30
|
-
id: 'creatives.containers.Login.components.LoginForm.input.inputUsernameMandatory',
|
|
31
|
-
defaultMessage: 'Please input your username!',
|
|
32
|
-
},
|
|
33
21
|
});
|
|
@@ -58,7 +58,7 @@ export class Login extends React.Component { // eslint-disable-line react/prefer
|
|
|
58
58
|
<Helmet
|
|
59
59
|
title={message}
|
|
60
60
|
meta={[
|
|
61
|
-
{ name: 'description', content:
|
|
61
|
+
{ name: 'description', content: 'Login Page' },
|
|
62
62
|
]}
|
|
63
63
|
/>}
|
|
64
64
|
</FormattedMessage>
|
|
@@ -7,19 +7,15 @@ import { defineMessages } from 'react-intl';
|
|
|
7
7
|
|
|
8
8
|
export default defineMessages({
|
|
9
9
|
pageTitle: {
|
|
10
|
-
id: '
|
|
10
|
+
id: 'app.containers.Login.pageTitle',
|
|
11
11
|
defaultMessage: 'Login',
|
|
12
12
|
},
|
|
13
13
|
header: {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'app.containers.Login.header',
|
|
15
15
|
defaultMessage: 'This is login container change !',
|
|
16
16
|
},
|
|
17
17
|
invalidCredential: {
|
|
18
|
-
id: '
|
|
18
|
+
id: 'app.containers.Login.invalidCredential',
|
|
19
19
|
defaultMessage: 'Invalid username or password',
|
|
20
20
|
},
|
|
21
|
-
loginPage: {
|
|
22
|
-
id: 'creatives.containers.Login.loginPage',
|
|
23
|
-
defaultMessage: 'Login Page',
|
|
24
|
-
},
|
|
25
21
|
});
|