-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3095544
Showing
983 changed files
with
112,400 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = api => { | ||
api.cache(() => process.env.NODE_ENV); | ||
|
||
if (process.env.GATSBY === 'true') { | ||
return { | ||
presets: ['@babel/preset-env', 'babel-preset-gatsby'], | ||
}; | ||
} | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
loose: true, | ||
modules: false, | ||
}, | ||
], | ||
'@babel/preset-react', | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} | ||
] | ||
}; | ||
}; |
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,10 @@ | ||
# Browsers that we support | ||
|
||
[production staging] | ||
> 1% | ||
last 2 version | ||
ie 11 | ||
|
||
[development] | ||
> 1% | ||
last 2 version |
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,20 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 1 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,14 @@ | ||
lib/ | ||
dist/ | ||
node_modules/ | ||
.cache | ||
public | ||
bin | ||
esm/ | ||
es/ | ||
tests/ | ||
webpack.*.js | ||
gatsby-*.js | ||
global.d.ts | ||
jest.config.js | ||
.eslintrc.* |
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,51 @@ | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/eslint')], | ||
globals: { | ||
$: true, | ||
_: true, | ||
}, | ||
rules: { | ||
'no-bitwise': 0, | ||
'import/order': 0, | ||
'no-plusplus': 0, | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
'operator-assignment': 0, | ||
'consistent-return': 0, | ||
'lines-between-class-members': 0, | ||
'class-methods-use-this': 0, | ||
'lines-between-class-members': 0, | ||
'no-multi-assign': 0, | ||
'no-continue': 0, | ||
'no-underscore-dangle': 0, | ||
'no-useless-constructor': 0, | ||
'prefer-destructuring': 0, | ||
'guard-for-in': 0, | ||
'no-restricted-globals': 0, | ||
'max-classes-per-file': 0, | ||
// 后面需要去掉 | ||
'no-restricted-syntax': 0, | ||
'prefer-spread': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'no-loop-func': 0, | ||
'@typescript-eslint/no-loop-func': 0, | ||
'@typescript-eslint/no-redeclare': 0, | ||
'@typescript-eslint/no-shadow': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'no-param-reassign': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'no-unused-expressions': 0, | ||
'dot-notation': 0, | ||
'array-callback-return': 0, | ||
'one-var': 0, | ||
'no-lonely-if': 0, | ||
'@typescript-eslint/consistent-type-imports': 0, | ||
"@typescript-eslint/no-this-alias": 0, | ||
"@typescript-eslint/consistent-indexed-object-style": 0, | ||
"@typescript-eslint/no-invalid-this": 0, | ||
"@typescript-eslint/array-type": 0, | ||
"@typescript-eslint/consistent-type-definitions": 0, | ||
// using Record<string, unknown> instead | ||
"@typescript-eslint/ban-types": 0, | ||
"@typescript-eslint/no-useless-constructor": 0 | ||
}, | ||
}; |
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,5 @@ | ||
export default { | ||
entry: './src/index.ts', | ||
esm: 'babel', | ||
cjs: 'babel', | ||
}; |
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,24 @@ | ||
<!-- | ||
Thank you for reporting an issue. | ||
1. It's RECOMMENDED to submit PR for typo or tiny bug fix. | ||
2. If this's a FEATURE request, please provide: details, pseudo codes if necessary. | ||
3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able. | ||
4. It will be nice to use to provide a CodePen Link which can reproduce the issue, we provide a CodePen template [g6-github-issue](https://codepen.io/DoriTong/pen/pKbLVw). | ||
感谢您向我们反馈问题。 | ||
1. 提交问题前,请先阅读 https://antv.alipay.com/zh-cn/g6/1.x/index.html 上的文档。 | ||
2. 我们推荐如果是小问题(错别字修改,小的 bug fix)直接提交 PR。 | ||
3. 如果是一个新需求,请提供:详细需求描述,最好是有伪代码实现。 | ||
4. 如果是一个 BUG,请提供:复现步骤,错误日志以及相关配置,并尽量填写下面的模板中的条目。 | ||
5. 如果可以,请提供尽可能精简的 CodePen 链接,可使用 CodePen 模板 https://codepen.io/DoriTong/pen/pKbLVw,方便我们排查问题。 | ||
6. 扩展阅读:[如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393) | ||
--> | ||
|
||
- **G6 Version**: | ||
- **Platform**: | ||
- **Mini Showcase(like screenshots)**: | ||
- **CodePen Link**: | ||
|
||
<!-- Enter your issue details below this comment. --> |
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,85 @@ | ||
name: 'Bug report' | ||
description: Create a report to help us improve | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for reporting an issue :pray:. | ||
This issue tracker is for reporting bugs found in G6 (https://github.com/antvis/G6). | ||
If you have a question about how to achieve something and are struggling, please post a question | ||
inside of G6's Discussion's tab: https://github.com/antvis/G6/discussions | ||
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already: | ||
- G6's Issue's tab: https://github.com/antvis/G6/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc | ||
- G6's closed issues tab: https://github.com/antvis/G6/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed | ||
- G6 Discussion's tab: https://github.com/antvis/G6/discussions | ||
The more information you fill in, the better the community can help you. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: Provide a clear and concise description of the challenge you are running into. | ||
validations: | ||
required: true | ||
- type: input | ||
id: link | ||
attributes: | ||
label: Your Example Website or App | ||
description: | | ||
Which website or app were you using when the bug happened? | ||
Note: | ||
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the G6 npm package. | ||
- To create a shareable code example you can use Stackblitz (https://stackblitz.com/) or CodeSandbox (https://codesandbox.io/s/new). Please no localhost URLs. | ||
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve. | ||
placeholder: | | ||
e.g. Stackblitz, Code Sandbox app url | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to Reproduce the Bug or Issue | ||
description: Describe the steps we have to take to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behavior | ||
description: Provide a clear and concise description of what you expected to happen. | ||
placeholder: | | ||
As a user, I expected ___ behavior but i am seeing ___ | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots_or_videos | ||
attributes: | ||
label: Screenshots or Videos | ||
description: | | ||
If applicable, add screenshots or a video to help explain your problem. | ||
For more information on the supported file image/file types and the file size limits, please refer | ||
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files | ||
placeholder: | | ||
You can drag your video or image files inside of this editor ↓ | ||
- type: textarea | ||
id: platform | ||
attributes: | ||
label: Platform | ||
value: | | ||
- OS: [e.g. macOS, Windows, Linux] | ||
- Browser: [e.g. Chrome, Safari, Firefox] | ||
- Version: [e.g. 91.1] | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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,69 @@ | ||
name: '🐞 新 Issue' | ||
description: 创建一个新的 issue,如果你的 issue 不符合规范,它将会被自动关闭。 | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
在提交新 issue 之前,先通过以下链接查看有没有类似的 bug 或者建议: | ||
- [G6 Issues](https://github.com/antvis/G6/issues) | ||
- [G6 Closed Issues](https://github.com/antvis/G6/issues?q=is%3Aissue+is%3Aclosed) | ||
- [G6 Discussions](https://github.com/antvis/G6/discussions) | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: 问题描述 | ||
description: 简洁清晰地描述你遇到的问题。 | ||
validations: | ||
required: true | ||
- type: input | ||
id: link | ||
attributes: | ||
label: 重现链接 | ||
description: | | ||
可以使用 CodeSandbox(https://codesandbox.io/s/new) 或者 StackBlitz(https://stackblitz.com/) 重现你的问题。 | ||
placeholder: | | ||
示例: CodeSandBox 或者 StackBlitz URL | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: 重现步骤 | ||
description: 简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。 | ||
placeholder: | | ||
1.进入页面... | ||
2.点击.... | ||
3.查看错误.... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: 预期行为 | ||
description: 描述你期望的结果以及实际的结果。 | ||
placeholder: | | ||
我期望看到...,但我看到了... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: platform | ||
attributes: | ||
label: 平台 | ||
value: | | ||
- 操作系统: [macOS, Windows, Linux, React Native ...] | ||
- 网页浏览器: [Google Chrome, Safari, Firefox] | ||
- G6 版本: [4.5.1 ... ] | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots_or_videos | ||
attributes: | ||
label: 屏幕截图或视频(可选) | ||
description: 可以添加屏幕截图或视频帮助你解释问题。 | ||
placeholder: | | ||
可以将你的图片或者视频拖拽到此处↓ | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: 补充说明(可选) | ||
description: 比如:遇到这个 bug 的业务场景、上下文。 |
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Feature Requests & Questions | ||
url: https://github.com/antvis/G6/discussions | ||
about: Please ask and answer questions here. |
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,21 @@ | ||
<!-- | ||
Thank you for your pull request. Please review below requirements. | ||
Bug fixes and new features should include tests and possibly benchmarks. | ||
Contributors guide: https://github.com/antvis/g6/blob/master/CONTRIBUTING.md | ||
感谢您贡献代码。请确认下列 checklist 的完成情况。 | ||
Bug 修复和新功能必须包含测试,必要时请附上性能测试。 | ||
Contributors guide: https://github.com/antvis/g6/blob/master/CONTRIBUTING.md | ||
--> | ||
|
||
##### Checklist | ||
|
||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] `npm test` passes | ||
- [ ] tests and/or benchmarks are included | ||
- [ ] commit message follows commit guidelines | ||
|
||
##### Description of change | ||
|
||
<!-- Provide a description of the change below this comment. --> |
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,17 @@ | ||
name: gitleaks | ||
|
||
on: [push,pull_request] | ||
|
||
jobs: | ||
gitleaks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '1' | ||
- name: wget | ||
uses: wei/wget@v1 | ||
with: | ||
args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml | ||
- name: gitleaks-action | ||
uses: zricethezav/[email protected] |
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,18 @@ | ||
name: 🔂 Surge PR Preview | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: afc163/surge-preview@v1 | ||
with: | ||
surge_token: ${{ secrets.SURGE_TOKEN }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build: | | ||
npm install | ||
npm run build | ||
npm run site:build | ||
dist: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: | ||
issue_comment: | ||
types: [created] | ||
name: Automatic Rebase | ||
jobs: | ||
rebase: | ||
name: Rebase | ||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- name: Automatic Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.