1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

feat: optimize commonjs (#6906)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-10-21 11:29:17 +08:00
committed by GitHub
parent 21085997e3
commit 8200113b7f
142 changed files with 823 additions and 538 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import dayjs from 'dayjs';
import { Modal, ModalHeader, ModalBody } from 'reactstrap';
import { Utils } from '../../utils/utils';
import { gettext, siteRoot } from '../../utils/constants';
@@ -11,7 +11,7 @@ import EmptyTip from '../empty-tip';
import '../../css/file-access-log.css';
moment.locale(window.app.config.lang);
dayjs.locale(window.app.config.lang);
const propTypes = {
repoID: PropTypes.string.isRequired,
@@ -118,7 +118,7 @@ class FileAccessLog extends React.Component {
<td className="pr-4">
{`${item.ip}${item.device ? '/' + item.device : ''}`}
</td>
<td>{moment(item.time).format('YYYY-MM-DD HH:mm:ss')}</td>
<td>{dayjs(item.time).format('YYYY-MM-DD HH:mm:ss')}</td>
</tr>
);
})}