Skip to content

Commit 0fc8465

Browse files
committed
Update CoC to match p5.js repo, add CoC to Policy documents
1 parent 60bfef6 commit 0fc8465

File tree

7 files changed

+137
-9
lines changed

7 files changed

+137
-9
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,51 @@
1-
# p5.js Code of Conduct
1+
## [p5.js community statement](http://p5js.org/community/)
2+
3+
p5.js is a community interested in exploring the creation of art and design with technology.
4+
5+
We are a community of, and in solidarity with, people from every gender identity and expression, sexual orientation, race, ethnicity, language, neuro-type, size, disability, class, religion, culture, subculture, political opinion, age, skill level, occupation, and background. We acknowledge that not everyone has the time, financial means, or capacity to actively participate, but we recognize and encourage involvement of all kinds. We facilitate and foster access and empowerment. We are all learners.
6+
7+
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).
8+
9+
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.
15+
16+
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.
24+
25+
In the future:
26+
* The future is now.
27+
28+
29+
## p5.js Code of Conduct
230

331
* **Be mindful of your language.** Any of the following behavior is unacceptable:
432
* 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
533
* Threats of violence
634
* Deliberate intimidation
7-
* Sexually explicit or violent material
35+
* Sexually explicit or violent material that is not contextualized and preceded by a considerate warning
836
* Unwelcome sexual attention
937
* Stalking or following
1038
* Or any other kinds of harassment
1139

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

14-
* **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.
15-
* **Be considerate.** Think about how your contribution will affect others in the community.
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.
1644
* **Be open minded.** Embrace new people and new ideas. Our community is continually evolving and we welcome positive change.
1745

1846
If you believe someone is violating the code of conduct, we ask that you report it by emailing [hello@p5js.org](mailto:hello@p5js.org). Please include your name and a description of the incident, and we will get back to you ASAP.
1947

20-
Participants asked to stop any harassing behavior are expected to comply immediately. If a participant engages in harassing 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.
21-
22-
## Also
48+
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.
2349

24-
* You can read our [community statement](http://p5js.org/community/) on our website.
50+
---
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.

client/modules/IDE/components/About.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ function About(props) {
168168
Terms of Use
169169
</Link>
170170
</p>
171+
<p className="about__content-column-list">
172+
<Link to="/code-of-conduct">
173+
<AsteriskIcon
174+
className="about__content-column-asterisk"
175+
aria-hidden="true"
176+
focusable="false"
177+
/>
178+
Code of Conduct
179+
</Link>
180+
</p>
171181
</div>
172182
<div className="about__footer">
173183
<p className="about__footer-list">
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React, { useEffect, useState } from 'react';
2+
import Helmet from 'react-helmet';
3+
import axios from 'axios';
4+
import PolicyContainer from '../components/PolicyContainer';
5+
6+
function CodeOfConduct() {
7+
const [codeOfConduct, setCodeOfConduct] = useState('');
8+
useEffect(() => {
9+
axios.get('code-of-conduct.md').then((response) => {
10+
setCodeOfConduct(response.data);
11+
});
12+
}, []);
13+
return (
14+
<>
15+
<Helmet>
16+
<title>p5.js Web Editor | Code of Conduct</title>
17+
</Helmet>
18+
<PolicyContainer policy={codeOfConduct} />
19+
</>
20+
);
21+
}
22+
23+
export default CodeOfConduct;

client/modules/IDE/pages/Legal.jsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { browserHistory } from 'react-router';
55
import styled from 'styled-components';
66
import PrivacyPolicy from './PrivacyPolicy';
77
import TermsOfUse from './TermsOfUse';
8+
import CodeOfConduct from './CodeOfConduct';
89
import RootPage from '../../../components/RootPage';
910
import Nav from '../../../components/Nav';
1011
import { remSize, prop } from '../../../theme';
@@ -32,8 +33,10 @@ function Legal({ location }) {
3233
useEffect(() => {
3334
if (location.pathname === '/privacy-policy') {
3435
setSelectedIndex(0);
35-
} else {
36+
} else if (location.pathname === '/terms-of-use') {
3637
setSelectedIndex(1);
38+
} else {
39+
setSelectedIndex(2);
3740
}
3841
}, [location]);
3942

@@ -45,6 +48,9 @@ function Legal({ location }) {
4548
} else if (index === 1) {
4649
setSelectedIndex(1);
4750
browserHistory.push('/terms-of-use');
51+
} else if (index === 2) {
52+
setSelectedIndex(2);
53+
browserHistory.push('/code-of-conduct');
4854
}
4955
}
5056

@@ -59,13 +65,19 @@ function Legal({ location }) {
5965
<Tab>
6066
<TabTitle>Terms of Use</TabTitle>
6167
</Tab>
68+
<Tab>
69+
<TabTitle>Code of Conduct</TabTitle>
70+
</Tab>
6271
</StyledTabList>
6372
<TabPanel>
6473
<PrivacyPolicy />
6574
</TabPanel>
6675
<TabPanel>
6776
<TermsOfUse />
6877
</TabPanel>
78+
<TabPanel>
79+
<CodeOfConduct />
80+
</TabPanel>
6981
</Tabs>
7082
</RootPage>
7183
);

client/routes.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ const routes = (store) => (
122122
<Route path="/preferences" component={MobilePreferences} />
123123
<Route path="/privacy-policy" component={Legal} />
124124
<Route path="/terms-of-use" component={Legal} />
125+
<Route path="/code-of-conduct" component={Legal} />
125126
</Route>
126127
);
127128

public/code-of-conduct.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# p5.js Community Statement
2+
3+
p5.js is a community interested in exploring the creation of art and design with technology.
4+
5+
We are a community of, and in solidarity with, people from every gender identity and expression, sexual orientation, race, ethnicity, language, neuro-type, size, disability, class, religion, culture, subculture, political opinion, age, skill level, occupation, and background. We acknowledge that not everyone has the time, financial means, or capacity to actively participate, but we recognize and encourage involvement of all kinds. We facilitate and foster access and empowerment. We are all learners.
6+
7+
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).
8+
9+
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.
15+
16+
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.
24+
25+
In the future:
26+
* The future is now.
27+
28+
29+
## p5.js Code of Conduct
30+
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
39+
40+
Use your best judgement. If it will possibly make others uncomfortable, do not post it.
41+
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+
46+
If you believe someone is violating the code of conduct, we ask that you report it by emailing [hello@p5js.org](mailto:hello@p5js.org). Please include your name and a description of the incident, and we will get back to you ASAP.
47+
48+
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.
49+
50+
---
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.

server/routes/server.routes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,8 @@ router.get('/terms-of-use', (req, res) => {
141141
res.send(renderIndex());
142142
});
143143

144+
router.get('/code-of-conduct', (req, res) => {
145+
res.send(renderIndex());
146+
});
147+
144148
export default router;

0 commit comments

Comments
 (0)