Skip to content

Commit 2f57048

Browse files
committed
同步
0 parents  commit 2f57048

File tree

476 files changed

+30072
-0
lines changed

Some content is hidden

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

476 files changed

+30072
-0
lines changed

.circleci/config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:latest
6+
steps:
7+
- checkout
8+
- run: npm install
9+
- run: npm run lint
10+
- run: npm run build
11+
test:
12+
docker:
13+
- image: circleci/node:latest-browsers
14+
steps:
15+
- checkout
16+
- run: npm install
17+
- run:
18+
command: npm run test:all
19+
no_output_timeout: 30m
20+
workflows:
21+
version: 2
22+
build_and_test:
23+
jobs:
24+
- build
25+
- test

.dockerignore

+35
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

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/functions/mock/**
2+
/scripts
3+
/config

.eslintrc.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
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+
},
12+
globals: {
13+
APP_TYPE: true,
14+
page: true,
15+
},
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+
},
39+
};

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "antd-pro"
4+
}
5+
}

.gitignore

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

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.html
5+
package.json
6+
.umi
7+
.umi-production

.prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 100,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": { "parser": "json" }
9+
}
10+
]
11+
}

.stylelintrc.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules": {
4+
"declaration-empty-line-before": null,
5+
"no-descending-specificity": null,
6+
"selector-pseudo-class-no-unknown": null,
7+
"selector-pseudo-element-colon-notation": null
8+
}
9+
}

CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM circleci/node:latest-browsers
2+
3+
WORKDIR /usr/src/app/
4+
USER root
5+
COPY package.json ./
6+
RUN yarn
7+
8+
COPY ./ ./
9+
10+
RUN npm run test:all
11+
12+
CMD ["npm", "run", "build"]

Dockerfile.dev

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:latest
2+
3+
WORKDIR /usr/src/app/
4+
5+
COPY package.json ./
6+
RUN npm install --silent --no-cache
7+
8+
COPY ./ ./
9+
10+
11+
CMD ["npm", "run", "start"]

Dockerfile.hub

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM nginx
2+
3+
WORKDIR /usr/src/app/
4+
5+
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
6+
7+
COPY ./dist /usr/share/nginx/html/
8+
9+
EXPOSE 80
10+
11+
CMD ["nginx", "-g", "daemon off;"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Alipay.inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)