[v4] transform typescript (#3702)
* merge v3 to v4 * src/components/IconFont * src/components/PageLoading * src/components/SelectLang * src/components/SettingDrawer * remove e2e and test * src/components/TopNavHeader * src/components/GlobalHeader * src/components/HeaderDropdown * src/components/HeaderSearch * src/components/TopNavHeader * fix error * mock * move defaultSettings * global.txs * src/locales * remove lint mock * fix ci test error * change PureComponent to Component, interface IDefaultSettings * Don't prefix interface with I Close: #3706 * strictNullChecks set true
Showing
e2e/home.e2e.js
deleted
100644 → 0
e2e/topMenu.e2e.js
deleted
100644 → 0
File moved
... | @@ -13,8 +13,8 @@ | ... | @@ -13,8 +13,8 @@ |
"analyze": "cross-env ANALYZE=1 umi build", | "analyze": "cross-env ANALYZE=1 umi build", | ||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | "lint:style": "stylelint 'src/**/*.less' --syntax less", | ||
"lint:prettier": "check-prettier lint", | "lint:prettier": "check-prettier lint", | ||
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | "lint": "eslint --ext .js src tests && npm run lint:style && npm run lint:prettier", | ||
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less", | "lint:fix": "eslint --fix --ext .js src tests && stylelint --fix 'src/**/*.less' --syntax less", | ||
"lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
"lint-staged:js": "eslint --ext .js", | "lint-staged:js": "eslint --ext .js", | ||
"test": "umi test", | "test": "umi test", | ||
... | @@ -47,9 +47,12 @@ | ... | @@ -47,9 +47,12 @@ |
"react-copy-to-clipboard": "^5.0.1", | "react-copy-to-clipboard": "^5.0.1", | ||
"react-document-title": "^2.0.3", | "react-document-title": "^2.0.3", | ||
"react-media": "^1.8.0", | "react-media": "^1.8.0", | ||
"umi-request": "^1.0.0" | "react-media-hook2": "^1.0.2", | ||
"umi-request": "^1.0.0", | |||
"umi-types": "^0.2.0" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@types/jest": "^24.0.11", | |||
"@types/react": "^16.8.1", | "@types/react": "^16.8.1", | ||
"@types/react-dom": "^16.0.11", | "@types/react-dom": "^16.0.11", | ||
"antd-pro-merge-less": "^1.0.0", | "antd-pro-merge-less": "^1.0.0", | ||
... | @@ -90,8 +93,8 @@ | ... | @@ -90,8 +93,8 @@ |
"tslint-react": "^3.6.0", | "tslint-react": "^3.6.0", | ||
"umi": "^2.4.4", | "umi": "^2.4.4", | ||
"umi-plugin-ga": "^1.1.3", | "umi-plugin-ga": "^1.1.3", | ||
"umi-plugin-react": "^1.3.4", | "umi-plugin-pro-block": "^1.2.0", | ||
"umi-plugin-pro-block": "^1.2.0" | "umi-plugin-react": "^1.3.4" | ||
}, | }, | ||
"optionalDependencies": { | "optionalDependencies": { | ||
"puppeteer": "^1.12.1" | "puppeteer": "^1.12.1" | ||
... | ... |
File moved
src/layouts/BasicLayout.tsx
0 → 100644
src/layouts/BlankLayout.tsx
0 → 100644
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
src/typings.d.ts
0 → 100644
Please register or sign in to comment