-
Notifications
You must be signed in to change notification settings - Fork 200
/
index.html
172 lines (108 loc) · 6.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<title>Community toolbox</title>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/chart.js/dist/Chart.js"></script>
<script src="node_modules/urlhash/urlHash.js"></script>
<script src="dist/community-toolbox.js" charset="utf-8"></script>
</head>
<body>
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="examples/demo.css">
<div class="container-fluid">
<header class="text-center">
<h1>Welcome to Public Lab!</h1>
</header>
<hr />
<h4 style="text-align:center;font-weight:bold;">We're so happy to meet you! This page is to welcome new contributors. </h4>
<hr />
<div class="row">
<div class="col-md-6">
<p>We especially welcome contributions from people from <b>groups underrepresented</b> in free and open source software!</p>
<p>Our community aspires to be a respectful place. Please read and abide by our <a href="https://publiclab.org/conduct">Code of Conduct</a>.</p>
</div>
<div class="col-md-6">
<p>If you're new, and looking to get involved, you're in the right place. Check out <a href="https://github.com/publiclab/plots2/">our README</a> to get started.</p>
<p>If you're new to GitHub, using branches, or opening pull requests, <a href="https://guides.github.com/activities/hello-world/">read here for an introduction</a>.</p>
<p>If you have trouble, check out <a href="https://publiclab.org/chat">our chatroom</a> to ask for help, or just <a href="https://github.com/publiclab/plots2/issues/new">open an issue</a> and we'll write back!</p>
</div>
</div>
<hr />
<h2>First-timers-only issues</h2>
<p>Here are <a href="https://github.com/publiclab/plots2/labels/first-timers-only">a selection</a> of issues we've <a href="https://publiclab.org/n/13667">made especially for first-timers</a>. We're here to help, so just ask if one looks interesting, by leaving a comment!</p>
<div class="row first-timers-only"></div>
<p>No issues left? See the almost-as-good "candidates" below, or learn how to <a href="">prepare new <b>first-timers-only</b> issues here</a>.</p>
<h2>Candidates</h2>
<p>We put a lot of work into our first-timer-only issues. But if we haven't been able to prepare any recently, here's a set of candidates we haven't yet had time to prepare, but which have most of the needed information:</p>
<div class="row candidates"></div>
<h2>What's next?</h2>
<p>Once you've completed a <b>first-timers-only</b> issue, there are <a href="https://github.com/publiclab/plots2/labels/help-wanted">plenty of other challenges</a> we'd love to have your help on.</p>
<p>In "Candidates" above, there are some issues we think would make good <b>first-timers-only</b> issues, but haven't finished formatting. They could make a good second-time contribution!</p>
<h2>You're now an expert on being a newcomer!</h2>
<p>After finishing a first-timers-only issue, you're uniquely suited to help others make their own first contribution. We'd love to help you welcome another new person into our community! Here are some ways to help:</p>
<p><a href="https://publiclab.org/n/13667">Create your own first-timers-only issue</a> to welcome others into the project.</p>
<p>Also consider <a href="https://publiclab.org/n/13687">other ways you can support</a> even without coding!</p>
<hr />
<h2>Contributors</h2>
<p>This project was made possible by many contributors, including the following GitHub users:</p>
<p class="well contributors"></p>
</div>
<footer>
<p>
Page powered by <a href="https://github.com/jywarren/community-toolbox"><i class="fa fa-github"></i></a>
<a href="https://github.com/jywarren/community-toolbox">Commmunity Toolbox</a>
- Open Source
</p>
</footer>
<script type="text/javascript">
var toolbox;
(function() {
var org = urlHash().getUrlHashParameter('o') || 'publiclab';
var repo = urlHash().getUrlHashParameter('r') || 'plots2';
var ftoLabel = urlHash().getUrlHashParameter('f') || 'first-timers-only';
var candidateLabel = urlHash().getUrlHashParameter('c') || 'fto-candidate';
toolbox = CommunityToolbox(org, repo);
if (repo === 'all') {
toolbox.getIssuesForOrg(org, { qs: { labels: ftoLabel } })
.then(displayIssues('.first-timers-only'));
toolbox.getIssuesForOrg(org, { qs: { labels: candidateLabel } })
.then(displayIssues('.candidates'));
} else {
toolbox.api.Issues
.getIssuesForRepo(org, repo, { qs: { labels: ftoLabel } })
.then(displayIssues('.first-timers-only'));
toolbox.api.Issues
.getIssuesForRepo(org, repo, { qs: { labels: candidateLabel } })
.then(displayIssues('.candidates'));
// compile and display all contributors for given org/repo:
toolbox.api.Repositories
.getRepoContributors(org, repo, { qs: { sort: 'pushed', direction: 'desc', per_page: 100 } })
.then(function(contributors) {
var usernames = contributors.map(function(c) {
return '<a href="https://github.com/' + c.login + '">@' + c.login + '</a>';
});
var avatars = contributors.map(function(c) {
return '<a href="https://github.com/' + c.login + '"><img width="100px" src="' + c.avatar_url + '"></a>';
});
$('.contributors').html(usernames.join(', '));
$('.contributors').append('<hr />');
$('.contributors').append(avatars.join());
});
}
function displayIssues(selector) {
return function displayIssues(issues) {
if (typeof issues === "string") issues = JSON.parse(issues).items;
issues.forEach(function(issue) {
toolbox.ui.insertIssue(issue, selector);
});
}
}
})();
</script>
</body>
</html>