mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 20:03:57 +00:00
upgrade umi@2.1
This commit is contained in:
@@ -3,6 +3,9 @@ import { resolve } from 'path'
|
||||
import { i18n } from './src/utils/config'
|
||||
|
||||
export default {
|
||||
ignoreMomentLocale: true,
|
||||
targets: { ie: 9 },
|
||||
urlLoaderExcludes: [/\.svg$/],
|
||||
plugins: [
|
||||
[
|
||||
// https://umijs.org/plugin/umi-plugin-react.html
|
||||
@@ -50,7 +53,6 @@ export default {
|
||||
include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch', 'antd/es'],
|
||||
},
|
||||
hardSource: /* isMac */ process.platform === 'darwin',
|
||||
polyfills: ['ie9'],
|
||||
pwa: true
|
||||
},
|
||||
],
|
||||
@@ -58,7 +60,6 @@ export default {
|
||||
// Theme for antd
|
||||
// https://ant.design/docs/react/customize-theme
|
||||
theme: './config/theme.config.js',
|
||||
|
||||
// Webpack Configuration
|
||||
proxy: {
|
||||
'/api/v1/weather': {
|
||||
@@ -77,8 +78,6 @@ export default {
|
||||
themes: resolve(__dirname, './src/themes'),
|
||||
utils: resolve(__dirname, './src/utils'),
|
||||
},
|
||||
urlLoaderExcludes: [/\.svg$/],
|
||||
ignoreMomentLocale: true,
|
||||
chainWebpack(config) {
|
||||
config.module
|
||||
.rule('svg')
|
||||
|
||||
+17
-17
@@ -6,19 +6,17 @@
|
||||
"dependencies": {
|
||||
"@lingui/react": "^2.7.0",
|
||||
"ant-design-pro": "^2.0.0",
|
||||
"antd": "^3.9.2",
|
||||
"antd": "^3.9.3",
|
||||
"axios": "^0.18.0",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"classnames": "^2.2.6",
|
||||
"d3-shape": "^1.2.2",
|
||||
"draftjs-to-html": "^0.8.4",
|
||||
"draftjs-to-markdown": "^0.5.1",
|
||||
"dva-model-extend": "^0.1.2",
|
||||
"echarts": "^4.1.0",
|
||||
"echarts-for-react": "^2.0.14",
|
||||
"echarts": "^4.2.0-rc.1",
|
||||
"echarts-for-react": "^2.0.15-beta.0",
|
||||
"echarts-gl": "^1.1.1",
|
||||
"echarts-liquidfill": "^2.0.2",
|
||||
"eslint-plugin-flowtype": "^2.50.0",
|
||||
"highcharts-exporting": "^0.1.7",
|
||||
"highcharts-more": "^0.1.7",
|
||||
"lodash": "^4.17.11",
|
||||
@@ -26,41 +24,43 @@
|
||||
"path-to-regexp": "^2.4.0",
|
||||
"prop-types": "^15.6.2",
|
||||
"qs": "^6.5.2",
|
||||
"rc-tween-one": "^2.2.3",
|
||||
"rc-tween-one": "^2.2.8",
|
||||
"react-adsense": "^0.0.6",
|
||||
"react-countup": "^4.0.0-alpha.6",
|
||||
"react-draft-wysiwyg": "^1.12.13",
|
||||
"react-helmet": "^5.2.0",
|
||||
"react-highcharts": "^16.0.2",
|
||||
"recharts": "^1.1.0",
|
||||
"recharts": "^1.3.0",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lingui/babel-preset-react": "^2.7.0",
|
||||
"@lingui/cli": "^2.7.0",
|
||||
"@lingui/loader": "^2.7.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-plugin-dev-expression": "^0.2.1",
|
||||
"babel-plugin-import": "^1.8.0",
|
||||
"babel-plugin-macros": "^2.4.0",
|
||||
"babel-plugin-import": "^1.9.1",
|
||||
"babel-plugin-macros": "^2.4.2",
|
||||
"babel-plugin-module-resolver": "^3.1.1",
|
||||
"cross-env": "^5.2.0",
|
||||
"eslint": "^5.5.0",
|
||||
"eslint": "^5.6.0",
|
||||
"eslint-config-react-app": "^2.1.0",
|
||||
"eslint-plugin-flowtype": "^2.50.3",
|
||||
"eslint-plugin-import": "^2.6.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.1.1",
|
||||
"eslint-plugin-react": "^7.1.0",
|
||||
"husky": "^0.14.3",
|
||||
"husky": "^1.0.1",
|
||||
"less-vars-to-js": "^1.3.0",
|
||||
"lint-staged": "^7.2.2",
|
||||
"lint-staged": "^7.3.0",
|
||||
"mockjs": "^1.0.1-beta3",
|
||||
"module": "^1.2.5",
|
||||
"prettier": "^1.14.2",
|
||||
"stylelint": "^9.5.0",
|
||||
"prettier": "^1.14.3",
|
||||
"stylelint": "^9.6.0",
|
||||
"stylelint-config-prettier": "^4.0.0",
|
||||
"stylelint-config-standard": "^18.2.0",
|
||||
"svg-sprite-loader": "^3.9.2",
|
||||
"umi": "^2.0.3",
|
||||
"umi-plugin-react": "^1.0.3"
|
||||
"svg-sprite-loader": "^4.1.1",
|
||||
"umi": "^2.1.0",
|
||||
"umi-plugin-react": "^1.1.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"puppeteer": "^1.6.0"
|
||||
|
||||
@@ -9,7 +9,7 @@ function NumberCard({ icon, color, title, number, countUp }) {
|
||||
<Card
|
||||
className={styles.numberCard}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
bodyStyle={{ padding: 10 }}
|
||||
>
|
||||
<Icon className={styles.iconWarp} style={{ color }} type={icon} />
|
||||
<div className={styles.content}>
|
||||
|
||||
Reference in New Issue
Block a user