@capillarytech/creatives-library 8.0.136 → 8.0.137-alpha.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/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/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/index.js +2 -1
- 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/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 +0 -7
- 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 +1 -1
- 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,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* FormBuilder Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the FormBuilder component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
header: {
|
|
10
|
-
id: 'creatives.components.FormBuilder.header',
|
|
11
|
-
defaultMessage: 'This is the FormBuilder component !',
|
|
12
|
-
},
|
|
13
|
-
contentNotValidLanguage: {
|
|
14
|
-
id: 'creatives.components.FormBuilder.contentNotValidLanguage',
|
|
15
|
-
defaultMessage: 'Content is not valid for language:',
|
|
16
|
-
},
|
|
17
|
-
missingTags: {
|
|
18
|
-
id: 'creatives.components.FormBuilder.missingTags',
|
|
19
|
-
defaultMessage: 'Missing tags are:',
|
|
20
|
-
},
|
|
21
|
-
unsupportedTags: {
|
|
22
|
-
id: 'creatives.components.FormBuilder.unsupportedTags',
|
|
23
|
-
defaultMessage: 'Unsupported tags are:',
|
|
24
|
-
},
|
|
25
|
-
missingTagsValidationError: {
|
|
26
|
-
id: 'creatives.components.FormBuilder.missingTagsValidationError',
|
|
27
|
-
defaultMessage: 'Missing tags: {missingTags}. Please add them to this message.',
|
|
28
|
-
},
|
|
29
|
-
unsupportedTagsValidationError: {
|
|
30
|
-
id: 'creatives.components.FormBuilder.unsupportedTagsValidationError',
|
|
31
|
-
defaultMessage: 'Unsupported tags: {unsupportedTags}. Please remove them from this message.',
|
|
32
|
-
},
|
|
33
|
-
genericTagsValidationError: {
|
|
34
|
-
id: 'creatives.components.FormBuilder.genericTagsValidationError',
|
|
35
|
-
defaultMessage: 'Please check the message content for unsupported/missing tags',
|
|
36
|
-
},
|
|
37
|
-
layoutSelection: {
|
|
38
|
-
id: 'creatives.components.FormBuilder.layoutSelection',
|
|
39
|
-
defaultMessage: 'Layout Selection',
|
|
40
|
-
},
|
|
41
|
-
loadingEDMTemplates: {
|
|
42
|
-
id: 'creatives.components.FormBuilder.loadingEDMTemplates',
|
|
43
|
-
defaultMessage: 'Loading EDM Templates',
|
|
44
|
-
},
|
|
45
|
-
cancel: {
|
|
46
|
-
id: 'creatives.components.FormBuilder.cancel',
|
|
47
|
-
defaultMessage: 'Cancel',
|
|
48
|
-
},
|
|
49
|
-
yes: {
|
|
50
|
-
id: 'creatives.components.FormBuilder.yes',
|
|
51
|
-
defaultMessage: 'Yes',
|
|
52
|
-
},
|
|
53
|
-
ok: {
|
|
54
|
-
id: 'creatives.components.FormBuilder.ok',
|
|
55
|
-
defaultMessage: 'Ok',
|
|
56
|
-
},
|
|
57
|
-
Version: {
|
|
58
|
-
id: 'creatives.components.FormBuilder.version',
|
|
59
|
-
defaultMessage: 'Version',
|
|
60
|
-
},
|
|
61
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Header
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
|
11
|
-
import { CapRow, CapColumn, CapInput, CapButton } from '@capillarytech/cap-react-ui-library';
|
|
12
|
-
import messages from './messages';
|
|
13
|
-
|
|
14
|
-
function Header(props) {
|
|
15
|
-
return (
|
|
16
|
-
<div>
|
|
17
|
-
<CapRow className="template-form-header">
|
|
18
|
-
<CapColumn span={10}>
|
|
19
|
-
<CapInput id="template-name" placeholder={props.intl.formatMessage(messages.enterTemplateName)} defaultValue={props.templateName} type="input" onChange={props.templateNameHandler}/>
|
|
20
|
-
</CapColumn>
|
|
21
|
-
<CapColumn span={2} offset={8}>
|
|
22
|
-
<CapButton id="preview-button" type="cancel" onClick={props.previewHandler}> <FormattedMessage {...messages.preview} /> </CapButton>
|
|
23
|
-
</CapColumn>
|
|
24
|
-
<CapColumn span={2}>
|
|
25
|
-
<CapButton id="cancel-button" type="cancel" onClick={props.cancelHandler}> <FormattedMessage {...messages.cancel} /> </CapButton>
|
|
26
|
-
</CapColumn>
|
|
27
|
-
<CapColumn span={2}>
|
|
28
|
-
<CapButton id="save-button" type="primary" onClick={props.saveHandler}> <FormattedMessage {...messages.save} /> </CapButton>
|
|
29
|
-
</CapColumn>
|
|
30
|
-
</CapRow>
|
|
31
|
-
</div>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
Header.propTypes = {
|
|
36
|
-
templateNameHandler: PropTypes.func,
|
|
37
|
-
previewHandler: PropTypes.func,
|
|
38
|
-
cancelHandler: PropTypes.func,
|
|
39
|
-
saveHandler: PropTypes.func,
|
|
40
|
-
templateName: PropTypes.string,
|
|
41
|
-
intl: intlShape.isRequired,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export default injectIntl(Header);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Header Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the Header component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
header: {
|
|
10
|
-
id: 'creatives.components.Header.header',
|
|
11
|
-
defaultMessage: 'This is the Header component !',
|
|
12
|
-
},
|
|
13
|
-
preview: {
|
|
14
|
-
id: 'creatives.components.Header.preview',
|
|
15
|
-
defaultMessage: 'Preview',
|
|
16
|
-
},
|
|
17
|
-
cancel: {
|
|
18
|
-
id: 'creatives.components.Header.cancel',
|
|
19
|
-
defaultMessage: 'Cancel',
|
|
20
|
-
},
|
|
21
|
-
save: {
|
|
22
|
-
id: 'creatives.components.Header.save',
|
|
23
|
-
defaultMessage: 'Save',
|
|
24
|
-
},
|
|
25
|
-
enterTemplateName: {
|
|
26
|
-
id: 'creatives.components.Header.enterTemplateName',
|
|
27
|
-
defaultMessage: 'Enter template name*',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
.modal-image-preview-wrapper {
|
|
2
|
-
width: 100vw;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
position: fixed;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
background: rgba(0,0,0,0.56);
|
|
8
|
-
z-index: 10002;
|
|
9
|
-
|
|
10
|
-
#image-preview-container {
|
|
11
|
-
position: relative;
|
|
12
|
-
left: 40vw;
|
|
13
|
-
width: 60vw;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
background: rgba(255,255,255,1);
|
|
16
|
-
// padding: 0 24px 0 24px;
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
// font-family: 'proxima-nova';
|
|
19
|
-
|
|
20
|
-
.image-preview-header {
|
|
21
|
-
display: inline-flex;
|
|
22
|
-
width: 100%;
|
|
23
|
-
padding: 16px 24px;
|
|
24
|
-
-webkit-box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.12);
|
|
25
|
-
-moz-box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.12);
|
|
26
|
-
box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.12);
|
|
27
|
-
margin-bottom: 6px;
|
|
28
|
-
height: 56px;
|
|
29
|
-
align-items: center;
|
|
30
|
-
.heading-title {
|
|
31
|
-
font-size: 20px;
|
|
32
|
-
line-height: 24px;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
width: 97%;
|
|
35
|
-
text-overflow: ellipsis;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
|
|
39
|
-
&:first-letter{
|
|
40
|
-
text-transform: capitalize;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.close-image-preview{
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#image-preview-content {
|
|
49
|
-
padding: 0 0px 0 24px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.show-image-preview {
|
|
55
|
-
visibility: visible;
|
|
56
|
-
opacity: 1;
|
|
57
|
-
transition: visibility 1s linear 0.33s, opacity 0.33s linear;
|
|
58
|
-
}
|
|
59
|
-
.hide-image-preview {
|
|
60
|
-
visibility: hidden;
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transition-delay: 0s;
|
|
63
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* ImagePreview
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { injectIntl, intlShape } from 'react-intl';
|
|
11
|
-
import { Spin } from 'antd';
|
|
12
|
-
import messages from './messages';
|
|
13
|
-
import './_imagePreview.scss';
|
|
14
|
-
|
|
15
|
-
class ImagePreview extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
16
|
-
render() {
|
|
17
|
-
return (
|
|
18
|
-
<div className={this.props.show ? "modal-image-preview-wrapper show-image-preview" : "modal-image-preview-wrapper hide-image-preview"}>
|
|
19
|
-
<div id="image-preview-container">
|
|
20
|
-
<div className="image-preview-header">
|
|
21
|
-
<div className="heading-title">
|
|
22
|
-
{this.props.header}
|
|
23
|
-
</div>
|
|
24
|
-
<div id="box-actions" style={{ float: 'right' }} onClick={this.props.handleClose}>
|
|
25
|
-
<i className="material-icons close-image-preview">{this.props.intl.formatMessage(messages.close)}</i>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div id="image-preview-content">
|
|
30
|
-
<Spin tip={this.props.intl.formatMessage(messages.loadingImage)} spinning={this.props.isLoading}>
|
|
31
|
-
{this.props.content}
|
|
32
|
-
</Spin>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ImagePreview.propTypes = {
|
|
41
|
-
header: PropTypes.oneOfType([
|
|
42
|
-
PropTypes.element,
|
|
43
|
-
PropTypes.string,
|
|
44
|
-
]).isRequired,
|
|
45
|
-
content: PropTypes.element.isRequired,
|
|
46
|
-
show: PropTypes.bool,
|
|
47
|
-
handleClose: PropTypes.func.isRequired,
|
|
48
|
-
isLoading: PropTypes.bool,
|
|
49
|
-
intl: intlShape.isRequired,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default injectIntl(ImagePreview);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ImagePreview Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the ImagePreview component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
loadingImage: {
|
|
10
|
-
id: 'creatives.components.ImagePreview.loadingImage',
|
|
11
|
-
defaultMessage: 'Loading images !!!!',
|
|
12
|
-
},
|
|
13
|
-
close: {
|
|
14
|
-
id: 'creatives.components.ImagePreview.close',
|
|
15
|
-
defaultMessage: 'close',
|
|
16
|
-
},
|
|
17
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.pageHeader{
|
|
2
|
-
.pageHeader-wrapper{
|
|
3
|
-
padding-top: 8px;
|
|
4
|
-
padding-bottom: 8px;
|
|
5
|
-
|
|
6
|
-
.title-container {
|
|
7
|
-
padding-left: 0px !important;
|
|
8
|
-
|
|
9
|
-
.title {
|
|
10
|
-
font-size: 24px;
|
|
11
|
-
line-height: 32px;
|
|
12
|
-
color: #323B4E;
|
|
13
|
-
font-family: 'Proxima-Nova';
|
|
14
|
-
font-weight: 600;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.action-buttons{
|
|
18
|
-
text-align: right;
|
|
19
|
-
padding-right: 0 !important;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
// import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
import { Grid } from 'semantic-ui-react';
|
|
6
|
-
import './_pageHeader.scss';
|
|
7
|
-
|
|
8
|
-
// import { FormattedMessage } from 'react-intl';
|
|
9
|
-
// import messages from './messages';
|
|
10
|
-
|
|
11
|
-
class PageHeader extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
12
|
-
render() {
|
|
13
|
-
return (
|
|
14
|
-
<Grid className="pageHeader">
|
|
15
|
-
<Grid.Row className="pageHeader-wrapper">
|
|
16
|
-
<Grid.Column width={8} className="title-container">
|
|
17
|
-
<h2 className="title">{this.props.pageHeading}</h2>
|
|
18
|
-
</Grid.Column>
|
|
19
|
-
<Grid.Column className="action-buttons" width={8}>
|
|
20
|
-
{this.props.actionComponents}
|
|
21
|
-
</Grid.Column>
|
|
22
|
-
</Grid.Row>
|
|
23
|
-
</Grid>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
PageHeader.propTypes = {
|
|
29
|
-
// Need Formatted Message in pageHeading Props
|
|
30
|
-
pageHeading: PropTypes.oneOfType([
|
|
31
|
-
PropTypes.element,
|
|
32
|
-
PropTypes.string,
|
|
33
|
-
]),
|
|
34
|
-
actionComponents: PropTypes.element,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default PageHeader;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* PageHeader Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the PageHeader component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
header: {
|
|
10
|
-
id: 'creatives.components.PageHeader.header',
|
|
11
|
-
defaultMessage: 'This is the PageHeader component !',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* CardGrid
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import './_pagination.scss';
|
|
11
|
-
class Pagination extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
12
|
-
|
|
13
|
-
componentDidMount() {
|
|
14
|
-
if (document.getElementsByClassName('pagination-container').length > 0) {
|
|
15
|
-
document.getElementsByClassName('pagination-container')[0].addEventListener('scroll', this.handleScroll);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
handleScroll = (e) => {
|
|
19
|
-
const offset = 50;
|
|
20
|
-
if ((e.target.scrollHeight - e.target.scrollTop) - offset <= e.target.clientHeight) {
|
|
21
|
-
this.props.onPageChange();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
componentDidUnMount() {
|
|
25
|
-
if ( document.getElementsByClassName(this.props.paginationContainer).length > 0) {
|
|
26
|
-
document.getElementsByClassName(this.props.paginationContainer)[0].removeEventListener('scroll', this.handleScroll);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return (
|
|
31
|
-
<div style={this.props.style ? this.props.style : {}}>
|
|
32
|
-
{this.props.children}
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
Pagination.propTypes = {
|
|
39
|
-
children: PropTypes.element,
|
|
40
|
-
onPageChange: PropTypes.func,
|
|
41
|
-
style: PropTypes.object,
|
|
42
|
-
paginationContainer: PropTypes.string,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
Pagination.defaultProps = {
|
|
46
|
-
paginationContainer: "pagination-container",
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export default Pagination;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.seperator-line{
|
|
2
|
-
color: #e9e9e9;
|
|
3
|
-
border-style: solid;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.preview-info{
|
|
7
|
-
text-align: center;
|
|
8
|
-
color: #333333;
|
|
9
|
-
font-family: Open-Sans;
|
|
10
|
-
line-height: 24px;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.preview-buttons{
|
|
15
|
-
width: 80px;
|
|
16
|
-
height: 32px;
|
|
17
|
-
text-align: center;
|
|
18
|
-
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.preview-action-container{
|
|
22
|
-
display:flex;
|
|
23
|
-
justify-content: flex-end;
|
|
24
|
-
}
|
|
25
|
-
.devices{
|
|
26
|
-
text-align: center;
|
|
27
|
-
margin: 16px;
|
|
28
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* PreviewSideBar
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import moment from "moment";
|
|
11
|
-
import { CapButton } from '@capillarytech/cap-react-ui-library';
|
|
12
|
-
// import styled from 'styled-components';
|
|
13
|
-
|
|
14
|
-
import { FormattedMessage } from 'react-intl';
|
|
15
|
-
import { Button } from 'antd';
|
|
16
|
-
import _ from 'lodash';
|
|
17
|
-
import TemplatePreview from '../TemplatePreview';
|
|
18
|
-
import SlideBox from '../SlideBox';
|
|
19
|
-
import './_previewsidebar.scss';
|
|
20
|
-
import messages from './messages';
|
|
21
|
-
const ButtonGroup = Button.Group;
|
|
22
|
-
|
|
23
|
-
class PreviewSideBar extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
24
|
-
constructor(props) {
|
|
25
|
-
super(props);
|
|
26
|
-
this.goToEdit = this.goToEdit.bind(this);
|
|
27
|
-
this.goToDuplicate = this.goToDuplicate.bind(this);
|
|
28
|
-
this.changeDevice = this.changeDevice.bind(this);
|
|
29
|
-
this.state = {
|
|
30
|
-
device: "android",
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
componentWillReceiveProps(nextProps) {
|
|
34
|
-
if (nextProps.templateData.versions && nextProps.templateData.versions.base.ANDROID && nextProps.templateData.versions.base.IOS) {
|
|
35
|
-
this.setState({device: 'android'});
|
|
36
|
-
} else if (nextProps.templateData.versions && nextProps.templateData.versions.base.IOS) {
|
|
37
|
-
this.setState({device: 'ios'});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
goToDuplicate() {
|
|
41
|
-
this.props.onDuplicateClick(this.props.templateData);
|
|
42
|
-
this.props.handleClose();
|
|
43
|
-
}
|
|
44
|
-
changeDevice(ev) {
|
|
45
|
-
this.setState({device: ev.target.value});
|
|
46
|
-
}
|
|
47
|
-
goToEdit(e, path) {
|
|
48
|
-
this.props.onEditClick(e, this.props.templateData._id, this.props.templateData.modeType, path);
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
|
|
52
|
-
// const modeTypeLine = this.props.templateData.modeType; // expected: (text or image)
|
|
53
|
-
let content = '';
|
|
54
|
-
if ((this.props.channel || '').toLowerCase() === 'wechat') {
|
|
55
|
-
|
|
56
|
-
content = this.props.templateData.content;
|
|
57
|
-
} else if ((this.props.channel || '').toLowerCase() === "mobilepush" && !_.isEmpty(this.props.templateData)) {
|
|
58
|
-
const data = this.state.device === "android" ? this.props.templateData.versions.base.ANDROID : this.props.templateData.versions.base.IOS;
|
|
59
|
-
content = {
|
|
60
|
-
header: data.title,
|
|
61
|
-
bodyText: data.message,
|
|
62
|
-
bodyImage: data.expandableDetails && data.expandableDetails.image,
|
|
63
|
-
actions: [],
|
|
64
|
-
appName: this.props.templateData.appName,
|
|
65
|
-
};
|
|
66
|
-
if (data.expandableDetails && data.expandableDetails.ctas && data.expandableDetails.ctas.length) {
|
|
67
|
-
if (this.state.device === "android" ) {
|
|
68
|
-
content.actions = _.map(data.expandableDetails.ctas, (cta) => ({label: cta.actionText}));
|
|
69
|
-
} else {
|
|
70
|
-
content.actions = [{label: data.expandableDetails.ctas[0].actionLabel}, {label: data.expandableDetails.ctas[0].actionLabel2}];
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
} else if ((this.props.channel || '').toLowerCase() === "line") {
|
|
74
|
-
const isMsgReady = (this.props.templateData && this.props.templateData.versions && this.props.templateData.versions.base);
|
|
75
|
-
if (isMsgReady) {
|
|
76
|
-
content = {
|
|
77
|
-
bodyText: this.props.templateData.versions.base.content.messages[0].text ? this.props.templateData.versions.base.content.messages[0].text : '',
|
|
78
|
-
bodyImage: this.props.templateData.versions.base.content.messages[0].previewImageUrl ? this.props.templateData.versions.base.content.messages[0].previewImageUrl : '',
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
} else {
|
|
82
|
-
content = this.props.templateData && this.props.templateData.versions && this.props.templateData.versions.base ? this.props.templateData.versions.base['sms-editor'] : '';
|
|
83
|
-
for (let idx = 2; idx <= 5; idx += 1) {
|
|
84
|
-
if ((content === '' || !content) && this.props.templateData && this.props.templateData.versions && this.props.templateData.versions.base && this.props.templateData && this.props.templateData.versions && this.props.templateData.versions.base[`sms-editor${idx}`]) {
|
|
85
|
-
content = this.props.templateData.versions.base[`sms-editor${idx}`];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
let path = '';
|
|
90
|
-
if ((this.props.channel || '').toLowerCase() === 'wechat') {
|
|
91
|
-
path = this.props.templateData && this.props.templateData.definition && this.props.templateData.definition.msgcontent === "RICH_MEDIA_WECHAT" ? `/wechat/richmedia/edit/${this.props.templateData._id}` : `/wechat/edit/${this.props.templateData._id}`;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return (
|
|
95
|
-
<SlideBox
|
|
96
|
-
header={this.props.templateData && this.props.templateData.name ? this.props.templateData.name : ''}
|
|
97
|
-
content={
|
|
98
|
-
<div>
|
|
99
|
-
<div className="devices">
|
|
100
|
-
{!_.isEmpty(this.props.templateData) && this.props.templateData.versions.base.ANDROID && this.props.templateData.versions.base.IOS &&
|
|
101
|
-
<ButtonGroup onClick={this.changeDevice}>
|
|
102
|
-
<CapButton type={this.state.device === "android" ? "primary" : "secondary"} value={"android"}><FormattedMessage {...messages.android} /></CapButton>
|
|
103
|
-
<CapButton type={this.state.device === "iphone" ? "primary" : "secondary"} value={"iphone"}><FormattedMessage {...messages.ios} /></CapButton>
|
|
104
|
-
</ButtonGroup>}
|
|
105
|
-
</div>
|
|
106
|
-
{(this.props.channel || '').toLowerCase() === "mobilepush" ?
|
|
107
|
-
<TemplatePreview
|
|
108
|
-
device={this.state.device === "android" ? "android" : "iphone"}
|
|
109
|
-
channel={this.props.channel}
|
|
110
|
-
content={content || ''}
|
|
111
|
-
>
|
|
112
|
-
</TemplatePreview>
|
|
113
|
-
:
|
|
114
|
-
<TemplatePreview
|
|
115
|
-
content={content || ''}
|
|
116
|
-
channel={this.props.channel}
|
|
117
|
-
location={this.props.location}
|
|
118
|
-
charCounterEnabled={(this.props.channel || '').toLowerCase() === 'sms'}
|
|
119
|
-
unicodeEnabled={(this.props.channel || '').toLowerCase() === 'sms'}
|
|
120
|
-
>
|
|
121
|
-
</TemplatePreview>
|
|
122
|
-
}
|
|
123
|
-
<p className="preview-info"><FormattedMessage {...messages.lastModified} />: {moment(this.props.templateData).format('MM-DD-YYYY')}</p>
|
|
124
|
-
<p style={{marginBottom: '8px'}} className="preview-info"><FormattedMessage {...messages.uploadedBy} /> : {this.props.templateData.updatedByName}</p>
|
|
125
|
-
<hr className="seperator-line" />
|
|
126
|
-
<div className="preview-action-container" style={{margin: '16px'}}>
|
|
127
|
-
{(this.props.channel || '').toLowerCase() === 'sms' && !this.props.embedded && <CapButton onClick={() => this.goToDuplicate()}className="preview-buttons" style={{marginRight: '8px'}} type="secondary"><FormattedMessage {...messages.duplicate} /></CapButton>}
|
|
128
|
-
<CapButton onClick={(e) => this.goToEdit(e, path)} className="preview-buttons" type="primary">{this.props.location.query.type === 'embedded' ? <FormattedMessage {...messages.select} /> : <FormattedMessage {...messages.edit} />}</CapButton>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
}
|
|
132
|
-
show={this.props.showPreview}
|
|
133
|
-
handleClose={this.props.handleClose}
|
|
134
|
-
>
|
|
135
|
-
</SlideBox>
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
PreviewSideBar.propTypes = {
|
|
142
|
-
templateData: PropTypes.object.isRequired,
|
|
143
|
-
channel: PropTypes.string.isRequired,
|
|
144
|
-
showPreview: PropTypes.bool,
|
|
145
|
-
handleClose: PropTypes.func,
|
|
146
|
-
onEditClick: PropTypes.func,
|
|
147
|
-
onDuplicateClick: PropTypes.func,
|
|
148
|
-
location: PropTypes.object,
|
|
149
|
-
embedded: PropTypes.bool,
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export default PreviewSideBar;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* PreviewSideBar Messages
|
|
3
|
-
*
|
|
4
|
-
* This contains all the text for the PreviewSideBar component.
|
|
5
|
-
*/
|
|
6
|
-
import { defineMessages } from 'react-intl';
|
|
7
|
-
|
|
8
|
-
export default defineMessages({
|
|
9
|
-
header: {
|
|
10
|
-
id: 'creatives.components.PreviewSideBar.header',
|
|
11
|
-
defaultMessage: 'This is the PreviewSideBar component !',
|
|
12
|
-
},
|
|
13
|
-
lastModified: {
|
|
14
|
-
id: 'creatives.components.PreviewSideBar.lastModified',
|
|
15
|
-
defaultMessage: 'Last modified on',
|
|
16
|
-
},
|
|
17
|
-
uploadedBy: {
|
|
18
|
-
id: 'creatives.components.PreviewSideBar.uploadedBy',
|
|
19
|
-
defaultMessage: 'Last modified by',
|
|
20
|
-
},
|
|
21
|
-
edit: {
|
|
22
|
-
id: 'creatives.components.PreviewSideBar.edit',
|
|
23
|
-
defaultMessage: 'Edit',
|
|
24
|
-
},
|
|
25
|
-
select: {
|
|
26
|
-
id: 'creatives.components.PreviewSideBar.select',
|
|
27
|
-
defaultMessage: 'Select',
|
|
28
|
-
},
|
|
29
|
-
duplicate: {
|
|
30
|
-
id: 'creatives.components.PreviewSideBar.duplicate',
|
|
31
|
-
defaultMessage: 'Duplicate',
|
|
32
|
-
},
|
|
33
|
-
android: {
|
|
34
|
-
id: 'creatives.components.PreviewSideBar.android',
|
|
35
|
-
defaultMessage: 'Android',
|
|
36
|
-
},
|
|
37
|
-
ios: {
|
|
38
|
-
id: 'creatives.components.PreviewSideBar.ios',
|
|
39
|
-
defaultMessage: 'IOS',
|
|
40
|
-
},
|
|
41
|
-
});
|