Skip to content

Commit 5429d93

Browse files
authored
Merge pull request #8 from fssqLove/master
采用typescript
2 parents e93ec43 + c94b7ab commit 5429d93

File tree

166 files changed

+8724
-3198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+8724
-3198
lines changed

.dockerignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
**/node_modules
5+
/src/utils/request-temp.js
6+
7+
# production
8+
/.vscode
9+
10+
# misc
11+
.DS_Store
12+
npm-debug.log*
13+
yarn-error.log
14+
15+
/coverage
16+
.idea
17+
yarn.lock
18+
package-lock.json
19+
*bak
20+
.vscode
21+
22+
# visual studio code
23+
.history
24+
*.log
25+
26+
functions/mock
27+
.temp/**
28+
29+
# umi
30+
.umi
31+
.umi-production
32+
33+
# screenshot
34+
screenshot
35+
.firebase

.editorconfig

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ insert_final_newline = true
1313
trim_trailing_whitespace = false
1414

1515
[Makefile]
16-
indent_style = tab
16+
indent_style = tab

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/lambda/
2+
/scripts
3+
/config
4+
.history

.eslintrc.js

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,7 @@
11
module.exports = {
2-
parser: 'babel-eslint',
3-
extends: ['airbnb', 'prettier', 'plugin:compat/recommended'],
4-
env: {
5-
browser: true,
6-
node: true,
7-
es6: true,
8-
mocha: true,
9-
jest: true,
10-
jasmine: true,
11-
},
2+
extends: [require.resolve('@umijs/fabric/dist/eslint')],
123
globals: {
13-
APP_TYPE: true,
4+
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
145
page: true,
156
},
16-
rules: {
17-
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
18-
'react/jsx-wrap-multilines': 0,
19-
'react/prop-types': 0,
20-
'react/forbid-prop-types': 0,
21-
'react/jsx-one-expression-per-line': 0,
22-
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }],
23-
'import/no-extraneous-dependencies': [
24-
2,
25-
{
26-
optionalDependencies: true,
27-
devDependencies: ['**/tests/**.js', '/mock/**.js', '**/**.test.js'],
28-
},
29-
],
30-
'jsx-a11y/no-noninteractive-element-interactions': 0,
31-
'jsx-a11y/click-events-have-key-events': 0,
32-
'jsx-a11y/no-static-element-interactions': 0,
33-
'jsx-a11y/anchor-is-valid': 0,
34-
'linebreak-style': 0,
35-
},
36-
settings: {
37-
polyfills: ['fetch', 'promises', 'url'],
38-
},
397
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: '报告Bug 🐛'
3+
about: 报告 Ant Design Pro 的 bug
4+
title: '🐛[BUG]'
5+
labels: '🐛bug'
6+
assignees: ''
7+
---
8+
9+
### 🐛 bug 描述
10+
11+
<!--
12+
详细地描述 bug,让大家都能理解
13+
-->
14+
15+
### 📷 复现步骤
16+
17+
<!--
18+
清晰描述复现步骤,让别人也能看到问题
19+
-->
20+
21+
### 🏞 期望结果
22+
23+
<!--
24+
描述你原本期望看到的结果
25+
-->
26+
27+
### 💻 复现代码
28+
29+
<!--
30+
提供可复现的代码,仓库,或线上示例
31+
-->
32+
33+
### © 版本信息
34+
35+
- Ant Design Pro 版本: [e.g. 4.0.0]
36+
- umi 版本
37+
- 浏览器环境
38+
- 开发环境 [e.g. mac OS]
39+
40+
### 🚑 其他信息
41+
42+
<!--
43+
如截图等其他信息可以贴在这里
44+
-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: '功能需求 ✨'
3+
about: 对 Ant Design Pro 的需求或建议
4+
title: '👑 [需求]'
5+
labels: '👑Feature Request'
6+
assignees: ''
7+
---
8+
9+
### 🥰 需求描述
10+
11+
<!--
12+
详细地描述需求,让大家都能理解
13+
-->
14+
15+
### 🧐 解决方案
16+
17+
<!--
18+
如果你有解决方案,在这里清晰地阐述
19+
-->
20+
21+
### 🚑 其他信息
22+
23+
<!--
24+
如截图等其他信息可以贴在这里
25+
-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: '疑问或需要帮助 ❓'
3+
about: 对 Ant Design Pro 使用的疑问或需要帮助
4+
title: '🧐[问题]'
5+
labels: '🧐question'
6+
assignees: ''
7+
---
8+
9+
### 🧐 问题描述
10+
11+
<!--
12+
详细地描述问题,让大家都能理解
13+
-->
14+
15+
### 💻 示例代码
16+
17+
<!--
18+
如果你有解决方案,在这里清晰地阐述
19+
-->
20+
21+
### 🚑 其他信息
22+
23+
<!--
24+
如截图等其他信息可以贴在这里
25+
-->

.github/workflows/rebase.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
name: Automatic Rebase
5+
jobs:
6+
rebase:
7+
name: Rebase
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Automatic Rebase
12+
uses: cirrus-actions/rebase@master
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

100755100644
Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
4+
**/node_modules
55
# roadhog-api-doc ignore
66
/src/utils/request-temp.js
77
_roadhog-api-doc
@@ -20,7 +20,21 @@ yarn-error.log
2020
yarn.lock
2121
package-lock.json
2222
*bak
23-
# visual studio code
23+
.vscode
24+
25+
# visual studio code
2426
.history
27+
*.log
28+
functions/*
29+
.temp/**
30+
31+
# umi
2532
.umi
26-
.umi-production
33+
.umi-production
34+
35+
# screenshot
36+
screenshot
37+
.firebase
38+
.eslintcache
39+
40+
build

.gitpod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ports:
2+
- port: 8000
3+
onOpen: open-preview
4+
tasks:
5+
- init: npm install
6+
command: npm start

0 commit comments

Comments
 (0)