pd-web (WIP)
PD Web by PingCAP FE.
The Rules
Please ensure that each commit is followed the setting of:
.editorconfig.prettierrc
Sass rules
Each .scss file is associated with a component, like Container.scss.
All components' top class name should keep with PD-, for example, PD-Container is the top class name of Container component.
Component rules
All main components in the components dir should use the form of index.tsx, for example:
Container/
index.tsx
Routes.tsx
Tabs.tsx
Nav/
index.tsxTest rules
All test files should be placed in src/__tests__ dir.
How to develop
For development, you must provide a pd client as environment variable. For example:
REACT_APP_PD_CLIENT_URL=http://localhost:32845Let's start:
git clone https://github.com/pingcap-fe/pd-web.git && cd pd-web
# We recommend using yarn
yarn
REACT_APP_PD_CLIENT_URL=http://localhost:32845 BROWSER=none yarn startRun tests
Make sure the necessary unit tests passed.
yarn testLicense
PD-Web is under the Apache 2.0 license.