Skip to content

Commit 9eed528

Browse files
committed
new deployment
1 parent 43964b5 commit 9eed528

File tree

14 files changed

+9383
-7057
lines changed

14 files changed

+9383
-7057
lines changed

compiled/coder.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let events = new Vue({
1515
methods: {
1616
fetchEvents: function () {
1717
let url = 'https://api.github.com/events';
18-
//url = '/data/events.json';
18+
url = '/data/events.json'; // DEV
1919
this.$http.get(url).then(response => {
2020
this.response = response;
2121
this.events = response.body;

compiled/front.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Vue.component('user-link', {
2+
props: ['login', 'avatar_url'],
3+
template: `
4+
<div class="col-1-xl col-2-l col-4-m col-12">
5+
<a v-bind:href="'/github#' + login">
6+
<img :src="avatar_url" :alt="login"/><br>
7+
<i class="fa fa-user" aria-hidden="true"></i> {{ login }}
8+
</a>
9+
</div>
10+
`
11+
});
12+
13+
new Vue({
14+
el: '#active-users',
15+
data: { events: null },
16+
computed: {
17+
users: function () {
18+
return d3.nest().key(d => d.actor.login).entries(this.events.filter(d => d.type === 'PushEvent')).sort((a, b) => b.values.length - a.values.length);
19+
}
20+
},
21+
created: function () {
22+
this.$http.get('https://api.github.com/events').then(response => {
23+
this.events = response.body;
24+
});
25+
}
26+
});
27+
28+
new Vue({
29+
el: '#followed-users',
30+
data: { users: [] },
31+
created: function () {
32+
// https://api.github.com/search/users?q=repos:%3E1&sort=followers&order=desc
33+
this.$http.get('/data/users.json').then(response => {
34+
this.users = response.body.items;
35+
});
36+
}
37+
});
38+
39+
new Vue({
40+
el: '#most-repos-users',
41+
data: { users: [] },
42+
created: function () {
43+
// https://api.github.com/search/users?q=repos:%3E1%20type:user&sort=repositories&order=desc
44+
this.$http.get('/data/most-repos-users.json').then(response => {
45+
this.users = response.body.items;
46+
});
47+
}
48+
});
49+
50+
new Vue({
51+
el: '#earliest-users',
52+
data: { users: [] },
53+
created: function () {
54+
// https://api.github.com/search/users?q=repos:%3E1%20type:user&sort=joined&order=asc
55+
this.$http.get('/data/earliest-users.json').then(response => {
56+
this.users = response.body.items;
57+
});
58+
}
59+
});

compiled/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/earliest-users.json

Lines changed: 636 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy