forked from akerl/githubchart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
149 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,13 @@ | ||
# 4.0.0 / 2023-07-18 | ||
# Changelog | ||
|
||
* [BUGFIX] Update GithubStats dep to use new Github.com format for table | ||
## 5.1.0 / 2024-11-13 | ||
|
||
# 3.4.0 / 2023-01-08 | ||
- feat: add WASM build | ||
|
||
* [ENHANCEMENT] Update GithubStats dep | ||
## 5.0.0 / 2024-11-12 | ||
|
||
# 3.3.1 / 2021-02-06 | ||
- feat: migrate to Rust | ||
|
||
* [BUGFIX] Actually bump githubstats dep | ||
|
||
# 3.3.0 / 2021-02-06 | ||
|
||
* [ENHANCEMENT] Update GithubStats dep | ||
|
||
# 3.2.0 / 2020-10-06 | ||
|
||
* [ENHANCEMENT] Update GithubStats dep | ||
|
||
# 3.1.1 / 2020-08-13 | ||
|
||
* [ENHANCEMENT] Update GithubStats dep | ||
|
||
# 3.1.0 / 2017-10-03 | ||
|
||
* [ENHANCEMENT] GitHub updated their styling; this updated matches that change | ||
|
||
# 3.0.0 / 2017-09-29 | ||
|
||
* [ENHANCEMENT] Upgrade to latest githubstats with better error messages | ||
|
||
# 2.1.0 / 2017-08-25 | ||
|
||
* [ENHANCEMENT] Upgrade to latest githubstats | ||
|
||
# 2.0.1 / 2016-11-08 | ||
|
||
* [BUGFIX] Actually update changelog in release | ||
|
||
# 2.0.0 / 2016-11-07 | ||
|
||
* [FEATURE] Add support for svg_square as a rendering type, thanks @blerchin | ||
|
||
# 1.1.0 / 2016-05-19 | ||
|
||
* [BUGFIX] Upgrade to newer GithubStats that fixes streak parsing | ||
|
||
# 1.0.1 / 2015-10-20 | ||
|
||
* [BUGFIX] Fix month labels for parity with GitHub | ||
* [ENHANCEMENT] Link to @2016rshah's awesome service for hosted SVGs | ||
|
||
# 1.0.0 / 2015-01-25 | ||
|
||
* [ENHANCEMENT] Stabilized API | ||
## 4.0.0 / 2023-07-18 | ||
|
||
See [upstream repo](https://github.com/akerl/githubchart) for previouschangelog. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>GitHub Chart Demo</title> | ||
</head> | ||
<body> | ||
<div id="chart"></div> | ||
<script type="module"> | ||
import { initWasm, generateGitHubChart } from "./index.js"; | ||
|
||
async function init() { | ||
await initWasm(); | ||
const svg = await generateGitHubChart("frytg", "default"); | ||
document.getElementById("chart").innerHTML = svg; | ||
} | ||
|
||
init(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import init, { generate_github_chart } from '../pkg/githubchart.js' | ||
|
||
export async function initWasm() { | ||
await init() | ||
} | ||
|
||
export async function generateGitHubChart(username, colorScheme) { | ||
return generate_github_chart(username, colorScheme) | ||
} | ||
|
||
export const COLOR_SCHEMES = { | ||
default: ['#eeeeee', '#c6e48b', '#7bc96f', '#239a3b', '#196127'], | ||
old: ['#eeeeee', '#d6e685', '#8cc665', '#44a340', '#1e6823'], | ||
halloween: ['#EEEEEE', '#FFEE4A', '#FFC501', '#FE9600', '#03001C'], | ||
} |