@capillarytech/creatives-library 2.0.82 → 2.0.83
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/CapTagList/index.js +24 -21
- package/components/CardGrid/index.js +10 -16
- package/components/Ckeditor/index.js +1 -2
- package/components/CustomPopOver/index.js +1 -1
- package/components/EmailPreview/index.js +2 -3
- package/components/FormBuilder/_formBuilder.scss +15 -8
- package/components/FormBuilder/index.js +194 -260
- package/components/Header/index.js +1 -4
- package/components/PreviewSideBar/_previewsidebar.scss +1 -1
- package/components/PreviewSideBar/index.js +5 -3
- package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -2
- package/components/TemplatePreview/_templatePreview.scss +1 -1
- package/components/TemplatePreview/index.js +47 -47
- package/components/TemplatePreview/messages.js +1 -9
- package/containers/Assets/Gallery/index.js +1 -1
- package/containers/Email/index.js +1 -1
- package/containers/Login/components/LoginForm/index.js +1 -1
- package/containers/Templates/index.js +1 -1
- package/containers/WeChat/RichmediaTemplates/Create/index.js +1 -1
- package/package.json +2 -1
- package/v2Components/BreadCrumbs/index.js +65 -0
- package/v2Components/BreadCrumbs/messages.js +13 -0
- package/v2Components/BreadCrumbs/tests/index.test.js +10 -0
- package/v2Components/CallTaskPreview/_callTaskPreview.scss +17 -0
- package/v2Components/CallTaskPreview/images/Footer.png +0 -0
- package/v2Components/CallTaskPreview/images/Header.png +0 -0
- package/v2Components/CallTaskPreview/index.js +37 -0
- package/v2Components/CallTaskPreview/messages.js +13 -0
- package/v2Components/CallTaskPreview/tests/index.test.js +15 -0
- package/v2Components/CapTagList/index.js +232 -0
- package/v2Components/CapTagList/messages.js +25 -0
- package/v2Components/CapTagList/tests/index.test.js +10 -0
- package/v2Components/Card/_customCard.scss +27 -0
- package/v2Components/Card/index.js +78 -0
- package/{containers/WeChat → v2Components/Card}/tests/index.test.js +2 -2
- package/v2Components/CardGrid/index.js +77 -0
- package/v2Components/CardGrid/tests/index.test.js +10 -0
- package/v2Components/Ckeditor/index.js +234 -0
- package/v2Components/Ckeditor/messages.js +13 -0
- package/v2Components/Ckeditor/tests/index.test.js +10 -0
- package/v2Components/CmsTemplatesComponent/index.js +33 -0
- package/v2Components/CmsTemplatesComponent/messages.js +17 -0
- package/v2Components/CmsTemplatesComponent/tests/index.test.js +10 -0
- package/v2Components/Component/index.js +29 -0
- package/v2Components/Component/tests/index.test.js +10 -0
- package/v2Components/CustomPopOver/index.js +82 -0
- package/v2Components/CustomPopOver/messages.js +13 -0
- package/v2Components/CustomPopOver/tests/index.test.js +10 -0
- package/v2Components/DateFilter/index.js +349 -0
- package/v2Components/DateFilter/messages.js +17 -0
- package/v2Components/DateFilter/tests/index.test.js +15 -0
- package/v2Components/DateRange/index.js +113 -0
- package/v2Components/DateRange/messages.js +13 -0
- package/v2Components/DateRange/tests/index.test.js +10 -0
- package/v2Components/Edmeditor/index.js +65 -0
- package/v2Components/Edmeditor/messages.js +13 -0
- package/v2Components/Edmeditor/tests/index.test.js +10 -0
- package/v2Components/EmailMobilePreview/index.js +129 -0
- package/v2Components/EmailMobilePreview/index.scss +55 -0
- package/v2Components/EmailPreview/_emailPreview.scss +119 -0
- package/v2Components/EmailPreview/index.js +106 -0
- package/v2Components/EmailPreview/messages.js +17 -0
- package/v2Components/EmailPreview/tests/index.test.js +10 -0
- package/v2Components/EmailPreviewV2/_emailPreviewV2.scss +69 -0
- package/v2Components/EmailPreviewV2/index.js +132 -0
- package/v2Components/EmailPreviewV2/messages.js +41 -0
- package/v2Components/EmailPreviewV2/tests/index.test.js +10 -0
- package/v2Components/Footer/index.js +27 -0
- package/v2Components/Footer/messages.js +13 -0
- package/v2Components/Footer/tests/index.test.js +10 -0
- package/v2Components/FormBuilder/_formBuilder.scss +78 -0
- package/v2Components/FormBuilder/index.js +3309 -0
- package/v2Components/FormBuilder/messages.js +13 -0
- package/v2Components/FormBuilder/tests/index.test.js +10 -0
- package/v2Components/Header/index.js +46 -0
- package/v2Components/Header/messages.js +25 -0
- package/v2Components/Header/tests/index.test.js +10 -0
- package/v2Components/ImagePreview/_imagePreview.scss +63 -0
- package/v2Components/ImagePreview/index.js +52 -0
- package/v2Components/ImagePreview/messages.js +13 -0
- package/v2Components/ImagePreview/tests/index.test.js +10 -0
- package/v2Components/MobilePushPreviewV2/index.js +120 -0
- package/v2Components/MobilePushPreviewV2/messages.js +13 -0
- package/v2Components/MobilePushPreviewV2/tests/index.test.js +10 -0
- package/v2Components/NewCallTask/_newCallTask.scss +9 -0
- package/v2Components/NewCallTask/index.js +152 -0
- package/v2Components/NewCallTask/messages.js +29 -0
- package/v2Components/NewCallTask/tests/index.test.js +10 -0
- package/v2Components/PageHeader/_pageHeader.scss +22 -0
- package/v2Components/PageHeader/index.js +37 -0
- package/v2Components/PageHeader/messages.js +13 -0
- package/v2Components/PageHeader/tests/index.test.js +10 -0
- package/v2Components/Pagination/_pagination.scss +5 -0
- package/v2Components/Pagination/index.js +49 -0
- package/v2Components/Pagination/tests/index.test.js +10 -0
- package/v2Components/PreviewSideBar/_previewsidebar.scss +28 -0
- package/v2Components/PreviewSideBar/index.js +150 -0
- package/v2Components/PreviewSideBar/messages.js +33 -0
- package/v2Components/PreviewSideBar/tests/index.test.js +10 -0
- package/v2Components/Sidebar/_sidebar.scss +115 -0
- package/v2Components/Sidebar/index.js +208 -0
- package/v2Components/Sidebar/messages.js +21 -0
- package/v2Components/Sidebar/tests/index.test.js +10 -0
- package/v2Components/SlideBox/_slideBox.scss +63 -0
- package/v2Components/SlideBox/index.js +48 -0
- package/v2Components/SlideBox/tests/index.test.js +103 -0
- package/v2Components/SmsEditor/index.js +55 -0
- package/v2Components/SmsEditor/tests/index.test.js +10 -0
- package/v2Components/SmsTest/index.js +115 -0
- package/v2Components/SmsTest/messages.js +13 -0
- package/v2Components/SmsTest/tests/index.test.js +10 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +42 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +139 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +21 -0
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -0
- package/v2Components/TemplatePreview/_templatePreview.scss +352 -0
- package/v2Components/TemplatePreview/assets/images/WECHAT_5x.png +0 -0
- package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +45 -0
- package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +135 -0
- package/v2Components/TemplatePreview/assets/images/mobile.svg +24 -0
- package/v2Components/TemplatePreview/assets/images/sms-body.png +0 -0
- package/v2Components/TemplatePreview/assets/images/sms-icon.png +0 -0
- package/v2Components/TemplatePreview/assets/images/sms_mobile.png +0 -0
- package/v2Components/TemplatePreview/assets/images/user-icon.svg +19 -0
- package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +78 -0
- package/v2Components/TemplatePreview/index.js +175 -0
- package/v2Components/TemplatePreview/messages.js +37 -0
- package/v2Components/TemplatePreview/tests/index.test.js +10 -0
- package/v2Components/Toastr/index.js +60 -0
- package/v2Components/Toastr/messages.js +13 -0
- package/v2Components/Toastr/tests/index.test.js +10 -0
- package/v2Components/ToastrMessage/index.js +110 -0
- package/v2Components/ToastrMessage/messages.js +13 -0
- package/v2Components/ToastrMessage/tests/index.test.js +10 -0
- package/v2Components/TopBar/_topbar.scss +46 -0
- package/v2Components/TopBar/assets/images/capillary_logo.png +0 -0
- package/v2Components/TopBar/index.js +113 -0
- package/v2Components/TopBar/messages.js +29 -0
- package/v2Components/TopBar/tests/index.test.js +10 -0
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/CallTask/index.js +1 -1
- package/v2Containers/Cap/index.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxContent.js +3 -3
- package/v2Containers/CreativesContainer/index.js +1 -0
- package/v2Containers/Dashboard/index.js +2 -2
- package/v2Containers/Ebill/index.js +2 -2
- package/v2Containers/Email/index.js +4 -4
- package/v2Containers/EmailWrapper/index.js +1 -1
- package/v2Containers/Line/Create/index.js +1 -1
- package/v2Containers/Line/Edit/index.js +1 -1
- package/v2Containers/Login/index.js +1 -1
- package/v2Containers/MobilePush/Create/index.js +1 -1
- package/v2Containers/MobilePush/Edit/index.js +1 -1
- package/v2Containers/Sms/Create/index.js +1 -1
- package/v2Containers/Sms/Edit/index.js +1 -1
- package/v2Containers/TagList/index.js +1 -1
- package/v2Containers/Templates/index.js +4 -4
- package/v2Containers/TestPage/index.js +1 -1
- package/v2Containers/WeChat/MapTemplates/index.js +3 -3
- package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +3 -3
- package/containers/WeChat/_wechat.scss +0 -8
- package/containers/WeChat/actions.js +0 -46
- package/containers/WeChat/constants.js +0 -28
- package/containers/WeChat/index.js +0 -1617
- package/containers/WeChat/messages.js +0 -73
- package/containers/WeChat/reducer.js +0 -74
- package/containers/WeChat/sagas.js +0 -86
- package/containers/WeChat/selectors.js +0 -25
- package/containers/WeChat/tests/actions.test.js +0 -18
- package/containers/WeChat/tests/reducer.test.js +0 -9
- package/containers/WeChat/tests/sagas.test.js +0 -15
- package/containers/WeChat/tests/selectors.test.js +0 -10
|
@@ -12,9 +12,9 @@ import moment from 'moment';
|
|
|
12
12
|
import 'moment/locale/zh-cn';
|
|
13
13
|
import { injectIntl, intlShape } from 'react-intl';
|
|
14
14
|
import {CapNotification} from '@capillarytech/cap-ui-library';
|
|
15
|
-
import TopBar from '../../
|
|
15
|
+
import TopBar from '../../v2Components/TopBar';
|
|
16
16
|
// import 'moment/locale/en-us';
|
|
17
|
-
import Sidebar from '../../
|
|
17
|
+
import Sidebar from '../../v2Components/Sidebar';
|
|
18
18
|
import { makeSelectAuthenticated, makeSelectUser } from './selectors';
|
|
19
19
|
import * as actions from './actions';
|
|
20
20
|
import * as locationActions from '../LanguageProvider/actions';
|
|
@@ -2,14 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import TemplatesV2 from '../TemplatesV2';
|
|
5
|
-
import TemplatePreview from '../../
|
|
5
|
+
import TemplatePreview from '../../v2Components/TemplatePreview';
|
|
6
6
|
import SmsCreate from '../Sms/Create';
|
|
7
7
|
import SmsEdit from '../Sms/Edit';
|
|
8
8
|
import Email from '../Email';
|
|
9
9
|
import EmailWrapper from '../EmailWrapper';
|
|
10
10
|
import MobilepushWrapper from '../MobilepushWrapper';
|
|
11
|
-
import EmailPreviewV2 from '../../
|
|
12
|
-
import MobilePushPreview from '../../
|
|
11
|
+
import EmailPreviewV2 from '../../v2Components/EmailPreviewV2';
|
|
12
|
+
import MobilePushPreview from '../../v2Components/MobilePushPreviewV2';
|
|
13
13
|
import CallTask from '../CallTask';
|
|
14
14
|
import MobliPushEdit from '../MobilePush/Edit';
|
|
15
15
|
import * as constants from './constants';
|
|
@@ -80,6 +80,7 @@ class Creatives extends React.Component {
|
|
|
80
80
|
|
|
81
81
|
onShowTemplates = () => {
|
|
82
82
|
this.setState({ slidBoxContent: 'templates', showSlideBox: true, isGetFormData: false });
|
|
83
|
+
this.resetStep();
|
|
83
84
|
};
|
|
84
85
|
onChannelChange = (channel) => {
|
|
85
86
|
this.setState({currentChannel: channel});
|
|
@@ -9,8 +9,8 @@ import makeSelectDashboard from './selectors';
|
|
|
9
9
|
import messages from './messages';
|
|
10
10
|
import { UserIsAuthenticated } from '../../../utils/authWrapper';
|
|
11
11
|
import * as actions from './actions';
|
|
12
|
-
import PageHeader from '../../
|
|
13
|
-
import BreadCrumbs from '../../
|
|
12
|
+
import PageHeader from '../../v2Components/PageHeader';
|
|
13
|
+
import BreadCrumbs from '../../v2Components/BreadCrumbs/index';
|
|
14
14
|
export class Dashboard extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
15
15
|
render() {
|
|
16
16
|
const breadCrumbLocations = [
|
|
@@ -15,7 +15,7 @@ import { injectIntl, intlShape } from 'react-intl';
|
|
|
15
15
|
import _ from 'lodash';
|
|
16
16
|
import { createStructuredSelector } from 'reselect';
|
|
17
17
|
import * as actions from './actions';
|
|
18
|
-
import FormBuilder from '../../
|
|
18
|
+
import FormBuilder from '../../v2Components/FormBuilder';
|
|
19
19
|
import { makeSelectMetaEntities, makeSelectAuthenticated, setInjectedTags } from '../Cap/selectors';
|
|
20
20
|
import * as globalActions from '../../containers/Cap/actions';
|
|
21
21
|
import { UserIsAuthenticated } from '../../utils/authWrapper';
|
|
@@ -23,7 +23,7 @@ import { makeSelectTemplates } from '../Templates/selectors';
|
|
|
23
23
|
import {getMessageObject} from '../../utils/messageUtils';
|
|
24
24
|
import makeSelectEbill from './selectors';
|
|
25
25
|
import messages from './messages';
|
|
26
|
-
import EmailPreview from '../../
|
|
26
|
+
import EmailPreview from '../../v2Components/EmailPreview';
|
|
27
27
|
import './_ebill.scss';
|
|
28
28
|
import callNativeEvent from '../../utils/callNativeEvent';
|
|
29
29
|
const BreadcrumbItem = Breadcrumb.Item;
|
|
@@ -15,7 +15,7 @@ import { CapButton, CapInput, CapSpin, CapSlideBox, CapCustomCard } from '@capil
|
|
|
15
15
|
import { createStructuredSelector } from 'reselect';
|
|
16
16
|
import _ from 'lodash';
|
|
17
17
|
import moment from "moment";
|
|
18
|
-
import FormBuilder from '../../
|
|
18
|
+
import FormBuilder from '../../v2Components/FormBuilder';
|
|
19
19
|
import { makeSelectMetaEntities, selectCurrentOrgDetails, isLoadingMetaEntities, makeSelectAuthenticated, setInjectedTags } from '../Cap/selectors';
|
|
20
20
|
import * as actions from './actions';
|
|
21
21
|
import * as templatesActions from '../Templates/actions';
|
|
@@ -24,12 +24,12 @@ import { UserIsAuthenticated } from '../../utils/authWrapper';
|
|
|
24
24
|
import {makeSelectEmail} from './selectors';
|
|
25
25
|
import { makeSelectTemplates } from '../Templates/selectors';
|
|
26
26
|
import messages from './messages';
|
|
27
|
-
// import PageHeader from '../../
|
|
27
|
+
// import PageHeader from '../../v2Components/PageHeader';
|
|
28
28
|
import './_email.scss';
|
|
29
29
|
import {getMessageObject} from '../../utils/messageUtils';
|
|
30
|
-
import EmailPreview from '../../
|
|
30
|
+
import EmailPreview from '../../v2Components/EmailPreview';
|
|
31
31
|
|
|
32
|
-
import Pagination from '../../
|
|
32
|
+
import Pagination from '../../v2Components/Pagination';
|
|
33
33
|
import * as creativesContainerActions from '../CreativesContainer/actions';
|
|
34
34
|
const {CapCustomCardList} = CapCustomCard;
|
|
35
35
|
export class Email extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
@@ -17,7 +17,7 @@ import { UserIsAuthenticated } from '../../utils/authWrapper';
|
|
|
17
17
|
import {selectEmailLayout, selectCmsTemplates, selectEdmEditor, uploadSelector} from '../Templates/selectors';
|
|
18
18
|
import * as templatesActionsCreators from '../Templates/actions';
|
|
19
19
|
import Email from '../Email';
|
|
20
|
-
import CmsTemplatesComponent from '../../
|
|
20
|
+
import CmsTemplatesComponent from '../../v2Components/CmsTemplatesComponent';
|
|
21
21
|
import messages from './messages';
|
|
22
22
|
const CapRadioCardWithLabel = ComponentWithLabelHOC(CapRadioCard);
|
|
23
23
|
const CardContainer = styled.div`
|
|
@@ -8,7 +8,7 @@ import { Row, Col, Spin, Breadcrumb } from 'antd';
|
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
import messages from './messages';
|
|
10
10
|
import * as actions from './actions';
|
|
11
|
-
import FormBuilder from '../../../
|
|
11
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
12
12
|
import { UserIsAuthenticated } from '../../../utils/authWrapper';
|
|
13
13
|
import * as globalActions from '../../../containers/Cap/actions';
|
|
14
14
|
//import { makeSelectCreate, makeSelectCreateResponse, makeSelectEdit, makeSelectEditResponse, makeSelectTemplateDetailsResponse } from './selectors';
|
|
@@ -17,7 +17,7 @@ import _ from 'lodash';
|
|
|
17
17
|
import {makeSelectEdit, makeSelectEditResponse, makeSelectTemplateDetailsResponse} from "../../MobilePush/Edit/selectors";
|
|
18
18
|
import {makeSelectMetaEntities, setInjectedTags} from "../../Cap/selectors";
|
|
19
19
|
import {getMessageObject} from "../../../utils/messageUtils";
|
|
20
|
-
import FormBuilder from '../../../
|
|
20
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
21
21
|
import * as globalActions from "../../Cap/actions";
|
|
22
22
|
import * as actions from "../../MobilePush/Edit/actions";
|
|
23
23
|
import * as templatesActions from "../../Templates/actions";
|
|
@@ -10,7 +10,7 @@ import { createStructuredSelector } from 'reselect';
|
|
|
10
10
|
import makeSelectLogin from './selectors';
|
|
11
11
|
import messages from './messages';
|
|
12
12
|
import config from '../../config/app';
|
|
13
|
-
import LoginForm from './
|
|
13
|
+
import LoginForm from './v2Components/LoginForm';
|
|
14
14
|
import * as actions from '../../containers/Cap/actions';
|
|
15
15
|
import { UserIsNotAuthenticated } from '../../utils/authWrapper';
|
|
16
16
|
import loaderGif from '../../assets/loading_img.gif';
|
|
@@ -18,7 +18,7 @@ import { CapSlideBox, CapHeader, CapTable, CapLink, CapRow, CapColumn, CapIcons,
|
|
|
18
18
|
import { makeSelectCreate, makeSelectCreateResponse, makeSelectIosCta } from './selectors';
|
|
19
19
|
import { makeSelectMetaEntities, setInjectedTags } from '../../Cap/selectors';
|
|
20
20
|
import * as globalActions from '../../../containers/Cap/actions';
|
|
21
|
-
import FormBuilder from '../../../
|
|
21
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
22
22
|
import './_mobilePushCreate.scss';
|
|
23
23
|
import * as actions from './actions';
|
|
24
24
|
|
|
@@ -19,7 +19,7 @@ import styled from 'styled-components';
|
|
|
19
19
|
import {makeSelectEdit, makeSelectEditResponse, makeSelectTemplateDetailsResponse, makeSelectIosCta} from "./selectors";
|
|
20
20
|
import {makeSelectMetaEntities, setInjectedTags, isLoadingMetaEntities} from "../../Cap/selectors";
|
|
21
21
|
import {getMessageObject} from "../../../utils/messageUtils";
|
|
22
|
-
import FormBuilder from '../../../
|
|
22
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
23
23
|
import * as globalActions from "../../Cap/actions";
|
|
24
24
|
import * as actions from "../../MobilePush/Edit/actions";
|
|
25
25
|
import * as templatesActions from "../../Templates/actions";
|
|
@@ -17,7 +17,7 @@ import { makeSelectCreate, makeSelectCreateResponse } from './selectors';
|
|
|
17
17
|
import { makeSelectMetaEntities, isLoadingMetaEntities, setInjectedTags } from '../../Cap/selectors';
|
|
18
18
|
import { UserIsAuthenticated } from '../../../utils/authWrapper';
|
|
19
19
|
import './_smsCreate.scss';
|
|
20
|
-
import FormBuilder from '../../../
|
|
20
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
21
21
|
import * as actions from './actions';
|
|
22
22
|
import messages from './messages';
|
|
23
23
|
import * as charCount from '../../../utils/smsCharCount';
|
|
@@ -17,7 +17,7 @@ import { bindActionCreators } from 'redux';
|
|
|
17
17
|
import { makeSelectEdit, makeSelectEditResponse, makeSelectTemplateDetailsResponse } from './selectors';
|
|
18
18
|
import { makeSelectMetaEntities, isLoadingMetaEntities, setInjectedTags } from '../../Cap/selectors';
|
|
19
19
|
import { UserIsAuthenticated } from '../../../utils/authWrapper';
|
|
20
|
-
import FormBuilder from '../../../
|
|
20
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
21
21
|
import * as actions from './actions';
|
|
22
22
|
import {checkUnicode, updateCharCount} from '../../../utils/smsCharCountV2';
|
|
23
23
|
import '../Create/_smsCreate.scss';
|
|
@@ -17,7 +17,7 @@ import { UserIsAuthenticated } from '../../utils/authWrapper';
|
|
|
17
17
|
import * as actions from './actions';
|
|
18
18
|
import * as globalActions from '../../containers/Cap/actions';
|
|
19
19
|
// import styled from styled-components;
|
|
20
|
-
import CapTagList from '../../
|
|
20
|
+
import CapTagList from '../../v2Components/CapTagList';
|
|
21
21
|
import './_tagList.scss';
|
|
22
22
|
const TreeNode = Tree.TreeNode;
|
|
23
23
|
|
|
@@ -33,17 +33,17 @@ import * as smsEditActions from '../Sms/Edit/actions';
|
|
|
33
33
|
import * as ebillActions from '../Ebill/actions';
|
|
34
34
|
import * as emailActions from '../Email/actions';
|
|
35
35
|
import * as lineActions from '../Line/Create/actions';
|
|
36
|
-
import CardGrid from '../../
|
|
36
|
+
import CardGrid from '../../v2Components/CardGrid';
|
|
37
37
|
import config from '../../config/app';
|
|
38
38
|
import './_templates.scss';
|
|
39
39
|
import * as globalActions from '../Cap/actions';
|
|
40
40
|
import { makeSelectAuthenticated } from '../Cap/selectors';
|
|
41
41
|
import {getMessageObject} from '../../utils/messageUtils';
|
|
42
42
|
import * as commonUtil from '../../utils/common';
|
|
43
|
-
import Pagination from '../../
|
|
44
|
-
import EmailPreview from '../../
|
|
43
|
+
import Pagination from '../../v2Components/Pagination';
|
|
44
|
+
import EmailPreview from '../../v2Components/EmailPreview';
|
|
45
45
|
import CreativesContainer from '../CreativesContainer';
|
|
46
|
-
import WechatRichmediaTemplatePreview from '../../
|
|
46
|
+
import WechatRichmediaTemplatePreview from '../../v2Components/TemplatePreview/WechatRichmediaTemplatePreview';
|
|
47
47
|
import { MOBILE_PUSH, WECHAT, SMS, EMAIL, EBILL, LINE } from '../CreativesContainer/constants';
|
|
48
48
|
const {CapCustomCardList} = CapCustomCard;
|
|
49
49
|
const InlineDiv = styled.div`
|
|
@@ -19,13 +19,13 @@ import { makeSelectMetaEntities, makeSelectFetchingSchema, setInjectedTags } fro
|
|
|
19
19
|
import makeSelectWeChat from './selectors';
|
|
20
20
|
import messages from './messages';
|
|
21
21
|
import * as actions from './actions';
|
|
22
|
-
import FormBuilder from '../../../
|
|
22
|
+
import FormBuilder from '../../../v2Components/FormBuilder';
|
|
23
23
|
import { UserIsAuthenticated } from '../../../utils/authWrapper';
|
|
24
24
|
import * as globalActions from '../../../containers/Cap/actions';
|
|
25
25
|
import {getMessageObject} from '../../../utils/messageUtils';
|
|
26
26
|
import * as templateActions from '../../Templates/actions';
|
|
27
|
-
// import SlideBox from '../../
|
|
28
|
-
// import PageHeader from '../../
|
|
27
|
+
// import SlideBox from '../../v2Components/SlideBox';
|
|
28
|
+
// import PageHeader from '../../v2Components/PageHeader';
|
|
29
29
|
import './_mapTemplates.scss';
|
|
30
30
|
|
|
31
31
|
import callNativeEvent from '../../../utils/callNativeEvent';
|
|
@@ -22,9 +22,9 @@ import './_createRichmedia.scss';
|
|
|
22
22
|
import messages from './messages';
|
|
23
23
|
import * as globalActions from '../../../../containers/Cap/actions';
|
|
24
24
|
import {getMessageObject} from '../../../../../utils/messageUtils';
|
|
25
|
-
import FormBuilder from '../../../../
|
|
26
|
-
import Header from '../../../../
|
|
27
|
-
import WechatRichmediaTemplatePreview from '../../../../
|
|
25
|
+
import FormBuilder from '../../../../v2Components/FormBuilder';
|
|
26
|
+
import Header from '../../../../v2Components/Header';
|
|
27
|
+
import WechatRichmediaTemplatePreview from '../../../../v2Components/TemplatePreview/WechatRichmediaTemplatePreview';
|
|
28
28
|
const MenuItem = Menu.Item;
|
|
29
29
|
export class Create extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
30
30
|
constructor(props) {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* WeChat actions
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as types from './constants';
|
|
8
|
-
|
|
9
|
-
export function getDefaultWeChatTemplates(channel, queryParams) {
|
|
10
|
-
return {
|
|
11
|
-
type: types.GET_WECHAT_DEFAULT_TEMPLATES_REQUEST,
|
|
12
|
-
channel,
|
|
13
|
-
queryParams,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export function createTemplate(template) {
|
|
17
|
-
return {
|
|
18
|
-
type: types.CREATE_TEMPLATE_REQUEST, template,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function clearCreateResponse() {
|
|
23
|
-
return {
|
|
24
|
-
type: types.CLEAR_CREATE_RESPONSE_REQUEST,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function getWeCrmAccounts() {
|
|
29
|
-
return {
|
|
30
|
-
type: types.GET_WECRM_ACCOUNTS_REQUEST,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function setWeChatAccount(weChatAccount) {
|
|
35
|
-
return {
|
|
36
|
-
type: types.SET_WECHAT_ACCOUNT,
|
|
37
|
-
weChatAccount,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function getTemplateDetails(id) {
|
|
42
|
-
console.log('getting template', id);
|
|
43
|
-
return {
|
|
44
|
-
type: types.GET_TEMPLATE_DETAILS_REQUEST, id,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
* WeChat constants
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_REQUEST = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_REQUEST';
|
|
8
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS';
|
|
9
|
-
export const GET_WECHAT_DEFAULT_TEMPLATES_FAILURE = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_FAILURE';
|
|
10
|
-
|
|
11
|
-
export const CREATE_TEMPLATE_REQUEST = 'app/containers/WeChat/CREATE_TEMPLATE_REQUEST';
|
|
12
|
-
export const CREATE_TEMPLATE_SUCCESS = 'app/containers/WeChat/CREATE_TEMPLATE_SUCCESS';
|
|
13
|
-
export const CREATE_TEMPLATE_FAILURE = 'app/containers/WeChat/CREATE_TEMPLATE_FAILURE';
|
|
14
|
-
|
|
15
|
-
export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_REQUEST';
|
|
16
|
-
export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_SUCCESS';
|
|
17
|
-
export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_FAILURE';
|
|
18
|
-
|
|
19
|
-
export const GET_WECRM_ACCOUNTS_REQUEST = "app/containers/WeChat/GET_WECRM_ACCOUNTS_REQUEST";
|
|
20
|
-
export const GET_WECRM_ACCOUNTS_SUCCESS = "app/containers/WeChat/GET_WECRM_ACCOUNTS_SUCCESS";
|
|
21
|
-
export const GET_WECRM_ACCOUNTS_FAILURE = "app/containers/WeChat/GET_WECRM_ACCOUNTS_FAILURE";
|
|
22
|
-
|
|
23
|
-
export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_REQUEST';
|
|
24
|
-
export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_SUCCESS';
|
|
25
|
-
export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_FAILURE';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export const SET_WECHAT_ACCOUNT = "app/containers/WeChat/SET_WECHAT_ACCOUNT";
|