/dva-typescript-antd-starter-kit

A admin dashboard application demo based on antd by typescript and dva

Primary LanguageTypeScriptMIT LicenseMIT

996.icu LICENSE MIT Licence TypeScript HitCount

dva-typescript-antd-starter-kit

A admin dashboard application demo based on antd Now it is not perfect, then I will continue to improve the project. If you don’t understand Chinese, it doesn’t matter. Clone this repo and npm intall, You can use it directly.

Browser Support

Chrome Firefox Safari Opera Edge IE
Latest ✔ Latest ✔ No No No No

Demo

https://wanliyunyan.github.io/dva-typescript-antd-starter-kit/dist

Installation

npm install
npm install -g json-server # global

Running Dev Server

npm run dev

Building

npm run build

cnpm

如果你使用webstorm和阿里的cnpm那么,直接双击左下角npm中的cnpm即可

Mock

click mockjs,start mock data, You can see the effect of the mock data in the "列表页-查询表格".

Linter

eslint:fix Can automatically repair a part of the code

styleint detect style

prettier format code

Babel

update to babel7

Webpack

update to webpack5

Contents

├── /build/                   
├── /dist/     
├── /mock/      
├── /src/              
│ ├── /assets/        
│ │ └── /images/       
│ │ └── /style/               
│ ├── /common/        
│ ├── /components/     
│ ├── /layouts/        
│ ├── /models/         
│ ├── /routes/         
│ ├── /services/       
│ ├── /utils/          
│ │ └── request.js     
│ │ └── utils.js 
│ ├── favicon.ico      
│ ├── index.html       
│ ├── index.less       
│ ├── index.tsx        
│ └── route.tsx 
├── .browserslistrc      
├── .editorconfig     
├── .eslintrc          
├── .gitignore  
├── .lintstagedrc     
├── .stylelintrc       
├── babel.config.js  
├── package.json       
├── postcss.config.js  
├── README.md  
├── tsconfig.json       
└── webpack.config.js  

Package

dependencies

  • @ant-design/icons A UI Design Language..
  • antd A UI Design Language.
  • axios Promise based HTTP client for the browser and node.js.
  • classnames A simple javascript utility for conditionally joining classNames together.
  • dayjs Day.js 2KB immutable date-time library alternative to Moment.js with the same modern API.
  • dva Lightweight front-end framework based on redux, redux-saga and react-router.
  • dva-loading Auto loading plugin for dva. 👏 You don't need to write showLoading and hideLoading any more.
  • lodash A modern JavaScript utility library delivering modularity, performance, & extras.
  • mockjs A simulation data generator.
  • query-string Parse and stringify URL query strings.
  • react A declarative, efficient, and flexible JavaScript library for building user interfaces.
  • react-dom This package serves as the entry point of the DOM-related rendering paths. It is intended to be paired with the isomorphic React, which will be shipped as react to npm.
  • swr React Hooks library for remote data fetching.

devDependencies