mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-19 10:18:33 +00:00
feat: add 'progress' rank icon (#2858)
This pull request allows users to replace the rank level with the rank progress by setting the `rank_icon` query to `progress`.
This commit is contained in:
@@ -328,7 +328,7 @@ const renderStatsCard = (stats = {}, options = {}) => {
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
${rankIcon(rank_icon, rank?.level)}
|
||||
${rankIcon(rank_icon, rank?.level, progress)}
|
||||
</g>
|
||||
</g>`;
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
type ThemeNames = keyof typeof import("../../themes/index.js");
|
||||
type RankIcon = "default" | "github";
|
||||
type RankIcon = "default" | "github" | "progress";
|
||||
|
||||
export type CommonOptions = {
|
||||
title_color: string;
|
||||
|
||||
Reference in New Issue
Block a user