@capillarytech/creatives-library 7.18.0-beta.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +27 -54
- package/assets/Line_Preview_English.svg +24 -0
- package/assets/Line_Preview_Japanese.svg +24 -0
- package/components/CapTagList/index.js +2 -2
- package/components/CapTagList/messages.js +8 -0
- package/components/Ckeditor/index.js +4 -2
- package/components/Ckeditor/style.scss +3 -0
- package/components/FormBuilder/_formBuilder.scss +4 -16
- package/components/FormBuilder/index.js +4 -3
- package/components/FormBuilder/messages.js +4 -0
- package/components/Sidebar/index.js +4 -4
- package/config/path.js +1 -1
- package/containers/App/constants.js +95 -0
- package/containers/App/index.js +52 -0
- package/containers/App/sagas.js +8 -3
- package/containers/Assets/Gallery/index.js +17 -3
- package/containers/Assets/Gallery/messages.js +4 -0
- package/containers/Assets/Gallery/sagas.js +14 -14
- package/containers/Cap/index.js +84 -50
- package/containers/Cap/sagas.js +20 -12
- package/containers/Cap/selectors.js +13 -13
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +1 -1
- package/containers/Cap/tests/saga.test.js +81 -1
- package/containers/Dashboard/index.js +34 -17
- package/containers/Dashboard/sagas.js +7 -1
- package/containers/Ebill/index.js +16 -3
- package/containers/Ebill/sagas.js +18 -11
- package/containers/Email/index.js +20 -3
- package/containers/Email/sagas.js +34 -23
- package/containers/LanguageProvider/index.js +49 -31
- package/containers/LanguageProvider/tests/index.test.js +5 -3
- package/containers/Line/Create/index.js +15 -2
- package/containers/Line/Create/sagas.js +26 -17
- package/containers/Line/Edit/sagas.js +12 -13
- package/containers/Login/index.js +36 -11
- package/containers/MobilePush/Create/index.js +17 -2
- package/containers/MobilePush/Create/sagas.js +18 -12
- package/containers/MobilePush/Edit/index.js +20 -3
- package/containers/MobilePush/Edit/sagas.js +30 -20
- package/containers/Sms/Create/index.js +15 -2
- package/containers/Sms/Create/sagas.js +8 -6
- package/containers/Sms/Edit/index.js +15 -3
- package/containers/Sms/Edit/sagas.js +14 -8
- package/containers/TagList/constants.js +23 -0
- package/containers/Templates/actions.js +0 -5
- package/containers/Templates/index.js +47 -14
- package/containers/Templates/sagas.js +20 -23
- package/containers/WeChat/MapTemplates/index.js +19 -2
- package/containers/WeChat/MapTemplates/sagas.js +17 -17
- package/containers/WeChat/RichmediaTemplates/Create/index.js +18 -2
- package/containers/WeChat/RichmediaTemplates/Create/sagas.js +11 -8
- package/containers/WeChat/RichmediaTemplates/Edit/index.js +21 -2
- package/containers/WeChat/RichmediaTemplates/Edit/sagas.js +9 -5
- package/entry.js +2 -0
- package/global-styles.js +2 -2
- package/gtm/eventDefinitionsMap.js +1 -1
- package/helpers/intl-enzym-test-helpers.js +1 -1
- package/hoc/withReactRouterV3Compatibility.js +66 -0
- package/index.js +12 -0
- package/initialReducer.js +32 -0
- package/initialState.js +1 -0
- package/mfe-exposed-components.js +8 -0
- package/package.json +16 -11
- package/routes.js +206 -749
- package/services/api.js +62 -17
- package/services/tests/api.test.js +248 -1
- package/styles/components/navigation/_leftnav.scss +13 -0
- package/styles/containers/layout/_layoutPage.scss +14 -0
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +21 -16
- package/tests/store.test.js +5 -3
- package/translations/en.json +1 -9
- package/translations/ja-JP.json +0 -8
- package/translations/zh.json +0 -8
- package/utils/authWrapper.js +43 -17
- package/utils/cdnTransformation.js +73 -44
- package/utils/checkStore.js +21 -0
- package/utils/common.js +198 -8
- package/utils/commonUtils.js +17 -1
- package/utils/customAuthWrapper.js +62 -0
- package/utils/customConnectedAuthWrapper.js +26 -0
- package/utils/history.js +8 -0
- package/utils/injectReducer.js +2 -0
- package/utils/injectSaga.js +2 -0
- package/utils/tagValidations.js +2 -2
- package/utils/tests/cdnTransformation.test.js +6 -4
- package/utils/tests/common.mockdata.js +623 -0
- package/utils/tests/common.test.js +273 -0
- package/utils/tests/commonUtil.test.js +79 -0
- package/v2Components/CapDeviceContent/index.js +330 -0
- package/v2Components/CapDeviceContent/index.scss +115 -0
- package/v2Components/CapDeviceContent/messages.js +94 -0
- package/v2Components/CapDeviceContent/tests/index.test.js +89 -0
- package/v2Components/CapImageUpload/constants.js +6 -0
- package/v2Components/CapImageUpload/index.js +23 -15
- package/v2Components/CapImageUpload/index.scss +6 -0
- package/v2Components/CapImageUpload/messages.js +7 -7
- package/v2Components/CapInAppCTA/constants.js +25 -0
- package/v2Components/CapInAppCTA/index.js +279 -0
- package/v2Components/CapInAppCTA/index.scss +99 -0
- package/v2Components/CapInAppCTA/messages.js +85 -0
- package/v2Components/CapTagList/index.js +149 -26
- package/v2Components/CapTagList/messages.js +12 -0
- package/v2Components/CapTagList/style.scss +26 -0
- package/v2Components/CapVideoUpload/constants.js +6 -0
- package/v2Components/CapVideoUpload/index.js +48 -22
- package/v2Components/CapVideoUpload/index.scss +4 -2
- package/v2Components/CapVideoUpload/messages.js +10 -6
- package/v2Components/CapWhatsappQuickReply/index.js +255 -0
- package/v2Components/CapWhatsappQuickReply/index.scss +54 -0
- package/v2Components/CapWhatsappQuickReply/messages.js +32 -0
- package/v2Components/Ckeditor/index.js +56 -22
- package/v2Components/Ckeditor/style.scss +3 -0
- package/v2Components/Ckeditor/tests/index.test.js +44 -0
- package/v2Components/CmsTemplatesComponent/index.js +1 -0
- package/v2Components/CmsTemplatesComponent/messages.js +4 -0
- package/v2Components/EmailMobilePreview/index.js +4 -2
- package/v2Components/EmailPreviewV2/index.js +6 -4
- package/v2Components/EmailPreviewV2/tests/__snapshots__/index.test.js.snap +0 -3
- package/v2Components/FormBuilder/_formBuilder.scss +1 -0
- package/v2Components/FormBuilder/constants.js +1 -1
- package/v2Components/FormBuilder/index.js +111 -29
- package/v2Components/FormBuilder/messages.js +4 -0
- package/v2Components/FormBuilder/tests/index.test.js +5 -2
- package/v2Components/MobilePushPreviewV2/index.js +57 -22
- package/v2Components/NavigationBar/constants.js +1 -0
- package/v2Components/NavigationBar/index.js +84 -113
- package/v2Components/NavigationBar/messages.js +8 -0
- package/v2Components/NavigationBar/style.js +9 -0
- package/v2Components/NavigationBar/tests/index.test.js +32 -9
- package/v2Components/NavigationBar/tests/mockData.js +1 -0
- package/v2Components/NewCallTask/tests/index.test.js +5 -3
- package/v2Components/Pagination/index.js +2 -1
- package/v2Components/RenderRoute/RenderRoute.js +11 -0
- package/v2Components/RenderRoute/index.js +1 -0
- package/v2Components/TemplatePreview/_templatePreview.scss +535 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_bottom.svg +11 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_full.svg +11 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_modal.svg +11 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_top.svg +11 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_bottom.svg +6 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_full.svg +18 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_modal.svg +7 -0
- package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_top.svg +13 -0
- package/v2Components/TemplatePreview/index.js +745 -362
- package/v2Components/TemplatePreview/messages.js +8 -0
- package/v2Components/TemplatePreview/tests/__snapshots__/index.test.js.snap +47 -14
- package/v2Components/TemplatePreview/tests/index.test.js +9 -0
- package/v2Components/WhatsappStatusContainer/_whatsappStatusContainer.scss +8 -1
- package/v2Containers/App/constants.js +12 -6
- package/v2Containers/App/sagas.js +0 -1
- package/v2Containers/Assets/Gallery/index.js +1 -0
- package/v2Containers/Assets/Gallery/sagas.js +15 -14
- package/v2Containers/BeeEditor/index.js +3 -1
- package/v2Containers/BeeEditor/sagas.js +8 -5
- package/v2Containers/CallTask/sagas.js +7 -1
- package/v2Containers/Cap/actions.js +4 -0
- package/v2Containers/Cap/constants.js +20 -1
- package/v2Containers/Cap/index.js +116 -17
- package/v2Containers/Cap/messages.js +8 -0
- package/v2Containers/Cap/reducer.js +18 -3
- package/v2Containers/Cap/sagas.js +64 -9
- package/v2Containers/Cap/selectors.js +27 -13
- package/v2Containers/Cap/tests/Cap.test.js +164 -0
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +2 -1
- package/v2Containers/Cap/tests/actions.test.js +11 -0
- package/v2Containers/Cap/tests/reducer.test.js +59 -0
- package/v2Containers/Cap/tests/saga.test.js +181 -2
- package/v2Containers/Cap/tests/selectors.test.js +42 -18
- package/v2Containers/CapFacebookPreview/sagas.js +7 -5
- package/v2Containers/CreativesContainer/SlideBoxContent.js +86 -4
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +4 -3
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +30 -14
- package/v2Containers/CreativesContainer/constants.js +5 -0
- package/v2Containers/CreativesContainer/index.js +157 -38
- package/v2Containers/CreativesContainer/index.scss +12 -0
- package/v2Containers/CreativesContainer/messages.js +33 -1
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +11 -0
- package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +5 -2
- package/v2Containers/CreativesContainer/tests/SlideBoxHeader.test.js +7 -1
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +227 -0
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +73 -0
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +80 -0
- package/v2Containers/CreativesContainer/tests/index.test.js +16 -0
- package/v2Containers/Ebill/sagas.js +3 -10
- package/v2Containers/Email/index.js +38 -19
- package/v2Containers/Email/initialSchema.js +1 -1
- package/v2Containers/Email/sagas.js +22 -26
- package/v2Containers/EmailWrapper/index.js +18 -8
- package/v2Containers/FTP/index.js +2 -2
- package/v2Containers/FTP/sagas.js +3 -4
- package/v2Containers/Facebook/sagas.js +26 -17
- package/v2Containers/InApp/actions.js +64 -0
- package/v2Containers/InApp/constants.js +160 -0
- package/v2Containers/InApp/index.js +792 -0
- package/v2Containers/InApp/index.scss +50 -0
- package/v2Containers/InApp/messages.js +114 -0
- package/v2Containers/InApp/reducer.js +109 -0
- package/v2Containers/InApp/sagas.js +151 -0
- package/v2Containers/InApp/selectors.js +12 -0
- package/v2Containers/InApp/tests/action.test.js +53 -0
- package/v2Containers/InApp/tests/index.test.js +165 -0
- package/v2Containers/InApp/tests/mockData.js +898 -0
- package/v2Containers/InApp/tests/reducer.test.js +177 -0
- package/v2Containers/InApp/tests/sagas.test.js +391 -0
- package/v2Containers/InApp/utils.js +12 -0
- package/v2Containers/LanguageProvider/index.js +17 -5
- package/v2Containers/LanguageProvider/reducer.js +3 -2
- package/v2Containers/LanguageProvider/sagas.js +7 -8
- package/v2Containers/LanguageProvider/selectors.js +2 -1
- package/v2Containers/LanguageProvider/tests/index.test.js +5 -2
- package/v2Containers/LanguageProvider/tests/reducer.test.js +6 -3
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +28 -16
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -2
- package/v2Containers/Line/Container/ImageCarousel/tests/content.test.js +5 -3
- package/v2Containers/Line/Container/ImageCarousel/tests/index.test.js +5 -3
- package/v2Containers/Line/Container/ImageMap/index.js +1 -1
- package/v2Containers/Line/Container/Text/index.js +16 -1
- package/v2Containers/Line/Container/Video/index.js +2 -1
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +18134 -107
- package/v2Containers/Line/Container/Wrapper/tests/index.test.js +5 -3
- package/v2Containers/Line/Container/Wrapper/utils.js +1 -1
- package/v2Containers/Line/Container/index.js +4 -0
- package/v2Containers/Line/Container/sagas.js +30 -20
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +123 -81
- package/v2Containers/Line/Container/tests/index.test.js +5 -2
- package/v2Containers/Login/index.js +1 -2
- package/v2Containers/MobilePush/Create/index.js +40 -17
- package/v2Containers/MobilePush/Create/sagas.js +18 -12
- package/v2Containers/MobilePush/Edit/index.js +16 -7
- package/v2Containers/MobilePush/Edit/sagas.js +30 -20
- package/v2Containers/MobilepushWrapper/index.js +3 -0
- package/v2Containers/Rcs/sagas.js +14 -14
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +123 -87
- package/v2Containers/Rcs/tests/index.test.js +5 -3
- package/v2Containers/Sms/Create/sagas.js +10 -6
- package/v2Containers/Sms/Edit/sagas.js +14 -8
- package/v2Containers/SmsTrai/Create/sagas.js +9 -10
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +4 -4
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +12 -8
- package/v2Containers/SmsTrai/Edit/tests/index.test.js +5 -3
- package/v2Containers/TagList/_tagList.scss +18 -0
- package/v2Containers/TagList/index.js +81 -42
- package/v2Containers/TagList/tests/TagList.test.js +6 -7
- package/v2Containers/TagList/tests/mockdata.js +10 -166
- package/v2Containers/TagList/tests/utils.test.js +17 -0
- package/v2Containers/TagList/utils.js +15 -0
- package/v2Containers/Templates/_templates.scss +60 -5
- package/v2Containers/Templates/actions.js +6 -5
- package/v2Containers/Templates/constants.js +2 -1
- package/v2Containers/Templates/index.js +576 -181
- package/v2Containers/Templates/messages.js +52 -8
- package/v2Containers/Templates/reducer.js +3 -1
- package/v2Containers/Templates/sagas.js +54 -38
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +669 -43
- package/v2Containers/Templates/tests/actions.test.js +19 -0
- package/v2Containers/Templates/tests/index.test.js +53 -1
- package/v2Containers/Templates/tests/mockData.js +45 -1
- package/v2Containers/Templates/tests/reducer.test.js +50 -0
- package/v2Containers/Templates/tests/sagas.test.js +116 -3
- package/v2Containers/Templates/tests/selector.test.js +17 -0
- package/v2Containers/TemplatesV2/index.js +180 -8
- package/v2Containers/TemplatesV2/messages.js +8 -0
- package/v2Containers/TemplatesV2/tests/index.test.js +104 -0
- package/v2Containers/TemplatesV2/tests/mockData.js +685 -0
- package/v2Containers/Viber/constants.js +58 -0
- package/v2Containers/Viber/index.js +404 -421
- package/v2Containers/Viber/index.scss +107 -0
- package/v2Containers/Viber/messages.js +70 -2
- package/v2Containers/Viber/sagas.js +22 -14
- package/v2Containers/Viber/style.js +20 -0
- package/v2Containers/Viber/tests/index.test.js +299 -0
- package/v2Containers/Viber/tests/mockData.js +134 -0
- package/v2Containers/WeChat/MapTemplates/sagas.js +22 -14
- package/v2Containers/WeChat/RichmediaTemplates/Create/sagas.js +12 -11
- package/v2Containers/WeChat/RichmediaTemplates/Edit/sagas.js +9 -5
- package/v2Containers/Whatsapp/actions.js +16 -0
- package/v2Containers/Whatsapp/constants.js +24 -0
- package/v2Containers/Whatsapp/index.js +892 -222
- package/v2Containers/Whatsapp/index.scss +91 -1
- package/v2Containers/Whatsapp/messages.js +98 -1
- package/v2Containers/Whatsapp/reducer.js +19 -0
- package/v2Containers/Whatsapp/sagas.js +67 -12
- package/v2Containers/Whatsapp/styles.scss +35 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +34983 -24886
- package/v2Containers/Whatsapp/tests/__snapshots__/utils.test.js.snap +12 -0
- package/v2Containers/Whatsapp/tests/actions.test.js +21 -0
- package/v2Containers/Whatsapp/tests/index.test.js +17 -4
- package/v2Containers/Whatsapp/tests/mockData.js +77 -0
- package/v2Containers/Whatsapp/tests/reducer.test.js +67 -0
- package/v2Containers/Whatsapp/tests/saga.test.js +201 -0
- package/v2Containers/Whatsapp/tests/utils.test.js +18 -0
- package/v2Containers/Whatsapp/utils.js +65 -4
- package/v2Containers/Zalo/actions.js +24 -0
- package/v2Containers/Zalo/constants.js +59 -0
- package/v2Containers/Zalo/index.js +548 -0
- package/v2Containers/Zalo/index.scss +75 -0
- package/v2Containers/Zalo/messages.js +86 -0
- package/v2Containers/Zalo/reducer.js +63 -0
- package/v2Containers/Zalo/saga.js +45 -0
- package/v2Containers/Zalo/selectors.js +19 -0
- package/v2Containers/Zalo/tests/actions.test.js +26 -0
- package/v2Containers/Zalo/tests/index.test.js +149 -0
- package/v2Containers/Zalo/tests/mockData.js +11527 -0
- package/v2Containers/Zalo/tests/reducer.test.js +96 -0
- package/v2Containers/Zalo/tests/saga.test.js +118 -0
- package/v2Containers/Zalo/tests/selector.test.js +51 -0
- package/v2Containers/mockdata.js +1531 -680
- package/containers/TestPage/constants.js +0 -7
- package/containers/TestPage/index.js +0 -31
- package/containers/TestPage/messages.js +0 -13
- package/containers/TestPage/reducer.js +0 -21
- package/containers/TestPage/sagas.js +0 -11
- package/containers/Testv2/actions.js +0 -15
- package/containers/Testv2/constants.js +0 -7
- package/containers/Testv2/index.js +0 -47
- package/containers/Testv2/messages.js +0 -21
- package/containers/Testv2/reducer.js +0 -23
- package/containers/Testv2/sagas.js +0 -11
- package/containers/Testv2/selectors.js +0 -25
- package/reducers.js +0 -73
- package/store.js +0 -61
- package/utils/tests/asyncInjectors.test.js +0 -173
- package/v2Containers/TestPage/constants.js +0 -7
- package/v2Containers/TestPage/index.js +0 -31
- package/v2Containers/TestPage/messages.js +0 -13
- package/v2Containers/TestPage/reducer.js +0 -21
- package/v2Containers/TestPage/sagas.js +0 -11
- package/v2Containers/Testv2/actions.js +0 -15
- package/v2Containers/Testv2/constants.js +0 -7
- package/v2Containers/Testv2/index.js +0 -47
- package/v2Containers/Testv2/messages.js +0 -21
- package/v2Containers/Testv2/reducer.js +0 -23
- package/v2Containers/Testv2/sagas.js +0 -11
- package/v2Containers/Testv2/selectors.js +0 -25
package/routes.js
CHANGED
|
@@ -1,749 +1,206 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
()
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
importModules.catch(errorLoading);
|
|
208
|
-
},
|
|
209
|
-
}, {
|
|
210
|
-
path: '/ebill',
|
|
211
|
-
name: 'Ebill',
|
|
212
|
-
getComponent(nextState, cb) {
|
|
213
|
-
const importModules = Promise.all([
|
|
214
|
-
import('containers/Templates/reducer'),
|
|
215
|
-
import('containers/Templates/sagas'),
|
|
216
|
-
import('containers/Templates'),
|
|
217
|
-
]);
|
|
218
|
-
|
|
219
|
-
const renderRoute = loadModule(cb);
|
|
220
|
-
|
|
221
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
222
|
-
injectReducer('templates', reducer.default);
|
|
223
|
-
injectSagas(sagas.default);
|
|
224
|
-
injectSagas(ebillSagas.default);
|
|
225
|
-
injectSagas(rootSaga.default);
|
|
226
|
-
renderRoute(component);
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
importModules.catch(errorLoading);
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
path: '/assets',
|
|
234
|
-
name: 'GALLERY',
|
|
235
|
-
getComponent(nextState, cb) {
|
|
236
|
-
const importModules = Promise.all([
|
|
237
|
-
import('containers/Assets/Gallery/reducer'),
|
|
238
|
-
import('containers/Assets/Gallery/sagas'),
|
|
239
|
-
import('containers/Assets/Gallery'),
|
|
240
|
-
]);
|
|
241
|
-
|
|
242
|
-
const renderRoute = loadModule(cb);
|
|
243
|
-
|
|
244
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
245
|
-
injectReducer('gallery', reducer.default);
|
|
246
|
-
injectSagas(sagas.default);
|
|
247
|
-
renderRoute(component);
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
importModules.catch(errorLoading);
|
|
251
|
-
},
|
|
252
|
-
}, {
|
|
253
|
-
path: '/wechat/create',
|
|
254
|
-
name: 'create weChat',
|
|
255
|
-
getComponent(nextState, cb) {
|
|
256
|
-
const importModules = Promise.all([
|
|
257
|
-
import('containers/WeChat/MapTemplates/reducer'),
|
|
258
|
-
import('containers/WeChat/MapTemplates/sagas'),
|
|
259
|
-
import('containers/WeChat/MapTemplates'),
|
|
260
|
-
]);
|
|
261
|
-
|
|
262
|
-
const renderRoute = loadModule(cb);
|
|
263
|
-
|
|
264
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
265
|
-
injectReducer('weChat', reducer.default);
|
|
266
|
-
injectSagas(sagas.default);
|
|
267
|
-
injectSagas(rootSaga.default);
|
|
268
|
-
injectSagas(templateSagas.default);
|
|
269
|
-
renderRoute(component);
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
importModules.catch(errorLoading);
|
|
273
|
-
},
|
|
274
|
-
}, {
|
|
275
|
-
path: '/wechat/edit/:id',
|
|
276
|
-
name: 'edit weChat',
|
|
277
|
-
getComponent(nextState, cb) {
|
|
278
|
-
const importModules = Promise.all([
|
|
279
|
-
import('containers/WeChat/MapTemplates/reducer'),
|
|
280
|
-
import('containers/WeChat/MapTemplates/sagas'),
|
|
281
|
-
import('containers/WeChat/MapTemplates'),
|
|
282
|
-
]);
|
|
283
|
-
|
|
284
|
-
const renderRoute = loadModule(cb);
|
|
285
|
-
|
|
286
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
287
|
-
injectReducer('weChat', reducer.default);
|
|
288
|
-
injectSagas(sagas.default);
|
|
289
|
-
injectSagas(rootSaga.default);
|
|
290
|
-
renderRoute(component);
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
importModules.catch(errorLoading);
|
|
294
|
-
},
|
|
295
|
-
}, {
|
|
296
|
-
path: '/email/create',
|
|
297
|
-
name: 'EmailCreate',
|
|
298
|
-
getComponent(nextState, cb) {
|
|
299
|
-
const importModules = Promise.all([
|
|
300
|
-
import('containers/Email/reducer'),
|
|
301
|
-
import('containers/Email/sagas'),
|
|
302
|
-
import('containers/Email'),
|
|
303
|
-
]);
|
|
304
|
-
const renderRoute = loadModule(cb);
|
|
305
|
-
|
|
306
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
307
|
-
injectReducer('email', reducer.default);
|
|
308
|
-
injectSagas(sagas.default);
|
|
309
|
-
injectSagas(rootSaga.default);
|
|
310
|
-
injectSagas(templateSagas.default);
|
|
311
|
-
renderRoute(component);
|
|
312
|
-
});
|
|
313
|
-
importModules.catch(errorLoading);
|
|
314
|
-
},
|
|
315
|
-
}, {
|
|
316
|
-
path: '/email/view',
|
|
317
|
-
name: 'EmailView',
|
|
318
|
-
getComponent(nextState, cb) {
|
|
319
|
-
const importModules = Promise.all([
|
|
320
|
-
import('containers/Email/reducer'),
|
|
321
|
-
import('containers/Email/sagas'),
|
|
322
|
-
import('containers/Email'),
|
|
323
|
-
]);
|
|
324
|
-
const renderRoute = loadModule(cb);
|
|
325
|
-
|
|
326
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
327
|
-
injectReducer('email', reducer.default);
|
|
328
|
-
injectSagas(sagas.default);
|
|
329
|
-
injectSagas(rootSaga.default);
|
|
330
|
-
injectSagas(templateSagas.default);
|
|
331
|
-
renderRoute(component);
|
|
332
|
-
});
|
|
333
|
-
importModules.catch(errorLoading);
|
|
334
|
-
},
|
|
335
|
-
}, {
|
|
336
|
-
path: '/email/edit/:id',
|
|
337
|
-
name: 'EmailEdit',
|
|
338
|
-
getComponent(nextState, cb) {
|
|
339
|
-
const importModules = Promise.all([
|
|
340
|
-
import('containers/Email/reducer'),
|
|
341
|
-
import('containers/Email/sagas'),
|
|
342
|
-
import('containers/Email'),
|
|
343
|
-
]);
|
|
344
|
-
const renderRoute = loadModule(cb);
|
|
345
|
-
|
|
346
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
347
|
-
injectReducer('email', reducer.default);
|
|
348
|
-
injectSagas(sagas.default);
|
|
349
|
-
injectSagas(rootSaga.default);
|
|
350
|
-
injectSagas(templateSagas.default);
|
|
351
|
-
renderRoute(component);
|
|
352
|
-
});
|
|
353
|
-
importModules.catch(errorLoading);
|
|
354
|
-
},
|
|
355
|
-
}, {
|
|
356
|
-
path: '/ebill/create',
|
|
357
|
-
name: 'Ebill',
|
|
358
|
-
getComponent(nextState, cb) {
|
|
359
|
-
const importModules = Promise.all([
|
|
360
|
-
import('containers/Ebill/reducer'),
|
|
361
|
-
import('containers/Ebill/sagas'),
|
|
362
|
-
import('containers/Ebill'),
|
|
363
|
-
]);
|
|
364
|
-
const renderRoute = loadModule(cb);
|
|
365
|
-
|
|
366
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
367
|
-
injectReducer('ebill', reducer.default);
|
|
368
|
-
injectSagas(sagas.default);
|
|
369
|
-
injectSagas(rootSaga.default);
|
|
370
|
-
renderRoute(component);
|
|
371
|
-
});
|
|
372
|
-
importModules.catch(errorLoading);
|
|
373
|
-
},
|
|
374
|
-
}, {
|
|
375
|
-
path: '/ebill/edit/:id',
|
|
376
|
-
name: 'Ebill',
|
|
377
|
-
getComponent(nextState, cb) {
|
|
378
|
-
const importModules = Promise.all([
|
|
379
|
-
import('containers/Ebill/reducer'),
|
|
380
|
-
import('containers/Ebill/sagas'),
|
|
381
|
-
import('containers/Ebill'),
|
|
382
|
-
]);
|
|
383
|
-
const renderRoute = loadModule(cb);
|
|
384
|
-
|
|
385
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
386
|
-
injectReducer('ebill', reducer.default);
|
|
387
|
-
injectSagas(sagas.default);
|
|
388
|
-
injectSagas(rootSaga.default);
|
|
389
|
-
renderRoute(component);
|
|
390
|
-
});
|
|
391
|
-
importModules.catch(errorLoading);
|
|
392
|
-
},
|
|
393
|
-
}, {
|
|
394
|
-
path: '/mobilepush',
|
|
395
|
-
name: 'mobilepush',
|
|
396
|
-
getComponent(nextState, cb) {
|
|
397
|
-
const importModules = Promise.all([
|
|
398
|
-
import('containers/Templates/reducer'),
|
|
399
|
-
import('containers/MobilePush/Create/reducer'),
|
|
400
|
-
import('containers/Templates/sagas'),
|
|
401
|
-
import('containers/Templates'),
|
|
402
|
-
]);
|
|
403
|
-
|
|
404
|
-
const renderRoute = loadModule(cb);
|
|
405
|
-
|
|
406
|
-
importModules.then(([reducer, createReducer, sagas, component]) => {
|
|
407
|
-
injectReducer('mobilePush', reducer.default);
|
|
408
|
-
injectReducer('mobileCreate', createReducer.default);
|
|
409
|
-
injectSagas(sagas.default);
|
|
410
|
-
injectSagas(mobilpushSagas.default);
|
|
411
|
-
renderRoute(component);
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
importModules.catch(errorLoading);
|
|
415
|
-
},
|
|
416
|
-
}, {
|
|
417
|
-
path: '/mobilepush/create/:mode',
|
|
418
|
-
name: 'create',
|
|
419
|
-
getComponent(nextState, cb) {
|
|
420
|
-
const importModules = Promise.all([
|
|
421
|
-
import('containers/MobilePush/Create/reducer'),
|
|
422
|
-
import('containers/MobilePush/Create/sagas'),
|
|
423
|
-
import('containers/MobilePush/Create'),
|
|
424
|
-
]);
|
|
425
|
-
|
|
426
|
-
const renderRoute = loadModule(cb);
|
|
427
|
-
|
|
428
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
429
|
-
injectReducer('mobileCreate', reducer.default);
|
|
430
|
-
injectSagas(sagas.default);
|
|
431
|
-
injectSagas(rootSaga.default);
|
|
432
|
-
renderRoute(component);
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
importModules.catch(errorLoading);
|
|
436
|
-
},
|
|
437
|
-
}, {
|
|
438
|
-
path: 'mobilepush/edit/:id',
|
|
439
|
-
name: 'edit',
|
|
440
|
-
getComponent(nextState, cb) {
|
|
441
|
-
const importModules = Promise.all([
|
|
442
|
-
import('containers/MobilePush/Edit/reducer'),
|
|
443
|
-
import('containers/MobilePush/Edit/sagas'),
|
|
444
|
-
import('containers/MobilePush/Edit'),
|
|
445
|
-
]);
|
|
446
|
-
|
|
447
|
-
const renderRoute = loadModule(cb);
|
|
448
|
-
|
|
449
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
450
|
-
injectReducer('mobileEdit', reducer.default);
|
|
451
|
-
injectSagas(sagas.default);
|
|
452
|
-
injectSagas(rootSaga.default);
|
|
453
|
-
injectSagas(templateSagas.default);
|
|
454
|
-
renderRoute(component);
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
importModules.catch(errorLoading);
|
|
458
|
-
},
|
|
459
|
-
}, {
|
|
460
|
-
path: '/line',
|
|
461
|
-
name: 'line',
|
|
462
|
-
getComponent(nextState, cb) {
|
|
463
|
-
const importModules = Promise.all([
|
|
464
|
-
import('containers/Templates/reducer'),
|
|
465
|
-
import('containers/Line/Create/reducer'),
|
|
466
|
-
import('containers/Templates/sagas'),
|
|
467
|
-
import('containers/Templates'),
|
|
468
|
-
]);
|
|
469
|
-
|
|
470
|
-
const renderRoute = loadModule(cb);
|
|
471
|
-
|
|
472
|
-
importModules.then(([reducer, createReducer, sagas, component]) => {
|
|
473
|
-
injectReducer('templates', reducer.default);
|
|
474
|
-
injectReducer('lineTemplates', createReducer.default);
|
|
475
|
-
injectSagas(sagas.default);
|
|
476
|
-
injectSagas(rootSaga.default);
|
|
477
|
-
injectSagas(lineSagas.default);
|
|
478
|
-
renderRoute(component);
|
|
479
|
-
});
|
|
480
|
-
|
|
481
|
-
importModules.catch(errorLoading);
|
|
482
|
-
},
|
|
483
|
-
}, {
|
|
484
|
-
path: '/line/create/:mode',
|
|
485
|
-
name: 'create line',
|
|
486
|
-
getComponent(nextState, cb) {
|
|
487
|
-
const importModules = Promise.all([
|
|
488
|
-
import('containers/Line/Create/reducer'),
|
|
489
|
-
import('containers/Line/Create/sagas'),
|
|
490
|
-
import('containers/Line/Create'),
|
|
491
|
-
]);
|
|
492
|
-
|
|
493
|
-
const renderRoute = loadModule(cb);
|
|
494
|
-
|
|
495
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
496
|
-
injectReducer('line', reducer.default);
|
|
497
|
-
injectSagas(sagas.default);
|
|
498
|
-
injectSagas(rootSaga.default);
|
|
499
|
-
renderRoute(component);
|
|
500
|
-
});
|
|
501
|
-
|
|
502
|
-
importModules.catch(errorLoading);
|
|
503
|
-
},
|
|
504
|
-
}, {
|
|
505
|
-
path: '/line/view/:mode',
|
|
506
|
-
name: 'view',
|
|
507
|
-
getComponent(nextState, cb) {
|
|
508
|
-
const importModules = Promise.all([
|
|
509
|
-
import('containers/Line/Create/reducer'),
|
|
510
|
-
import('containers/Line/Create/sagas'),
|
|
511
|
-
import('containers/Line/Create'),
|
|
512
|
-
]);
|
|
513
|
-
|
|
514
|
-
const renderRoute = loadModule(cb);
|
|
515
|
-
|
|
516
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
517
|
-
injectReducer('line', reducer.default);
|
|
518
|
-
injectSagas(sagas.default);
|
|
519
|
-
injectSagas(rootSaga.default);
|
|
520
|
-
renderRoute(component);
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
importModules.catch(errorLoading);
|
|
524
|
-
},
|
|
525
|
-
}, {
|
|
526
|
-
path: 'line/edit/text/:id',
|
|
527
|
-
name: 'edit_text',
|
|
528
|
-
getComponent(nextState, cb) {
|
|
529
|
-
const importModules = Promise.all([
|
|
530
|
-
import('containers/Line/Create/reducer'),
|
|
531
|
-
import('containers/Line/Create/sagas'),
|
|
532
|
-
import('containers/Line/Create'),
|
|
533
|
-
]);
|
|
534
|
-
|
|
535
|
-
const renderRoute = loadModule(cb);
|
|
536
|
-
|
|
537
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
538
|
-
injectReducer('line', reducer.default);
|
|
539
|
-
injectSagas(sagas.default);
|
|
540
|
-
injectSagas(rootSaga.default);
|
|
541
|
-
renderRoute(component);
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
importModules.catch(errorLoading);
|
|
545
|
-
},
|
|
546
|
-
}, {
|
|
547
|
-
path: 'line/edit/image/:id',
|
|
548
|
-
name: 'edit_image',
|
|
549
|
-
getComponent(nextState, cb) {
|
|
550
|
-
const importModules = Promise.all([
|
|
551
|
-
import('containers/Line/Create/reducer'),
|
|
552
|
-
import('containers/Line/Create/sagas'),
|
|
553
|
-
import('containers/Line/Create'),
|
|
554
|
-
]);
|
|
555
|
-
|
|
556
|
-
const renderRoute = loadModule(cb);
|
|
557
|
-
|
|
558
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
559
|
-
injectReducer('line', reducer.default);
|
|
560
|
-
injectSagas(sagas.default);
|
|
561
|
-
injectSagas(rootSaga.default);
|
|
562
|
-
renderRoute(component);
|
|
563
|
-
});
|
|
564
|
-
|
|
565
|
-
importModules.catch(errorLoading);
|
|
566
|
-
},
|
|
567
|
-
}, {
|
|
568
|
-
path: '/wechat/richmedia/create',
|
|
569
|
-
name: 'wechat_richmedia_create',
|
|
570
|
-
getComponent(nextState, cb) {
|
|
571
|
-
const importModules = Promise.all([
|
|
572
|
-
import('containers/WeChat/RichmediaTemplates/Create/reducer'),
|
|
573
|
-
import('containers/WeChat/RichmediaTemplates/Create/sagas'),
|
|
574
|
-
import('containers/WeChat/RichmediaTemplates/Create'),
|
|
575
|
-
]);
|
|
576
|
-
|
|
577
|
-
const renderRoute = loadModule(cb);
|
|
578
|
-
|
|
579
|
-
importModules.then(([reducer, sagas, component]) => {
|
|
580
|
-
injectReducer('create', reducer.default);
|
|
581
|
-
injectSagas(sagas.default);
|
|
582
|
-
renderRoute(component);
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
importModules.catch(errorLoading);
|
|
586
|
-
},
|
|
587
|
-
}, {
|
|
588
|
-
path: '/wechat/richmedia/edit/:id',
|
|
589
|
-
name: 'wechat_richmedia_edit',
|
|
590
|
-
getComponent(nextState, cb) {
|
|
591
|
-
const importModules = Promise.all([
|
|
592
|
-
import('containers/WeChat/RichmediaTemplates/Edit/reducer'),
|
|
593
|
-
import('containers/WeChat/RichmediaTemplates/Edit/sagas'),
|
|
594
|
-
import('containers/WeChat/RichmediaTemplates/Create/sagas'),
|
|
595
|
-
import('containers/WeChat/RichmediaTemplates/Create/reducer'),
|
|
596
|
-
import('containers/WeChat/RichmediaTemplates/Edit'),
|
|
597
|
-
]);
|
|
598
|
-
|
|
599
|
-
const renderRoute = loadModule(cb);
|
|
600
|
-
|
|
601
|
-
importModules.then(([reducer, sagas, createSagas, createReducer, component]) => {
|
|
602
|
-
injectReducer('edit', reducer.default);
|
|
603
|
-
injectSagas(sagas.default);
|
|
604
|
-
injectSagas(createSagas.default);
|
|
605
|
-
injectReducer('create', createReducer.default);
|
|
606
|
-
renderRoute(component);
|
|
607
|
-
});
|
|
608
|
-
|
|
609
|
-
importModules.catch(errorLoading);
|
|
610
|
-
},
|
|
611
|
-
}, {
|
|
612
|
-
path: '/v2/somethingwentwrong',
|
|
613
|
-
name: 'somethingwentwrong',
|
|
614
|
-
getComponent(nextState, cb) {
|
|
615
|
-
import('@capillarytech/cap-ui-library/CapSomethingWentWrong')
|
|
616
|
-
.then((Component) => {
|
|
617
|
-
loadModuleWithProps(cb)(Component, { url: `${pathConfig.publicPath}v2` });
|
|
618
|
-
})
|
|
619
|
-
.catch(errorLoading);
|
|
620
|
-
},
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
path: '/v2(/:channel)',
|
|
624
|
-
name: 'templatesV2',
|
|
625
|
-
getComponent(nextState, cb) {
|
|
626
|
-
const importModules = Promise.all([
|
|
627
|
-
import('v2Containers/Templates/reducer'),
|
|
628
|
-
import('v2Containers/Templates/sagas'),
|
|
629
|
-
import('v2Containers/TemplatesV2'),
|
|
630
|
-
import('v2Containers/Cap/reducer'),
|
|
631
|
-
import('v2Containers/Cap/sagas'),
|
|
632
|
-
import('v2Containers/CreativesContainer/reducer'),
|
|
633
|
-
import('v2Containers/Sms/Create/reducer'),
|
|
634
|
-
import('v2Containers/Sms/Create/sagas'),
|
|
635
|
-
import('v2Containers/Sms/Edit/reducer'),
|
|
636
|
-
import('v2Containers/Sms/Edit/sagas'),
|
|
637
|
-
import('v2Containers/Email/reducer'),
|
|
638
|
-
import('v2Containers/Email/sagas'),
|
|
639
|
-
import('v2Containers/BeeEditor/sagas'),
|
|
640
|
-
import('v2Containers/CallTask/reducer'),
|
|
641
|
-
import('v2Containers/CallTask/sagas'),
|
|
642
|
-
import('v2Containers/MobilePush/Create/sagas'),
|
|
643
|
-
import('v2Containers/MobilePush/Create/reducer'),
|
|
644
|
-
import('v2Containers/MobilePush/Edit/sagas'),
|
|
645
|
-
import('v2Containers/MobilePush/Edit/reducer'),
|
|
646
|
-
import('v2Containers/WeChat/MapTemplates/sagas'),
|
|
647
|
-
import('v2Containers/WeChat/MapTemplates/reducer'),
|
|
648
|
-
import('v2Containers/WeChat/RichmediaTemplates/Create/sagas'),
|
|
649
|
-
import('v2Containers/WeChat/RichmediaTemplates/Create/reducer'),
|
|
650
|
-
import('v2Containers/WeChat/RichmediaTemplates/Edit/sagas'),
|
|
651
|
-
import('v2Containers/WeChat/RichmediaTemplates/Edit/reducer'),
|
|
652
|
-
import('v2Containers/Assets/Gallery/reducer'),
|
|
653
|
-
import('v2Containers/Assets/Gallery/sagas'),
|
|
654
|
-
import('v2Containers/Facebook/sagas'),
|
|
655
|
-
import('v2Containers/Facebook/reducer'),
|
|
656
|
-
import('v2Containers/Line/Container/sagas'),
|
|
657
|
-
import('v2Containers/Line/Container/reducer'),
|
|
658
|
-
import('v2Containers/Viber/sagas'),
|
|
659
|
-
import('v2Containers/Viber/reducer'),
|
|
660
|
-
import('v2Containers/CapFacebookPreview/sagas'),
|
|
661
|
-
import('v2Containers/CapFacebookPreview/reducer'),
|
|
662
|
-
import('v2Containers/SmsTrai/Create/sagas'),
|
|
663
|
-
import('v2Containers/SmsTrai/Create/reducer'),
|
|
664
|
-
import('v2Containers/Whatsapp/sagas'),
|
|
665
|
-
import('v2Containers/Whatsapp/reducer'),
|
|
666
|
-
import('v2Containers/Rcs/sagas'),
|
|
667
|
-
import('v2Containers/Rcs/reducer'),
|
|
668
|
-
]);
|
|
669
|
-
|
|
670
|
-
const renderRoute = loadModule(cb);
|
|
671
|
-
|
|
672
|
-
importModules.then(([reducer,
|
|
673
|
-
sagas, component,
|
|
674
|
-
capReducer, capSagas,
|
|
675
|
-
creativesContainerReducer,
|
|
676
|
-
smsCreateReducer, smsCreateSaga, smsEditReducer, smsEditSaga,
|
|
677
|
-
emailReducer, emailSaga,
|
|
678
|
-
BeeEditorSaga,
|
|
679
|
-
callTaskReducer, callTaskSagas,
|
|
680
|
-
mpushCreateSagas, mpushCreateReducer,
|
|
681
|
-
mpushEditSagas, mpushEditReducer,
|
|
682
|
-
weChatMapTemplatesSagas, weChatMapTemplatesReducer,
|
|
683
|
-
weChatRichmediaTemplatesCreateSagas, weChatRichmediaTemplatesCreateReducer,
|
|
684
|
-
weChatRichmediaTemplatesEditSagas, weChatRichmediaTemplatesEditReducer,
|
|
685
|
-
galleryReducer, gallerySagas,
|
|
686
|
-
facebookSagas, facebookReducer,
|
|
687
|
-
lineCreateSagas, lineCreateReducer,
|
|
688
|
-
viberSagas, viberReducer,
|
|
689
|
-
capFacebookPreviewSagas, capFacebookPreviewReducer,
|
|
690
|
-
smsTraiSagas, smsTraiReducer,
|
|
691
|
-
whatsappSagas, whatsappReducer,
|
|
692
|
-
rcsSagas, rcsReducer,
|
|
693
|
-
]) => {
|
|
694
|
-
injectReducer('templates', reducer.default);
|
|
695
|
-
injectReducer('cap', capReducer.default);
|
|
696
|
-
injectReducer('create', smsCreateReducer.default);
|
|
697
|
-
injectReducer('creativesContainer', creativesContainerReducer.default);
|
|
698
|
-
injectReducer('edit', smsEditReducer.default);
|
|
699
|
-
injectReducer('email', emailReducer.default);
|
|
700
|
-
injectReducer('callTask', callTaskReducer.default);
|
|
701
|
-
injectReducer('mobileCreate', mpushCreateReducer.default);
|
|
702
|
-
injectReducer('mobileEdit', mpushEditReducer.default);
|
|
703
|
-
injectReducer('weChatMapTemplate', weChatMapTemplatesReducer.default);
|
|
704
|
-
injectReducer('weChatRichmediaCreate', weChatRichmediaTemplatesCreateReducer.default);
|
|
705
|
-
injectReducer('weChatRichmediaEdit', weChatRichmediaTemplatesEditReducer.default);
|
|
706
|
-
injectReducer('gallery', galleryReducer.default);
|
|
707
|
-
injectReducer('facebook', facebookReducer.default);
|
|
708
|
-
injectReducer('lineCreate', lineCreateReducer.default);
|
|
709
|
-
injectReducer('viber', viberReducer.default);
|
|
710
|
-
injectReducer('facebookPreview', capFacebookPreviewReducer.default);
|
|
711
|
-
injectReducer('smsTrai', smsTraiReducer.default);
|
|
712
|
-
injectReducer('whatsapp', whatsappReducer.default);
|
|
713
|
-
injectReducer('rcs', rcsReducer.default);
|
|
714
|
-
injectSagas(gallerySagas.default);
|
|
715
|
-
injectSagas(sagas.default);
|
|
716
|
-
injectSagas(capSagas.default);
|
|
717
|
-
injectSagas(smsCreateSaga.default);
|
|
718
|
-
injectSagas(smsEditSaga.default);
|
|
719
|
-
injectSagas(emailSaga.default);
|
|
720
|
-
injectSagas(BeeEditorSaga.default);
|
|
721
|
-
injectSagas(callTaskSagas.default);
|
|
722
|
-
injectSagas(mpushCreateSagas.default);
|
|
723
|
-
injectSagas(mpushEditSagas.default);
|
|
724
|
-
injectSagas(weChatMapTemplatesSagas.default);
|
|
725
|
-
injectSagas(weChatRichmediaTemplatesCreateSagas.default);
|
|
726
|
-
injectSagas(weChatRichmediaTemplatesEditSagas.default);
|
|
727
|
-
injectSagas(facebookSagas.default);
|
|
728
|
-
injectSagas(lineCreateSagas.default);
|
|
729
|
-
injectSagas(viberSagas.default);
|
|
730
|
-
injectSagas(capFacebookPreviewSagas.default);
|
|
731
|
-
injectSagas(smsTraiSagas.default);
|
|
732
|
-
injectSagas(whatsappSagas.default);
|
|
733
|
-
injectSagas(rcsSagas.default);
|
|
734
|
-
renderRoute(component);
|
|
735
|
-
});
|
|
736
|
-
importModules.catch(errorLoading);
|
|
737
|
-
},
|
|
738
|
-
|
|
739
|
-
}, {
|
|
740
|
-
path: '*',
|
|
741
|
-
name: 'notfound',
|
|
742
|
-
getComponent(nextState, cb) {
|
|
743
|
-
import('containers/NotFoundPage')
|
|
744
|
-
.then(loadModule(cb))
|
|
745
|
-
.catch(errorLoading);
|
|
746
|
-
},
|
|
747
|
-
},
|
|
748
|
-
];
|
|
749
|
-
}
|
|
1
|
+
import withReactRouterV3Compatibility from './hoc/withReactRouterV3Compatibility';
|
|
2
|
+
import Dashboard from '../app/containers/Dashboard';
|
|
3
|
+
import SmsCreate from '../app/containers/Sms/Create';
|
|
4
|
+
import SmsEdit from '../app/containers/Sms/Edit';
|
|
5
|
+
import Templates from '../app/containers/Templates';
|
|
6
|
+
import Gallary from '../app/containers/Assets/Gallery';
|
|
7
|
+
import WeChatMapTemplate from '../app/containers/WeChat/MapTemplates';
|
|
8
|
+
import WeChatRichmediaCreate from '../app/containers/WeChat/RichmediaTemplates/Create';
|
|
9
|
+
import WeChatRichmediaEdit from '../app/containers/WeChat/RichmediaTemplates/Edit';
|
|
10
|
+
import Email from '../app/containers/Email';
|
|
11
|
+
import Ebill from '../app/containers/Ebill';
|
|
12
|
+
import MobilePushCreate from '../app/containers/MobilePush/Create';
|
|
13
|
+
import MobilePushEdit from '../app/containers/MobilePush/Edit';
|
|
14
|
+
import LineCreate from '../app/containers/Line/Create';
|
|
15
|
+
import SomethingWentWrong from '@capillarytech/cap-ui-library/CapSomethingWentWrong';
|
|
16
|
+
import NotFoundPage from '../app/containers/NotFoundPage';
|
|
17
|
+
import TemplatesV2 from '../app/v2Containers/TemplatesV2';
|
|
18
|
+
import { updateCharCount } from './utils/smsCharCountV2';
|
|
19
|
+
|
|
20
|
+
const routes = [
|
|
21
|
+
{
|
|
22
|
+
exact: true,
|
|
23
|
+
path: '/',
|
|
24
|
+
component: withReactRouterV3Compatibility(Dashboard),
|
|
25
|
+
},
|
|
26
|
+
//sms routes v1
|
|
27
|
+
{
|
|
28
|
+
exact: true,
|
|
29
|
+
path: '/sms/create',
|
|
30
|
+
name: 'create',
|
|
31
|
+
component: withReactRouterV3Compatibility(SmsCreate),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
exact: true,
|
|
35
|
+
path: '/sms/view',
|
|
36
|
+
name: 'view',
|
|
37
|
+
component: withReactRouterV3Compatibility(SmsCreate),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
exact: true,
|
|
41
|
+
path: '/sms/edit/:id',
|
|
42
|
+
name: 'edit',
|
|
43
|
+
component: withReactRouterV3Compatibility(SmsEdit),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
exact: true,
|
|
47
|
+
path: '/sms',
|
|
48
|
+
name: 'sms',
|
|
49
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
50
|
+
},
|
|
51
|
+
//wechat routes v1
|
|
52
|
+
{
|
|
53
|
+
exact: true,
|
|
54
|
+
path: '/wechat',
|
|
55
|
+
name: 'wechat',
|
|
56
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
exact: true,
|
|
60
|
+
path: '/wechat/create',
|
|
61
|
+
name: 'create weChat',
|
|
62
|
+
component: withReactRouterV3Compatibility(WeChatMapTemplate),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
exact: true,
|
|
66
|
+
path: '/wechat/edit/:id',
|
|
67
|
+
name: 'edit weChat',
|
|
68
|
+
component: withReactRouterV3Compatibility(WeChatMapTemplate),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
exact: true,
|
|
72
|
+
path: '/wechat/richmedia/create',
|
|
73
|
+
name: 'wechat_richmedia_create',
|
|
74
|
+
component: withReactRouterV3Compatibility(WeChatRichmediaCreate),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
exact: true,
|
|
78
|
+
path: '/wechat/richmedia/edit/:id',
|
|
79
|
+
name: 'wechat_richmedia_edit',
|
|
80
|
+
component: withReactRouterV3Compatibility(WeChatRichmediaEdit),
|
|
81
|
+
},
|
|
82
|
+
//email routes v1
|
|
83
|
+
{
|
|
84
|
+
exact: true,
|
|
85
|
+
path: '/email',
|
|
86
|
+
name: 'email',
|
|
87
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
exact: true,
|
|
91
|
+
path: '/email/create',
|
|
92
|
+
name: 'EmailCreate',
|
|
93
|
+
component: withReactRouterV3Compatibility(Email),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
exact: true,
|
|
97
|
+
path: '/email/view',
|
|
98
|
+
name: 'EmailView',
|
|
99
|
+
component: withReactRouterV3Compatibility(Email),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
exact: true,
|
|
103
|
+
path: '/email/edit/:id',
|
|
104
|
+
name: 'EmailEdit',
|
|
105
|
+
component: withReactRouterV3Compatibility(Email),
|
|
106
|
+
},
|
|
107
|
+
//ebill routes v1
|
|
108
|
+
{
|
|
109
|
+
exact: true,
|
|
110
|
+
path: '/ebill',
|
|
111
|
+
name: 'Ebill',
|
|
112
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
exact: true,
|
|
116
|
+
path: '/ebill/create',
|
|
117
|
+
name: 'Ebill',
|
|
118
|
+
component: withReactRouterV3Compatibility(Ebill),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
exact: true,
|
|
122
|
+
path: '/ebill/edit/:id',
|
|
123
|
+
name: 'Ebill',
|
|
124
|
+
component: withReactRouterV3Compatibility(Ebill),
|
|
125
|
+
},
|
|
126
|
+
//mobilepush routes v1
|
|
127
|
+
{
|
|
128
|
+
exact: true,
|
|
129
|
+
path: '/mobilepush',
|
|
130
|
+
name: 'mobilepush',
|
|
131
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
exact: true,
|
|
135
|
+
path: '/mobilepush/create/:mode',
|
|
136
|
+
name: 'create',
|
|
137
|
+
component: withReactRouterV3Compatibility(MobilePushCreate),
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
exact: true,
|
|
141
|
+
path: '/mobilepush/edit/:id',
|
|
142
|
+
name: 'edit',
|
|
143
|
+
component: withReactRouterV3Compatibility(MobilePushEdit),
|
|
144
|
+
},
|
|
145
|
+
// assets routes v1
|
|
146
|
+
{
|
|
147
|
+
exact: true,
|
|
148
|
+
path: '/assets',
|
|
149
|
+
name: 'GALLERY',
|
|
150
|
+
component: withReactRouterV3Compatibility(Gallary),
|
|
151
|
+
},
|
|
152
|
+
// line routes v1
|
|
153
|
+
{
|
|
154
|
+
exact: true,
|
|
155
|
+
path: '/line',
|
|
156
|
+
name: 'line',
|
|
157
|
+
component: withReactRouterV3Compatibility(Templates),
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
exact: true,
|
|
161
|
+
path: '/line/create/:mode',
|
|
162
|
+
name: 'create line',
|
|
163
|
+
component: withReactRouterV3Compatibility(LineCreate),
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
exact: true,
|
|
167
|
+
path: '/line/view/:mode',
|
|
168
|
+
name: 'view',
|
|
169
|
+
component: withReactRouterV3Compatibility(LineCreate),
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
exact: true,
|
|
173
|
+
path: '/line/edit/text/:id',
|
|
174
|
+
name: 'edit_text',
|
|
175
|
+
component: withReactRouterV3Compatibility(LineCreate),
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
exact: true,
|
|
179
|
+
path: '/line/edit/image/:id',
|
|
180
|
+
name: 'edit_image',
|
|
181
|
+
component: withReactRouterV3Compatibility(LineCreate),
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
exact: true,
|
|
185
|
+
path: '/v2/somethingwentwrong',
|
|
186
|
+
name: 'somethingwentwrong',
|
|
187
|
+
component: withReactRouterV3Compatibility(SomethingWentWrong),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
exact: true,
|
|
191
|
+
path: '/v2',
|
|
192
|
+
name: 'templatesV2',
|
|
193
|
+
component: withReactRouterV3Compatibility(TemplatesV2),
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: '*',
|
|
197
|
+
name: 'notfound',
|
|
198
|
+
component: withReactRouterV3Compatibility(NotFoundPage),
|
|
199
|
+
},
|
|
200
|
+
];
|
|
201
|
+
|
|
202
|
+
// export function createRoutes(store) {
|
|
203
|
+
// updateCharCount("", false); // TODO:: React18, need to see why this call was made from here and can we remove this?
|
|
204
|
+
// }
|
|
205
|
+
|
|
206
|
+
export default routes;
|