@fonixtree/magic-design 0.1.85 → 0.1.87
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/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +30 -6
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/common/CountDown/index.js +20 -11
- package/es/common/CropperModal/index.js +126 -0
- package/es/common/CropperModal/index.less +29 -0
- package/es/common/GroupList/index.js +7 -2
- package/es/common/LinkModal/AffiliateStore/index.js +332 -0
- package/es/common/LinkModal/SelectVideoModal/index.js +3 -2
- package/es/common/LinkModal/index.js +14 -5
- package/es/common/ProductModal/SortableImageList/index.js +118 -0
- package/es/common/ProductModal/SortableImageList/index.less +3 -0
- package/es/common/ProductModal/index.js +40 -27
- package/es/common/UrlPicker/index.js +1 -10
- package/es/common/Video/QualityComponent/index.js +169 -0
- package/es/common/Video/QualityComponent/index.less +78 -0
- package/es/common/Video/index.js +142 -86
- package/es/common/VideoUpload/index.js +1 -1
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +3 -3
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +3 -4
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +3 -4
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +3 -1
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +2 -15
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +113 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/es/composite-comp/dito/components/Orders/index.js +84 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +350 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.less +86 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +592 -0
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +135 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +127 -0
- package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +3 -4
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +3 -4
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -4
- package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +130 -0
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -4
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +130 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +2 -16
- package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +121 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
- package/{lib/composite-comp/dito → es/composite-comp/nuri}/components/AffiliateRecommend/pc/index.js +12 -10
- package/{lib/composite-comp/dito → es/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +3 -17
- package/es/constants/component-types.js +24 -6
- package/es/constants/index.js +38 -3
- package/es/core/Designer/ConfigPanel/index.js +6 -0
- package/es/core/Designer/ToolBarModal/index.js +5 -1
- package/es/core/Renderer/index.js +6 -2
- package/es/decorator/compositeDecorator.js +10 -6
- package/es/decorator/index.js +4 -1
- package/es/decorator/metaDecorator.js +6 -2
- package/es/locale/en/en.json +15 -1
- package/es/locale/es/es.json +15 -1
- package/es/locale/id/id.json +15 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/mobx/UserState.js +144 -0
- package/es/mobx/index.js +9 -3
- package/es/utils/androidUtil.js +14 -2
- package/es/utils/businessUtil.js +12 -0
- package/es/utils/commonUtil.js +138 -8
- package/es/utils/coreUtil.js +39 -28
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +30 -6
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/common/CountDown/index.js +20 -11
- package/lib/common/CropperModal/index.js +126 -0
- package/lib/common/CropperModal/index.less +29 -0
- package/lib/common/GroupList/index.js +7 -2
- package/lib/common/LinkModal/AffiliateStore/index.js +332 -0
- package/lib/common/LinkModal/SelectVideoModal/index.js +3 -2
- package/lib/common/LinkModal/index.js +14 -5
- package/lib/common/ProductModal/SortableImageList/index.js +118 -0
- package/lib/common/ProductModal/SortableImageList/index.less +3 -0
- package/lib/common/ProductModal/index.js +40 -27
- package/lib/common/UrlPicker/index.js +1 -10
- package/lib/common/Video/QualityComponent/index.js +169 -0
- package/lib/common/Video/QualityComponent/index.less +78 -0
- package/lib/common/Video/index.js +142 -86
- package/lib/common/VideoUpload/index.js +1 -1
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +3 -1
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +2 -15
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
- package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +113 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
- package/lib/composite-comp/dito/components/Orders/index.js +84 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +350 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +86 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
- package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +592 -0
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +135 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +127 -0
- package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +3 -4
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -4
- package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +130 -0
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -4
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +130 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +2 -16
- package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +121 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
- package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
- package/{es/composite-comp/dito → lib/composite-comp/nuri}/components/AffiliateRecommend/pc/index.js +12 -10
- package/{es/composite-comp/dito → lib/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +3 -17
- package/lib/constants/component-types.js +24 -6
- package/lib/constants/index.js +38 -3
- package/lib/core/Designer/ConfigPanel/index.js +6 -0
- package/lib/core/Designer/ToolBarModal/index.js +5 -1
- package/lib/core/Renderer/index.js +6 -2
- package/lib/decorator/compositeDecorator.js +10 -6
- package/lib/decorator/index.js +4 -1
- package/lib/decorator/metaDecorator.js +6 -2
- package/lib/locale/en/en.json +15 -1
- package/lib/locale/es/es.json +15 -1
- package/lib/locale/id/id.json +15 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/mobx/UserState.js +144 -0
- package/lib/mobx/index.js +9 -3
- package/lib/utils/androidUtil.js +14 -2
- package/lib/utils/businessUtil.js +12 -0
- package/lib/utils/commonUtil.js +138 -8
- package/lib/utils/coreUtil.js +39 -28
- package/package.json +2 -1
- /package/es/common/Video/{components → RateComponent}/index.js +0 -0
- /package/es/common/Video/{components → RateComponent}/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
- /package/lib/common/Video/{components → RateComponent}/index.js +0 -0
- /package/lib/common/Video/{components → RateComponent}/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
- /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
|
@@ -7,7 +7,9 @@ exports["default"] = exports.createVideoModal = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _index = _interopRequireDefault(require("./RateComponent/index"));
|
|
11
|
+
|
|
12
|
+
var _index2 = _interopRequireDefault(require("./QualityComponent/index"));
|
|
11
13
|
|
|
12
14
|
var _closeImg = _interopRequireDefault(require("./closeImg.png"));
|
|
13
15
|
|
|
@@ -267,95 +269,149 @@ var createAliVideo = function createAliVideo(domId, opts) {
|
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
return new Promise(function (resolve) {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
align: 'cc'
|
|
275
|
-
}, {
|
|
276
|
-
name: 'errorDisplay',
|
|
277
|
-
align: 'tlabs',
|
|
278
|
-
x: 0,
|
|
279
|
-
y: 0
|
|
280
|
-
}, {
|
|
281
|
-
name: 'tooltip',
|
|
282
|
-
align: 'blabs',
|
|
283
|
-
x: 0,
|
|
284
|
-
y: 56
|
|
285
|
-
}, {
|
|
286
|
-
name: 'thumbnail'
|
|
287
|
-
}];
|
|
288
|
-
var controlBar = {
|
|
289
|
-
name: 'controlBar',
|
|
290
|
-
align: 'blabs',
|
|
291
|
-
x: 0,
|
|
292
|
-
y: 0,
|
|
293
|
-
children: [{
|
|
294
|
-
name: 'playButton',
|
|
295
|
-
align: 'tl',
|
|
296
|
-
x: 15,
|
|
297
|
-
y: 12
|
|
298
|
-
}, {
|
|
299
|
-
name: 'timeDisplay',
|
|
300
|
-
align: 'tl',
|
|
301
|
-
x: 10,
|
|
302
|
-
y: 7
|
|
303
|
-
}, {
|
|
304
|
-
name: 'volume',
|
|
305
|
-
align: 'tr',
|
|
306
|
-
x: 5,
|
|
307
|
-
y: 10
|
|
308
|
-
}, {
|
|
309
|
-
name: 'fullScreenButton',
|
|
310
|
-
align: 'tr',
|
|
311
|
-
x: 10,
|
|
312
|
-
y: 12
|
|
313
|
-
}]
|
|
314
|
-
};
|
|
315
|
-
skinLayout.push(controlBar);
|
|
316
|
-
|
|
317
|
-
if (opts.progressBar) {
|
|
318
|
-
controlBar.children.push({
|
|
319
|
-
name: 'progress',
|
|
320
|
-
align: 'blabs',
|
|
321
|
-
x: 0,
|
|
322
|
-
y: 10
|
|
323
|
-
});
|
|
324
|
-
}
|
|
272
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
273
|
+
var components, res, qualitySource, source, skinLayout, controlBar;
|
|
274
|
+
return __generator(this, function (_a) {
|
|
275
|
+
var _window$Aliplayer;
|
|
325
276
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
playsinline: true,
|
|
336
|
-
preload: true,
|
|
337
|
-
controlBarVisibility: 'hover',
|
|
338
|
-
useH5Prism: true,
|
|
339
|
-
skinLayout: skinLayout
|
|
340
|
-
}, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", [{
|
|
341
|
-
name: 'RateComponent',
|
|
342
|
-
type: _components["default"]
|
|
343
|
-
}]), _window$Aliplayer), function (player) {
|
|
344
|
-
if (!opts.videoSound) {
|
|
345
|
-
player.setVolume(0);
|
|
346
|
-
}
|
|
277
|
+
switch (_a.label) {
|
|
278
|
+
case 0:
|
|
279
|
+
components = [{
|
|
280
|
+
name: 'RateComponent',
|
|
281
|
+
type: _index["default"]
|
|
282
|
+
}];
|
|
283
|
+
return [4
|
|
284
|
+
/*yield*/
|
|
285
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/content/' + opts.sourceId, {}, 'GET')];
|
|
347
286
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
287
|
+
case 1:
|
|
288
|
+
res = _a.sent();
|
|
289
|
+
qualitySource = {};
|
|
290
|
+
source = opts.source;
|
|
353
291
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
292
|
+
if (res.smallImgUrl) {
|
|
293
|
+
qualitySource['480P'] = res.smallImgUrl;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (res.url) {
|
|
297
|
+
qualitySource['720P'] = res.url;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (res.bigImgUrl) {
|
|
301
|
+
qualitySource['1080P'] = res.bigImgUrl;
|
|
302
|
+
}
|
|
357
303
|
|
|
358
|
-
|
|
304
|
+
if (Object.keys(qualitySource).length) {
|
|
305
|
+
source = JSON.stringify(qualitySource);
|
|
306
|
+
components.push({
|
|
307
|
+
name: 'QualityComponent',
|
|
308
|
+
type: _index2["default"]
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
skinLayout = [{
|
|
313
|
+
name: 'H5Loading',
|
|
314
|
+
align: 'cc'
|
|
315
|
+
}, {
|
|
316
|
+
name: 'errorDisplay',
|
|
317
|
+
align: 'tlabs',
|
|
318
|
+
x: 0,
|
|
319
|
+
y: 0
|
|
320
|
+
}, {
|
|
321
|
+
name: 'tooltip',
|
|
322
|
+
align: 'blabs',
|
|
323
|
+
x: 0,
|
|
324
|
+
y: 56
|
|
325
|
+
}, {
|
|
326
|
+
name: 'thumbnail'
|
|
327
|
+
}];
|
|
328
|
+
controlBar = {
|
|
329
|
+
name: 'controlBar',
|
|
330
|
+
align: 'blabs',
|
|
331
|
+
x: 0,
|
|
332
|
+
y: 0,
|
|
333
|
+
children: [{
|
|
334
|
+
name: 'playButton',
|
|
335
|
+
align: 'tl',
|
|
336
|
+
x: 15,
|
|
337
|
+
y: 12
|
|
338
|
+
}, {
|
|
339
|
+
name: 'timeDisplay',
|
|
340
|
+
align: 'tl',
|
|
341
|
+
x: 10,
|
|
342
|
+
y: 7
|
|
343
|
+
}, {
|
|
344
|
+
name: 'volume',
|
|
345
|
+
align: 'tr',
|
|
346
|
+
x: 5,
|
|
347
|
+
y: 10
|
|
348
|
+
}, {
|
|
349
|
+
name: 'fullScreenButton',
|
|
350
|
+
align: 'tr',
|
|
351
|
+
x: 10,
|
|
352
|
+
y: 12
|
|
353
|
+
}]
|
|
354
|
+
};
|
|
355
|
+
skinLayout.push(controlBar);
|
|
356
|
+
|
|
357
|
+
if (opts.progressBar) {
|
|
358
|
+
controlBar.children.push({
|
|
359
|
+
name: 'progress',
|
|
360
|
+
align: 'blabs',
|
|
361
|
+
x: 0,
|
|
362
|
+
y: 10
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
console.log('source: ', source);
|
|
367
|
+
new window.Aliplayer((_window$Aliplayer = {
|
|
368
|
+
id: 'video' + domId,
|
|
369
|
+
source: source,
|
|
370
|
+
cover: opts.cover,
|
|
371
|
+
width: '100%',
|
|
372
|
+
height: '100%',
|
|
373
|
+
autoplay: false,
|
|
374
|
+
isLive: false,
|
|
375
|
+
rePlay: false,
|
|
376
|
+
playsinline: true,
|
|
377
|
+
preload: true,
|
|
378
|
+
controlBarVisibility: 'hover',
|
|
379
|
+
useH5Prism: true,
|
|
380
|
+
skinLayout: skinLayout
|
|
381
|
+
}, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", components), _window$Aliplayer), function (player) {
|
|
382
|
+
if (!opts.videoSound) {
|
|
383
|
+
player.setVolume(0);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (opts.speed) {
|
|
387
|
+
var speed = Number(opts.speed).toFixed(1);
|
|
388
|
+
player.setSpeed(speed);
|
|
389
|
+
player._speed = speed;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (opts.startAt) {
|
|
393
|
+
player.seek(opts.startAt);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (Object.keys(qualitySource).length) {
|
|
397
|
+
var defaultKey = Object.keys(qualitySource)[0];
|
|
398
|
+
|
|
399
|
+
if (qualitySource['720P']) {
|
|
400
|
+
defaultKey = '720P';
|
|
401
|
+
} else {
|
|
402
|
+
defaultKey = '480P';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
player.getComponent('QualityComponent').setCurrentQuality(defaultKey, defaultKey);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
resolve(player);
|
|
409
|
+
});
|
|
410
|
+
return [2
|
|
411
|
+
/*return*/
|
|
412
|
+
];
|
|
413
|
+
}
|
|
414
|
+
});
|
|
359
415
|
});
|
|
360
416
|
});
|
|
361
417
|
};
|
package/lib/common/index.js
CHANGED
|
@@ -39,6 +39,12 @@ Object.defineProperty(exports, "ColorPickerInput", {
|
|
|
39
39
|
return _ColorPickerInput["default"];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "CropperModal", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _CropperModal["default"];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
42
48
|
Object.defineProperty(exports, "Field", {
|
|
43
49
|
enumerable: true,
|
|
44
50
|
get: function get() {
|
|
@@ -188,4 +194,6 @@ var _CardCarousel = _interopRequireDefault(require("./CardCarousel"));
|
|
|
188
194
|
|
|
189
195
|
var _MyModal = _interopRequireDefault(require("./MyModal"));
|
|
190
196
|
|
|
197
|
+
var _CropperModal = _interopRequireDefault(require("./CropperModal"));
|
|
198
|
+
|
|
191
199
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -13,6 +13,8 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
require("./index.less");
|
|
15
15
|
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
|
+
|
|
16
18
|
var _mobx = require("../../../../../mobx");
|
|
17
19
|
|
|
18
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
@@ -212,8 +214,8 @@ function (_super) {
|
|
|
212
214
|
/** PTO 定制GA */
|
|
213
215
|
if (window.magicDesign.pushGA) {
|
|
214
216
|
window.magicDesign.pushGA({}, 'select_promotion', {
|
|
215
|
-
|
|
216
|
-
promotion_name: (0,
|
|
217
|
+
event_section: data.type,
|
|
218
|
+
promotion_name: item.image.content.h5ImgSrc ? item.image.content.h5Name : (0, _locale.i18n)('BANNER_GROUP_NAME')
|
|
217
219
|
});
|
|
218
220
|
}
|
|
219
221
|
},
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
11
|
|
|
14
12
|
var _defaultJSON = require("../../../components/Banner/defaultJSON");
|
|
@@ -65,7 +63,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
65
63
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
66
64
|
};
|
|
67
65
|
|
|
68
|
-
var notice = 'For best results, use an image at least 1920px wide';
|
|
66
|
+
var notice = 'For best results, use an image at least 1920px wide'; // @inject('store')
|
|
67
|
+
// @observer
|
|
69
68
|
|
|
70
69
|
var AComponent =
|
|
71
70
|
/** @class */
|
|
@@ -152,7 +151,7 @@ function (_super) {
|
|
|
152
151
|
AComponent.defaultProps = {
|
|
153
152
|
source: []
|
|
154
153
|
};
|
|
155
|
-
AComponent = __decorate([
|
|
154
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
156
155
|
return AComponent;
|
|
157
156
|
}(_react["default"].Component);
|
|
158
157
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
11
|
|
|
14
12
|
var _defaultJSON = require("../../../components/Button/defaultJSON");
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = '';
|
|
64
|
+
var notice = ''; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var AComponent =
|
|
69
68
|
/** @class */
|
|
@@ -135,7 +134,7 @@ function (_super) {
|
|
|
135
134
|
AComponent.defaultProps = {
|
|
136
135
|
source: []
|
|
137
136
|
};
|
|
138
|
-
AComponent = __decorate([
|
|
137
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
139
138
|
return AComponent;
|
|
140
139
|
}(_react["default"].Component);
|
|
141
140
|
|
package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
11
|
|
|
14
12
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
|
|
64
|
+
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var AComponent =
|
|
69
68
|
/** @class */
|
|
@@ -140,7 +139,7 @@ function (_super) {
|
|
|
140
139
|
AComponent.defaultProps = {
|
|
141
140
|
source: []
|
|
142
141
|
};
|
|
143
|
-
AComponent = __decorate([
|
|
142
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
144
143
|
return AComponent;
|
|
145
144
|
}(_react["default"].Component);
|
|
146
145
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
11
|
|
|
14
12
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
|
|
64
|
+
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var AComponent =
|
|
69
68
|
/** @class */
|
|
@@ -140,7 +139,7 @@ function (_super) {
|
|
|
140
139
|
AComponent.defaultProps = {
|
|
141
140
|
source: []
|
|
142
141
|
};
|
|
143
|
-
AComponent = __decorate([
|
|
142
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
144
143
|
return AComponent;
|
|
145
144
|
}(_react["default"].Component);
|
|
146
145
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
11
|
|
|
14
12
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = 'For best results, use an image at least 1920px wide';
|
|
64
|
+
var notice = 'For best results, use an image at least 1920px wide'; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var ImageTextConfigGroup =
|
|
69
68
|
/** @class */
|
|
@@ -138,7 +137,7 @@ function (_super) {
|
|
|
138
137
|
ImageTextConfigGroup.defaultProps = {
|
|
139
138
|
source: []
|
|
140
139
|
};
|
|
141
|
-
ImageTextConfigGroup = __decorate([
|
|
140
|
+
ImageTextConfigGroup = __decorate([_decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
142
141
|
return ImageTextConfigGroup;
|
|
143
142
|
}(_react["default"].Component);
|
|
144
143
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
11
|
|
|
14
12
|
var _defaultJSON = require("../../../components/Tag/defaultJSON");
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = '';
|
|
64
|
+
var notice = ''; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var AComponent =
|
|
69
68
|
/** @class */
|
|
@@ -135,7 +134,7 @@ function (_super) {
|
|
|
135
134
|
AComponent.defaultProps = {
|
|
136
135
|
source: []
|
|
137
136
|
};
|
|
138
|
-
AComponent = __decorate([
|
|
137
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
139
138
|
return AComponent;
|
|
140
139
|
}(_react["default"].Component);
|
|
141
140
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
13
11
|
|
|
14
12
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
63
61
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
var notice = '';
|
|
64
|
+
var notice = ''; // @inject('store')
|
|
65
|
+
// @observer
|
|
67
66
|
|
|
68
67
|
var default_1 =
|
|
69
68
|
/** @class */
|
|
@@ -134,7 +133,7 @@ function (_super) {
|
|
|
134
133
|
default_1.defaultProps = {
|
|
135
134
|
source: []
|
|
136
135
|
};
|
|
137
|
-
default_1 = __decorate([
|
|
136
|
+
default_1 = __decorate([_decorator.updateConfigDecorator], default_1);
|
|
138
137
|
return default_1;
|
|
139
138
|
}(_react["default"].Component);
|
|
140
139
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
11
|
|
|
14
12
|
var _defaultJSON = require("../../../components/Video/defaultJSON");
|
|
@@ -65,6 +63,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
65
63
|
/* eslint-disable import/named */
|
|
66
64
|
|
|
67
65
|
|
|
66
|
+
// @inject('store')
|
|
67
|
+
// @observer
|
|
68
68
|
var AComponent =
|
|
69
69
|
/** @class */
|
|
70
70
|
function (_super) {
|
|
@@ -129,7 +129,7 @@ function (_super) {
|
|
|
129
129
|
AComponent.defaultProps = {
|
|
130
130
|
source: []
|
|
131
131
|
};
|
|
132
|
-
AComponent = __decorate([
|
|
132
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
133
133
|
return AComponent;
|
|
134
134
|
}(_react["default"].Component);
|
|
135
135
|
|
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
11
|
|
|
14
12
|
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
@@ -61,7 +59,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
61
59
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
60
|
};
|
|
63
61
|
|
|
64
|
-
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
|
|
62
|
+
var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
|
|
63
|
+
// @observer
|
|
65
64
|
|
|
66
65
|
var AComponent =
|
|
67
66
|
/** @class */
|
|
@@ -137,7 +136,7 @@ function (_super) {
|
|
|
137
136
|
AComponent.defaultProps = {
|
|
138
137
|
source: []
|
|
139
138
|
};
|
|
140
|
-
AComponent = __decorate([
|
|
139
|
+
AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
|
|
141
140
|
return AComponent;
|
|
142
141
|
}(_react["default"].Component);
|
|
143
142
|
|
package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js
CHANGED
|
@@ -7,8 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
10
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
11
|
|
|
14
12
|
var _decorator = require("../../../../../decorator");
|
|
@@ -55,7 +53,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
55
53
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
56
54
|
};
|
|
57
55
|
|
|
58
|
-
var notice = 'error';
|
|
56
|
+
var notice = 'error'; // @inject('store')
|
|
57
|
+
// @observer
|
|
59
58
|
|
|
60
59
|
var WalletNuriConfigImageGroup =
|
|
61
60
|
/** @class */
|
|
@@ -115,7 +114,7 @@ function (_super) {
|
|
|
115
114
|
WalletNuriConfigImageGroup.defaultProps = {
|
|
116
115
|
source: []
|
|
117
116
|
};
|
|
118
|
-
WalletNuriConfigImageGroup = __decorate([
|
|
117
|
+
WalletNuriConfigImageGroup = __decorate([_decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
|
|
119
118
|
return WalletNuriConfigImageGroup;
|
|
120
119
|
}(_react["default"].Component);
|
|
121
120
|
|
|
@@ -219,8 +219,10 @@ function (_super) {
|
|
|
219
219
|
size: "20px",
|
|
220
220
|
type: "icon-delete1"
|
|
221
221
|
})))), panelProps.video.sourceType === 'Upload' && /*#__PURE__*/_react["default"].createElement(_common.VideoUpload, {
|
|
222
|
-
onChange: function onChange(v) {
|
|
222
|
+
onChange: function onChange(v, n, id) {
|
|
223
223
|
panelProps.video.sourceUrl = v;
|
|
224
|
+
panelProps.video.sourceName = n;
|
|
225
|
+
panelProps.video.sourceId = id;
|
|
224
226
|
|
|
225
227
|
_this.reRender();
|
|
226
228
|
},
|