remove package-lock due to local enviaronment diffs

pull/71/head
Bosn 7 years ago
parent 26e71b12c2
commit 64b5da7c93

5882
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -15,7 +15,7 @@ import { addProperty, updateProperty, deleteProperty, updateProperties, sortProp
import { GoRepo, GoPencil, GoPlug, GoDatabase, GoJersey, GoLinkExternal } from 'react-icons/lib/go'
import './RepositoryEditor.css'
import ExportPostmanForm from '../repository/ExportPostmanForm';
import ExportPostmanForm from '../repository/ExportPostmanForm'
// DONE 2.1 import Spin from '../utils/Spin'
// TODO 2.2
@ -59,7 +59,7 @@ class RepositoryEditor extends Component {
super(props)
this.state = {
update: false,
exportPostman: false,
exportPostman: false
}
}
render () {

@ -5,12 +5,12 @@ import config from '../../config'
class ExportPostmanForm extends Component {
static contextTypes = {
rmodal: PropTypes.object.isRequired,
rmodal: PropTypes.object.isRequired
}
static propTypes = {
repoId: PropTypes.number,
repoId: PropTypes.number
}
render() {
render () {
const { rmodal } = this.context
const { repoId } = this.props
return (
@ -24,7 +24,7 @@ class ExportPostmanForm extends Component {
<div>
请在Postman中点击导入Import选择从链接导入Import From Link输入如下链接即可
</div>
<div className="alert alert-info" role="alert" style={{ margin: '8px 0' }}> {config.serve}/postman/export?id={repoId} </div>
<div className='alert alert-info' role='alert' style={{ margin: '8px 0' }}> {config.serve}/postman/export?id={repoId} </div>
</div>
<div className='rmodal-footer'>
<div className='form-group row mb0'>
@ -39,7 +39,7 @@ class ExportPostmanForm extends Component {
</section>
)
}
componentDidUpdate() {
componentDidUpdate () {
this.context.rmodal.reposition()
}
handleSubmit = (e) => {

Loading…
Cancel
Save