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

Update dependency 2 (#5342)

* update react-select version

* update react-responsive

* delete unnecessary dependency

* update react-mentions
This commit is contained in:
杨顺强
2022-12-22 16:02:11 +08:00
committed by GitHub
parent 90075181ba
commit 80b4b5fd6c
9 changed files with 849 additions and 120 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,6 @@
"prismjs": "1.23.0",
"prop-types": "^15.6.2",
"qrcode.react": "^1.0.1",
"raf": "3.4.0",
"react": "16.14.0",
"react-app-polyfill": "^2.0.0",
"react-chartjs-2": "^2.8.0",
@@ -28,20 +27,17 @@
"react-cookies": "^0.1.0",
"react-dom": "16.14.0",
"react-i18next": "12.1.1",
"react-mentions": "^3.0.2",
"react-moment": "^0.7.9",
"react-mentions": "4.4.7",
"react-qr-code": "^1.0.5",
"react-responsive": "^6.1.2",
"react-select": "^2.4.1",
"react-responsive": "9.0.2",
"react-select": "5.7.0",
"reactstrap": "^6.4.0",
"seafile-js": "0.2.190",
"socket.io-client": "^2.2.0",
"unified": "^7.0.0",
"url-parse": "^1.4.3",
"vfile": "^3.0.0",
"video.js": "^7.4.1",
"watermark-dom": "^1.0.0",
"whatwg-fetch": "2.0.3"
"watermark-dom": "^1.0.0"
},
"scripts": {
"start": "node scripts/start.js",

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import Select from 'react-select/lib/Creatable';
import CreatableSelect from 'react-select/creatable';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
@@ -63,7 +63,7 @@ class CleanTrash extends React.Component {
<ModalBody>
<React.Fragment>
<p>{gettext('Clear files in trash and history')}</p>
<Select
<CreatableSelect
defaultValue={this.options[0]}
options={this.options}
autoFocus={false}

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import CreatableSelect from 'react-select/lib/Creatable';
import CreatableSelect from 'react-select/creatable';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import CreatableSelect from 'react-select/lib/Creatable';
import CreatableSelect from 'react-select/creatable';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';

View File

@@ -2,7 +2,6 @@ import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Button, Input, InputGroup, InputGroupAddon } from 'reactstrap';
import Select from 'react-select';
import makeAnimated from 'react-select/lib/animated';
import { gettext, isPro, siteRoot } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api.js';
import { Utils } from '../../utils/utils.js';

View File

@@ -2,7 +2,6 @@ import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'reactstrap';
import Select from 'react-select';
import makeAnimated from 'react-select/lib/animated';
import { isPro, gettext } from '../../../utils/constants';
import { seafileAPI } from '../../../utils/seafile-api.js';
import { Utils } from '../../../utils/utils';
@@ -244,7 +243,6 @@ class SysAdminShareToGroup extends React.Component {
onChange={this.handleSelectChange}
options={this.options}
placeholder={gettext('Select groups...')}
components={makeAnimated()}
maxMenuHeight={200}
inputId={'react-select-2-input'}
value={this.state.selectedOption}

View File

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import Select from 'react-select';
import makeAnimated from 'react-select/lib/animated';
import makeAnimated from 'react-select/animated';
import { seafileAPI } from '../../utils/seafile-api.js';
import { gettext, isPro } from '../../utils/constants';
import { Utils } from '../../utils/utils';

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import AsyncSelect from 'react-select/lib/Async';
import AsyncSelect from 'react-select/async';
import { seafileAPI } from '../utils/seafile-api.js';
import { gettext, enableShowContactEmailWhenSearchUser } from '../utils/constants';
import { Utils } from '../utils/utils.js';