Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Lin Han 6c23337fa0 | 1 year ago | |
---|---|---|
.devcontainer | 1 year ago | |
.github/workflows | 1 year ago | |
.vscode | 2 years ago | |
config | 1 year ago | |
cypress | 1 year ago | |
public | 2 years ago | |
src | 1 year ago | |
tool | 1 year ago | |
.editorconfig | 2 years ago | |
.eslintignore | 1 year ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 1 year ago | |
.prettierignore | 2 years ago | |
.prettierrc.js | 2 years ago | |
Dockerfile.dev | 2 years ago | |
README.md | 1 year ago | |
cypress.config.ts | 1 year ago | |
docker-compose-dev.yml | 1 year ago | |
dockerignore | 2 years ago | |
jsconfig.json | 2 years ago | |
openapitools.json | 1 year ago | |
package.json | 1 year ago | |
tsconfig.json | 1 year ago | |
yarn.lock | 1 year ago |
This project is initialized with Ant Design Pro. Follow is the quick guide for how to use.
LF
. Please make sure Git does not automatically transfer to CRLF
on Windows:git config core.autocrlf false
Good Example:
{
"app.welcome.link.fetch-blocks": "Fetch all blocks",
"app.welcome.link.remove-blocks": "Remove all blocks"
}
Bad Example(Violates #1):
{
"app": {
"welcome": {
"link": {
"fetch-blocks": "Fetch all blocks",
"remove-blocks": "Remove all blocks"
}
}
}
}
Bad Example3(Violates #2):
{
"app.welcome.link.fetch-blocks": "Fetch all blocks",
"app.welcome.other-function.other-wording": "Anything",
//...
"app.welcome.link.remove-locks": "Remove all blocks" // Newly added
}
Recommanded Plugins in .vscode/extensions.json
:
Recommanded Settings in .vscode/settings.json
:
node_modules
npm install --location=global yarn
yarn
If you're in mainland China, recommand to use tyarn
instead.
node_modules
with Dockerdocker build -t PaddleLabel-Frontend -f Dockerfile.dev .
docker run -ti -v ~/gitroot/PaddleLabel-Frontend:/usr/app PaddleLabel-Frontend yarn
docker run -ti -p 8000:8000 -p 3000:3000 -v ~/gitroot/PaddleLabel-Frontend:/usr/app npm start --name PaddleLabel-Frontend
dash
to bash
to prevent [
issue in git hooks:sudo dpkg-reconfigure dash
# Then select `No`
There're some useful script to help you quick start and build with web project, code style check and test.
Scripts provided in package.json
. It's safe to modify or add additional script:
npm start
npm run build
npm run lint
You can also use script to auto fix some lint error:
npm run lint:fix
npm test
Add docker run -ti PaddleLabel-Frontend
in front of above commands.
For example, before:
npm test
After:
docker run -ti PaddleLabel-Frontend npm test
yarn global add @openapitools/openapi-generator-cli
openapi-generator-cli generate \
-i ../PaddleLabel/paddlelabel/openapi.yml \
-g typescript-fetch \
-o src/services/web/ \
--additional-properties=useSingleRequestParameter=false \
--remove-operation-id-prefix \
--skip-validate-spec
openapi-generator-cli generate \
-i ../PaddleLabel-ML/paddlelabel_ml/openapi.yml \
-g typescript-fetch \
-o src/services/ml/ \
--additional-properties=useSingleRequestParameter=false \
--remove-operation-id-prefix \
--skip-validate-spec
npx cypress open # with real time visulization
npx cypress run # headless with video playback
No Description
YAML TSX TypeScript Less CSS other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》