@seafile/seafile-calendar 0.1.1 → 0.1.2-beta.0
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/calendar/CalendarRightPanel.js +7 -4
- package/lib/calendar/CalendarRightPanel.js +7 -5
- package/package.json +1 -1
- package/dist/rc-calendar.css +0 -1178
- package/dist/rc-calendar.css.map +0 -1
- package/dist/rc-calendar.js +0 -7565
- package/dist/rc-calendar.js.map +0 -1
- package/dist/rc-calendar.min.css +0 -1178
- package/dist/rc-calendar.min.css.map +0 -1
- package/dist/rc-calendar.min.js +0 -1
|
@@ -4,7 +4,6 @@ import _inherits from 'babel-runtime/helpers/inherits';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { tokenizeFormattedDate } from '../util';
|
|
8
7
|
|
|
9
8
|
var CalendarRightPanel = function (_React$Component) {
|
|
10
9
|
_inherits(CalendarRightPanel, _React$Component);
|
|
@@ -69,7 +68,6 @@ var CalendarRightPanel = function (_React$Component) {
|
|
|
69
68
|
prefixCls = _props.prefixCls,
|
|
70
69
|
locale = _props.locale;
|
|
71
70
|
|
|
72
|
-
var selectedDate = value.format().slice(0, String(value.format()).indexOf('T'));
|
|
73
71
|
var highlight = this.state.highlightTime;
|
|
74
72
|
var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
|
|
75
73
|
var isZhcn = locale && locale.today === '今天';
|
|
@@ -88,8 +86,13 @@ var CalendarRightPanel = function (_React$Component) {
|
|
|
88
86
|
'ul',
|
|
89
87
|
null,
|
|
90
88
|
this.times.map(function (time) {
|
|
91
|
-
var
|
|
92
|
-
|
|
89
|
+
var _time$split$map = time.split(':').map(function (n) {
|
|
90
|
+
return parseInt(n, 10);
|
|
91
|
+
}),
|
|
92
|
+
h = _time$split$map[0],
|
|
93
|
+
m = _time$split$map[1];
|
|
94
|
+
|
|
95
|
+
var current = value.hour(h).minute(m).second(0);
|
|
93
96
|
current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
|
|
94
97
|
return React.createElement(
|
|
95
98
|
'li',
|
|
@@ -26,8 +26,6 @@ var _dayjs = require('dayjs');
|
|
|
26
26
|
|
|
27
27
|
var _dayjs2 = _interopRequireDefault(_dayjs);
|
|
28
28
|
|
|
29
|
-
var _util = require('../util');
|
|
30
|
-
|
|
31
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
32
30
|
|
|
33
31
|
var CalendarRightPanel = function (_React$Component) {
|
|
@@ -93,7 +91,6 @@ var CalendarRightPanel = function (_React$Component) {
|
|
|
93
91
|
prefixCls = _props.prefixCls,
|
|
94
92
|
locale = _props.locale;
|
|
95
93
|
|
|
96
|
-
var selectedDate = value.format().slice(0, String(value.format()).indexOf('T'));
|
|
97
94
|
var highlight = this.state.highlightTime;
|
|
98
95
|
var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
|
|
99
96
|
var isZhcn = locale && locale.today === '今天';
|
|
@@ -112,8 +109,13 @@ var CalendarRightPanel = function (_React$Component) {
|
|
|
112
109
|
'ul',
|
|
113
110
|
null,
|
|
114
111
|
this.times.map(function (time) {
|
|
115
|
-
var
|
|
116
|
-
|
|
112
|
+
var _time$split$map = time.split(':').map(function (n) {
|
|
113
|
+
return parseInt(n, 10);
|
|
114
|
+
}),
|
|
115
|
+
h = _time$split$map[0],
|
|
116
|
+
m = _time$split$map[1];
|
|
117
|
+
|
|
118
|
+
var current = value.hour(h).minute(m).second(0);
|
|
117
119
|
current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
|
|
118
120
|
return _react2['default'].createElement(
|
|
119
121
|
'li',
|