Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9eed528

Browse files
committed
new deployment
1 parent43964b5 commit9eed528

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 aboutcustomizing 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
leturl='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+
newVue({
14+
el:'#active-users',
15+
data:{events:null},
16+
computed:{
17+
users:function(){
18+
returnd3.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+
newVue({
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+
newVue({
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+
newVue({
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 aboutcustomizing 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)

[8]ページ先頭

©2009-2025 Movatter.jp