forked from publiclab/community-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (80 loc) · 4.26 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
<!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>
<p>
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>
</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 />
<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>
<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>
<hr />
<h2>First-timers-only issues</h2>
<p>Here are a selection of issues we've made especially for first-timers. We're here to help, so just ask if one looks interesting!</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>Contributors</h2>
<p>This project was made possible by many contributors, including the following GitHub users:</p>
<p class="well contributors"></p>
</div>
<script type="text/javascript">
var toolbox;
(function() {
var org = urlHash().getUrlHashParameter('o') || 'publiclab';
var repo = urlHash().getUrlHashParameter('r') || 'plots2';
toolbox = CommunityToolbox(org, repo);
toolbox.api.Issues
.getIssuesForRepo(org, repo, { qs: { labels: 'first-timers-only' } })
.then(function(issues) {
issues.forEach(function(issue) {
toolbox.ui.insertIssue(issue, '.first-timers-only');
});
});
toolbox.api.Issues
.getIssuesForRepo(org, repo, { qs: { labels: 'fto-candidate' } })
.then(function(issues) {
issues.forEach(function(issue) {
toolbox.ui.insertIssue(issue, '.candidates');
});
});
toolbox.api.Repositories
.getRepoContributors(org, repo, {qs: { 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());
});
})();
</script>
</body>
</html>