@fonixtree/magic-design 2.0.189 → 2.0.190
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/composite-comp/common/components/MonpayProductItem/index.less +6 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +1 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +30 -5
- package/es/composite-comp/public/components/Wallet/mobile/index.js +4 -1
- package/es/decorator/compositeDecorator.js +5 -8
- package/es/locale/mn/mn.json +1 -1
- package/es/utils/dateUtil.js +14 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +6 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +1 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +30 -5
- package/lib/composite-comp/public/components/Wallet/mobile/index.js +4 -1
- package/lib/decorator/compositeDecorator.js +5 -8
- package/lib/locale/mn/mn.json +1 -1
- package/lib/utils/dateUtil.js +14 -0
- package/package.json +2 -2
|
@@ -7,16 +7,17 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
margin-right: 16px;
|
|
9
9
|
border-radius: 8px;
|
|
10
|
+
border: 1px solid #E4E4E4;
|
|
10
11
|
|
|
11
12
|
.img-wrap {
|
|
12
13
|
position: relative;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
+
border-radius: 8px 8px 0 0;
|
|
14
15
|
// overflow: hidden;
|
|
15
16
|
|
|
16
17
|
.product-img {
|
|
17
18
|
width: 140px;
|
|
18
19
|
height: 140px;
|
|
19
|
-
border-radius: 8px;
|
|
20
|
+
border-radius: 8px 8px 0 0;
|
|
20
21
|
object-fit: cover;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
top: 15px;
|
|
32
33
|
left: 0;
|
|
33
34
|
}
|
|
35
|
+
|
|
34
36
|
.giftL-tag {
|
|
35
37
|
font-size: 12px;
|
|
36
38
|
font-weight: 700;
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
border-radius: 0 5px 5px 0;
|
|
41
43
|
display: flex;
|
|
42
44
|
align-items: center;
|
|
45
|
+
|
|
43
46
|
.icon {
|
|
44
47
|
margin-right: 4px;
|
|
45
48
|
}
|
|
@@ -47,6 +50,7 @@
|
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
.content-wrap {
|
|
53
|
+
padding: 0 0 8px 10px;
|
|
50
54
|
|
|
51
55
|
.promotions-wrap {
|
|
52
56
|
display: flex;
|
|
@@ -11,8 +11,6 @@ require("./index.less");
|
|
|
11
11
|
|
|
12
12
|
var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
|
|
13
13
|
|
|
14
|
-
var _locale = require("../../../../../locale");
|
|
15
|
-
|
|
16
14
|
var _MonpayProductItem = _interopRequireDefault(require("../../../../common/components/MonpayProductItem"));
|
|
17
15
|
|
|
18
16
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
@@ -23,6 +21,8 @@ var _commonUtil = require("../../../../../utils/commonUtil");
|
|
|
23
21
|
|
|
24
22
|
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
25
23
|
|
|
24
|
+
var _constants = require("../../../../../constants");
|
|
25
|
+
|
|
26
26
|
var _dateUtil = require("../../../../../utils/dateUtil");
|
|
27
27
|
|
|
28
28
|
var _MonpayCountDown = _interopRequireDefault(require("../MonpayCountDown"));
|
|
@@ -364,6 +364,31 @@ function (_super) {
|
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
+
_this.toLocale = function (value) {
|
|
368
|
+
var locale = (0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE);
|
|
369
|
+
|
|
370
|
+
if (locale == 'mn') {
|
|
371
|
+
// const time = newDate('2024-10-13 10:11:00');
|
|
372
|
+
var time = (0, _dateUtil.newDate)(value);
|
|
373
|
+
|
|
374
|
+
var _hour = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
|
375
|
+
|
|
376
|
+
var _minutes = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
|
377
|
+
|
|
378
|
+
if ((0, _dateUtil.isTomorrow)(time)) {
|
|
379
|
+
return "\u041C\u0430\u0440\u0433\u0430\u0430\u0448, " + _hour + ":" + _minutes;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if ((0, _dateUtil.isToday)(time)) {
|
|
383
|
+
return "\u04E8\u043D\u04E9\u04E9\u0434\u04E9\u0440, " + _hour + ":" + _minutes;
|
|
384
|
+
} else {
|
|
385
|
+
return time.getMonth() + 1 + " \u0441\u0430\u0440\u044B\u043D " + time.getDate() + "-\u043D\u044B " + _hour + ":" + _minutes;
|
|
386
|
+
}
|
|
387
|
+
} else {
|
|
388
|
+
return (0, _dateUtil.formatDayMonthTime)(value);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
367
392
|
return _this;
|
|
368
393
|
}
|
|
369
394
|
|
|
@@ -380,6 +405,8 @@ function (_super) {
|
|
|
380
405
|
};
|
|
381
406
|
|
|
382
407
|
FlashDealMobile.prototype.render = function () {
|
|
408
|
+
var _this = this;
|
|
409
|
+
|
|
383
410
|
var panelProps = this.props.panelProps;
|
|
384
411
|
var _a = this.state,
|
|
385
412
|
times = _a.times,
|
|
@@ -426,9 +453,7 @@ function (_super) {
|
|
|
426
453
|
}
|
|
427
454
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
428
455
|
className: "time"
|
|
429
|
-
},
|
|
430
|
-
className: "status"
|
|
431
|
-
}, item.cmpState === 'A' ? (0, _locale.i18n)('COMING_SOON') : (0, _locale.i18n)('ON_GOING')));
|
|
456
|
+
}, _this.toLocale(item.effDate)));
|
|
432
457
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
433
458
|
className: "flash-deal-list"
|
|
434
459
|
}, _list.map(function (item) {
|
|
@@ -282,6 +282,7 @@ function (_super) {
|
|
|
282
282
|
var _this = this;
|
|
283
283
|
|
|
284
284
|
var data = this.props.data;
|
|
285
|
+
console.log('data: ', data);
|
|
285
286
|
var _a = this.state,
|
|
286
287
|
balance = _a.balance,
|
|
287
288
|
cenduit = _a.cenduit;
|
|
@@ -289,6 +290,8 @@ function (_super) {
|
|
|
289
290
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
290
291
|
className: "m-wallet"
|
|
291
292
|
}, data.groupSource.map(function (group, index) {
|
|
293
|
+
var _a;
|
|
294
|
+
|
|
292
295
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
296
|
key: group.id,
|
|
294
297
|
className: "wallet-item",
|
|
@@ -297,7 +300,7 @@ function (_super) {
|
|
|
297
300
|
}
|
|
298
301
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
299
302
|
className: "item-head"
|
|
300
|
-
}, group.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
303
|
+
}, ((_a = group === null || group === void 0 ? void 0 : group.logo) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
301
304
|
data: group.logo,
|
|
302
305
|
GAData: GAData,
|
|
303
306
|
style: (0, _commonUtil.pxToRem)({
|
|
@@ -15,8 +15,6 @@ var _constants = require("../constants");
|
|
|
15
15
|
|
|
16
16
|
var _commonUtil = require("../utils/commonUtil");
|
|
17
17
|
|
|
18
|
-
var _androidUtil = require("../utils/androidUtil");
|
|
19
|
-
|
|
20
18
|
var _storeUtil = require("../utils/storeUtil");
|
|
21
19
|
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -289,13 +287,12 @@ function compositeDecorator(WrappedComponent) {
|
|
|
289
287
|
hoveredFloor: _mobx.store.hoveredFloor
|
|
290
288
|
});
|
|
291
289
|
});
|
|
292
|
-
this.getOuterWrapStyle();
|
|
290
|
+
this.getOuterWrapStyle(); // if (browserVersion().isDelivistaApp) {
|
|
293
291
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
292
|
+
window['switchLanguage'] = this.switchLanguage;
|
|
293
|
+
window['getUserAddress'] = this.getUserAddress; // switchLanguage();
|
|
294
|
+
// getUserAddress();
|
|
295
|
+
// }
|
|
299
296
|
};
|
|
300
297
|
|
|
301
298
|
Wrapper.prototype.componentWillUnmount = function () {
|
package/es/locale/mn/mn.json
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"COUPON": "Купон",
|
|
173
173
|
"HEADER_IMAGE": "Толгойн зураг",
|
|
174
174
|
"ACTIVITY_LABEL": "Үйл ажиллагааны шошго",
|
|
175
|
-
"STOCK": "
|
|
175
|
+
"STOCK": "Үлдэгдэл",
|
|
176
176
|
"DISCOUNT_LABEL": "Хөнгөлөлтийн шошго",
|
|
177
177
|
"SESSION_TIME": "Сеанс цаг",
|
|
178
178
|
"COUNTDOWN": "Countdown",
|
package/es/utils/dateUtil.js
CHANGED
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.formatDateTime = exports.formatDateMinute = exports.formatDate = void 0;
|
|
7
7
|
exports.formatDayMonth = formatDayMonth;
|
|
8
8
|
exports.formatDayMonthTime = formatDayMonthTime;
|
|
9
|
+
exports.isToday = isToday;
|
|
10
|
+
exports.isTomorrow = isTomorrow;
|
|
9
11
|
exports.newDate = void 0;
|
|
10
12
|
|
|
11
13
|
var _moment = _interopRequireDefault(require("moment"));
|
|
@@ -80,4 +82,16 @@ function formatDayMonthTime(date, fmt) {
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
return (0, _moment["default"])(newDate(date)).format(fmt);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function isToday(date) {
|
|
88
|
+
var now = new Date();
|
|
89
|
+
var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
90
|
+
return date.getDate() === tomorrow.getDate() && date.getMonth() === tomorrow.getMonth() && date.getFullYear() === tomorrow.getFullYear();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function isTomorrow(date) {
|
|
94
|
+
var now = new Date();
|
|
95
|
+
var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);
|
|
96
|
+
return date.getDate() === tomorrow.getDate() && date.getMonth() === tomorrow.getMonth() && date.getFullYear() === tomorrow.getFullYear();
|
|
83
97
|
}
|
|
@@ -7,16 +7,17 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
margin-right: 16px;
|
|
9
9
|
border-radius: 8px;
|
|
10
|
+
border: 1px solid #E4E4E4;
|
|
10
11
|
|
|
11
12
|
.img-wrap {
|
|
12
13
|
position: relative;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
+
border-radius: 8px 8px 0 0;
|
|
14
15
|
// overflow: hidden;
|
|
15
16
|
|
|
16
17
|
.product-img {
|
|
17
18
|
width: 140px;
|
|
18
19
|
height: 140px;
|
|
19
|
-
border-radius: 8px;
|
|
20
|
+
border-radius: 8px 8px 0 0;
|
|
20
21
|
object-fit: cover;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
top: 15px;
|
|
32
33
|
left: 0;
|
|
33
34
|
}
|
|
35
|
+
|
|
34
36
|
.giftL-tag {
|
|
35
37
|
font-size: 12px;
|
|
36
38
|
font-weight: 700;
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
border-radius: 0 5px 5px 0;
|
|
41
43
|
display: flex;
|
|
42
44
|
align-items: center;
|
|
45
|
+
|
|
43
46
|
.icon {
|
|
44
47
|
margin-right: 4px;
|
|
45
48
|
}
|
|
@@ -47,6 +50,7 @@
|
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
.content-wrap {
|
|
53
|
+
padding: 0 0 8px 10px;
|
|
50
54
|
|
|
51
55
|
.promotions-wrap {
|
|
52
56
|
display: flex;
|
|
@@ -11,8 +11,6 @@ require("./index.less");
|
|
|
11
11
|
|
|
12
12
|
var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
|
|
13
13
|
|
|
14
|
-
var _locale = require("../../../../../locale");
|
|
15
|
-
|
|
16
14
|
var _MonpayProductItem = _interopRequireDefault(require("../../../../common/components/MonpayProductItem"));
|
|
17
15
|
|
|
18
16
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
@@ -23,6 +21,8 @@ var _commonUtil = require("../../../../../utils/commonUtil");
|
|
|
23
21
|
|
|
24
22
|
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
25
23
|
|
|
24
|
+
var _constants = require("../../../../../constants");
|
|
25
|
+
|
|
26
26
|
var _dateUtil = require("../../../../../utils/dateUtil");
|
|
27
27
|
|
|
28
28
|
var _MonpayCountDown = _interopRequireDefault(require("../MonpayCountDown"));
|
|
@@ -364,6 +364,31 @@ function (_super) {
|
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
+
_this.toLocale = function (value) {
|
|
368
|
+
var locale = (0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE);
|
|
369
|
+
|
|
370
|
+
if (locale == 'mn') {
|
|
371
|
+
// const time = newDate('2024-10-13 10:11:00');
|
|
372
|
+
var time = (0, _dateUtil.newDate)(value);
|
|
373
|
+
|
|
374
|
+
var _hour = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
|
|
375
|
+
|
|
376
|
+
var _minutes = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
|
|
377
|
+
|
|
378
|
+
if ((0, _dateUtil.isTomorrow)(time)) {
|
|
379
|
+
return "\u041C\u0430\u0440\u0433\u0430\u0430\u0448, " + _hour + ":" + _minutes;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if ((0, _dateUtil.isToday)(time)) {
|
|
383
|
+
return "\u04E8\u043D\u04E9\u04E9\u0434\u04E9\u0440, " + _hour + ":" + _minutes;
|
|
384
|
+
} else {
|
|
385
|
+
return time.getMonth() + 1 + " \u0441\u0430\u0440\u044B\u043D " + time.getDate() + "-\u043D\u044B " + _hour + ":" + _minutes;
|
|
386
|
+
}
|
|
387
|
+
} else {
|
|
388
|
+
return (0, _dateUtil.formatDayMonthTime)(value);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
367
392
|
return _this;
|
|
368
393
|
}
|
|
369
394
|
|
|
@@ -380,6 +405,8 @@ function (_super) {
|
|
|
380
405
|
};
|
|
381
406
|
|
|
382
407
|
FlashDealMobile.prototype.render = function () {
|
|
408
|
+
var _this = this;
|
|
409
|
+
|
|
383
410
|
var panelProps = this.props.panelProps;
|
|
384
411
|
var _a = this.state,
|
|
385
412
|
times = _a.times,
|
|
@@ -426,9 +453,7 @@ function (_super) {
|
|
|
426
453
|
}
|
|
427
454
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
428
455
|
className: "time"
|
|
429
|
-
},
|
|
430
|
-
className: "status"
|
|
431
|
-
}, item.cmpState === 'A' ? (0, _locale.i18n)('COMING_SOON') : (0, _locale.i18n)('ON_GOING')));
|
|
456
|
+
}, _this.toLocale(item.effDate)));
|
|
432
457
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
433
458
|
className: "flash-deal-list"
|
|
434
459
|
}, _list.map(function (item) {
|
|
@@ -282,6 +282,7 @@ function (_super) {
|
|
|
282
282
|
var _this = this;
|
|
283
283
|
|
|
284
284
|
var data = this.props.data;
|
|
285
|
+
console.log('data: ', data);
|
|
285
286
|
var _a = this.state,
|
|
286
287
|
balance = _a.balance,
|
|
287
288
|
cenduit = _a.cenduit;
|
|
@@ -289,6 +290,8 @@ function (_super) {
|
|
|
289
290
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
290
291
|
className: "m-wallet"
|
|
291
292
|
}, data.groupSource.map(function (group, index) {
|
|
293
|
+
var _a;
|
|
294
|
+
|
|
292
295
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
296
|
key: group.id,
|
|
294
297
|
className: "wallet-item",
|
|
@@ -297,7 +300,7 @@ function (_super) {
|
|
|
297
300
|
}
|
|
298
301
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
299
302
|
className: "item-head"
|
|
300
|
-
}, group.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
303
|
+
}, ((_a = group === null || group === void 0 ? void 0 : group.logo) === null || _a === void 0 ? void 0 : _a.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
301
304
|
data: group.logo,
|
|
302
305
|
GAData: GAData,
|
|
303
306
|
style: (0, _commonUtil.pxToRem)({
|
|
@@ -15,8 +15,6 @@ var _constants = require("../constants");
|
|
|
15
15
|
|
|
16
16
|
var _commonUtil = require("../utils/commonUtil");
|
|
17
17
|
|
|
18
|
-
var _androidUtil = require("../utils/androidUtil");
|
|
19
|
-
|
|
20
18
|
var _storeUtil = require("../utils/storeUtil");
|
|
21
19
|
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -289,13 +287,12 @@ function compositeDecorator(WrappedComponent) {
|
|
|
289
287
|
hoveredFloor: _mobx.store.hoveredFloor
|
|
290
288
|
});
|
|
291
289
|
});
|
|
292
|
-
this.getOuterWrapStyle();
|
|
290
|
+
this.getOuterWrapStyle(); // if (browserVersion().isDelivistaApp) {
|
|
293
291
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
292
|
+
window['switchLanguage'] = this.switchLanguage;
|
|
293
|
+
window['getUserAddress'] = this.getUserAddress; // switchLanguage();
|
|
294
|
+
// getUserAddress();
|
|
295
|
+
// }
|
|
299
296
|
};
|
|
300
297
|
|
|
301
298
|
Wrapper.prototype.componentWillUnmount = function () {
|
package/lib/locale/mn/mn.json
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"COUPON": "Купон",
|
|
173
173
|
"HEADER_IMAGE": "Толгойн зураг",
|
|
174
174
|
"ACTIVITY_LABEL": "Үйл ажиллагааны шошго",
|
|
175
|
-
"STOCK": "
|
|
175
|
+
"STOCK": "Үлдэгдэл",
|
|
176
176
|
"DISCOUNT_LABEL": "Хөнгөлөлтийн шошго",
|
|
177
177
|
"SESSION_TIME": "Сеанс цаг",
|
|
178
178
|
"COUNTDOWN": "Countdown",
|
package/lib/utils/dateUtil.js
CHANGED
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.formatDateTime = exports.formatDateMinute = exports.formatDate = void 0;
|
|
7
7
|
exports.formatDayMonth = formatDayMonth;
|
|
8
8
|
exports.formatDayMonthTime = formatDayMonthTime;
|
|
9
|
+
exports.isToday = isToday;
|
|
10
|
+
exports.isTomorrow = isTomorrow;
|
|
9
11
|
exports.newDate = void 0;
|
|
10
12
|
|
|
11
13
|
var _moment = _interopRequireDefault(require("moment"));
|
|
@@ -80,4 +82,16 @@ function formatDayMonthTime(date, fmt) {
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
return (0, _moment["default"])(newDate(date)).format(fmt);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function isToday(date) {
|
|
88
|
+
var now = new Date();
|
|
89
|
+
var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
90
|
+
return date.getDate() === tomorrow.getDate() && date.getMonth() === tomorrow.getMonth() && date.getFullYear() === tomorrow.getFullYear();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function isTomorrow(date) {
|
|
94
|
+
var now = new Date();
|
|
95
|
+
var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);
|
|
96
|
+
return date.getDate() === tomorrow.getDate() && date.getMonth() === tomorrow.getMonth() && date.getFullYear() === tomorrow.getFullYear();
|
|
83
97
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonixtree/magic-design",
|
|
3
3
|
"author": "Cylon Team",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.190",
|
|
5
5
|
"description": "Magic Design",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"marked": "4.3.0",
|
|
33
33
|
"mobx": "6.6.1",
|
|
34
34
|
"mobx-react": "7.5.2",
|
|
35
|
-
"moment": "2.
|
|
35
|
+
"moment": "2.30",
|
|
36
36
|
"postcss-pxtorem": "^6.0.0",
|
|
37
37
|
"quill": "^1.3.7",
|
|
38
38
|
"ramda": "^0.28.0",
|