@capillarytech/creatives-library 8.0.136 → 8.0.137-alpha.1
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/constants/unified.js +189 -0
- package/package.json +1 -1
- package/services/getSchema.js +1 -1
- package/services/localStorageApi.js +1 -0
- package/tests/i18n.test.js +1 -1
- package/utils/common.js +2 -2
- package/utils/createMobilePushPayload.js +0 -1
- package/utils/tagValidations.js +1 -1
- package/utils/tests/checkStore.test.js +1 -1
- package/utils/tests/customAuth.test.js +1 -1
- package/utils/transformerUtils.js +1 -1
- package/v2Components/CapTagList/index.js +9 -14
- package/v2Components/Carousel/style.scss +1 -1
- package/v2Components/EmailMobilePreview/index.js +2 -2
- package/v2Components/FormBuilder/index.js +2 -2
- package/v2Components/TemplatePreview/_templatePreview.scss +0 -10
- package/v2Components/TemplatePreview/index.js +2 -3
- package/v2Containers/Cap/tests/saga.test.js +1 -1
- package/v2Containers/Email/index.js +1 -1
- package/v2Containers/FTP/index.js +1 -1
- package/v2Containers/Line/Container/Text/index.js +1 -1
- package/v2Containers/Line/Container/_lineCreate.scss +2 -4
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +0 -1
- package/v2Containers/MobilePushNew/components/tests/MediaUploaders.test.js +271 -0
- package/v2Containers/MobilePushNew/components/tests/PlatformContentFields.test.js +189 -0
- package/v2Containers/MobilePushNew/index.scss +9 -16
- package/v2Containers/Sms/Create/index.js +2 -2
- package/v2Containers/Sms/Edit/index.js +1 -1
- package/v2Containers/TagList/index.js +1 -1
- package/v2Containers/TagList/utils.js +1 -1
- package/v2Containers/Templates/index.js +3 -3
- package/v2Containers/Templates/sagas.js +1 -1
- package/components/BreadCrumbs/index.js +0 -65
- package/components/BreadCrumbs/messages.js +0 -13
- package/components/CapTagList/index.js +0 -235
- package/components/CapTagList/messages.js +0 -45
- package/components/Card/_customCard.scss +0 -40
- package/components/Card/index.js +0 -78
- package/components/Card/tests/__snapshots__/index.test.js.snap +0 -22
- package/components/Card/tests/index.test.js +0 -20
- package/components/CardGrid/index.js +0 -71
- package/components/Ckeditor/index.js +0 -238
- package/components/Ckeditor/messages.js +0 -13
- package/components/Ckeditor/style.scss +0 -3
- package/components/Component/index.js +0 -29
- package/components/CustomPopOver/index.js +0 -81
- package/components/CustomPopOver/messages.js +0 -17
- package/components/DateFilter/index.js +0 -349
- package/components/DateFilter/messages.js +0 -57
- package/components/DateRange/index.js +0 -114
- package/components/DateRange/messages.js +0 -25
- package/components/Edmeditor/index.js +0 -65
- package/components/Edmeditor/messages.js +0 -13
- package/components/EmailPreview/_emailPreview.scss +0 -119
- package/components/EmailPreview/assets/images/iPad.svg +0 -10
- package/components/EmailPreview/assets/images/mobile.png +0 -0
- package/components/EmailPreview/index.js +0 -107
- package/components/EmailPreview/messages.js +0 -33
- package/components/Footer/index.js +0 -27
- package/components/Footer/messages.js +0 -13
- package/components/FormBuilder/_formBuilder.scss +0 -83
- package/components/FormBuilder/index.js +0 -3279
- package/components/FormBuilder/messages.js +0 -61
- package/components/Header/index.js +0 -44
- package/components/Header/messages.js +0 -29
- package/components/ImagePreview/_imagePreview.scss +0 -63
- package/components/ImagePreview/index.js +0 -52
- package/components/ImagePreview/messages.js +0 -17
- package/components/PageHeader/_pageHeader.scss +0 -22
- package/components/PageHeader/index.js +0 -37
- package/components/PageHeader/messages.js +0 -13
- package/components/Pagination/_pagination.scss +0 -5
- package/components/Pagination/index.js +0 -49
- package/components/PreviewSideBar/_previewsidebar.scss +0 -28
- package/components/PreviewSideBar/index.js +0 -152
- package/components/PreviewSideBar/messages.js +0 -41
- package/components/Sidebar/_sidebar.scss +0 -115
- package/components/Sidebar/index.js +0 -214
- package/components/Sidebar/messages.js +0 -21
- package/components/SlideBox/_slideBox.scss +0 -63
- package/components/SlideBox/index.js +0 -47
- package/components/SlideBox/tests/index.test.js +0 -103
- package/components/SmsEditor/index.js +0 -55
- package/components/SmsTest/index.js +0 -117
- package/components/SmsTest/messages.js +0 -21
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +0 -42
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +0 -141
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +0 -21
- package/components/TemplatePreview/_templatePreview.scss +0 -642
- package/components/TemplatePreview/assets/images/WECHAT_5x.png +0 -0
- package/components/TemplatePreview/assets/images/androidPushMessage.svg +0 -45
- package/components/TemplatePreview/assets/images/home-screen-android.svg +0 -21
- package/components/TemplatePreview/assets/images/home-screen-ios.svg +0 -16
- package/components/TemplatePreview/assets/images/iPhonePushMessage.svg +0 -135
- package/components/TemplatePreview/assets/images/mobile.svg +0 -24
- package/components/TemplatePreview/assets/images/sms-body.png +0 -0
- package/components/TemplatePreview/assets/images/sms-icon.png +0 -0
- package/components/TemplatePreview/assets/images/sms_mobile.png +0 -0
- package/components/TemplatePreview/assets/images/sms_mobile_android.svg +0 -22
- package/components/TemplatePreview/assets/images/sms_mobile_ios.svg +0 -16
- package/components/TemplatePreview/assets/images/user-icon.svg +0 -19
- package/components/TemplatePreview/assets/images/wechat-mobile.svg +0 -78
- package/components/TemplatePreview/assets/images/wechat_mobile_android.svg +0 -20
- package/components/TemplatePreview/index.js +0 -617
- package/components/TemplatePreview/messages.js +0 -78
- package/components/Toastr/index.js +0 -60
- package/components/Toastr/messages.js +0 -13
- package/components/ToastrMessage/index.js +0 -113
- package/components/ToastrMessage/messages.js +0 -17
- package/components/TopBar/_topbar.scss +0 -46
- package/components/TopBar/assets/images/capillary_logo.png +0 -0
- package/components/TopBar/assets/images/old_capillary_logo.png +0 -0
- package/components/TopBar/index.js +0 -113
- package/components/TopBar/messages.js +0 -29
- package/containers/App/actions.js +0 -7
- package/containers/App/constants.js +0 -114
- package/containers/App/index.js +0 -52
- package/containers/App/reducer.js +0 -19
- package/containers/App/sagas.js +0 -31
- package/containers/App/selectors.js +0 -25
- package/containers/App/test/saga.test.js +0 -11
- package/containers/Assets/Gallery/_gallery.scss +0 -126
- package/containers/Assets/Gallery/actions.js +0 -37
- package/containers/Assets/Gallery/constants.js +0 -23
- package/containers/Assets/Gallery/index.js +0 -473
- package/containers/Assets/Gallery/messages.js +0 -93
- package/containers/Assets/Gallery/reducer.js +0 -81
- package/containers/Assets/Gallery/sagas.js +0 -80
- package/containers/Assets/Gallery/selectors.js +0 -25
- package/containers/Assets/Gallery/tests/__snapshots__/reducer.test.js.snap +0 -9
- package/containers/Assets/Gallery/tests/actions.test.js +0 -25
- package/containers/Assets/Gallery/tests/reducer.test.js +0 -96
- package/containers/Assets/Gallery/tests/saga.test.js +0 -157
- package/containers/Cap/actions.js +0 -66
- package/containers/Cap/constants.js +0 -25
- package/containers/Cap/index.js +0 -402
- package/containers/Cap/messages.js +0 -75
- package/containers/Cap/reducer.js +0 -113
- package/containers/Cap/sagas.js +0 -159
- package/containers/Cap/selectors.js +0 -75
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +0 -2269
- package/containers/Cap/tests/index.test.js +0 -22
- package/containers/Cap/tests/saga.test.js +0 -284
- package/containers/Dashboard/actions.js +0 -15
- package/containers/Dashboard/constants.js +0 -7
- package/containers/Dashboard/index.js +0 -76
- package/containers/Dashboard/messages.js +0 -13
- package/containers/Dashboard/reducer.js +0 -21
- package/containers/Dashboard/sagas.js +0 -17
- package/containers/Dashboard/selectors.js +0 -25
- package/containers/Dashboard/test/saga.test.js +0 -9
- package/containers/Ebill/_ebill.scss +0 -5
- package/containers/Ebill/actions.js +0 -43
- package/containers/Ebill/constants.js +0 -20
- package/containers/Ebill/index.js +0 -1278
- package/containers/Ebill/messages.js +0 -77
- package/containers/Ebill/reducer.js +0 -72
- package/containers/Ebill/sagas.js +0 -74
- package/containers/Ebill/selectors.js +0 -25
- package/containers/Ebill/test/saga.test.js +0 -11
- package/containers/Email/_email.scss +0 -141
- package/containers/Email/actions.js +0 -81
- package/containers/Email/constants.js +0 -36
- package/containers/Email/index.js +0 -3325
- package/containers/Email/messages.js +0 -289
- package/containers/Email/reducer.js +0 -142
- package/containers/Email/sagas.js +0 -135
- package/containers/Email/selectors.js +0 -31
- package/containers/Email/test/saga.test.js +0 -671
- package/containers/LanguageProvider/actions.js +0 -17
- package/containers/LanguageProvider/constants.js +0 -8
- package/containers/LanguageProvider/index.js +0 -80
- package/containers/LanguageProvider/reducer.js +0 -30
- package/containers/LanguageProvider/selectors.js +0 -20
- package/containers/LanguageProvider/tests/actions.test.js +0 -19
- package/containers/LanguageProvider/tests/index.test.js +0 -78
- package/containers/LanguageProvider/tests/reducer.test.js +0 -20
- package/containers/LanguageProvider/tests/selectors.test.js +0 -15
- package/containers/Line/Create/_lineCreate.scss +0 -54
- package/containers/Line/Create/actions.js +0 -90
- package/containers/Line/Create/constants.js +0 -39
- package/containers/Line/Create/index.js +0 -836
- package/containers/Line/Create/messages.js +0 -189
- package/containers/Line/Create/reducer.js +0 -99
- package/containers/Line/Create/sagas.js +0 -121
- package/containers/Line/Create/selectors.js +0 -36
- package/containers/Line/Create/tests/saga.test.js +0 -202
- package/containers/Line/Edit/_lineEdit.scss +0 -35
- package/containers/Line/Edit/actions.js +0 -79
- package/containers/Line/Edit/constants.js +0 -27
- package/containers/Line/Edit/index.js +0 -1050
- package/containers/Line/Edit/messages.js +0 -177
- package/containers/Line/Edit/reducer.js +0 -83
- package/containers/Line/Edit/sagas.js +0 -80
- package/containers/Line/Edit/selectors.js +0 -29
- package/containers/Line/Edit/test/saga.test.js +0 -160
- package/containers/Login/assets/images/capillary_logo.png +0 -0
- package/containers/Login/components/LoginForm/index.js +0 -62
- package/containers/Login/components/LoginForm/messages.js +0 -33
- package/containers/Login/index.js +0 -130
- package/containers/Login/messages.js +0 -25
- package/containers/Login/selectors.js +0 -25
- package/containers/MobilePush/Create/_mobilePushCreate.scss +0 -39
- package/containers/MobilePush/Create/actions.js +0 -46
- package/containers/MobilePush/Create/constants.js +0 -23
- package/containers/MobilePush/Create/index.js +0 -2303
- package/containers/MobilePush/Create/messages.js +0 -269
- package/containers/MobilePush/Create/reducer.js +0 -70
- package/containers/MobilePush/Create/sagas.js +0 -74
- package/containers/MobilePush/Create/selectors.js +0 -28
- package/containers/MobilePush/Create/test/saga.test.js +0 -19
- package/containers/MobilePush/Edit/_mobilePushCreate.scss +0 -39
- package/containers/MobilePush/Edit/actions.js +0 -91
- package/containers/MobilePush/Edit/constants.js +0 -35
- package/containers/MobilePush/Edit/index.js +0 -2601
- package/containers/MobilePush/Edit/messages.js +0 -266
- package/containers/MobilePush/Edit/reducer.js +0 -112
- package/containers/MobilePush/Edit/sagas.js +0 -126
- package/containers/MobilePush/Edit/selectors.js +0 -29
- package/containers/MobilePush/Edit/tests/saga.test.js +0 -255
- package/containers/NotFoundPage/index.js +0 -25
- package/containers/NotFoundPage/messages.js +0 -13
- package/containers/NotFoundPage/tests/index.test.js +0 -17
- package/containers/Sms/Create/_smsCreate.scss +0 -42
- package/containers/Sms/Create/actions.js +0 -27
- package/containers/Sms/Create/constants.js +0 -16
- package/containers/Sms/Create/index.js +0 -1488
- package/containers/Sms/Create/messages.js +0 -109
- package/containers/Sms/Create/reducer.js +0 -41
- package/containers/Sms/Create/sagas.js +0 -40
- package/containers/Sms/Create/selectors.js +0 -28
- package/containers/Sms/Create/test/saga.test.js +0 -11
- package/containers/Sms/Edit/actions.js +0 -40
- package/containers/Sms/Edit/constants.js +0 -17
- package/containers/Sms/Edit/index.js +0 -1472
- package/containers/Sms/Edit/messages.js +0 -105
- package/containers/Sms/Edit/reducer.js +0 -50
- package/containers/Sms/Edit/sagas.js +0 -60
- package/containers/Sms/Edit/selectors.js +0 -32
- package/containers/Sms/Edit/test/saga.test.js +0 -13
- package/containers/TagList/_tagList.scss +0 -8
- package/containers/TagList/actions.js +0 -15
- package/containers/TagList/constants.js +0 -32
- package/containers/TagList/index.js +0 -236
- package/containers/TagList/messages.js +0 -13
- package/containers/TagList/reducer.js +0 -23
- package/containers/TagList/sagas.js +0 -11
- package/containers/TagList/selectors.js +0 -25
- package/containers/Templates/_templates.scss +0 -333
- package/containers/Templates/actions.js +0 -103
- package/containers/Templates/constants.js +0 -60
- package/containers/Templates/index.js +0 -1756
- package/containers/Templates/messages.js +0 -337
- package/containers/Templates/reducer.js +0 -142
- package/containers/Templates/sagas.js +0 -163
- package/containers/Templates/selectors.js +0 -28
- package/containers/Templates/test/saga.test.js +0 -241
- package/containers/WeChat/MapTemplates/_mapTemplates.scss +0 -8
- package/containers/WeChat/MapTemplates/actions.js +0 -52
- package/containers/WeChat/MapTemplates/constants.js +0 -28
- package/containers/WeChat/MapTemplates/index.js +0 -1610
- package/containers/WeChat/MapTemplates/messages.js +0 -157
- package/containers/WeChat/MapTemplates/reducer.js +0 -74
- package/containers/WeChat/MapTemplates/sagas.js +0 -84
- package/containers/WeChat/MapTemplates/selectors.js +0 -25
- package/containers/WeChat/MapTemplates/test/saga.test.js +0 -155
- package/containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +0 -57
- package/containers/WeChat/RichmediaTemplates/Create/actions.js +0 -36
- package/containers/WeChat/RichmediaTemplates/Create/constants.js +0 -15
- package/containers/WeChat/RichmediaTemplates/Create/index.js +0 -1071
- package/containers/WeChat/RichmediaTemplates/Create/messages.js +0 -165
- package/containers/WeChat/RichmediaTemplates/Create/reducer.js +0 -60
- package/containers/WeChat/RichmediaTemplates/Create/richmediaschema.js +0 -497
- package/containers/WeChat/RichmediaTemplates/Create/sagas.js +0 -51
- package/containers/WeChat/RichmediaTemplates/Create/selectors.js +0 -37
- package/containers/WeChat/RichmediaTemplates/Create/test/saga.test.js +0 -13
- package/containers/WeChat/RichmediaTemplates/Edit/actions.js +0 -20
- package/containers/WeChat/RichmediaTemplates/Edit/constants.js +0 -10
- package/containers/WeChat/RichmediaTemplates/Edit/index.js +0 -136
- package/containers/WeChat/RichmediaTemplates/Edit/messages.js +0 -13
- package/containers/WeChat/RichmediaTemplates/Edit/reducer.js +0 -28
- package/containers/WeChat/RichmediaTemplates/Edit/sagas.js +0 -36
- package/containers/WeChat/RichmediaTemplates/Edit/selectors.js +0 -30
- package/containers/WeChat/RichmediaTemplates/Edit/test/saga.test.js +0 -12
- package/containers/WeChat/RichmediaTemplates/View/actions.js +0 -15
- package/containers/WeChat/RichmediaTemplates/View/constants.js +0 -7
- package/containers/WeChat/RichmediaTemplates/View/index.js +0 -47
- package/containers/WeChat/RichmediaTemplates/View/messages.js +0 -21
- package/containers/WeChat/RichmediaTemplates/View/reducer.js +0 -23
- package/containers/WeChat/RichmediaTemplates/View/sagas.js +0 -11
- package/containers/WeChat/RichmediaTemplates/View/selectors.js +0 -25
- package/utils/asyncInjectors.js +0 -78
- package/utils/callNativeEvent.js +0 -16
- package/utils/checkStore.js +0 -21
- package/utils/customAuthWrapper.js +0 -62
- package/utils/customConnectedAuthWrapper.js +0 -26
- package/utils/jed.js +0 -1497
- package/utils/smsCharCount.js +0 -351
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Ebill Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the Ebill component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
"campaigns": {
|
|
10
|
-
id: 'creatives.containers.Ebill.campaigns',
|
|
11
|
-
defaultMessage: 'Campaigns',
|
|
12
|
-
},
|
|
13
|
-
"creatives": {
|
|
14
|
-
id: 'creatives.containers.Ebill.creatives',
|
|
15
|
-
defaultMessage: 'Creatives',
|
|
16
|
-
},
|
|
17
|
-
"ebill": {
|
|
18
|
-
id: 'creatives.containers.Ebill.ebill',
|
|
19
|
-
defaultMessage: 'Ebill',
|
|
20
|
-
},
|
|
21
|
-
"ebillPreview": {
|
|
22
|
-
id: 'creatives.containers.Ebill.ebillPreview',
|
|
23
|
-
defaultMessage: 'Ebill Preview',
|
|
24
|
-
},
|
|
25
|
-
"loading": {
|
|
26
|
-
id: 'creatives.containers.Ebill.loading',
|
|
27
|
-
defaultMessage: 'Loading..',
|
|
28
|
-
},
|
|
29
|
-
"ebillEditSuccess": {
|
|
30
|
-
id: 'creatives.containers.Ebill.ebillEditSuccess',
|
|
31
|
-
defaultMessage: "Ebill template edited successfully",
|
|
32
|
-
},
|
|
33
|
-
"ebillCreateSuccess": {
|
|
34
|
-
id: 'creatives.containers.Ebill.ebillCreateSuccess',
|
|
35
|
-
defaultMessage: "Ebill template created successfully",
|
|
36
|
-
},
|
|
37
|
-
"somethingWentWrong": {
|
|
38
|
-
id: 'creatives.containers.Ebill.somethingWentWrong',
|
|
39
|
-
defaultMessage: "Something went wrong!!",
|
|
40
|
-
},
|
|
41
|
-
"Enter template name": {
|
|
42
|
-
id: 'creatives.containers.Ebill.enterTemplateName',
|
|
43
|
-
defaultMessage: "Enter template name",
|
|
44
|
-
},
|
|
45
|
-
"Template name cannot be empty.": {
|
|
46
|
-
id: 'creatives.containers.Ebill.emptyTemplateErrorMessage',
|
|
47
|
-
defaultMessage: "Please provide a template name ",
|
|
48
|
-
},
|
|
49
|
-
"Preview": {
|
|
50
|
-
id: 'creatives.containers.Ebill.Preview',
|
|
51
|
-
defaultMessage: "Preview",
|
|
52
|
-
},
|
|
53
|
-
"Cancel": {
|
|
54
|
-
id: 'creatives.containers.Ebill.Cancel',
|
|
55
|
-
defaultMessage: "Cancel",
|
|
56
|
-
},
|
|
57
|
-
"Save": {
|
|
58
|
-
id: 'creatives.containers.Ebill.Save',
|
|
59
|
-
defaultMessage: "Save",
|
|
60
|
-
},
|
|
61
|
-
"Template content has unsupported/missing tags!": {
|
|
62
|
-
id: 'creatives.containers.Ebill.tagsErrorMessage',
|
|
63
|
-
defaultMessage: "Please check the message content for unsupported/missing tags",
|
|
64
|
-
},
|
|
65
|
-
"Tags": {
|
|
66
|
-
id: 'creatives.containers.Ebill.tagsLabel',
|
|
67
|
-
defaultMessage: "Tags",
|
|
68
|
-
},
|
|
69
|
-
"New Version": {
|
|
70
|
-
id: 'creatives.containers.Ebill.newVersionLabel',
|
|
71
|
-
defaultMessage: "New version",
|
|
72
|
-
},
|
|
73
|
-
"templateNotValid": {
|
|
74
|
-
id: 'creatives.containers.Ebill.templateNotValid',
|
|
75
|
-
defaultMessage: "Template data is not valid",
|
|
76
|
-
},
|
|
77
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* Ebill reducer
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { fromJS } from 'immutable';
|
|
8
|
-
import * as types from './constants';
|
|
9
|
-
|
|
10
|
-
const initialState = fromJS({
|
|
11
|
-
createTemplateInProgress: false,
|
|
12
|
-
createResponse: {},
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
function ebillReducer(state = initialState, action) {
|
|
16
|
-
switch (action.type) {
|
|
17
|
-
case types.CREATE_TEMPLATE_REQUEST:
|
|
18
|
-
return state
|
|
19
|
-
.set('createTemplateInProgress', true)
|
|
20
|
-
.set('createTemplateError', false)
|
|
21
|
-
.set('createTemplateErrorMessage', fromJS(""));
|
|
22
|
-
case types.CREATE_TEMPLATE_SUCCESS:
|
|
23
|
-
return state
|
|
24
|
-
.set('createTemplateInProgress', false)
|
|
25
|
-
.set('createResponse', action.data)
|
|
26
|
-
.set('createTemplateErrorMessage', fromJS(action.errorMsg))
|
|
27
|
-
.set('createTemplateError', (action.statusCode !== undefined && action.statusCode > 300));
|
|
28
|
-
case types.CREATE_TEMPLATE_FAILURE:
|
|
29
|
-
return state
|
|
30
|
-
.set('createTemplateInProgress', false)
|
|
31
|
-
.set('createTemplateError', true)
|
|
32
|
-
.set('createTemplateErrorMessage', fromJS(action.errorMsg));
|
|
33
|
-
case types.GET_TEMPLATE_DETAILS_REQUEST:
|
|
34
|
-
return state
|
|
35
|
-
.set('getTemplateDetailsInProgress', true);
|
|
36
|
-
case types.GET_TEMPLATE_DETAILS_SUCCESS:
|
|
37
|
-
return state
|
|
38
|
-
.set('getTemplateDetailsInProgress', false)
|
|
39
|
-
.set('templateDetails', fromJS(action.data));
|
|
40
|
-
case types.GET_TEMPLATE_DETAILS_FAILURE:
|
|
41
|
-
return state
|
|
42
|
-
.set('getTemplateDetailsInProgress', false);
|
|
43
|
-
case types.GET_CMS_EDITOR_DATA_REQUEST:
|
|
44
|
-
return state
|
|
45
|
-
.set('fetchingCmsData', true)
|
|
46
|
-
.set('cmsData', '')
|
|
47
|
-
.set('fetchingCmsDataFailed', false);
|
|
48
|
-
case types.GET_CMS_EDITOR_DATA_SUCCESS:
|
|
49
|
-
return state
|
|
50
|
-
.set('fetchingCmsData', false)
|
|
51
|
-
.set('cmsData', action.data);
|
|
52
|
-
case types.GET_CMS_EDITOR_DATA_FAILURE:
|
|
53
|
-
return state
|
|
54
|
-
.set('fetchingCmsData', false)
|
|
55
|
-
.set('fetchingCmsDataFailed', true);
|
|
56
|
-
case types.CLEAR_ALL_VALUES:
|
|
57
|
-
return state
|
|
58
|
-
.set('createTemplateInProgress', false)
|
|
59
|
-
.set('createResponse', fromJS({}))
|
|
60
|
-
.set('createTemplateError', false)
|
|
61
|
-
.set('fetchingCmsData', false)
|
|
62
|
-
.set('cmsData', '')
|
|
63
|
-
.set('fetchingCmsDataFailed', false);
|
|
64
|
-
case types.CLEAR_EBILL_CRUD_RESPONSE_REQUEST:
|
|
65
|
-
return state
|
|
66
|
-
.set('createResponse', fromJS({}));
|
|
67
|
-
default:
|
|
68
|
-
return state;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default ebillReducer;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
call, put, takeLatest, all,
|
|
3
|
-
} from 'redux-saga/effects';
|
|
4
|
-
import * as Api from '../../services/api';
|
|
5
|
-
import * as types from './constants';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export function* createTemplate(template) {
|
|
9
|
-
let errorMsg = "";
|
|
10
|
-
try {
|
|
11
|
-
|
|
12
|
-
const result = yield call(Api.createEbillTemplate, template);
|
|
13
|
-
if ((result.message && typeof result.message === 'string') || result.status.code === 500) {
|
|
14
|
-
errorMsg = result.message;
|
|
15
|
-
}
|
|
16
|
-
yield put({ type: types.CREATE_TEMPLATE_SUCCESS, data: result.response, statusCode: result.status ? result.status.code : '', errorMsg });
|
|
17
|
-
} catch (error) {
|
|
18
|
-
yield put({ type: types.CREATE_TEMPLATE_FAILURE, error, errorMsg });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function* getTemplateDetails(id, channel) {
|
|
23
|
-
try {
|
|
24
|
-
|
|
25
|
-
const result = yield call(Api.getTemplateDetails, id, channel);
|
|
26
|
-
// const sidebar = result.response.sidebar;
|
|
27
|
-
yield put({ type: types.GET_TEMPLATE_DETAILS_SUCCESS, data: result.response });
|
|
28
|
-
} catch (error) {
|
|
29
|
-
yield put({ type: types.GET_TEMPLATE_DETAILS_FAILURE, error });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function* getCmsData({cmsType, projectId}) {
|
|
34
|
-
try {
|
|
35
|
-
const result = yield call(Api.getCmsData, cmsType, projectId);
|
|
36
|
-
|
|
37
|
-
yield put({ type: types.GET_CMS_EDITOR_DATA_SUCCESS, data: decodeURIComponent(result.data.response.cmsData.htmlContent) });
|
|
38
|
-
} catch (error) {
|
|
39
|
-
yield put({ type: types.GET_CMS_EDITOR_DATA_FAILURE, error });
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function* watchCreateTemplate() {
|
|
44
|
-
yield takeLatest(types.CREATE_TEMPLATE_REQUEST, createTemplate);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function* watchGetTemplateDetails() {
|
|
50
|
-
yield takeLatest(types.GET_TEMPLATE_DETAILS_REQUEST, getTemplateDetails);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function* watchGetCmsData() {
|
|
56
|
-
yield takeLatest(types.GET_CMS_EDITOR_DATA_REQUEST, getCmsData);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// All sagas to be loaded
|
|
62
|
-
export default [
|
|
63
|
-
watchCreateTemplate,
|
|
64
|
-
watchGetTemplateDetails,
|
|
65
|
-
watchGetCmsData,
|
|
66
|
-
];
|
|
67
|
-
|
|
68
|
-
export function* ebillSaga() {
|
|
69
|
-
yield all([
|
|
70
|
-
watchCreateTemplate(),
|
|
71
|
-
watchGetTemplateDetails(),
|
|
72
|
-
watchGetCmsData(),
|
|
73
|
-
]);
|
|
74
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createSelector } from 'reselect';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Direct selector to the ebill state domain
|
|
5
|
-
*/
|
|
6
|
-
const selectEbillDomain = () => (state) => state.get('ebill');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Other specific selectors
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Default selector used by Ebill
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
const makeSelectEbill = () => createSelector(
|
|
18
|
-
selectEbillDomain(),
|
|
19
|
-
(substate) => substate.toJS()
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export default makeSelectEbill;
|
|
23
|
-
export {
|
|
24
|
-
makeSelectEbill,
|
|
25
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { expectSaga } from "redux-saga-test-plan";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ebillSaga,
|
|
5
|
-
} from "../sagas";
|
|
6
|
-
|
|
7
|
-
describe("ebillSaga Combined", () => {
|
|
8
|
-
test.concurrent("should initialize all ebill-related watcher sagas without error", () => {
|
|
9
|
-
return expectSaga(ebillSaga).run();
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
.email-container {
|
|
2
|
-
.email-text{
|
|
3
|
-
height: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
word-wrap: break-word;
|
|
6
|
-
/* white-space: nowrap; */
|
|
7
|
-
text-overflow: ellipsis;
|
|
8
|
-
}
|
|
9
|
-
.email-text-blurred{
|
|
10
|
-
opacity: 0.2;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
#blankTemplate {
|
|
14
|
-
.content-wrapper {
|
|
15
|
-
height: 310px;
|
|
16
|
-
|
|
17
|
-
.email-template-content{
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
|
|
20
|
-
.email-text {
|
|
21
|
-
text-align: center;
|
|
22
|
-
line-height: 260px;
|
|
23
|
-
font-family: proxima-nova;
|
|
24
|
-
font-weight: 600;
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.seperator-line {
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
.footer-wrapper {
|
|
33
|
-
display: none;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ant-breadcrumb{
|
|
38
|
-
color: #707070;
|
|
39
|
-
font-family: open-sans;
|
|
40
|
-
line-height: 16px;
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
padding-left: 8px;
|
|
43
|
-
}
|
|
44
|
-
.ant-checkbox{
|
|
45
|
-
vertical-align: middle !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#template-name.ant-input{
|
|
49
|
-
font-size: 20px !important;
|
|
50
|
-
font-family: proxima-nova, sans-serif;
|
|
51
|
-
font-style: normal;
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
}
|
|
54
|
-
.ant-tabs.ant-tabs-top.ant-tabs-line {
|
|
55
|
-
// overflow: hidden !important;
|
|
56
|
-
}
|
|
57
|
-
.ant-tabs:not(.ant-tabs-vertical) > .ant-tabs-content-animated {
|
|
58
|
-
margin-left: 0 !important;
|
|
59
|
-
}
|
|
60
|
-
.ant-tabs:not(.ant-tabs-vertical) > .ant-tabs-content > .ant-tabs-tabpane-inactive {
|
|
61
|
-
display: none !important;
|
|
62
|
-
}
|
|
63
|
-
.ant-tabs-bar{
|
|
64
|
-
margin-bottom: 0 !important;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
flex-direction: row-reverse;
|
|
68
|
-
justify-content: flex-end;
|
|
69
|
-
}
|
|
70
|
-
.ant-tabs-tabpane{
|
|
71
|
-
border: 1px solid #d9d9d9;
|
|
72
|
-
border-top: none;
|
|
73
|
-
margin-top: -0.2%;
|
|
74
|
-
min-height: calc(70vh);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-tabs-extra-content{
|
|
78
|
-
flex: 1;
|
|
79
|
-
align-self: flex-end;
|
|
80
|
-
padding: 4px;
|
|
81
|
-
height: 42px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ant-tabs-nav.ant-tabs-nav-animated {
|
|
85
|
-
display: flex;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
#image-preview-content{
|
|
89
|
-
.card-footer-wrapper{
|
|
90
|
-
padding-left: 16px;
|
|
91
|
-
padding-right: 8px;
|
|
92
|
-
|
|
93
|
-
.card-title-container {
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: 24px;
|
|
97
|
-
margin-top: 8px;
|
|
98
|
-
|
|
99
|
-
.card-title-wrapper{
|
|
100
|
-
width: 75%;
|
|
101
|
-
.card-title {
|
|
102
|
-
line-height: 24px;
|
|
103
|
-
font-size: 16px;
|
|
104
|
-
// margin-top: 8px;
|
|
105
|
-
text-overflow: ellipsis;
|
|
106
|
-
white-space: nowrap;
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
font-family: 'proxima-nova';
|
|
110
|
-
font-weight: 600;
|
|
111
|
-
&:first-letter{
|
|
112
|
-
text-transform: capitalize;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.more-icon-wrapper{
|
|
117
|
-
width: 25%;
|
|
118
|
-
text-align: right;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ant-row{
|
|
124
|
-
margin-right: 0 !important;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.version-popover {
|
|
131
|
-
line-height: 24px;
|
|
132
|
-
cursor: pointer !important;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.version-popover:hover{
|
|
136
|
-
background-color: #ecf6fd;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.ant-notification-notice-description {
|
|
140
|
-
word-wrap: break-word;
|
|
141
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* Email actions
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as types from './constants';
|
|
8
|
-
|
|
9
|
-
export function createTemplate(template) {
|
|
10
|
-
return {
|
|
11
|
-
type: types.CREATE_TEMPLATE_REQUEST,
|
|
12
|
-
template,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function duplicateTemplate(id, channel) {
|
|
17
|
-
return {
|
|
18
|
-
type: types.DUPLICATE_TEMPLATE_REQUEST,
|
|
19
|
-
id,
|
|
20
|
-
channel,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function getTemplateDetails(id, channel) {
|
|
25
|
-
|
|
26
|
-
return {
|
|
27
|
-
type: types.GET_TEMPLATE_DETAILS_REQUEST,
|
|
28
|
-
id,
|
|
29
|
-
channel,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function getAllAssets(assetType, queryParams) {
|
|
34
|
-
return {
|
|
35
|
-
type: types.GET_ALL_ASSETS_REQUEST,
|
|
36
|
-
assetType,
|
|
37
|
-
queryParams,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function getCmsSetting(cmsType, projectId, cmsMode, langId, isEdmSupport) {
|
|
42
|
-
|
|
43
|
-
return {
|
|
44
|
-
type: types.GET_CMS_EDITOR_DETAILS_REQUEST,
|
|
45
|
-
cmsType,
|
|
46
|
-
projectId,
|
|
47
|
-
cmsMode,
|
|
48
|
-
langId,
|
|
49
|
-
isEdmSupport,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function getCmsData(cmsType, projectId, langId) {
|
|
54
|
-
return {
|
|
55
|
-
type: types.GET_CMS_EDITOR_DATA_REQUEST,
|
|
56
|
-
cmsType,
|
|
57
|
-
projectId,
|
|
58
|
-
langId,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function clearCRUDResponse() {
|
|
63
|
-
return {
|
|
64
|
-
type: types.CLEAR_EMAIL_CRUD_RESPONSE_REQUEST,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function clearStoreValues() {
|
|
69
|
-
return {
|
|
70
|
-
type: types.CLEAR_ALL_VALUES,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function uploadAsset(file, assetType, fileParams) {
|
|
75
|
-
return {
|
|
76
|
-
type: types.UPLOAD_ASSET_REQUEST,
|
|
77
|
-
file,
|
|
78
|
-
assetType,
|
|
79
|
-
fileParams,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* Email constants
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export const CREATE_TEMPLATE_REQUEST = 'app/containers/Email/CREATE_TEMPLATE_REQUEST';
|
|
8
|
-
export const CREATE_TEMPLATE_SUCCESS = 'app/containers/Email/CREATE_TEMPLATE_SUCCESS';
|
|
9
|
-
export const CREATE_TEMPLATE_FAILURE = 'app/containers/Email/CREATE_TEMPLATE_FAILURE';
|
|
10
|
-
|
|
11
|
-
export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/Email/GET_TEMPLATE_DETAILS_REQUEST';
|
|
12
|
-
export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/Email/GET_TEMPLATE_DETAILS_SUCCESS';
|
|
13
|
-
export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/Email/GET_TEMPLATE_DETAILS_FAILURE';
|
|
14
|
-
|
|
15
|
-
export const GET_ALL_ASSETS_REQUEST = 'app/containers/Email/GET_ALL_ASSETS_REQUEST';
|
|
16
|
-
export const GET_ALL_ASSETS_SUCCESS = 'app/containers/Email/GET_ALL_ASSETS_SUCCESS';
|
|
17
|
-
export const GET_ALL_ASSETS_FAILURE = 'app/containers/Email/GET_ALL_ASSETS_FAILURE';
|
|
18
|
-
|
|
19
|
-
export const GET_CMS_EDITOR_DETAILS_REQUEST = 'app/containers/Email/GET_CMS_EDITOR_DETAILS_REQUEST';
|
|
20
|
-
export const GET_CMS_EDITOR_DETAILS_SUCCESS = 'app/containers/Email/GET_CMS_EDITOR_DETAILS_SUCCESS';
|
|
21
|
-
export const GET_CMS_EDITOR_DETAILS_FAILURE = 'app/containers/Email/GET_CMS_EDITOR_DETAILS_FAILURE';
|
|
22
|
-
|
|
23
|
-
export const GET_CMS_EDITOR_DATA_REQUEST = 'app/containers/Email/GET_CMS_EDITOR_DATA_REQUEST';
|
|
24
|
-
export const GET_CMS_EDITOR_DATA_SUCCESS = 'app/containers/Email/GET_CMS_EDITOR_DATA_SUCCESS';
|
|
25
|
-
export const GET_CMS_EDITOR_DATA_FAILURE = 'app/containers/Email/GET_CMS_EDITOR_DATA_FAILURE';
|
|
26
|
-
|
|
27
|
-
export const UPLOAD_ASSET_REQUEST = 'app/containers/Email/UPLOAD_ASSET_REQUEST';
|
|
28
|
-
export const UPLOAD_ASSET_SUCCESS = 'app/containers/Email/UPLOAD_ASSET_SUCCESS';
|
|
29
|
-
export const UPLOAD_ASSET_FAILURE = 'app/containers/Email/UPLOAD_ASSET_FAILURE';
|
|
30
|
-
|
|
31
|
-
export const CLEAR_EMAIL_CRUD_RESPONSE_REQUEST = "app/containers/Email/CLEAR_EMAIL_CRUD_RESPONSE_REQUEST";
|
|
32
|
-
export const CLEAR_ALL_VALUES = "app/containers/Email/CLEAR_ALL_VALUES";
|
|
33
|
-
|
|
34
|
-
export const DUPLICATE_TEMPLATE_REQUEST = 'app/containers/Email/DUPLICATE_TEMPLATE_REQUEST';
|
|
35
|
-
export const DUPLICATE_TEMPLATE_SUCCESS = 'app/containers/Email/DUPLICATE_TEMPLATE_SUCCESS';
|
|
36
|
-
export const DUPLICATE_TEMPLATE_FAILURE = 'app/containers/Email/DUPLICATE_TEMPLATE_FAILURE';
|