项目初始化
Showing
.gitignore
0 → 100644
config/env.js
0 → 100644
config/getHttpsConfig.js
0 → 100644
config/jest/cssTransform.js
0 → 100644
config/jest/fileTransform.js
0 → 100644
config/modules.js
0 → 100644
config/paths.js
0 → 100644
config/webpack.config.js
0 → 100644
This diff is collapsed.
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
| { | ||
| "name": "bkunyun-demo", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "@babel/core": "^7.16.0", | ||
| "@emotion/react": "^11.9.0", | ||
| "@emotion/styled": "^11.8.1", | ||
| "@mui/icons-material": "^5.6.2", | ||
| "@mui/material": "^5.6.4", | ||
| "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", | ||
| "@svgr/webpack": "^5.5.0", | ||
| "@testing-library/jest-dom": "^5.16.4", | ||
| "@testing-library/react": "^13.2.0", | ||
| "@testing-library/user-event": "^13.5.0", | ||
| "@types/jest": "^27.5.0", | ||
| "@types/node": "^16.11.33", | ||
| "@types/react": "^18.0.9", | ||
| "@types/react-dom": "^18.0.3", | ||
| "axios": "^0.27.2", | ||
| "babel-jest": "^27.4.2", | ||
| "babel-loader": "^8.2.3", | ||
| "babel-plugin-named-asset-import": "^0.3.8", | ||
| "babel-preset-react-app": "^10.0.1", | ||
| "bfj": "^7.0.2", | ||
| "browserslist": "^4.18.1", | ||
| "camelcase": "^6.2.1", | ||
| "case-sensitive-paths-webpack-plugin": "^2.4.0", | ||
| "css-loader": "^6.5.1", | ||
| "css-minimizer-webpack-plugin": "^3.2.0", | ||
| "dotenv": "^10.0.0", | ||
| "dotenv-expand": "^5.1.0", | ||
| "eslint": "^8.3.0", | ||
| "eslint-config-react-app": "^7.0.1", | ||
| "eslint-webpack-plugin": "^3.1.1", | ||
| "file-loader": "^6.2.0", | ||
| "fs-extra": "^10.0.0", | ||
| "html-webpack-plugin": "^5.5.0", | ||
| "identity-obj-proxy": "^3.0.0", | ||
| "immer": "^9.0.12", | ||
| "jest": "^27.4.3", | ||
| "jest-resolve": "^27.4.2", | ||
| "jest-watch-typeahead": "^1.0.0", | ||
| "mini-css-extract-plugin": "^2.4.5", | ||
| "mobx": "^6.5.0", | ||
| "mobx-react": "^7.4.0", | ||
| "mobx-react-lite": "^3.4.0", | ||
| "mockjs": "^1.1.0", | ||
| "postcss": "^8.4.4", | ||
| "postcss-flexbugs-fixes": "^5.0.2", | ||
| "postcss-loader": "^6.2.1", | ||
| "postcss-normalize": "^10.0.1", | ||
| "postcss-preset-env": "^7.0.1", | ||
| "prompts": "^2.4.2", | ||
| "qs": "^6.10.3", | ||
| "react": "^18.1.0", | ||
| "react-app-polyfill": "^3.0.0", | ||
| "react-dev-utils": "^12.0.1", | ||
| "react-dom": "^18.1.0", | ||
| "react-refresh": "^0.11.0", | ||
| "react-router-dom": "^6.3.0", | ||
| "resolve": "^1.20.0", | ||
| "resolve-url-loader": "^4.0.0", | ||
| "sass-loader": "^12.3.0", | ||
| "semver": "^7.3.5", | ||
| "source-map-loader": "^3.0.0", | ||
| "style-loader": "^3.3.1", | ||
| "tailwindcss": "^3.0.2", | ||
| "terser-webpack-plugin": "^5.2.5", | ||
| "typescript": "^4.6.4", | ||
| "use-immer": "^0.7.0", | ||
| "web-vitals": "^2.1.4", | ||
| "webpack": "^5.64.4", | ||
| "webpack-dev-server": "^4.6.0", | ||
| "webpack-manifest-plugin": "^4.0.2", | ||
| "workbox-webpack-plugin": "^6.4.1" | ||
| }, | ||
| "scripts": { | ||
| "start": "node scripts/start.js", | ||
| "build": "node scripts/build.js", | ||
| "test": "node scripts/test.js" | ||
| }, | ||
| "eslintConfig": { | ||
| "extends": [ | ||
| "react-app", | ||
| "react-app/jest" | ||
| ] | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| }, | ||
| "jest": { | ||
| "roots": [ | ||
| "<rootDir>/src" | ||
| ], | ||
| "collectCoverageFrom": [ | ||
| "src/**/*.{js,jsx,ts,tsx}", | ||
| "!src/**/*.d.ts" | ||
| ], | ||
| "setupFiles": [ | ||
| "react-app-polyfill/jsdom" | ||
| ], | ||
| "setupFilesAfterEnv": [ | ||
| "<rootDir>/src/setupTests.ts" | ||
| ], | ||
| "testMatch": [ | ||
| "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", | ||
| "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}" | ||
| ], | ||
| "testEnvironment": "jsdom", | ||
| "transform": { | ||
| "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js", | ||
| "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", | ||
| "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js" | ||
| }, | ||
| "transformIgnorePatterns": [ | ||
| "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$", | ||
| "^.+\\.module\\.(css|sass|scss)$" | ||
| ], | ||
| "modulePaths": [], | ||
| "moduleNameMapper": { | ||
| "^react-native$": "react-native-web", | ||
| "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" | ||
| }, | ||
| "moduleFileExtensions": [ | ||
| "web.js", | ||
| "js", | ||
| "web.ts", | ||
| "ts", | ||
| "web.tsx", | ||
| "tsx", | ||
| "json", | ||
| "web.jsx", | ||
| "jsx", | ||
| "node" | ||
| ], | ||
| "watchPlugins": [ | ||
| "jest-watch-typeahead/filename", | ||
| "jest-watch-typeahead/testname" | ||
| ], | ||
| "resetMocks": true | ||
| }, | ||
| "babel": { | ||
| "presets": [ | ||
| "react-app" | ||
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@types/mockjs": "^1.0.6" | ||
| } | ||
| } |
public/favicon.ico
0 → 100644
3.78 KB
public/index.html
0 → 100644
public/logo192.png
0 → 100644
5.22 KB
public/logo512.png
0 → 100644
9.44 KB
public/manifest.json
0 → 100644
public/robots.txt
0 → 100644
scripts/build.js
0 → 100644
scripts/start.js
0 → 100644
scripts/test.js
0 → 100644
src/api/demo_api.ts
0 → 100644
src/index.css
0 → 100644
src/index.tsx
0 → 100644
src/logo.svg
0 → 100644
src/mocks/demo.ts
0 → 100644
src/mocks/index.ts
0 → 100644
src/react-app-env.d.ts
0 → 100644
src/reportWebVitals.ts
0 → 100644
src/router/index.ts
0 → 100644
src/setupTests.ts
0 → 100644
src/store/index.ts
0 → 100644
src/store/modules/menu.ts
0 → 100644
src/utils/axios/header.ts
0 → 100644
src/utils/axios/service.ts
0 → 100644
src/utils/globalText_CN.ts
0 → 100644
src/utils/localStorageKey.ts
0 → 100644
src/views/404/index.tsx
0 → 100644
src/views/Home/index.tsx
0 → 100644
src/views/Loading/index.tsx
0 → 100644
src/views/demo/index.tsx
0 → 100644
tsconfig.json
0 → 100644
yarn.lock
0 → 100644
This diff is collapsed.