Skip to content

Commit 18f29b3

Browse files
committed
Hello Flow.
0 parents  commit 18f29b3

File tree

98 files changed

+17918
-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.

98 files changed

+17918
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["react-static/babel-preset.js"]
3+
}

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
artifacts
3+
dist

.env-build

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GRAPHQL_PRODUCTION_API="https://playground.flow.dapperlabs.com/query"

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/generated/**

.eslintrc

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"react-app",
5+
"prettier",
6+
"prettier/react",
7+
"prettier/standard",
8+
"prettier/@typescript-eslint",
9+
"plugin:jsx-a11y/recommended"
10+
],
11+
"plugins": ["prettier", "react", "jsx-a11y", "cypress", "graphql"],
12+
"parserOptions": {
13+
"ecmaVersion": 7,
14+
"sourceType": "module",
15+
"ecmaFeatures": {
16+
"jsx": true
17+
}
18+
},
19+
"env": {
20+
"browser": true,
21+
"node": true,
22+
"jest": true,
23+
"webextensions": true,
24+
"es6": true,
25+
"cypress/globals": true
26+
},
27+
"globals": {
28+
"Raven": true
29+
},
30+
"rules": {
31+
"no-undef": 2,
32+
"no-unused-vars": [
33+
1,
34+
{
35+
"ignoreRestSiblings": true
36+
}
37+
],
38+
"prettier/prettier": 2,
39+
"react/button-has-type": 2,
40+
"react/default-props-match-prop-types": 2,
41+
"react/no-access-state-in-setstate": 2,
42+
"react/no-direct-mutation-state": 2,
43+
"react/jsx-curly-brace-presence": [
44+
1,
45+
{
46+
"props": "never",
47+
"children": "never"
48+
}
49+
],
50+
"react/no-redundant-should-component-update": 1,
51+
"react/no-string-refs": 2,
52+
"react/no-typos": 1,
53+
"react/no-unknown-property": 1,
54+
"react/no-unused-prop-types": 1,
55+
"react/no-unused-state": 1,
56+
"react/prefer-stateless-function": 1,
57+
"react/prop-types": 2,
58+
"react/require-default-props": 1,
59+
"react/require-render-return": 2,
60+
"react/self-closing-comp": 1,
61+
"react/sort-comp": 1,
62+
"react/jsx-closing-bracket-location": 2,
63+
"react/jsx-closing-tag-location": 2,
64+
"react/jsx-indent": [2, 2],
65+
"react/jsx-indent-props": [2, 2],
66+
"react/jsx-no-duplicate-props": [
67+
2,
68+
{
69+
"ignoreCase": true
70+
}
71+
],
72+
"react/jsx-no-undef": 1,
73+
"react/jsx-uses-react": 1,
74+
"react/jsx-uses-vars": 1,
75+
"jsx-a11y/alt-text": 1,
76+
"jsx-a11y/no-static-element-interactions": 2
77+
},
78+
"overrides": [
79+
{
80+
"files": ["**/*.ts", "**/*.tsx"],
81+
"parser": "@typescript-eslint/parser",
82+
"plugins": ["@typescript-eslint"],
83+
"rules": {
84+
"prettier/prettier": 1,
85+
"no-undef": 0,
86+
"no-unused-vars": 0,
87+
"@typescript-eslint/no-unused-vars": 2,
88+
"no-unused-expressions": 0,
89+
"@typescript-eslint/no-unused-expressions": ["error"]
90+
}
91+
},
92+
{
93+
"files": ["**/*.spec.js"],
94+
"rules": {
95+
"no-unused-expressions": "off"
96+
}
97+
},
98+
{
99+
"files": ["**/*.test.js"],
100+
"rules": {
101+
"jsx-a11y/no-static-element-interactions": 0,
102+
"jsx-a11y/click-events-have-key-events": 0
103+
}
104+
}
105+
]
106+
}

.github/ISSUE_TEMPLATE/bug_report.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: 10thfloor
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Desktop (please complete the following information):**
23+
- OS: [e.g. iOS]
24+
- Browser [e.g. chrome, safari]
25+
- Version [e.g. 22]
26+
27+
**Additional context**
28+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: 10thfloor
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
4+
# dependencies
5+
node_modules
6+
7+
# production
8+
dist
9+
artifacts
10+
tmp
11+
12+
# misc
13+
.DS_Store
14+
.env
15+
.env.local
16+
.env.production
17+
.env.test
18+
19+
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+

CODE_OF_CONDUCT.md

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

0 commit comments

Comments
 (0)