Skip to content

Commit e2ebfc1

Browse files
committed
feat: file framework
1 parent 3ae5c24 commit e2ebfc1

21 files changed

+85
-2
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.vscode
2+
.idea
3+
.DS_Store
4+
*.swp
5+
*.lock

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing Guide
2+
3+
If you want to contribute to this report, you may need to read our [Contributing guide](./docs/CONTRIBUTING.md) first.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# github-analysis-report-2020
2-
GitHub digital report 2020
1+
# GitHub Analysis Report 2020

REPORT.md

Whitespace-only changes.

REPORT_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GitHub Analysis Report 2020
2+
3+
We anaylsis {{slqs['total-record-count'].text}} records of GitHub logs, there are {{sqls['total-repo-count']}} active repositories and {{sqls['total-developer-count']}} active developers on GitHub during year {{year}}.

docs/.nojekyll

Whitespace-only changes.

docs/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Contributing Guide

docs/_coverpage.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# GitHub Analysis Report 2020
2+
3+
> An open source collaborate report for GitHub
4+
5+
- Full access to all records on GitHub
6+
- Global collaborate
7+
- Case study supported

docs/_navbar.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* [En](/)
2+
* [中文](/zh-cn/)

docs/_sidebar.md

Whitespace-only changes.

docs/index.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>GitHub Analysis Report 2020</title>
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8+
<meta name="description" content="GitHub Analysis Report 2020">
9+
<meta name="viewport"
10+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
11+
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
12+
</head>
13+
14+
<body>
15+
<div id="app"></div>
16+
<script>
17+
window.$docsify = {
18+
name: 'Hypertrons',
19+
repo: 'https://github.com/X-lab2017/github-analysis-report-2020',
20+
coverpage: ['/', '/zh-cn/'],
21+
loadSidebar: true,
22+
loadNavbar: true,
23+
mergeNavbar: true,
24+
}
25+
</script>
26+
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
27+
</body>
28+
29+
</html>

docs/zh-cn/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 贡献指南
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {},
3+
"description": "Return the total active developer count of year {{year}}"
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default async function(data) {
2+
if (!Number.isInteger(data[0].count)) {
3+
throw new Error('Invalid data');
4+
}
5+
return data[0].count;
6+
}

sqls/total-developer-count/sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT COUNTDistinct(actor_id) as count FROM {{table}}

sqls/total-record-count/manifest.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {},
3+
"description": "Return the total record count of year {{year}}"
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default async function(data) {
2+
if (!Number.isInteger(data[0].count)) {
3+
throw new Error('Invalid data');
4+
}
5+
return data[0].count;
6+
}

sqls/total-record-count/sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT COUNT(*) as count FROM {{table}}

sqls/total-repo-count/manifest.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"config": {},
3+
"description": "Return the total active repo count of year {{year}}"
4+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default async function(data) {
2+
if (!Number.isInteger(data[0].count)) {
3+
throw new Error('Invalid data');
4+
}
5+
return data[0].count;
6+
}

sqls/total-repo-count/sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT COUNTDistinct(repo_id) as count FROM {{table}}

0 commit comments

Comments
 (0)