forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimization][dinky-web]dinky-web module optimization (DataLinkDC#1597)
* dinky-web module optimization * add favicon.ico and delete notices.ts * change token style * change about page * delete some local * add file header
- Loading branch information
Showing
142 changed files
with
2,747 additions
and
4,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ screenshot | |
.eslintcache | ||
|
||
build | ||
|
||
pnpm-lock.yaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,5 @@ LICENSE | |
*.lock | ||
yarn-error.log | ||
.history | ||
CNAME | ||
/build | ||
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,43 @@ | ||
# Ant Design Pro | ||
# Dinky-web | ||
|
||
This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use. | ||
This project uses [Ant Design Pro](https://pro.ant.design) for initialization. Here's a quick guide on how to use it. | ||
|
||
## Environment Prepare | ||
[![CN doc](https://img.shields.io/badge/文档-中文版-blue.svg)](README_zh_CN.md) | ||
[![EN doc](https://img.shields.io/badge/document-English-blue.svg)](README.md) | ||
|
||
Install `node_modules`: | ||
|
||
```bash | ||
npm install | ||
``` | ||
## Environment preparation | ||
|
||
or | ||
|
||
```bash | ||
yarn | ||
``` | ||
| Environment | Version | Remarks | | ||
| ----------- | -------- | ------- | | ||
| node | 14.19.0+ | | | ||
| npm | 7.19.0+ | | | ||
|
||
## Provided Scripts | ||
> Configure related environment variables by yourself | ||
Ant Design Pro provides 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: | ||
|
||
### Start project | ||
## StartUp | ||
|
||
```bash | ||
npm start | ||
# Note: You need to enter the directory of this module to execute | ||
|
||
npm i --force && npm start | ||
``` | ||
|
||
### Build project | ||
### Build | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
### Check code style | ||
### Code Style Check | ||
|
||
```bash | ||
npm run lint | ||
``` | ||
|
||
You can also use script to auto fix some lint error: | ||
You can also automatically fix some lint errors with a script: | ||
|
||
```bash | ||
npm run lint:fix | ||
``` | ||
|
||
### Test code | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
## More | ||
|
||
You can view full document on our [official website](https://pro.ant.design). And welcome any feedback in our [github](https://github.com/ant-design/ant-design-pro). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Dinky-web | ||
|
||
本项目使用 [Ant Design Pro](https://pro.ant.design) 进行初始化。 以下是如何使用的快速指南。 | ||
|
||
## 环境准备 | ||
|
||
|
||
| 环境 | 版本 | 备注 | | ||
| ---- | -------- | ---- | | ||
| node | 14.19.0+ | | | ||
| npm | 7.19.0+ | | | ||
|
||
> 自行配置相关环境变量 | ||
## 启动 | ||
|
||
```bash | ||
# 注意: 需要进入到此模块目录下执行 | ||
|
||
npm i --force && npm start | ||
``` | ||
|
||
### 构建 | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
### 代码样式检查 | ||
|
||
```bash | ||
npm run lint | ||
``` | ||
|
||
您还可以使用脚本自动修复一些 lint 错误: | ||
```bash | ||
npm run lint:fix | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "Ant Design Pro", | ||
"title": "Dinky", | ||
"version": "1.0.0" | ||
}, | ||
"servers": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.