/team: Fetch zulip-js repository data.

This commit is contained in:
Rohitt Vashishtha 2018-01-15 20:24:22 +05:30 committed by showell
parent b01b4498cc
commit cc8942e0dc
4 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// eslint's error.
/* global contributors_list */
var repos = ['server', 'desktop', 'mobile', 'python-zulip-api', 'zulipbot'];
var repos = ['server', 'desktop', 'mobile', 'python-zulip-api', 'zulip-js', 'zulipbot'];
function contrib_total_commits(contrib) {
var commits = 0;

View File

@ -948,6 +948,7 @@ input#server:checked ~ #tab-server,
input#desktop:checked ~ #tab-desktop,
input#mobile:checked ~ #tab-mobile,
input#python-zulip-api:checked ~ #tab-python-zulip-api,
input#zulip-js:checked ~ #tab-zulip-js,
input#zulipbot:checked ~ #tab-zulipbot {
border-top: 1px solid #eee;
padding-top: 20px;

View File

@ -145,6 +145,9 @@
<input id="python-zulip-api" type="radio" name="tabs">
<label for="python-zulip-api"><i class="fa fa-code" aria-hidden="true"></i>&nbsp; Python API</label>
<input id="zulip-js" type="radio" name="tabs">
<label for="zulip-js"><i class="fa fa-code" aria-hidden="true"></i>&nbsp; JavaScript API</label>
<input id="zulipbot" type="radio" name="tabs">
<label for="zulipbot"><i class="fa fa-at" aria-hidden="true"></i>&nbsp; Zulipbot</label>
@ -153,6 +156,7 @@
<div id="tab-desktop" class="contributors"></div>
<div id="tab-mobile" class="contributors"></div>
<div id="tab-python-zulip-api" class="contributors"></div>
<div id="tab-zulip-js" class="contributors"></div>
<div id="tab-zulipbot" class="contributors"></div>
<!-- Compiled using underscore -->

View File

@ -71,6 +71,7 @@ def run_production() -> None:
'desktop': 'https://api.github.com/repos/zulip/zulip-electron/stats/contributors',
'mobile': 'https://api.github.com/repos/zulip/zulip-mobile/stats/contributors',
'python-zulip-api': 'https://api.github.com/repos/zulip/python-zulip-api/stats/contributors',
'zulip-js': 'https://api.github.com/repos/zulip/zulip-js/stats/contributors',
'zulipbot': 'https://api.github.com/repos/zulip/zulipbot/stats/contributors',
}