Commit 66836db7 authored by Nathan Chu's avatar Nathan Chu
Browse files

Merge https://github.com/anuraghazra/github-readme-stats into gradient-background-1

parents 65cdb187 6f7e3546
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@ const {
  parseArray,
  clampValue,
  CONSTANTS,
} = require("../src/utils");
const fetchStats = require("../src/fetchStats");
const renderStatsCard = require("../src/renderStatsCard");
} = require("../src/common/utils");
const fetchStats = require("../src/fetchers/stats-fetcher");
const renderStatsCard = require("../src/cards/stats-card");

module.exports = async (req, res) => {
  const {
@@ -18,6 +18,7 @@ module.exports = async (req, res) => {
    hide_rank,
    show_icons,
    count_private,
    include_all_commits,
    line_height,
    title_color,
    icon_color,
@@ -31,7 +32,11 @@ module.exports = async (req, res) => {
  res.setHeader("Content-Type", "image/svg+xml");

  try {
    stats = await fetchStats(username, parseBoolean(count_private));
    stats = await fetchStats(
      username,
      parseBoolean(count_private),
      parseBoolean(include_all_commits)
    );
  } catch (err) {
    return res.send(
      renderError(
@@ -56,6 +61,7 @@ module.exports = async (req, res) => {
      hide_title: parseBoolean(hide_title),
      hide_border: parseBoolean(hide_border),
      hide_rank: parseBoolean(hide_rank),
      include_all_commits: parseBoolean(include_all_commits),
      line_height,
      title_color,
      icon_color,
+3 −3
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@ const {
  clampValue,
  CONSTANTS,
  logger,
} = require("../src/utils");
const fetchRepo = require("../src/fetchRepo");
const renderRepoCard = require("../src/renderRepoCard");
} = require("../src/common/utils");
const fetchRepo = require("../src/fetchers/repo-fetcher");
const renderRepoCard = require("../src/cards/repo-card");

module.exports = async (req, res) => {
  const {
+3 −3
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@ const {
  parseBoolean,
  parseArray,
  CONSTANTS,
} = require("../src/utils");
const fetchTopLanguages = require("../src/fetchTopLanguages");
const renderTopLanguages = require("../src/renderTopLanguages");
} = require("../src/common/utils");
const fetchTopLanguages = require("../src/fetchers/top-languages-fetcher");
const renderTopLanguages = require("../src/cards/top-languages-card");

module.exports = async (req, res) => {
  const {
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
  "dependencies": {
    "dotenv": "^8.2.0",
    "emoji-name-map": "^1.2.8",
    "github-username-regex": "^1.0.0",
    "word-wrap": "^1.2.3"
  },
  "husky": {
+9 −2
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@
    <a href="readme_de.md">Deutsch</a>
    ·
    <a href="readme_ja.md">日本語</a>
     ·
    <a href="readme_pt-BR.md">Português Brasileiro</a>
  </p>
</p>
<p align="center">Loved the project? Please consider <a href="https://www.paypal.me/anuraghazra">donating</a> to help it improve!
@@ -135,8 +137,9 @@ You can customize the appearance of your `Stats Card` or `Repo Card` however you
- `hide_title` - _(boolean)_
- `hide_rank` - _(boolean)_
- `show_icons` - _(boolean)_
- `include_all_commits` - Count total commits instead of just the current year commits _(boolean)_
- `count_private` - Count private commits _(boolean)_
- `line_height` - Sets the line-height betweent text _(number)_
- `line_height` - Sets the line-height between text _(number)_

#### Repo Card Exclusive Options:

@@ -235,6 +238,10 @@ You can use the `&layout=compact` option to change the card design.

![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true)

- Include All Commits

![Anurag's github stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true)

- Themes

Choose from any of the [default themes](#themes)
@@ -277,7 +284,7 @@ NOTE: Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) we
[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)

<details>
 <summary>Guide on setting up Vercel</summary>
 <summary><b> Guide on setting up Vercel  🔨 </b></summary>

1. Go to [vercel.com](https://vercel.com/)
1. Click on `Log in`  
Loading