1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 15:26:19 +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,7 +1,8 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'reactstrap';
import moment from 'moment';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import { Utils } from '../../../utils/utils';
import { seafileAPI } from '../../../utils/seafile-api';
import { gettext, orgID } from '../../../utils/constants';
@@ -16,6 +17,7 @@ import MainPanelTopbar from '../main-panel-topbar';
import UserLink from '../user-link';
import ReposNav from './org-repo-nav';
dayjs.extend(relativeTime);
class Content extends Component {
@@ -232,7 +234,7 @@ class Item extends Component {
<UserLink email={repo.owner} name={repo.owner_name} /> :
repo.group_name}
</td>
<td>{moment(repo.delete_time).fromNow()}</td>
<td>{dayjs(repo.delete_time).fromNow()}</td>
<td>
{isOpIconShown && (
<OpMenu