Skip to content

Commit 7e779db

Browse files
committed
Show Upload File button when unauthenticated and prompt login (#3079)
1 parent b16df37 commit 7e779db

File tree

161 files changed

+8405
-12483
lines changed

Some content is hidden

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

161 files changed

+8405
-12483
lines changed

.babelrc

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,10 @@
4444
"@babel/plugin-proposal-function-bind",
4545
["@babel/plugin-proposal-private-methods", { "loose": true }]
4646
],
47-
"presets": [
48-
"@babel/preset-env",
49-
"@babel/preset-react"
50-
]
47+
"presets": ["@babel/preset-env", "@babel/preset-react"]
5148
},
5249
"development": {
53-
"plugins": [
54-
"babel-plugin-styled-components",
55-
"react-refresh/babel"
56-
],
50+
"plugins": ["babel-plugin-styled-components", "react-refresh/babel"],
5751
"presets": [
5852
[
5953
"@babel/preset-react",
@@ -74,9 +68,7 @@
7468
}
7569
]
7670
],
77-
"plugins": [
78-
"babel-plugin-styled-components"
79-
]
71+
"plugins": ["babel-plugin-styled-components"]
8072
}
8173
},
8274
"plugins": [

.eslintrc

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"extends": ["airbnb", "prettier", "plugin:storybook/recommended"],
3-
"parser": "@babel/eslint-parser",
4-
"env": {
2+
"extends": ["airbnb", "prettier", "plugin:storybook/recommended"],
3+
"parser": "@babel/eslint-parser",
4+
"env": {
55
"browser": true,
66
"node": true,
77
"jest": true
@@ -17,9 +17,10 @@
1717
"import/no-named-as-default": 0,
1818
"import/no-named-as-default-member": 0,
1919
"import/no-useless-path-segments": 1,
20-
"import/no-cycle":0, //temporarily off
20+
"import/no-cycle": 0, //temporarily off
2121
"import/no-import-module-exports": 0, //temporarily off
22-
"import/extensions": [ // override airbnb setting to allow imports of js, jsx, ts, and tsx files to auto-resolve instead of error
22+
"import/extensions": [
23+
// override airbnb setting to allow imports of js, jsx, ts, and tsx files to auto-resolve instead of error
2324
"error",
2425
"ignorePackages",
2526
{
@@ -31,9 +32,9 @@
3132
],
3233
"import/prefer-default-export": "off",
3334
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
34-
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
35+
"comma-dangle": 0, // not sure why airbnb turned this on. gross!
3536
"default-param-last": 0,
36-
"no-else-return" :0,
37+
"no-else-return": 0,
3738
"indent": 0,
3839
"no-console": 0,
3940
"no-alert": 0,
@@ -44,69 +45,66 @@
4445
"no-useless-catch": 2,
4546
"no-plusplus": "off",
4647
"prefer-object-spread": 0,
47-
"max-len": [1, 120, 2, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
48+
"max-len": [
49+
1,
50+
120,
51+
2,
52+
{ "ignoreComments": true, "ignoreTemplateLiterals": true }
53+
],
4854
"max-classes-per-file": 0,
4955
"quote-props": [1, "as-needed"],
50-
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
56+
"no-unused-vars": [1, { "vars": "local", "args": "none" }],
5157
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
5258
"no-param-reassign": [2, { "props": false }],
53-
"react/self-closing-comp": ["error", {
54-
"component": true,
55-
"html": false
56-
}],
59+
"react/self-closing-comp": [
60+
"error",
61+
{
62+
"component": true,
63+
"html": false
64+
}
65+
],
5766
"newline-per-chained-call": 0,
58-
"react/prefer-stateless-function": [2,
59-
{ "ignorePureComponents": true
60-
}],
67+
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }],
6168
"class-methods-use-this": 0,
6269
"react/button-has-type": 0,
63-
"react/destructuring-assignment":0,
70+
"react/destructuring-assignment": 0,
6471
"react/function-component-definition": 0,
65-
"react/jsx-curly-newline":0,
66-
"react/jsx-fragments":0,
67-
"react/jsx-no-useless-fragment":0, // temporarily off
72+
"react/jsx-curly-newline": 0,
73+
"react/jsx-fragments": 0,
74+
"react/jsx-no-useless-fragment": 0, // temporarily off
6875
"react/jsx-one-expression-per-line": 0,
6976
"react/jsx-props-no-spreading": 0,
7077
"react/jsx-wrap-multilines": 0,
71-
"react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true, "allowFunctions": true}],
78+
"react/jsx-no-bind": [
79+
2,
80+
{ "allowBind": true, "allowArrowFunctions": true, "allowFunctions": true }
81+
],
7282
"react/no-deprecated": 0, //temporarily off
7383
"react/no-unused-class-component-methods": 1,
7484
"react/sort-comp": 0,
7585
"no-return-assign": [2, "except-parens"],
7686
"jsx-a11y/anchor-is-valid": [
7787
"error",
7888
{
79-
"components": [
80-
"Link"
81-
],
82-
"specialLink": [
83-
"to"
84-
]
89+
"components": ["Link"],
90+
"specialLink": ["to"]
8591
}
8692
],
8793
"jsx-a11y/control-has-associated-label": 0, //temporarily off
8894
"jsx-a11y/label-has-associated-control": 0, //temporarily off
8995
"jsx-a11y/label-has-for": [
9096
2,
9197
{
92-
"components": [
93-
"Label"
94-
],
98+
"components": ["Label"],
9599
"required": {
96-
"every": [
97-
"id"
98-
]
100+
"every": ["id"]
99101
},
100102
"allowChildren": false
101103
}
102104
],
103-
"prettier/prettier": [
104-
"error"
105-
]
105+
"prettier/prettier": ["warn"]
106106
},
107-
"plugins": [
108-
"react", "jsx-a11y", "import", "prettier"
109-
],
107+
"plugins": ["react", "jsx-a11y", "import", "prettier"],
110108
"settings": {
111109
"import/parser": "@babel/eslint-parser",
112110
"import/resolver": {

.github/CODE_OF_CONDUCT.md

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,49 @@ We are a community of, and in solidarity with, people from every gender identity
77
We like these hashtags: #noCodeSnobs (because we value community over efficiency), #newKidLove (because we all started somewhere), #unassumeCore (because we don't assume knowledge), and #BlackLivesMatter (because of course).
88

99
In practice:
10-
* We are not code snobs. We do not assume knowledge or imply there are things that somebody should know.
11-
* We insist on actively engaging with requests for feedback regardless of their complexity.
12-
* We welcome newcomers and prioritize the education of others. We strive to approach all tasks with the enthusiasm of a newcomer. Because we believe that newcomers are just as valuable in this effort as experts.
13-
* We consistently make the effort to actively recognize and validate multiple types of contributions.
14-
* We are always willing to offer help or guidance.
10+
11+
- We are not code snobs. We do not assume knowledge or imply there are things that somebody should know.
12+
- We insist on actively engaging with requests for feedback regardless of their complexity.
13+
- We welcome newcomers and prioritize the education of others. We strive to approach all tasks with the enthusiasm of a newcomer. Because we believe that newcomers are just as valuable in this effort as experts.
14+
- We consistently make the effort to actively recognize and validate multiple types of contributions.
15+
- We are always willing to offer help or guidance.
1516

1617
In times of conflict:
17-
* We listen.
18-
* We clearly communicate while acknowledging other's feelings.
19-
* We admit when we're wrong, apologize, and accept responsibility for our actions.
20-
* We are continuously seeking to improve ourselves and our community.
21-
* We keep our community respectful and open.
22-
* We make everyone feel heard.
23-
* We are mindful and kind in our interactions.
18+
19+
- We listen.
20+
- We clearly communicate while acknowledging other's feelings.
21+
- We admit when we're wrong, apologize, and accept responsibility for our actions.
22+
- We are continuously seeking to improve ourselves and our community.
23+
- We keep our community respectful and open.
24+
- We make everyone feel heard.
25+
- We are mindful and kind in our interactions.
2426

2527
In the future:
26-
* The future is now.
2728

29+
- The future is now.
2830

2931
## p5.js Code of Conduct
3032

31-
* **Be mindful of your language.** Any of the following behavior is unacceptable:
32-
* Offensive comments related to gender identity and expression, sexual orientation, race, ethnicity, language, neuro-type, size, ability, class, religion, culture, subculture, political opinion, age, skill level, occupation, or background
33-
* Threats of violence
34-
* Deliberate intimidation
35-
* Sexually explicit or violent material that is not contextualized and preceded by a considerate warning
36-
* Unwelcome sexual attention
37-
* Stalking or following
38-
* Or any other kinds of harassment
33+
- **Be mindful of your language.** Any of the following behavior is unacceptable:
34+
35+
- Offensive comments related to gender identity and expression, sexual orientation, race, ethnicity, language, neuro-type, size, ability, class, religion, culture, subculture, political opinion, age, skill level, occupation, or background
36+
- Threats of violence
37+
- Deliberate intimidation
38+
- Sexually explicit or violent material that is not contextualized and preceded by a considerate warning
39+
- Unwelcome sexual attention
40+
- Stalking or following
41+
- Or any other kinds of harassment
3942

4043
Use your best judgement. If it will possibly make others uncomfortable, do not post it.
4144

42-
* **Be respectful.** Disagreement is not an opportunity to attack someone else's thoughts or opinions. Although views may differ, remember to approach every situation with patience and care.
43-
* **Be considerate.** Think about how your contribution will affect others in the community.
44-
* **Be open minded.** Embrace new people and new ideas. Our community is continually evolving and we welcome positive change.
45+
- **Be respectful.** Disagreement is not an opportunity to attack someone else's thoughts or opinions. Although views may differ, remember to approach every situation with patience and care.
46+
- **Be considerate.** Think about how your contribution will affect others in the community.
47+
- **Be open minded.** Embrace new people and new ideas. Our community is continually evolving and we welcome positive change.
4548

4649
If you believe someone is violating the code of conduct, we ask that you report it by emailing [[email protected]](mailto:[email protected]). Please include your name and a description of the incident, and we will get back to you ASAP.
4750

4851
Sometimes, participants violating the Code of Conduct are unaware that their behavior is harmful, and an open conversation clears things up to move forward. However, if a participant continues with the behavior, the p5.js team may take any action they deem appropriate, up to and including expulsion from all p5.js spaces and identification of the participant as a harasser to other p5.js members or the general public.
4952

5053
---
51-
This statement is licensed under a [Creative Commons license](https://creativecommons.org/licenses/by-sa/4.0/). Please feel free to share and remix with attribution.
54+
55+
This statement is licensed under a [Creative Commons license](https://creativecommons.org/licenses/by-sa/4.0/). Please feel free to share and remix with attribution.

0 commit comments

Comments
 (0)