feat: dev fix version update bug

pull/109/head
Bosn 4 years ago
parent fd142dd703
commit 035bfc25b4

39407
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -22,7 +22,7 @@
"author": "mozhi.gyy@alibaba-inc.com", "author": "mozhi.gyy@alibaba-inc.com",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@material-ui/core": "^4.11.0", "@material-ui/core": "^4.12.1",
"@material-ui/icons": "^4.9.1", "@material-ui/icons": "^4.9.1",
"@material-ui/pickers": "^3.2.10", "@material-ui/pickers": "^3.2.10",
"@material-ui/styles": "^4.10.0", "@material-ui/styles": "^4.10.0",

@ -1,11 +1,11 @@
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
import { ThemeOptions } from '@material-ui/core/styles/createMuiTheme'
import { grey, red, pink, purple, orange, blue, green, cyan, indigo } from '@material-ui/core/colors' import { grey, red, pink, purple, orange, blue, green, cyan, indigo } from '@material-ui/core/colors'
import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Theme } from '@material-ui/core' import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Theme } from '@material-ui/core'
import { SimplePaletteColorOptions, makeStyles, createStyles } from '@material-ui/core/styles' import { SimplePaletteColorOptions, makeStyles, createStyles } from '@material-ui/core/styles'
import { useDispatch } from 'react-redux' import { useDispatch } from 'react-redux'
import classnames from 'classnames' import classnames from 'classnames'
import { changeTheme } from 'actions/account' import { changeTheme } from 'actions/account'
import { ThemeOptions } from '@material-ui/core/styles'
export enum THEME_TEMPLATE_KEY { export enum THEME_TEMPLATE_KEY {
INDIGO = 'INDIGO', // DEFAULT INDIGO = 'INDIGO', // DEFAULT

@ -1,4 +1,4 @@
import createMuiTheme, { ThemeOptions } from '@material-ui/core/styles/createMuiTheme' import { ThemeOptions, createTheme } from '@material-ui/core/styles'
import { THEME_TEMPLATES, THEME_TEMPLATE_KEY } from 'components/account/ThemeChangeOverlay' import { THEME_TEMPLATES, THEME_TEMPLATE_KEY } from 'components/account/ThemeChangeOverlay'
export const theme = { export const theme = {
@ -22,7 +22,7 @@ export const theme = {
}, },
} }
const MuiTheme = (options?: ThemeOptions) => createMuiTheme({ const MuiTheme = (options?: ThemeOptions) => createTheme({
...theme as ThemeOptions, ...theme as ThemeOptions,
...(options || {}) ...(options || {})
}) })

@ -121,7 +121,7 @@ function HistoryLogDrawer({ entityId, entityType, open, onClose }:
count={result.count} count={result.count}
rowsPerPage={limit} rowsPerPage={limit}
page={page} page={page}
onChangePage={(_, val) => setPage(val)} onPageChange={(_, val) => setPage(val)}
onChangeRowsPerPage={e => { setLimit(parseInt(e.target.value, 10)); setPage(0) }} onChangeRowsPerPage={e => { setLimit(parseInt(e.target.value, 10)); setPage(0) }}
{...TablePaginationProps} {...TablePaginationProps}
/> />

@ -38,6 +38,7 @@ class PropertyForm extends Component<any, any> {
repository: PropTypes.object.isRequired, repository: PropTypes.object.isRequired,
mod: PropTypes.object.isRequired, mod: PropTypes.object.isRequired,
interfaceId: PropTypes.number.isRequired, interfaceId: PropTypes.number.isRequired,
title: PropTypes.string.isRequired,
} }
static contextTypes = { static contextTypes = {
rmodal: PropTypes.instanceOf(Component), rmodal: PropTypes.instanceOf(Component),

@ -13,6 +13,7 @@ class ImportRepositoryForm extends Component<any, any> {
static propTypes = { static propTypes = {
orgId: PropTypes.number.isRequired, orgId: PropTypes.number.isRequired,
importRepository: PropTypes.func.isRequired, importRepository: PropTypes.func.isRequired,
title: PropTypes.string.isRequired,
} }
constructor(props: any) { constructor(props: any) {
super(props) super(props)

Loading…
Cancel
Save