@capillarytech/creatives-library 8.0.136-alpha.4 → 8.0.136-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/BreadCrumbs/index.js +65 -0
- package/components/BreadCrumbs/messages.js +13 -0
- package/components/CapTagList/index.js +235 -0
- package/components/CapTagList/messages.js +45 -0
- package/components/Card/_customCard.scss +40 -0
- package/components/Card/index.js +78 -0
- package/components/Card/tests/__snapshots__/index.test.js.snap +22 -0
- package/components/Card/tests/index.test.js +20 -0
- package/components/CardGrid/index.js +71 -0
- package/components/Ckeditor/index.js +238 -0
- package/components/Ckeditor/messages.js +13 -0
- package/components/Ckeditor/style.scss +3 -0
- package/components/Component/index.js +29 -0
- package/components/CustomPopOver/index.js +81 -0
- package/components/CustomPopOver/messages.js +17 -0
- package/components/DateFilter/index.js +349 -0
- package/components/DateFilter/messages.js +57 -0
- package/components/DateRange/index.js +114 -0
- package/components/DateRange/messages.js +25 -0
- package/components/Edmeditor/index.js +65 -0
- package/components/Edmeditor/messages.js +13 -0
- package/components/EmailPreview/_emailPreview.scss +119 -0
- package/components/EmailPreview/assets/images/iPad.svg +10 -0
- package/components/EmailPreview/assets/images/mobile.png +0 -0
- package/components/EmailPreview/index.js +107 -0
- package/components/EmailPreview/messages.js +33 -0
- package/components/Footer/index.js +27 -0
- package/components/Footer/messages.js +13 -0
- package/components/FormBuilder/_formBuilder.scss +83 -0
- package/components/FormBuilder/index.js +3279 -0
- package/components/FormBuilder/messages.js +61 -0
- package/components/Header/index.js +44 -0
- package/components/Header/messages.js +29 -0
- package/components/ImagePreview/_imagePreview.scss +63 -0
- package/components/ImagePreview/index.js +52 -0
- package/components/ImagePreview/messages.js +17 -0
- package/components/PageHeader/_pageHeader.scss +22 -0
- package/components/PageHeader/index.js +37 -0
- package/components/PageHeader/messages.js +13 -0
- package/components/Pagination/_pagination.scss +5 -0
- package/components/Pagination/index.js +49 -0
- package/components/PreviewSideBar/_previewsidebar.scss +28 -0
- package/components/PreviewSideBar/index.js +152 -0
- package/components/PreviewSideBar/messages.js +41 -0
- package/components/Sidebar/_sidebar.scss +115 -0
- package/components/Sidebar/index.js +214 -0
- package/components/Sidebar/messages.js +21 -0
- package/components/SlideBox/_slideBox.scss +63 -0
- package/components/SlideBox/index.js +47 -0
- package/components/SlideBox/tests/index.test.js +103 -0
- package/components/SmsEditor/index.js +55 -0
- package/components/SmsTest/index.js +117 -0
- package/components/SmsTest/messages.js +21 -0
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +42 -0
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +141 -0
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +21 -0
- package/components/TemplatePreview/_templatePreview.scss +642 -0
- package/components/TemplatePreview/assets/images/WECHAT_5x.png +0 -0
- package/components/TemplatePreview/assets/images/androidPushMessage.svg +45 -0
- package/components/TemplatePreview/assets/images/home-screen-android.svg +21 -0
- package/components/TemplatePreview/assets/images/home-screen-ios.svg +16 -0
- package/components/TemplatePreview/assets/images/iPhonePushMessage.svg +135 -0
- package/components/TemplatePreview/assets/images/mobile.svg +24 -0
- 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 +22 -0
- package/components/TemplatePreview/assets/images/sms_mobile_ios.svg +16 -0
- package/components/TemplatePreview/assets/images/user-icon.svg +19 -0
- package/components/TemplatePreview/assets/images/wechat-mobile.svg +78 -0
- package/components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -0
- package/components/TemplatePreview/index.js +617 -0
- package/components/TemplatePreview/messages.js +78 -0
- package/components/Toastr/index.js +60 -0
- package/components/Toastr/messages.js +13 -0
- package/components/ToastrMessage/index.js +113 -0
- package/components/ToastrMessage/messages.js +17 -0
- package/components/TopBar/_topbar.scss +46 -0
- 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 +113 -0
- package/components/TopBar/messages.js +29 -0
- package/containers/App/actions.js +7 -0
- package/containers/App/constants.js +114 -0
- package/containers/App/index.js +52 -0
- package/containers/App/reducer.js +19 -0
- package/containers/App/sagas.js +31 -0
- package/containers/App/selectors.js +25 -0
- package/containers/App/test/saga.test.js +11 -0
- package/containers/Assets/Gallery/_gallery.scss +126 -0
- package/containers/Assets/Gallery/actions.js +37 -0
- package/containers/Assets/Gallery/constants.js +23 -0
- package/containers/Assets/Gallery/index.js +473 -0
- package/containers/Assets/Gallery/messages.js +93 -0
- package/containers/Assets/Gallery/reducer.js +81 -0
- package/containers/Assets/Gallery/sagas.js +80 -0
- package/containers/Assets/Gallery/selectors.js +25 -0
- package/containers/Assets/Gallery/tests/__snapshots__/reducer.test.js.snap +9 -0
- package/containers/Assets/Gallery/tests/actions.test.js +25 -0
- package/containers/Assets/Gallery/tests/reducer.test.js +96 -0
- package/containers/Assets/Gallery/tests/saga.test.js +157 -0
- package/containers/Cap/actions.js +66 -0
- package/containers/Cap/constants.js +25 -0
- package/containers/Cap/index.js +402 -0
- package/containers/Cap/messages.js +75 -0
- package/containers/Cap/reducer.js +113 -0
- package/containers/Cap/sagas.js +159 -0
- package/containers/Cap/selectors.js +75 -0
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +2269 -0
- package/containers/Cap/tests/index.test.js +22 -0
- package/containers/Cap/tests/saga.test.js +284 -0
- package/containers/Dashboard/actions.js +15 -0
- package/containers/Dashboard/constants.js +7 -0
- package/containers/Dashboard/index.js +76 -0
- package/containers/Dashboard/messages.js +13 -0
- package/containers/Dashboard/reducer.js +21 -0
- package/containers/Dashboard/sagas.js +17 -0
- package/containers/Dashboard/selectors.js +25 -0
- package/containers/Dashboard/test/saga.test.js +9 -0
- package/containers/Ebill/_ebill.scss +5 -0
- package/containers/Ebill/actions.js +43 -0
- package/containers/Ebill/constants.js +20 -0
- package/containers/Ebill/index.js +1278 -0
- package/containers/Ebill/messages.js +77 -0
- package/containers/Ebill/reducer.js +72 -0
- package/containers/Ebill/sagas.js +74 -0
- package/containers/Ebill/selectors.js +25 -0
- package/containers/Ebill/test/saga.test.js +11 -0
- package/containers/Email/_email.scss +141 -0
- package/containers/Email/actions.js +81 -0
- package/containers/Email/constants.js +36 -0
- package/containers/Email/index.js +3325 -0
- package/containers/Email/messages.js +289 -0
- package/containers/Email/reducer.js +142 -0
- package/containers/Email/sagas.js +135 -0
- package/containers/Email/selectors.js +31 -0
- package/containers/Email/test/saga.test.js +671 -0
- package/containers/LanguageProvider/actions.js +17 -0
- package/containers/LanguageProvider/constants.js +8 -0
- package/containers/LanguageProvider/index.js +80 -0
- package/containers/LanguageProvider/reducer.js +30 -0
- package/containers/LanguageProvider/selectors.js +20 -0
- package/containers/LanguageProvider/tests/actions.test.js +19 -0
- package/containers/LanguageProvider/tests/index.test.js +78 -0
- package/containers/LanguageProvider/tests/reducer.test.js +20 -0
- package/containers/LanguageProvider/tests/selectors.test.js +15 -0
- package/containers/Line/Create/_lineCreate.scss +54 -0
- package/containers/Line/Create/actions.js +90 -0
- package/containers/Line/Create/constants.js +39 -0
- package/containers/Line/Create/index.js +836 -0
- package/containers/Line/Create/messages.js +189 -0
- package/containers/Line/Create/reducer.js +99 -0
- package/containers/Line/Create/sagas.js +121 -0
- package/containers/Line/Create/selectors.js +36 -0
- package/containers/Line/Create/tests/saga.test.js +202 -0
- package/containers/Line/Edit/_lineEdit.scss +35 -0
- package/containers/Line/Edit/actions.js +79 -0
- package/containers/Line/Edit/constants.js +27 -0
- package/containers/Line/Edit/index.js +1050 -0
- package/containers/Line/Edit/messages.js +177 -0
- package/containers/Line/Edit/reducer.js +83 -0
- package/containers/Line/Edit/sagas.js +80 -0
- package/containers/Line/Edit/selectors.js +29 -0
- package/containers/Line/Edit/test/saga.test.js +160 -0
- package/containers/Login/assets/images/capillary_logo.png +0 -0
- package/containers/Login/components/LoginForm/index.js +62 -0
- package/containers/Login/components/LoginForm/messages.js +33 -0
- package/containers/Login/index.js +130 -0
- package/containers/Login/messages.js +25 -0
- package/containers/Login/selectors.js +25 -0
- package/containers/MobilePush/Create/_mobilePushCreate.scss +39 -0
- package/containers/MobilePush/Create/actions.js +46 -0
- package/containers/MobilePush/Create/constants.js +23 -0
- package/containers/MobilePush/Create/index.js +2303 -0
- package/containers/MobilePush/Create/messages.js +269 -0
- package/containers/MobilePush/Create/reducer.js +70 -0
- package/containers/MobilePush/Create/sagas.js +74 -0
- package/containers/MobilePush/Create/selectors.js +28 -0
- package/containers/MobilePush/Create/test/saga.test.js +19 -0
- package/containers/MobilePush/Edit/_mobilePushCreate.scss +39 -0
- package/containers/MobilePush/Edit/actions.js +91 -0
- package/containers/MobilePush/Edit/constants.js +35 -0
- package/containers/MobilePush/Edit/index.js +2601 -0
- package/containers/MobilePush/Edit/messages.js +266 -0
- package/containers/MobilePush/Edit/reducer.js +112 -0
- package/containers/MobilePush/Edit/sagas.js +126 -0
- package/containers/MobilePush/Edit/selectors.js +29 -0
- package/containers/MobilePush/Edit/tests/saga.test.js +255 -0
- package/containers/NotFoundPage/index.js +25 -0
- package/containers/NotFoundPage/messages.js +13 -0
- package/containers/NotFoundPage/tests/index.test.js +17 -0
- package/containers/Sms/Create/_smsCreate.scss +42 -0
- package/containers/Sms/Create/actions.js +27 -0
- package/containers/Sms/Create/constants.js +16 -0
- package/containers/Sms/Create/index.js +1488 -0
- package/containers/Sms/Create/messages.js +109 -0
- package/containers/Sms/Create/reducer.js +41 -0
- package/containers/Sms/Create/sagas.js +40 -0
- package/containers/Sms/Create/selectors.js +28 -0
- package/containers/Sms/Create/test/saga.test.js +11 -0
- package/containers/Sms/Edit/actions.js +40 -0
- package/containers/Sms/Edit/constants.js +17 -0
- package/containers/Sms/Edit/index.js +1472 -0
- package/containers/Sms/Edit/messages.js +105 -0
- package/containers/Sms/Edit/reducer.js +50 -0
- package/containers/Sms/Edit/sagas.js +60 -0
- package/containers/Sms/Edit/selectors.js +32 -0
- package/containers/Sms/Edit/test/saga.test.js +13 -0
- package/containers/TagList/_tagList.scss +8 -0
- package/containers/TagList/actions.js +15 -0
- package/containers/TagList/constants.js +32 -0
- package/containers/TagList/index.js +236 -0
- package/containers/TagList/messages.js +13 -0
- package/containers/TagList/reducer.js +23 -0
- package/containers/TagList/sagas.js +11 -0
- package/containers/TagList/selectors.js +25 -0
- package/containers/Templates/_templates.scss +333 -0
- package/containers/Templates/actions.js +103 -0
- package/containers/Templates/constants.js +60 -0
- package/containers/Templates/index.js +1756 -0
- package/containers/Templates/messages.js +337 -0
- package/containers/Templates/reducer.js +142 -0
- package/containers/Templates/sagas.js +163 -0
- package/containers/Templates/selectors.js +28 -0
- package/containers/Templates/test/saga.test.js +241 -0
- package/containers/WeChat/MapTemplates/_mapTemplates.scss +8 -0
- package/containers/WeChat/MapTemplates/actions.js +52 -0
- package/containers/WeChat/MapTemplates/constants.js +28 -0
- package/containers/WeChat/MapTemplates/index.js +1610 -0
- package/containers/WeChat/MapTemplates/messages.js +157 -0
- package/containers/WeChat/MapTemplates/reducer.js +74 -0
- package/containers/WeChat/MapTemplates/sagas.js +84 -0
- package/containers/WeChat/MapTemplates/selectors.js +25 -0
- package/containers/WeChat/MapTemplates/test/saga.test.js +155 -0
- package/containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +57 -0
- package/containers/WeChat/RichmediaTemplates/Create/actions.js +36 -0
- package/containers/WeChat/RichmediaTemplates/Create/constants.js +15 -0
- package/containers/WeChat/RichmediaTemplates/Create/index.js +1071 -0
- package/containers/WeChat/RichmediaTemplates/Create/messages.js +165 -0
- package/containers/WeChat/RichmediaTemplates/Create/reducer.js +60 -0
- package/containers/WeChat/RichmediaTemplates/Create/richmediaschema.js +497 -0
- package/containers/WeChat/RichmediaTemplates/Create/sagas.js +51 -0
- package/containers/WeChat/RichmediaTemplates/Create/selectors.js +37 -0
- package/containers/WeChat/RichmediaTemplates/Create/test/saga.test.js +13 -0
- package/containers/WeChat/RichmediaTemplates/Edit/actions.js +20 -0
- package/containers/WeChat/RichmediaTemplates/Edit/constants.js +10 -0
- package/containers/WeChat/RichmediaTemplates/Edit/index.js +136 -0
- package/containers/WeChat/RichmediaTemplates/Edit/messages.js +13 -0
- package/containers/WeChat/RichmediaTemplates/Edit/reducer.js +28 -0
- package/containers/WeChat/RichmediaTemplates/Edit/sagas.js +36 -0
- package/containers/WeChat/RichmediaTemplates/Edit/selectors.js +30 -0
- package/containers/WeChat/RichmediaTemplates/Edit/test/saga.test.js +12 -0
- package/containers/WeChat/RichmediaTemplates/View/actions.js +15 -0
- package/containers/WeChat/RichmediaTemplates/View/constants.js +7 -0
- package/containers/WeChat/RichmediaTemplates/View/index.js +47 -0
- package/containers/WeChat/RichmediaTemplates/View/messages.js +21 -0
- package/containers/WeChat/RichmediaTemplates/View/reducer.js +23 -0
- package/containers/WeChat/RichmediaTemplates/View/sagas.js +11 -0
- package/containers/WeChat/RichmediaTemplates/View/selectors.js +25 -0
- package/index.js +2 -4
- package/package.json +1 -1
- package/routes.js +202 -136
- package/services/getSchema.js +1 -1
- package/services/localStorageApi.js +0 -1
- package/tests/i18n.test.js +1 -1
- package/utils/asyncInjectors.js +78 -0
- package/utils/authWrapper.js +1 -1
- package/utils/callNativeEvent.js +16 -0
- package/utils/checkStore.js +21 -0
- package/utils/common.js +2 -2
- package/utils/customAuthWrapper.js +62 -0
- package/utils/customConnectedAuthWrapper.js +26 -0
- 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 +195 -1
- package/v2Components/CapTagList/index.js +14 -9
- 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 +1 -2
- 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 +6 -6
- 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/constants/unified.js +0 -189
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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);
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
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;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
});
|