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

Commitbec2537

Browse files
committed
new deployment
1 parent792a90e commitbec2537

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
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/coder.js‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,27 @@ let coder = new Vue({
5353
forks:function(){
5454
returnthis.repoRanking('forks_count');
5555
},
56+
repo_types:function(){
57+
letlabels=[];
58+
letvalues=[];
59+
lettypes={
60+
active_sources:0,
61+
archived:0,
62+
disabled:0,
63+
forked:0,
64+
mirrors:0
65+
};
66+
for(letrepoofthis.repos_pushed){
67+
if(repo.archived)types.archived++;elseif(repo.disabled)types.disabled++;elseif(repo.fork)types.forked++;elseif(repo.mirror)types.mirrors++;elsetypes.active_sources++;
68+
}
69+
for(let[label,value]ofObject.entries(types)){
70+
if(value>0){
71+
labels.push(label);
72+
values.push(value);
73+
}
74+
}
75+
return{labels:labels,values:values};
76+
},
5677
stars:function(){
5778
returnthis.repoRanking('stargazers_count');
5879
},
@@ -95,6 +116,10 @@ let coder = new Vue({
95116
this.rankingGraph(this.issues.slice(0,10),'open_issues_count','#issues-ranking');
96117
this.rankingGraph(this.forks.slice(0,10),'forks_count','#forks-ranking');
97118
this.rankingGraph(this.stars.slice(0,10),'stargazers_count','#stars-ranking');
119+
120+
newChartist.Pie('#repo-types-chart',{
121+
labels:this.repo_types.labels.map(d=>d.replace('_',' ')),
122+
series:this.repo_types.values});
98123
},
99124
methods:{
100125
fetchRepos:function(){

‎github/index.html‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<divid="coder">
3131
<divv-if="user"class="row">
32-
<divclass="col-12 col-2-xl col-2-l col-4-m meta">
32+
<divclass="col-12 col-2-xl col-3-l col-4-m meta">
3333
<divclass="padh">
3434
<header>
3535
<h3>{{ user.name }}</h3>
@@ -41,12 +41,17 @@ <h3>{{ user.name }}</h3>
4141
<spanv-if="user.location"class="block"><iclass="fa fa-globe"aria-hidden="true"></i> {{ user.location }}</span>
4242
<spanv-if="user.company"class="block"><iclass="fa fa-money"aria-hidden="true"></i> {{ user.company }}</span>
4343
<blockquotev-if="user.bio"><p>{{ user.bio }}</p></blockquote>
44+
45+
<divv-if="repo_types"class="padv">
46+
<h3>Repo types</h3>
47+
<divid="repo-types-chart"></div>
48+
</div>
4449
</div>
4550
</div>
4651
<divv-if="repos_pushed.length < 2"class="col-12 error">
4752
{{ user.name }} has not pushed changes to enough public repositories to show any interesting data here.
4853
</div>
49-
<divv-elseclass="col-12 col-10-xl col-10-l col-8-m no-padding main">
54+
<divv-elseclass="col-12 col-10-xl col-9-l col-8-m no-padding main">
5055
<divclass="flex flex-wrap boxes">
5156
<divclass="box-stat"title="The number of loaded repositories this user has pushed to.">
5257
<iclass="fa fa-code"aria-hidden="true"></i> Pushed to repos

‎rss.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<channel><title>RSS Feed</title>
44
<link>https://coderstats.net</link>
55
<description>RSS Feed</description>
6-
<lastBuildDate>Wed, 29 May 201911:20:13 </lastBuildDate>
6+
<lastBuildDate>Mon, 03 Jun 201923:27:18 </lastBuildDate>
77
<generator>Logya</generator>
88
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
99
<item>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp