[READ-ONLY] Mirror of https://github.com/shuuji3/github-readme-stats. github-readme-stats-shuuji3.vercel.app
0

Configure Feed

Select the types of activity you want to include in your feed.

Initial commit

author
shuuji3
date (Apr 7, 2021, 3:27 AM UTC) commit 5932a44a
+11308
+1
.gitattributes
··· 1 + dist/* linguist-vendored=false
+15
.github/FUNDING.yml
··· 1 + # These are supported funding model platforms 2 + 3 + github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 + patreon: # Replace with a single Patreon username 5 + open_collective: # Replace with a single Open Collective username 6 + ko_fi: # Replace with a single Ko-fi username 7 + tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 + community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 + liberapay: # Replace with a single Liberapay username 10 + issuehunt: # Replace with a single IssueHunt username 11 + otechie: # Replace with a single Otechie username 12 + custom: [ 13 + "https://www.paypal.me/anuraghazra", 14 + "https://www.buymeacoffee.com/anuraghazra", 15 + ] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+41
.github/ISSUE_TEMPLATE/bug_report.md
··· 1 + --- 2 + name: Bug report 3 + about: Create a report to help us improve 4 + title: "" 5 + labels: "" 6 + assignees: "" 7 + --- 8 + 9 + **Describe the bug** 10 + A clear and concise description of what the bug is. 11 + 12 + **Expected behavior** 13 + A clear and concise description of what you expected to happen. 14 + 15 + **Screenshots / Live demo link (paste the github-readme-stats link as markdown image)** 16 + If applicable, add screenshots to help explain your problem. 17 + 18 + **Additional context** 19 + Add any other context about the problem here. 20 + 21 + <!-- 22 + 23 + PLEASE READ THE FAQs!!! 24 + 25 + Q: How to hide jupyter Notebook? 26 + Ans: &hide=jupyter%20notebook 27 + 28 + Q: I could not figure out how to deploy on my own vercel instance 29 + Ans: 30 + - docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance 31 + - YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107 32 + 33 + Q: Language Card is incorrect 34 + Ans: Please read all the issues / comments before opening any issues regarding language card stats: 35 + - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174 36 + - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181 37 + 38 + Q: How to count private stats? 39 + Ans: We can only count private commits & we cannot access any other private info of any users, so it's not possible. only way is to deploy on your own instance & use your own PAT (Personal Access Token) 40 + 41 + -->
+41
.github/ISSUE_TEMPLATE/feature_request.md
··· 1 + --- 2 + name: Feature request 3 + about: Suggest an idea for this project 4 + title: "" 5 + labels: "" 6 + assignees: "" 7 + --- 8 + 9 + **Is your feature request related to a problem? Please describe.** 10 + A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 + 12 + **Describe the solution you'd like** 13 + A clear and concise description of what you want to happen. 14 + 15 + **Describe alternatives you've considered** 16 + A clear and concise description of any alternative solutions or features you've considered. 17 + 18 + **Additional context** 19 + Add any other context or screenshots about the feature request here. 20 + 21 + <!-- 22 + 23 + PLEASE READ THE FAQs!!! 24 + 25 + Q: How to hide jupyter Notebook? 26 + Ans: &hide=jupyter%20notebook 27 + 28 + Q: I could not figure out how to deploy on my own vercel instance 29 + Ans: 30 + - docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance 31 + - YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107 32 + 33 + Q: Language Card is incorrect 34 + Ans: Please read all the issues / comments before opening any issues regarding language card stats: 35 + - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174 36 + - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181 37 + 38 + Q: How to count private stats? 39 + Ans: We can only count private commits & we cannot access any other private info of any users, so it's not possible. only way is to deploy on your own instance & use your own PAT (Personal Access Token) 40 + 41 + -->
+3
.github/labeler.yml
··· 1 + themes: themes/index.js 2 + doc-translation: docs/* 3 + card-i18n: src/translations.js
+20
.github/stale.yml
··· 1 + # Number of days of inactivity before an issue becomes stale 2 + daysUntilStale: 30 3 + # Number of days of inactivity before a stale issue is closed 4 + daysUntilClose: 7 5 + # Issues with these labels will never be considered stale 6 + exemptLabels: 7 + - feature 8 + - enhancement 9 + - help wanted 10 + - bug 11 + 12 + # Label to use when marking an issue as stale 13 + staleLabel: stale 14 + # Comment to post when marking an issue as stale. Set to `false` to disable 15 + markComment: > 16 + This issue has been automatically marked as stale because it has not had 17 + recent activity. It will be closed if no further activity occurs. Thank you 18 + for your contributions. 19 + # Comment to post when closing a stale issue. Set to `false` to disable 20 + closeComment: false
+10
.gitignore
··· 1 + .vercel 2 + .env 3 + node_modules 4 + package-lock.json 5 + *.lock 6 + .vscode/ 7 + .idea/ 8 + coverage 9 + vercel_token 10 +
+5
.prettierignore
··· 1 + node_modules 2 + *.json 3 + *.md 4 + coverage 5 + .vercel
+6
.prettierrc.json
··· 1 + { 2 + "trailingComma": "all", 3 + "useTabs": false, 4 + "endOfLine": "auto", 5 + "proseWrap": "always" 6 + }
+3
.vercelignore
··· 1 + .env 2 + package-lock.json 3 + coverage
+76
CODE_OF_CONDUCT.md
··· 1 + # Contributor Covenant Code of Conduct 2 + 3 + ## Our Pledge 4 + 5 + In the interest of fostering an open and welcoming environment, we as 6 + contributors and maintainers pledge to making participation in our project and 7 + our community a harassment-free experience for everyone, regardless of age, body 8 + size, disability, ethnicity, sex characteristics, gender identity and expression, 9 + level of experience, education, socio-economic status, nationality, personal 10 + appearance, race, religion, or sexual identity and orientation. 11 + 12 + ## Our Standards 13 + 14 + Examples of behavior that contributes to creating a positive environment 15 + include: 16 + 17 + * Using welcoming and inclusive language 18 + * Being respectful of differing viewpoints and experiences 19 + * Gracefully accepting constructive criticism 20 + * Focusing on what is best for the community 21 + * Showing empathy towards other community members 22 + 23 + Examples of unacceptable behavior by participants include: 24 + 25 + * The use of sexualized language or imagery and unwelcome sexual attention or 26 + advances 27 + * Trolling, insulting/derogatory comments, and personal or political attacks 28 + * Public or private harassment 29 + * Publishing others' private information, such as a physical or electronic 30 + address, without explicit permission 31 + * Other conduct which could reasonably be considered inappropriate in a 32 + professional setting 33 + 34 + ## Our Responsibilities 35 + 36 + Project maintainers are responsible for clarifying the standards of acceptable 37 + behavior and are expected to take appropriate and fair corrective action in 38 + response to any instances of unacceptable behavior. 39 + 40 + Project maintainers have the right and responsibility to remove, edit, or 41 + reject comments, commits, code, wiki edits, issues, and other contributions 42 + that are not aligned to this Code of Conduct, or to ban temporarily or 43 + permanently any contributor for other behaviors that they deem inappropriate, 44 + threatening, offensive, or harmful. 45 + 46 + ## Scope 47 + 48 + This Code of Conduct applies both within project spaces and in public spaces 49 + when an individual is representing the project or its community. Examples of 50 + representing a project or community include using an official project e-mail 51 + address, posting via an official social media account, or acting as an appointed 52 + representative at an online or offline event. Representation of a project may be 53 + further defined and clarified by project maintainers. 54 + 55 + ## Enforcement 56 + 57 + Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 + reported by contacting the project team at hazru.anurag@gmail.com. All 59 + complaints will be reviewed and investigated and will result in a response that 60 + is deemed necessary and appropriate to the circumstances. The project team is 61 + obligated to maintain confidentiality with regard to the reporter of an incident. 62 + Further details of specific enforcement policies may be posted separately. 63 + 64 + Project maintainers who do not follow or enforce the Code of Conduct in good 65 + faith may face temporary or permanent repercussions as determined by other 66 + members of the project's leadership. 67 + 68 + ## Attribution 69 + 70 + This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 + available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 + 73 + [homepage]: https://www.contributor-covenant.org 74 + 75 + For answers to common questions about this code of conduct, see 76 + https://www.contributor-covenant.org/faq
+100
CONTRIBUTING.md
··· 1 + # Contributing to [github-readme-stats](https://github.com/anuraghazra/github-readme-stats) 2 + 3 + We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: 4 + 5 + - Reporting a issue 6 + - Discussing the current state of the code 7 + - Submitting a fix 8 + - Proposing new features 9 + - Becoming a maintainer 10 + 11 + ## All Changes Happen Through Pull Requests 12 + 13 + Pull requests are the best way to propose changes. We actively welcome your pull requests: 14 + 15 + 1. Fork the repo and create your branch from `master`. 16 + 1. If you've added code that should be tested, add some tests' example. 17 + 1. If you've changed APIs, update the documentation. 18 + 1. Issue that pull request! 19 + 20 + ## Local Development 21 + 22 + To run & test github-readme-stats you need to follow few simple steps :- 23 + _(make sure you already have a [vercel](https://vercel.com/) account)_ 24 + 25 + 1. Install [Vercel CLI](https://vercel.com/download) 26 + 1. Fork the repository and clone the code to your local machine 27 + 1. Run the command "vercel" in the root and follow the steps there 28 + 1. Create a `.env` file in the root of the directory 29 + 1. In the .env file add a new variable named "PAT_1" with your [github Personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) 30 + 1. Run the command "vercel dev" to start a development server at https://localhost:3000 31 + 32 + ## Themes Contribution 33 + 34 + GitHub Readme Stats supports custom theming and you can also contribute new themes! 35 + 36 + All you need to do is edit [themes/index.js](./themes/index.js) file and add your theme at the end of the file. 37 + 38 + While creating the Pull request to add a new theme **don't forget to add a screenshot of how your theme looks**, you can also test how it looks using custom url parameters like `title_color`, `icon_color`, `bg_color`, `text_color` 39 + 40 + > NOTE: If you are contributing your theme just because you are using it personally, then you can [customize the looks](./readme.md#customization) of your card with URL params instead. 41 + 42 + ## Any contributions you make will be under the MIT Software License 43 + 44 + In short, when you submit changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. 45 + 46 + ## Report issues/bugs using GitHub's [issues](https://github.com/anuraghazra/github-readme-stats/issues) 47 + 48 + We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/anuraghazra/github-readme-stats/issues/new/choose); it's that easy! 49 + 50 + ## Frequently Asked Questions (FAQs) 51 + 52 + **Q:** How to hide jupyter Notebook? 53 + 54 + > **Ans:** &hide=jupyter%20notebook 55 + 56 + **Q:** I could not figure out how to deploy on my own vercel instance 57 + 58 + > **Ans:** 59 + > 60 + > - docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance 61 + > - YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107 62 + 63 + **Q:** Language Card is incorrect 64 + 65 + > **Ans:** Please read all the related issues / comments before opening any issues regarding language card stats: 66 + > 67 + > - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174 68 + > 69 + > - https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181 70 + 71 + **Q:** How to count private stats? 72 + 73 + > **Ans:** We can only count private commits & we cannot access any other private info of any users, so it's not possible. only way is to deploy on your own instance & use your own PAT (Personal Access Token) 74 + 75 + ### Bug Reports 76 + 77 + **Great Bug Reports** tend to have: 78 + 79 + - A quick summary and/or background 80 + - Steps to reproduce 81 + - Be specific! 82 + - Share the snapshot, if possible. 83 + - GitHub Readme Stats' live link 84 + - What actually happens 85 + - What you expected would happen 86 + - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) 87 + 88 + People _love_ thorough bug reports. I'm not even kidding. 89 + 90 + ### Feature Request 91 + 92 + **Great Feature Requests** tend to have: 93 + 94 + - A quick idea summary 95 + - What & why you wanted to add the specific feature 96 + - Additional Context like images, links to resources to implement the feature etc etc. 97 + 98 + ## License 99 + 100 + By contributing, you agree that your contributions will be licensed under its [MIT License](./LICENSE).
+21
LICENSE
··· 1 + MIT License 2 + 3 + Copyright (c) 2021 Anurag Hazra 4 + 5 + Permission is hereby granted, free of charge, to any person obtaining a copy 6 + of this software and associated documentation files (the "Software"), to deal 7 + in the Software without restriction, including without limitation the rights 8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 + copies of the Software, and to permit persons to whom the Software is 10 + furnished to do so, subject to the following conditions: 11 + 12 + The above copyright notice and this permission notice shall be included in all 13 + copies or substantial portions of the Software. 14 + 15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 + SOFTWARE.
+86
api/index.js
··· 1 + require("dotenv").config(); 2 + const { 3 + renderError, 4 + parseBoolean, 5 + parseArray, 6 + clampValue, 7 + CONSTANTS, 8 + } = require("../src/common/utils"); 9 + const fetchStats = require("../src/fetchers/stats-fetcher"); 10 + const renderStatsCard = require("../src/cards/stats-card"); 11 + const blacklist = require("../src/common/blacklist"); 12 + const { isLocaleAvailable } = require("../src/translations"); 13 + 14 + module.exports = async (req, res) => { 15 + const { 16 + username, 17 + hide, 18 + hide_title, 19 + hide_border, 20 + hide_rank, 21 + show_icons, 22 + count_private, 23 + include_all_commits, 24 + line_height, 25 + title_color, 26 + icon_color, 27 + text_color, 28 + bg_color, 29 + theme, 30 + cache_seconds, 31 + custom_title, 32 + locale, 33 + disable_animations, 34 + border_radius, 35 + } = req.query; 36 + let stats; 37 + 38 + res.setHeader("Content-Type", "image/svg+xml"); 39 + 40 + if (blacklist.includes(username)) { 41 + return res.send(renderError("Something went wrong")); 42 + } 43 + 44 + if (locale && !isLocaleAvailable(locale)) { 45 + return res.send(renderError("Something went wrong", "Language not found")); 46 + } 47 + 48 + try { 49 + stats = await fetchStats( 50 + username, 51 + parseBoolean(count_private), 52 + parseBoolean(include_all_commits), 53 + ); 54 + 55 + const cacheSeconds = clampValue( 56 + parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10), 57 + CONSTANTS.TWO_HOURS, 58 + CONSTANTS.ONE_DAY, 59 + ); 60 + 61 + res.setHeader("Cache-Control", `public, max-age=${cacheSeconds}`); 62 + 63 + return res.send( 64 + renderStatsCard(stats, { 65 + hide: parseArray(hide), 66 + show_icons: parseBoolean(show_icons), 67 + hide_title: parseBoolean(hide_title), 68 + hide_border: parseBoolean(hide_border), 69 + hide_rank: parseBoolean(hide_rank), 70 + include_all_commits: parseBoolean(include_all_commits), 71 + line_height, 72 + title_color, 73 + icon_color, 74 + text_color, 75 + bg_color, 76 + theme, 77 + custom_title, 78 + border_radius, 79 + locale: locale ? locale.toLowerCase() : null, 80 + disable_animations: parseBoolean(disable_animations), 81 + }), 82 + ); 83 + } catch (err) { 84 + return res.send(renderError(err.message, err.secondaryMessage)); 85 + } 86 + };
+81
api/pin.js
··· 1 + require("dotenv").config(); 2 + const { 3 + renderError, 4 + parseBoolean, 5 + clampValue, 6 + CONSTANTS, 7 + } = require("../src/common/utils"); 8 + const fetchRepo = require("../src/fetchers/repo-fetcher"); 9 + const renderRepoCard = require("../src/cards/repo-card"); 10 + const blacklist = require("../src/common/blacklist"); 11 + const { isLocaleAvailable } = require("../src/translations"); 12 + 13 + module.exports = async (req, res) => { 14 + const { 15 + username, 16 + repo, 17 + hide_border, 18 + title_color, 19 + icon_color, 20 + text_color, 21 + bg_color, 22 + theme, 23 + show_owner, 24 + cache_seconds, 25 + locale, 26 + border_radius, 27 + } = req.query; 28 + 29 + let repoData; 30 + 31 + res.setHeader("Content-Type", "image/svg+xml"); 32 + 33 + if (blacklist.includes(username)) { 34 + return res.send(renderError("Something went wrong")); 35 + } 36 + 37 + if (locale && !isLocaleAvailable(locale)) { 38 + return res.send(renderError("Something went wrong", "Language not found")); 39 + } 40 + 41 + try { 42 + repoData = await fetchRepo(username, repo); 43 + 44 + let cacheSeconds = clampValue( 45 + parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10), 46 + CONSTANTS.TWO_HOURS, 47 + CONSTANTS.ONE_DAY, 48 + ); 49 + 50 + /* 51 + if star count & fork count is over 1k then we are kFormating the text 52 + and if both are zero we are not showing the stats 53 + so we can just make the cache longer, since there is no need to frequent updates 54 + */ 55 + const stars = repoData.stargazers.totalCount; 56 + const forks = repoData.forkCount; 57 + const isBothOver1K = stars > 1000 && forks > 1000; 58 + const isBothUnder1 = stars < 1 && forks < 1; 59 + if (!cache_seconds && (isBothOver1K || isBothUnder1)) { 60 + cacheSeconds = CONSTANTS.FOUR_HOURS; 61 + } 62 + 63 + res.setHeader("Cache-Control", `public, max-age=${cacheSeconds}`); 64 + 65 + return res.send( 66 + renderRepoCard(repoData, { 67 + hide_border, 68 + title_color, 69 + icon_color, 70 + text_color, 71 + bg_color, 72 + theme, 73 + border_radius, 74 + show_owner: parseBoolean(show_owner), 75 + locale: locale ? locale.toLowerCase() : null, 76 + }), 77 + ); 78 + } catch (err) { 79 + return res.send(renderError(err.message, err.secondaryMessage)); 80 + } 81 + };
+79
api/top-langs.js
··· 1 + require("dotenv").config(); 2 + const { 3 + renderError, 4 + clampValue, 5 + parseBoolean, 6 + parseArray, 7 + CONSTANTS, 8 + } = require("../src/common/utils"); 9 + const fetchTopLanguages = require("../src/fetchers/top-languages-fetcher"); 10 + const renderTopLanguages = require("../src/cards/top-languages-card"); 11 + const blacklist = require("../src/common/blacklist"); 12 + const { isLocaleAvailable } = require("../src/translations"); 13 + 14 + module.exports = async (req, res) => { 15 + const { 16 + username, 17 + hide, 18 + hide_title, 19 + hide_border, 20 + card_width, 21 + title_color, 22 + text_color, 23 + bg_color, 24 + theme, 25 + cache_seconds, 26 + layout, 27 + langs_count, 28 + exclude_repo, 29 + custom_title, 30 + locale, 31 + border_radius 32 + } = req.query; 33 + let topLangs; 34 + 35 + res.setHeader("Content-Type", "image/svg+xml"); 36 + 37 + if (blacklist.includes(username)) { 38 + return res.send(renderError("Something went wrong")); 39 + } 40 + 41 + if (locale && !isLocaleAvailable(locale)) { 42 + return res.send(renderError("Something went wrong", "Language not found")); 43 + } 44 + 45 + try { 46 + topLangs = await fetchTopLanguages( 47 + username, 48 + langs_count, 49 + parseArray(exclude_repo), 50 + ); 51 + 52 + const cacheSeconds = clampValue( 53 + parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10), 54 + CONSTANTS.TWO_HOURS, 55 + CONSTANTS.ONE_DAY, 56 + ); 57 + 58 + res.setHeader("Cache-Control", `public, max-age=${cacheSeconds}`); 59 + 60 + return res.send( 61 + renderTopLanguages(topLangs, { 62 + custom_title, 63 + hide_title: parseBoolean(hide_title), 64 + hide_border: parseBoolean(hide_border), 65 + card_width: parseInt(card_width, 10), 66 + hide: parseArray(hide), 67 + title_color, 68 + text_color, 69 + bg_color, 70 + theme, 71 + layout, 72 + border_radius, 73 + locale: locale ? locale.toLowerCase() : null, 74 + }), 75 + ); 76 + } catch (err) { 77 + return res.send(renderError(err.message, err.secondaryMessage)); 78 + } 79 + };
+74
api/wakatime.js
··· 1 + require("dotenv").config(); 2 + const { 3 + renderError, 4 + parseBoolean, 5 + clampValue, 6 + CONSTANTS, 7 + isLocaleAvailable, 8 + } = require("../src/common/utils"); 9 + const { fetchWakatimeStats } = require("../src/fetchers/wakatime-fetcher"); 10 + const wakatimeCard = require("../src/cards/wakatime-card"); 11 + 12 + module.exports = async (req, res) => { 13 + const { 14 + username, 15 + title_color, 16 + icon_color, 17 + hide_border, 18 + line_height, 19 + text_color, 20 + bg_color, 21 + theme, 22 + cache_seconds, 23 + hide_title, 24 + hide_progress, 25 + custom_title, 26 + locale, 27 + layout, 28 + api_domain, 29 + range, 30 + border_radius, 31 + } = req.query; 32 + 33 + res.setHeader("Content-Type", "image/svg+xml"); 34 + 35 + if (locale && !isLocaleAvailable(locale)) { 36 + return res.send(renderError("Something went wrong", "Language not found")); 37 + } 38 + 39 + try { 40 + const stats = await fetchWakatimeStats({ username, api_domain, range }); 41 + 42 + let cacheSeconds = clampValue( 43 + parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10), 44 + CONSTANTS.TWO_HOURS, 45 + CONSTANTS.ONE_DAY, 46 + ); 47 + 48 + if (!cache_seconds) { 49 + cacheSeconds = CONSTANTS.FOUR_HOURS; 50 + } 51 + 52 + res.setHeader("Cache-Control", `public, max-age=${cacheSeconds}`); 53 + 54 + return res.send( 55 + wakatimeCard(stats, { 56 + custom_title, 57 + hide_title: parseBoolean(hide_title), 58 + hide_border: parseBoolean(hide_border), 59 + line_height, 60 + title_color, 61 + icon_color, 62 + text_color, 63 + bg_color, 64 + theme, 65 + hide_progress, 66 + border_radius, 67 + locale: locale ? locale.toLowerCase() : null, 68 + layout, 69 + }), 70 + ); 71 + } catch (err) { 72 + return res.send(renderError(err.message, err.secondaryMessage)); 73 + } 74 + };
+13
codecov.yml
··· 1 + codecov: 2 + require_ci_to_pass: yes 3 + 4 + coverage: 5 + precision: 2 6 + round: down 7 + range: "70...100" 8 + 9 + status: 10 + project: 11 + default: 12 + threshold: 5 13 + patch: false
+351
docs/readme_cn.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">在你的 README 中获取动态生成的 GitHub 统计信息!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">查看 Demo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">报告 Bug</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">请求增加功能</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français</a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">喜欢这个项目?请考虑<a href="https://www.paypal.me/anuraghazra">捐赠</a>来帮助它完善! 59 + 60 + # 特性 61 + 62 + - [GitHub 统计卡片](#GitHub-统计卡片) 63 + - [GitHub 更多置顶](#GitHub-更多置顶) 64 + - [热门语言卡片](#热门语言卡片) 65 + - [主题](#主题) 66 + - [自定义](#自定义) 67 + - [自己部署](#自己部署) 68 + 69 + # GitHub 统计卡片 70 + 71 + 将这行代码复制到你的 markdown 文件中,就是如此简单! 72 + 73 + 更改 `?username=` 的值为你的 GitHub 用户名。 74 + 75 + ```md 76 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 77 + ``` 78 + 79 + _注: 等级基于用户的统计信息计算得出,详见 [src/calculateRank.js](../src/calculateRank.js)_ 80 + 81 + ### 隐藏指定统计 82 + 83 + 想要隐藏指定统计信息,你可以调用参数 `?hide=`,其值用 `,` 分隔。 84 + 85 + > 选项:`&hide=stars,commits,prs,issues,contribs` 86 + 87 + ```md 88 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 89 + ``` 90 + 91 + ### 将私人项目贡献添加到总提交计数中 92 + 93 + 你可以使用参数 `?count_private=true` 把私人贡献计数添加到总提交计数中。 94 + 95 + _注:如果你是自己部署本项目,私人贡献将会默认被计数,如果不是自己部署,你需要分享你的私人贡献计数。_ 96 + 97 + > 选项: `&count_private=true` 98 + 99 + ```md 100 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 101 + ``` 102 + 103 + ### 显示图标 104 + 105 + 如果想要显示图标,你可以调用 `show_icons=true` 参数,像这样: 106 + 107 + ```md 108 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 109 + ``` 110 + 111 + ### 主题 112 + 113 + 你可以通过现有的主题进行卡片个性化,省去[手动自定义](#自定义)的麻烦。 114 + 115 + 通过调用 `?theme=THEME_NAME` 参数,像这样: 116 + 117 + ```md 118 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 119 + ``` 120 + 121 + #### 所有现有主题 122 + 123 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 124 + 125 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 126 + 127 + 你可以预览[所有可用主题](../themes/README.md)或者签出[主题配置文件](../themes/index.js), 而且如果你喜欢, **你也可以贡献新的主题** :D 128 + 129 + ### 自定义 130 + 131 + 你可以通过使用 URL 参数的方式,为你的 `Stats Card` 或 `Repo Card` 自定义样式。 132 + 133 + 常用选项: 134 + 135 + - `title_color` - 卡片标题颜色 _(十六进制色码)_ 136 + - `text_color` - 内容文本颜色 _(十六进制色码)_ 137 + - `icon_color` - 图标颜色(如果可用)_(十六进制色码)_ 138 + - `bg_color` - 卡片背景颜色 _(十六进制色码)_ **或者** 以 _angle,start,end_ 的形式渐变 139 + - `hide_border` - 隐藏卡的边框 _(布尔值)_ 140 + - `theme` - 主题名称,从[所有可用主题](../themes/README.md)中选择 141 + - `cache_seconds` - 手动设置缓存头 _(最小值: 1800,最大值: 86400)_ 142 + - `locale` - 在卡片中设置语言 _(例如 cn, de, es, 等等)_ 143 + 144 + ##### bg_color 渐变 145 + 146 + 你可以在 bg_color 选项中提供多个逗号分隔的值来呈现渐变,渐变的格式是 :- 147 + 148 + ``` 149 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 150 + ``` 151 + 152 + > 缓存的注意事项: 如果 fork 数和 star 数 少于 1k , Repo 卡片默认缓存是 4 小时 (14400 秒) ,否则是 2 小时(7200)。另请注意缓存被限制为最短 2 小时,最长 24 小时。 153 + 154 + #### 统计卡片专属选项: 155 + 156 + - `hide` - 隐藏特定统计信息 _(以逗号分隔)_ 157 + - `hide_title` - _(boolean)_ 158 + - `hide_rank` - _(boolean)_ 159 + - `show_icons` - _(boolean)_ 160 + - `include_all_commits` - 统计总提交次数而不是仅统计今年的提交次数 _(boolean)_ 161 + - `count_private` - 统计私人提交 _(boolean)_ 162 + - `line_height` - 设置文本之间的行高 _(number)_ 163 + 164 + #### Repo 卡片专属选项: 165 + 166 + - `show_owner` - 显示 Repo 的所有者名字 _(boolean)_ 167 + 168 + #### 语言卡片专属选项: 169 + 170 + - `hide` - 从卡片中隐藏指定语言 _(Comma seperated values)_ 171 + - `hide_title` - _(boolean)_ 172 + - `layout` - 在两个可用布局 `default` & `compact` 间切换 173 + - `card_width` - 手动设置卡片的宽度 _(number)_ 174 + 175 + > :warning: **重要:** 176 + > 如 [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 所指定,语言名称应使用 uri 转义。 177 + > (例: `c++` 应该是 `c%2B%2B`, `jupyter notebook` 应该是 `jupyter%20notebook`, 等.) 178 + 179 + --- 180 + 181 + # GitHub 更多置顶 182 + 183 + GitHub 更多置顶 允许你在使用 GitHub readme profile 时,在个人资料中置顶多于 6 个 repo 。 184 + 185 + 是的!你不再受限于置顶最多 6 个存储库了。 186 + 187 + ### 使用细则 188 + 189 + 复制粘贴这段代码到你的 README 文件中,并更改链接。 190 + 191 + 端点: `api/pin?username=anuraghazra&repo=github-readme-stats` 192 + 193 + ```md 194 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 195 + ``` 196 + 197 + ### Demo 198 + 199 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 200 + 201 + 使用 [show_owner](#自定义) 变量将 Repo 所有者的用户名包含在内。 202 + 203 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 204 + 205 + # 热门语言卡片 206 + 207 + 热门语言卡片显示了 GitHub 用户常用的编程语言。 208 + 209 + _注意:热门语言并不表示我的技能水平或类似的水平,它是用来衡量用户在 github 上拥有最多代码的语言的一项指标,它是 github-readme-stats 的新特性_ 210 + 211 + ### 使用细则 212 + 213 + 将此代码复制粘贴到您的 `README.md` 文件中,并修改链接。 214 + 215 + 端点: `api/top-langs?username=anuraghazra` 216 + 217 + ```md 218 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 219 + ``` 220 + 221 + ### 隐藏指定语言 222 + 223 + 可以使用 `?hide=language1,language2` 参数来隐藏指定的语言。 224 + 225 + ```md 226 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 227 + ``` 228 + 229 + ### 紧凑的语言卡片布局 230 + 231 + 你可以使用 `&layout=compact` 参数来改变卡片的样式。 232 + 233 + ```md 234 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 235 + ``` 236 + 237 + ### Demo 238 + 239 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 240 + 241 + - 紧凑布局 242 + 243 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 244 + 245 + --- 246 + 247 + ### 全部 Demos 248 + 249 + - 默认 250 + 251 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 252 + 253 + - 隐藏指定统计 254 + 255 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 256 + 257 + - 显示图标 258 + 259 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 260 + 261 + - 包含全部提交 262 + 263 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 264 + 265 + - 主题 266 + 267 + 从[默认主题](#主题)中进行选择 268 + 269 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 270 + 271 + - 渐变 272 + 273 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 274 + 275 + - 自定义统计卡片 276 + 277 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 278 + 279 + - 自定义 repo 卡片 280 + 281 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 282 + 283 + - 热门语言 284 + 285 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 286 + 287 + --- 288 + 289 + ### 快速提示 (对齐 Repo 卡片) 290 + 291 + 你通常无法将图片靠边显示。为此,您可以使用以下方法: 292 + 293 + ```md 294 + <a href="https://github.com/anuraghazra/github-readme-stats"> 295 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 296 + </a> 297 + <a href="https://github.com/anuraghazra/convoychat"> 298 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 299 + </a> 300 + ``` 301 + 302 + ## 自己部署 303 + 304 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 305 + 306 + 因为 GitHub 的 API 每个小时只允许 5 千次请求,我的 `https://github-readme-stats.vercel.app/api` 很有可能会触发限制。如果你将其托管在自己的 Vercel 服务器上,那么你就不必为此担心。点击 deploy 按钮来开始你的部署! 307 + 308 + 注意: 从 [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) 开始,我们应该能够处理超过 5 千次的请求,并且不会出现宕机问题 :D 309 + 310 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 311 + 312 + <details> 313 + <summary>设置 Vercel 的指导</summary> 314 + 315 + 1. 前往 [vercel.com](https://vercel.com/) 316 + 1. 点击 `Log in` 317 + ![](https://files.catbox.moe/tct1wg.png) 318 + 1. 点击 `Continue with GitHub` 通过 GitHub 进行登录 319 + ![](https://files.catbox.moe/btd78j.jpeg) 320 + 1. 登录 GitHub 并允许访问所有存储库(如果系统这样提示) 321 + 1. Fork 这个仓库 322 + 1. 返回到你的 [Vercel dashboard](https://vercel.com/dashboard) 323 + 1. 选择 `Import Project` 324 + ![](https://files.catbox.moe/qckos0.png) 325 + 1. 选择 `Import Git Repository` 326 + ![](https://files.catbox.moe/pqub9q.png) 327 + 1. 选择 root 并将所有内容保持不变,并且只需添加名为 PAT_1 的环境变量(如图所示),其中将包含一个个人访问令牌(PAT),你可以在[这里](https://github.com/settings/tokens/new)轻松创建(保留默认,并且只需要命名下,名字随便) 328 + ![](https://files.catbox.moe/caem5b.png) 329 + 1. 点击 deploy,这就完成了,查看你的域名就可使用 API 了! 330 + 331 + </details> 332 + 333 + ## :sparkling_heart: 支持这个项目 334 + 335 + 我尽己所能地进行开源,并且我尽量回复每个在使用项目时需要帮助的人。很明显,这需要时间,但你可以免费享受这些。 336 + 337 + 然而, 如果你正在使用这个项目并感觉良好,或只是想要支持我继续开发,你可以通过如下方式: 338 + 339 + - 在你的 readme 中使用 github-readme-stats 时,链接指向这里 :D 340 + - Star 并 分享这个项目 :rocket: 341 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - 你可以通过 PayPal 一次性捐款. 我多半会买一杯 ~~咖啡~~ 茶. :tea: 342 + 343 + 谢谢! :heart: 344 + 345 + --- 346 + 347 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 348 + 349 + 欢迎贡献! <3 350 + 351 + 用 :heart: 发电,用 JavaScript 制作。
+371
docs/readme_de.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Zeige dynamisch generierte GitHub-Statistiken in deinen Readmes!</p> 5 + </p> 6 + 7 + <p align="center"> 8 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 9 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 10 + </a> 11 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 12 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 13 + </a> 14 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 15 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 16 + </a> 17 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 18 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 19 + </a> 20 + <br /> 21 + <br /> 22 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 23 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 24 + </a> 25 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 26 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 27 + </a> 28 + </p> 29 + 30 + <p align="center"> 31 + <a href="#demo">Beispiel ansehen</a> 32 + · 33 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Fehler melden</a> 34 + · 35 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Funktion wünschen</a> 36 + </p> 37 + <p align="center"> 38 + <a href="/docs/readme_fr.md">Français</a> 39 + · 40 + <a href="/docs/readme_cn.md">简体中文</a> 41 + · 42 + <a href="/docs/readme_es.md">Español</a> 43 + · 44 + <a href="/docs/readme_de.md">Deutsch</a> 45 + · 46 + <a href="/docs/readme_ja.md">日本語</a> 47 + · 48 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 49 + · 50 + <a href="/docs/readme_it.md">Italiano</a> 51 + · 52 + <a href="/docs/readme_kr.md">한국어</a> 53 + . 54 + <a href="/docs/readme_nl.md">Nederlands</a> 55 + . 56 + <a href="/docs/readme_np.md">नेपाली</a> 57 + </p> 58 + </p> 59 + <p align="center">Du magst das Projekt? Wie wäre es mit einer kleinen <a href="https://www.paypal.me/anuraghazra">Spende</a> um es weiterhin am Leben zu erhalten? 60 + 61 + # Funktionen 62 + 63 + - [GitHub Statistiken-Karte](#github-statistiken-karte) 64 + - [GitHub Extra Pins](#github-extra-pins) 65 + - [Top Programmiersprachen-Karte](#top-programmiersprachen-karte) 66 + - [Wakatime Wochen-Statistik](#wakatime-wochen-statistik) 67 + - [Erscheinungsbild/Themes](#erscheinungsbildthemes) 68 + - [Anpassungen/Personalisierung](#anpassungenpersonalisierung) 69 + - [Selber betreiben](#betreibe-es-auf-deiner-eigenen-vercel-instanz) 70 + 71 + # GitHub Statistiken-Karte 72 + 73 + Kopiere einfach folgendes in dein Markdown und das wars. Echt simpel! 74 + 75 + Passe den Wert des URL-Parameters `?username=` so an, dass dort dein GitHub Nutzername steht. 76 + 77 + ```md 78 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 79 + ``` 80 + 81 + _Hinweis: Die Berechnung des Ranges basiert auf den jeweiligen Benutzerstatistiken, siehe [src/calculateRank.js](../src/calculateRank.js)_ 82 + 83 + ### Verbergen individueller Statistiken 84 + 85 + Um eine spezifische Statistik auszublenden, kann dem Query-Parameter `?hide=` ein Array an Optionen, die nicht angezeigt werden sollen, übergeben werden. 86 + 87 + > Optionen: `&hide=stars,commits,prs,issues,contribs` 88 + 89 + ```md 90 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","prs"]) 91 + ``` 92 + 93 + ### Symbole anzeigen 94 + 95 + Um Symbole anzuzeigen kann der URL-Paramter `show_icons=true` wie folgt verwendet werden: 96 + 97 + ```md 98 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 99 + ``` 100 + 101 + ### Erscheinungsbild/Themes 102 + 103 + Mithilfe der eingebauten Themes kann das Aussehen der Karten verändern werden ohne manuelle Anpassungen vornehmen zu müssen. 104 + 105 + Benutze den `?theme=THEME_NAME`-Parameter wie folgt :- 106 + 107 + ```md 108 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 109 + ``` 110 + 111 + #### Alle eingebauten Themes :- 112 + 113 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 114 + 115 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 116 + 117 + Du kannst dir eine Vorschau [aller verfügbaren Themes](../themes/README.md) ansehen oder die [theme config Datei](../themes/index.js) ansehen. 118 + Außerdem **kannst du neue Themes beisteuern**, Beiträge sind gern gesehen :D 119 + 120 + ### Anpassungen/Personalisierung 121 + 122 + Du kannst das Erscheinungsbild deiner `Stats Card` oder `Repo Card`, mithilfe von URL-Parametern, nach deinen Vorlieben anpassen. 123 + 124 + #### Verbreitete Optionen: 125 + 126 + - `title_color` - Titelfarbe _(hex color)_ 127 + - `text_color` - Textkörperfarbe _(hex color)_ 128 + - `icon_color` - Symbolfarbe (falls verfügbar) _(hex color)_ 129 + - `bg_color` - Hintergrundfarbe _(hex color)_ **oder** ein Farbverlauf in der Form von _winkel,start,ende_ 130 + - `hide_border` - Blendet den Rand der Karte aus _(Boolescher Wert)_ 131 + - `theme` - Name des Erscheinungsbildes/Themes [alle verfügbaren Themes](../themes/README.md) 132 + - `cache_seconds` - manuelles festlegen der Cachezeiten _(min: 1800, max: 86400)_ 133 + - `locale` - Stellen Sie die Sprache auf der Karte ein _(z.B. cn, de, es, etc.)_ 134 + 135 + ##### Farbverlauf in bg_color 136 + 137 + Du kannst mehrere, mit Kommas separierte, Werte in der bg_color Option angeben, um einen Farbverlauf anzuzeigen. Das Format ist:- 138 + 139 + ``` 140 + &bg_color=WINKEL,FARBE1,FARBE2,FARBE3...FARBE10 141 + ``` 142 + 143 + > Hinweis bzgl. des Caches: Wenn die Anzahl der Forks und Stars geringer als 1 Tsd ist, haben die Repo-Cards eine Standard-Cachezeit von 30 Minuten (1800 Sekunden), ansonsten beträgt diese 2 Stunden (7200 Sekunden). Außerdem ist der Cache auf ein Minimum von 30 Minuten und ein Maximum von 24 Stunden begrenzt. 144 + 145 + #### Exklusive Optionen der Statistiken-Karte: 146 + 147 + - `hide` - Verbirgt die angegeben Elemente _(mit Komma abgegrenzte Werte)_ 148 + - `hide_title` - _(boolean)_ 149 + - `hide_rank` - _(boolean)_ 150 + - `show_icons` - _(boolean)_ 151 + - `include_all_commits` - Zähle alle Beiträge anstatt nur das aktuelle Jahr _(boolean)_ 152 + - `count_private` - Zähle private Beiträge _(boolean)_ 153 + - `line_height` - Legt die Zeilenhöhe zwischen Text fest _(Zahl)_ 154 + 155 + #### Exklusive Optionen der Repo-Karte: 156 + 157 + - `show_owner` - Zeigt den Besitzer des Repos _(boolean)_ 158 + 159 + #### Exklusive Optionen der Sprachen-Karte: 160 + 161 + - `hide` - Verbirgt die angegebenen Sprachen von der Karte _(Komma separierte Werte)_ 162 + - `hide_title` - _(boolean)_ 163 + - `layout` - Wechsel zwischen den zwei verfügbaren Layouts `default` & `compact` 164 + - `card_width` - Lege die Breite der Karte manuell fest _(Zahl)_ 165 + 166 + > :warning: **Wichtig:** 167 + > Sprachennamen sollten uri-escaped sein, wie hier angegeben: [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 168 + > (z.B.: `c++` sollte zu `c%2B%2B` werden, `jupyter notebook` sollte zu `jupyter%20notebook` werden, usw.) 169 + 170 + #### Exklusive Optionen der WakaTime-Karte: 171 + 172 + - `hide_title` - _(boolean)_ 173 + - `line_height` - Legt die Zeilenhöhe des Texts fest _(number)_ 174 + - `hide_progress` - Verbirgt die Fortschrittanzeige und Prozentzahl _(boolean)_ 175 + - `custom_title` - Legt einen benutzerdefinierten Titel fest 176 + - `layout` - Wechselt zwischen zwei verschiedenen Layouts: `default` & `compact` 177 + - `api_domain` - Legt eine benutzerdefinierte API Domain fest, z.B. für [Hakatime](https://github.com/mujx/hakatime) oder [Wakapi](https://github.com/muety/wakapi) 178 + - `range` – Fragt eine eine Zeitspanne an, als die standardmäßig in WakaTime hinterlegte, z.B. `last_7_days`. Siehe [WakaTime API Dokumentation](https://wakatime.com/developers#stats). 179 + 180 + --- 181 + 182 + # GitHub Extra Pins 183 + 184 + GitHub extra pins ermöglicht es mit Hilfe einer Readme auf deinem Profil mehr als 6 Repositories anzuzeigen. 185 + 186 + Und Bääm! Du bist nicht mehr auf 6 angeheftete Repositories limitiert. 187 + 188 + ### Benutzung 189 + 190 + Füge diesen Code in deine Readme-Datei ein und passe die Links an. 191 + 192 + Endpunkt: `api/pin?username=anuraghazra&repo=github-readme-stats` 193 + 194 + ```md 195 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 196 + ``` 197 + 198 + ### Beispiele 199 + 200 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 201 + 202 + Benutze die [show_owner](#anpassungenpersonalisierung) Variable, um den Nutzernamen des Repo Eigentümers anzuzeigen. 203 + 204 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 205 + 206 + # Top Programmiersprachen-Karte 207 + 208 + Die Top Programmiersprachen Card visualisiert die am meisten benutzten Programmiersprachen eines GitHub-Nutzers. 209 + 210 + _HINWEIS: Die Top Programmiersprachen treffen keine Aussage über persönliche Fähigkeiten oder dergleichen, es ist lediglich eine auf den GitHub-Statistiken des Nutzers basierende Kennzahl, welche Programmiersprache wie häufig verwendet wurde._ 211 + 212 + ### Benutzung 213 + 214 + Füge diesen Code in deine Readme-Datei ein und passe die Links an. 215 + 216 + Endpunkt: `api/top-langs?username=anuraghazra` 217 + 218 + ```md 219 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 220 + ``` 221 + 222 + ### Verbirg einzelne Sprachen 223 + 224 + Du kannst den `?hide=language1,language2` URL-Parameter benutzen, um einzelne Sprachen auszublenden. 225 + 226 + ```md 227 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 228 + ``` 229 + 230 + ### Kompaktes Sprachen-Karte Layout 231 + 232 + Du kannst die `&layout=compact` Option nutzen, um das Karten Design zu ändern. 233 + 234 + ```md 235 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 236 + ``` 237 + 238 + ### Beispiel 239 + 240 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 241 + 242 + - Kompaktes Layout 243 + 244 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 245 + 246 + # Wakatime Wochen-Statistik 247 + 248 + Ändere `?username=` in den eigenen [Wakatime](https://wakatime.com) Benutzernamen. 249 + 250 + ```md 251 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 252 + ``` 253 + 254 + ### Beispiel 255 + 256 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 257 + 258 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 259 + 260 + - Kompaktes Layout 261 + 262 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 263 + 264 + --- 265 + 266 + ### Alle Beispiele 267 + 268 + - Default 269 + 270 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 271 + 272 + - Ausblenden bestimmter Statistiken 273 + 274 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["contribs","issues"]) 275 + 276 + - Symbole anzeigen 277 + 278 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=["issues"]&show_icons=true) 279 + 280 + - Alle Beiträge anzeigen 281 + 282 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 283 + 284 + - Erscheinungsbild/Themes 285 + 286 + Wähle Eines von den [Standard-Themes](#themes) 287 + 288 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 289 + 290 + - Farbverlauf 291 + 292 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 293 + 294 + - Statistiken-Karte anpassen 295 + 296 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 297 + 298 + - Repo-Karte anpassen 299 + 300 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 301 + 302 + - Top Programmiersprachen 303 + 304 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 305 + 306 + --- 307 + 308 + ### Kleiner Tipp (Ausrichten der Repo-Karte) 309 + 310 + Üblicherweise ist es in `.md`-Dateien nicht möglich Bilder nebeneinander anzuzeigen. Um dies zu erreichen kann folgender Ansatz gewählt werden: 311 + 312 + ```md 313 + <a href="https://github.com/anuraghazra/github-readme-stats"> 314 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 315 + </a> 316 + <a href="https://github.com/anuraghazra/convoychat"> 317 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 318 + </a> 319 + ``` 320 + 321 + ## Betreibe es auf deiner eigenen Vercel-Instanz 322 + 323 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 324 + 325 + Da die GitHub API nur 5 Tsd Aufrufe pro Stunde zulässt, kann es passieren, dass meine `https://github-readme-stats.vercel.app/api` dieses Limit erreicht. 326 + Wenn du es auf deinem eigenen Vercel-Server hostest, brauchst du dich darum nicht zu kümmern. Klicke auf den Deploy-Knopf um loszulegen! 327 + 328 + Hinweis: Seit [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) sollte es möglich sein, mehr als 5 Tsd Aufrufe pro Stunde ohne Downtimes zu verkraften :D 329 + 330 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 331 + 332 + <details> 333 + <summary><b>Anleitung zum Einrichten von Vercel 🔨 </b></summary> 334 + 335 + 1. Gehe zu [vercel.com](https://vercel.com/) 336 + 1. Klicke auf `Log in` 337 + ![](https://files.catbox.moe/tct1wg.png) 338 + 1. Melde dich mit deinem GitHub-account an, indem du `Continue with GitHub` klickst 339 + ![](https://files.catbox.moe/btd78j.jpeg) 340 + 1. Verbinde dich mit GitHub und erlaube den Zugriff auf alle Repositories (falls gefordert) 341 + 1. Forke dieses Repository 342 + 1. Gehe zurück zu deinem [Vercel dashboard](https://vercel.com/dashboard) 343 + 1. Klick `Import Project` 344 + ![](https://files.catbox.moe/qckos0.png) 345 + 1. Klick `Import Git Repository` 346 + ![](https://files.catbox.moe/pqub9q.png) 347 + 1. Wähle root und füge eine Umgebungsvariable namens PAT_1 (siehe Abbildung) die als Wert deinen persönlichen Access Token (PAT) hat hinzu, den du einfach [hier](https://github.com/settings/tokens/new) erzeugen kannst (lasse alles wie es ist, vergebe einen beliebigen Namen) 348 + ![](https://files.catbox.moe/0ez4g7.png) 349 + 1. Klicke deploy, und das wars. Besuche deine domains um die API zu benutzen! 350 + </details> 351 + 352 + ## :sparkling_heart: Unterstütze das Projekt 353 + 354 + Ich versuche alles was ich kann als Open-Source zur Verfügung zu stellen, als auch jedem der Hilfe bei der Benutzung dieses Projektes braucht zu antworten. Natürlich beansprucht sowas Zeit und Du kannst diesen Dienst kostenlos benutzen. 355 + 356 + Dennoch, wenn Du dieses Projekt benutzt und damit zufrieden bist oder mich einfach nur motivieren möchtest weiterhin daran zu arbeiten, gibt es verschiedene Sachen die Du machen kannst:- 357 + 358 + - Erwähne und verlinke das Projekt in deiner Readme wenn du es benutzt :D 359 + - Geb dem Projekt einen Stern hier auf GitHub und teile es :rocket: 360 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Du kannst einmalige Spenden via PayPal tätigen. Ich kaufe mir wahrscheinlich einen ~~Kaffee~~ Tee davon. :tea: 361 + 362 + Vielen Dank! :heart: 363 + 364 + --- 365 + 366 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 367 + 368 + 369 + Mitarbeit an dem Projekt ist immer Willkommen! <3 370 + 371 + Gebaut mit :heart: und JavaScript.
+411
docs/readme_es.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">¡Obtén tus estadísticas de GitHub generadas dinámicamente en tu README!</p> 5 + </p> 6 + 7 + <p align="center"> 8 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 9 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 10 + </a> 11 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 12 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 13 + </a> 14 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 15 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 16 + </a> 17 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 18 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 19 + </a> 20 + <br /> 21 + <br /> 22 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 23 + <img src="https://img.shields.io/badge/Apoyado%20por-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 24 + </a> 25 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 26 + <img src="https://img.shields.io/badge/Apoyado%20por-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 27 + </a> 28 + </p> 29 + 30 + <p align="center"> 31 + <a href="#ejemplo">Ver un ejemplo</a> 32 + · 33 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Reportar un bug</a> 34 + · 35 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Solicitar una mejora</a> 36 + </p> 37 + <p align="center"> 38 + <a href="/docs/readme_fr.md">Français</a> 39 + · 40 + <a href="/docs/readme_cn.md">简体中文</a> 41 + · 42 + <a href="/docs/readme_es.md">Español</a> 43 + · 44 + <a href="/docs/readme_de.md">Deutsch</a> 45 + · 46 + <a href="/docs/readme_ja.md">日本語</a> 47 + · 48 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 49 + · 50 + <a href="/docs/readme_it.md">Italiano</a> 51 + · 52 + <a href="/docs/readme_kr.md">한국어</a> 53 + . 54 + <a href="/docs/readme_nl.md">Nederlands</a> 55 + . 56 + <a href="/docs/readme_tr.md">Türkçe</a> 57 + . 58 + <a href="/docs/readme_np.md">नेपाली</a> 59 + </p> 60 + </p> 61 + <p align="center">¿Te gusta este proyecto? ¡Por favor, considera <a href="https://www.paypal.me/anuraghazra">donar</a> para ayudar a mejorarlo! 62 + 63 + # Características 64 + 65 + - [Tarjeta de estadísticas de GitHub](#tarjeta-de-estadísticas-de-github) 66 + - [Pins adicionales de GitHub](#pines-adicionales-de-github) 67 + - [Top Languages Card](#tarjeta-de-lenguajes-principales) 68 + - [Wakatime Week Stats](#estadísticas-de-la-semana-de-wakatime) 69 + - [Temas](#temas) 70 + - [Personalización](#personalización) 71 + - [Despliega por tu cuenta](#despliega-tu-propia-instancia-de-vercel) 72 + 73 + # Tarjeta de estadísticas de GitHub 74 + 75 + Copia y pega esto en el contenido de tu README.md y listo. ¡Simple! 76 + 77 + Cambia el valor de `?username=` al nombre de tu usuario de GitHub. 78 + 79 + ```md 80 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 81 + ``` 82 + 83 + _Nota: Los rangos disponibles son S+ (top 1%), S (top 25%), A++ (top 45%), A+ (top 60%) y B+ (todos). Los valores se calculan utilizando la [función de distribución acumulada](https://es.wikipedia.org/wiki/Funci%C3%B3n_de_distribuci%C3%B3n) utilizando commits, contribuciones, issues, estrellas, pull request, seguidores y repositorios propios. Puedes investigar más sobre la implementación en [src/calculateRank.js](../src/calculateRank.js)._ 84 + 85 + ### Ocultar estadísticas individualmente 86 + 87 + Para ocultar alguna estadística específica, puedes utilizar el parámetro `?hide=` con los elementos que quieras ocultar separados por comas. 88 + 89 + > Opciones: `&hide=stars,commits,prs,issues,contribs` 90 + 91 + ```md 92 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 93 + ``` 94 + 95 + ### Agregar contribuciones privadas al total de commits contados 96 + 97 + Puedes agregar el recuento de todas sus contribuciones privadas al recuento total de commits utilizando el parámetro `?count_private=true`. 98 + 99 + _Nota: Si estás desplegando este proyecto tú mismo, las contribuciones privadas se contarán de manera predeterminada; de lo contrario, deberás elegir compartir el recuento de sus contribuciones privadas._ 100 + 101 + > Opciones: `&count_private=true` 102 + 103 + ```md 104 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 105 + ``` 106 + 107 + ### Mostrar íconos 108 + 109 + Para habilitar los íconos, puedes utilizar `show_icons=true` como parámetro, de esta manera: 110 + 111 + ```md 112 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 113 + ``` 114 + 115 + ### Temas 116 + 117 + Puedes personalizar el aspecto de la tarjeta sin realizar ninguna [personalización manual](#personalización) con los temas incorporados. 118 + 119 + Utiliza el parámetro `?theme=THEME_NAME`, de esta manera: 120 + 121 + ```md 122 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 123 + ``` 124 + 125 + #### Todos los temas incorporados 126 + 127 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 128 + 129 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 130 + 131 + Puedes ver una vista previa de [todos los temas disponibles](../themes/README.md) o ver el [archivo de configuración](../themes/index.js) del tema y también **puedes contribuir con nuevos temas** si lo deseas :D 132 + 133 + ### Personalización 134 + 135 + Puedes personalizar el aspecto de tu `Tarjeta de Estadísticas` o `Tarjeta de Repo` de la manera que desees con los parámetros URL. 136 + 137 + #### Opciones Comunes: 138 + 139 + - `title_color` - Color del título _(hex color)_ 140 + - `text_color` - Color del contenido _(hex color)_ 141 + - `icon_color` - Color de icono si esta disponible _(hex color)_ 142 + - `bg_color` - Color de fondo _(hex color)_ 143 + - `hide_border` - Oculta el borde de la tarjeta _(booleano)_ 144 + - `theme` - Nombre del tema, elige uno de [todos los temas disponible ](../themes/README.md) 145 + - `cache_seconds` - Cache _(min: 1800, max: 86400)_ 146 + - `locale` - configurar el idioma en la tarjeta _(p.ej. cn, de, es, etc.)_ 147 + 148 + ##### Gradiente en `bg_color` 149 + 150 + Puedes pasar mútliples valores separados por coma en la opción `bg_color` para dibujar un gradiente, el formato del gradiente es: 151 + 152 + ``` 153 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 154 + ``` 155 + 156 + > Nota sobre la caché: las tarjetas de Repo tienen un caché predeterminado de 4 horas (14400 segundos) si el recuento forks y el recuento de estrellas es inferior a 1k; de lo contrario, son 2 horas (7200 segundos). También ten en cuenta que la caché está sujeta a un mínimo de 2 horas y un máximo de 24 horas 157 + 158 + #### Opciones exclusivas de la Tarjeta de Estadísticas: 159 + 160 + - `hide` - Oculta de las estadísticas los elementos especificados _ (valores separados por comas) _ 161 + - `hide_title` - _(booleano)_ 162 + - `hide_rank` - _(booleano)_ 163 + - `show_icons` - _(booleano)_ 164 + - `include_all_commits` - Cuenta el total de commits en lugar de solo los commits del año actual _(boolean)_ 165 + - `count_private` - Cuenta los commits privadas _(boolean)_ 166 + - `line_height` - Establece el alto de línea entre texto _(número)_ 167 + - `custom_title` - Establece un título personalizado 168 + - [`disable_animations`] - Desactiva todas las animaciones _(booleano)_ 169 + 170 + #### Opciones exclusivas de la Tarjeta de Repo: 171 + 172 + - `show_owner` - Mostrar el nombre del propietario del repositorio _(booleano)_ 173 + 174 + #### Opciones exclusivas de la Tarjeta de Lenguajes: 175 + 176 + - `hide` - Oculta de la tarjeta los lenguajes especificados _(valores separados por comas)_ 177 + - `hide_title` - _(booleano)_ 178 + - `layout` - Cambia entre los dos diseños disponibles `default` & `compact` 179 + - `card_width` - Establece el ancho de la tarjeta manualmente _(número)_ 180 + - `langs_count` - Muestra más lenguajes en la tarjeta, entre 1-10, por defecto 5 _(número)_ 181 + - `exclude_repo` - Excluye los repositorios especificados _(valores separados por comas)_ 182 + - `custom_title` - Establece un título personalizado 183 + 184 + > :warning: **Importante:** 185 + > Los nombres de los lenguajes deben estar codificados para URLs, como se especifica en [Código porciento](https://es.wikipedia.org/wiki/C%C3%B3digo_porciento) 186 + > (es decir: `c++` debería convertirse en `c%2B%2B`,`jupyter notebook` debería convertirse en `jupyter%20notebook`, etc.) 187 + 188 + #### Opciones exclusivas de la Tarjeta de Wakatime: 189 + 190 + - `hide_title` - _(booleano)_ 191 + - `line_height` - Establece el alto de línea entre texto _(número)_ 192 + - `hide_progress` - Oculta la barra de progreso y el porcentaje _(booleano)_ 193 + - `custom_title` - Establece un título personalizado 194 + - `layout` - Cambia entre los dos diseños disponibles `default` & `compact` 195 + - `api_domain` - Establece un dominio de API personalizado para la tarjeta 196 + 197 + --- 198 + 199 + # Pines adicionales de GitHub 200 + 201 + Los pines adicionales de GitHub le permiten fijar más de 6 repositorios en su perfil utilizando un perfil readme de GitHub. 202 + 203 + ¡Yey! Ya no está limitado a 6 repositorios pinneados. 204 + 205 + ### Utilización 206 + 207 + Copia y pegua este código en tu Readme y cambia los enlaces. 208 + 209 + Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` 210 + 211 + ```md 212 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 213 + ``` 214 + 215 + ### Ejemplo 216 + 217 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 218 + 219 + Utiliza la variable [show_owner](#customización) para incluir el nombre de usuario del propietario del repositorio. 220 + 221 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 222 + 223 + # Tarjeta de Lenguajes Principales 224 + 225 + La tarjeta de lenguajes principales muestra los lenguajes principales del usuario de GitHub que se han utilizado principalmente. 226 + 227 + _NOTA: los lenguajes principales no indican mi nivel de habilidad o algo así, es una métrica de GitHub de los lenguajes que tengo más código en GitHub. Es una nueva característica de github-readme-stats_ 228 + 229 + ### Utilización 230 + 231 + Copia y pegua este código en tu Readme y cambia los enlaces. 232 + 233 + Endpoint: `api/top-langs?username=anuraghazra` 234 + 235 + ```md 236 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 237 + ``` 238 + 239 + ### Excluir repositorios individualmente 240 + 241 + Puedes usar el parámetro `?exclude_repo=repo1,repo2` para ocultar repositorios individualmente. 242 + 243 + ```md 244 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 245 + ``` 246 + 247 + ### Ocultar lenguajes individualmente 248 + 249 + Puedes usar el parámetro `?hide=language1,language2` para ocultar lenguajes individualmente. 250 + 251 + ```md 252 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 253 + ``` 254 + 255 + ### Mostrar más lenguajes 256 + 257 + Puedes usar el paramétro `&langs_count=` para incrementar o decrementar el número de lenguajes mostrados en la tarjeta. Los valores admitidos son los números enteros entre 1 y 10 (inclusive), y el valor por defecto es 5. 258 + 259 + ```md 260 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 261 + ``` 262 + 263 + ### Diseño Compacto de Tarjeta de Lenguaje 264 + 265 + Puedes usar la opción `& layout = compact` para cambiar el diseño de la tarjeta. 266 + 267 + ```md 268 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 269 + ``` 270 + 271 + ### Ejemplo 272 + 273 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 274 + 275 + - Diseño compacto 276 + 277 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 278 + 279 + # Estadísticas de la semana de Wakatime 280 + 281 + cambia el valor del parámetro `?username=` a tu username en [Wakatime](https://wakatime.com). 282 + 283 + ```md 284 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 285 + ``` 286 + 287 + ### Ejemplo 288 + 289 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 290 + 291 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 292 + 293 + - Diseño compacto 294 + 295 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 296 + 297 + --- 298 + 299 + ### Todos los ejemplos 300 + 301 + - Por defecto 302 + 303 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 304 + 305 + - Ocultando ciertas estadísticas 306 + 307 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 308 + 309 + - Mostrando íconos 310 + 311 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 312 + 313 + - Incluyendo todos los commits 314 + 315 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 316 + 317 + - Temas 318 + 319 + Escoja cualquiera de los [temas por defecto](#themes) 320 + 321 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 322 + 323 + - Gradiente 324 + 325 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 326 + 327 + - Personalizando Tarjeta de Estadísticas 328 + 329 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 330 + 331 + - Estableciendo Idioma de la tarjeta 332 + 333 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=es) 334 + 335 + - Personalizando Tarjeta de Repo 336 + 337 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 338 + 339 + - Lenguajes Top 340 + 341 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 342 + 343 + - Tarjeta de Wakatime 344 + 345 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 346 + 347 + --- 348 + 349 + ### Consejo rápido (para alinear las tarjetas de repositorio) 350 + 351 + Por lo general, no podrás acomodar las imágenes una al lado de la otra. Para hacerlo, puede usar este enfoque: 352 + 353 + ```md 354 + <a href="https://github.com/anuraghazra/github-readme-stats"> 355 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 356 + </a> 357 + <a href="https://github.com/anuraghazra/convoychat"> 358 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 359 + </a> 360 + ``` 361 + 362 + ## Despliega tu propia instancia de Vercel 363 + 364 + #### [Échale un vistazo a este tutorial paso a paso de @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 365 + 366 + Desde que la API de GitHub permite solo 5k peticiones por hora, es posible que mi `https://github-readme-stats.vercel.app/api` pueda llegar al límite. Si lo alojas en tu propio servidor de Vercel, no tendrás que preocuparte de nada. ¡Clickea en el botón "Deploy" para comenzar! 367 + 368 + NOTA: Debido a [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) podríamos manejar más de 5k peticiones sin tener ningún problema con el downtime :D 369 + 370 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 371 + 372 + <details> 373 + <summary>Guía para comenzar en Vercel</summary> 374 + 375 + 1. Ve a [vercel.com](https://vercel.com/) 376 + 2. Clickea en `Log in` 377 + ![](https://files.catbox.moe/tct1wg.png) 378 + 3. Inicia sesión con GitHub presionando `Continue with GitHub` 379 + ![](https://files.catbox.moe/btd78j.jpeg) 380 + 4. Permite el acceso a todos los repositorios (si se te pregunta) 381 + 5. Haz un Fork de este repositorio 382 + 6. Dirígete de nuevo a tu [Vercel dashboard](https://vercel.com/dashboard) 383 + 7. Selecciona `Import Project` 384 + ![](https://files.catbox.moe/qckos0.png) 385 + 8. Selecciona `Import Git Repository` 386 + ![](https://files.catbox.moe/pqub9q.png) 387 + 9. Selecciona "root" y matén todo como está, simplemente añade tu variable de entorno llamada PAT_1 (como se muestra), la cual contendrá un token de acceso personal (PAT), el cual puedes crear fácilmente [aquí](https://github.com/settings/tokens/new) (mantén todo como está, simplemente asígnale un nombre, puede ser cualquiera que desees) 388 + ![](https://files.catbox.moe/0ez4g7.png) 389 + 10. Clickea "Deploy" y ya está listo. ¡Ve tus dominios para usar la API! 390 + 391 + </details> 392 + 393 + ## :sparkling_heart: Apoya al proyecto 394 + 395 + Casi todos mis proyectos son de código abierto e intento responder a todos los usuarios que necesiten ayuda con alguno de estos proyectos. Obviamente, esto toma tiempo. Puedes usar este servicio gratis. 396 + 397 + No obstante, si estás utilizando este proyecto y estás feliz con él o simplemente quieres animarme a que siga creando cosas, aquí tienes algunas maneras de hacerlo: 398 + 399 + - Darme créditos cuando estés utilizando github-readme-stats en tu README, añadiendo un link a este repositorio :D 400 + - Dándole una estrella y compartiendo el proyecto :rocket: 401 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Puedes hacerme una única donación a través de PayPal. Probablemente me compraré un ~~café~~ té. :tea: 402 + 403 + ¡Gracias! :heart: 404 + 405 + --- 406 + 407 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 408 + 409 + ¡Las contribuciones son bienvenidas! <3 410 + 411 + Hecho con :heart: y JavaScript.
+352
docs/readme_fr.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Obtenez des statistiques GitHub générées dynamiquement sur vos Readme !</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supporté%20par-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supporté%20par-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#démo">Voir la démo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Soumettre un bug</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Demander une nouveauté</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français</a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">Vous aimez ce projet? Pensez <a href="https://www.paypal.me/anuraghazra">à faire un don</a> pour l'améliorer! 59 + 60 + # Features 61 + 62 + - [Carte des stats GitHub](#carte-des-stats-github) 63 + - [GitHub Extra Pins](#github-extra-pins) 64 + - [Carte des meilleurs langages](#carte-des-langages-les--utilisés) 65 + - [Themes](#thèmes) 66 + - [Personnalisation](#personnalisation) 67 + - [Deployer toi-même](#déployer-sur-votre-propre-instance-vercel) 68 + 69 + # Carte des Stats GitHub 70 + 71 + Copiez-collez ceci dans votre Markdown, et c'est tout. C'est simple ! 72 + 73 + Remplacez la valeur `?username=` par le nom d'utilisateur de votre GitHub. 74 + 75 + ```md 76 + [![Les Stats GitHub de Anurag](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 77 + ``` 78 + 79 + _Note: Les rangs sont calculés sur la base des statistiques de l'utilisateur, voir [src/calculateRank.js](../src/calculateRank.js)_ 80 + 81 + ### Cacher les statistiques individuelles 82 + 83 + Pour masquer des statistiques spécifiques, vous pouvez passer un paramètre de requête `?hide=` avec des valeurs séparées par des virgules. 84 + 85 + > Options: `&hide=stars,commits,prs,issues,contribs` 86 + 87 + ```md 88 + ![Les Stats GitHub de Anurag](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 89 + ``` 90 + 91 + ### Ajouter le compte des contributions privées au compte des commits totaux 92 + 93 + Vous pouvez ajouter le compte de toutes vos contributions privées au compte total des engagements en utilisant le paramètre de requête `?count_private=true`. 94 + 95 + _Note: Si vous déployez vous-même ce projet, les contributions privées seront comptées par défaut ; sinon, vous devez choisir de partager les comptes de vos contributions privées._ 96 + 97 + > Options: `&count_private=true` 98 + 99 + ```md 100 + ![Les Stats GitHub de Anurag](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 101 + ``` 102 + 103 + ### Afficher les icônes 104 + 105 + Pour activer les icônes, vous pouvez passer `show_icons=true` dans le paramètre de requête, comme ceci : 106 + 107 + ```md 108 + ![Les Stats GitHub de Anurag](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 109 + ``` 110 + 111 + ### Thèmes 112 + 113 + Avec les thèmes intégrés, vous pouvez personnaliser l'apparence de la carte sans faire de [personnalisation manuelle](#customization). 114 + 115 + Use `?theme=THEME_NAME` parameter like so :- 116 + 117 + ```md 118 + ![Les Stats GitHub de Anurag](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 119 + ``` 120 + 121 + #### Tous les thèmes intégrés :- 122 + 123 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 124 + 125 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 126 + 127 + Vous pouvez consulter un aperçu de [tous les thèmes disponibles](../themes/README.md) ou consulter le [fichier de configuration des thèmes](../themes/index.js) & **vous pouvez également ajouter de nouveaux thèmes** si vous le souhaitez :D 128 + 129 + ### Personnalisation 130 + 131 + Vous pouvez personnaliser l'apparence de votre `Carte des stats` ou `Carte de dépôt` comme vous le souhaitez avec les paramètres d'URL. 132 + 133 + #### Options principales: 134 + 135 + - `title_color` - Couleur du titre de la carte _(hex color)_ 136 + - `text_color` - Couleur du texte _(hex color)_ 137 + - `icon_color` - Couleur des icônes si disponibles _(hex color)_ 138 + - `bg_color` - Couleur du fond de la carte _(hex color)_ **ou** un gradiant de la forme _angle,start,end_ 139 + - `hide_border` - Cache la bordure de la carte _(booléen)_ 140 + - `theme` - Nom du thème, parmis [tous les thèmes disponibles](../themes/README.md) 141 + - `cache_seconds` - Paramétrer le cache manuellement _(min: 1800, max: 86400)_ 142 + - `locale` - définir la langue de la carte _(par exemple. cn, de, es, etc.)_ 143 + 144 + ##### Gradient in bg_color 145 + 146 + Vous pouvez fournir plusieurs valeurs (suivie d'une virgule) dans l'option bg_color pour rendre un degradé, le format du degradé est :- 147 + 148 + ``` 149 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 150 + ``` 151 + 152 + > Note relative: Les cartes dépôt ont un cache par défaut de 30 minutes (1800 secondes) si le nombre de bifurcations et d'étoiles est inférieur à 1K, alors il est de 2 heures (7200). Notez également que la mémoire cache est limitée à 30 minutes au minimum et à 24 heures au maximum. 153 + 154 + #### Stats Card Exclusive Options: 155 + 156 + - `hide` - Masquer les éléments spécifiés dans les statistiques _(Comma seperated values)_ 157 + - `hide_title` - Masquer le titre _(boolean)_ 158 + - `hide_rank` - Masquer le rang _(boolean)_ 159 + - `show_icons` - Afficher les icônes _(boolean)_ 160 + - `include_all_commits` - Compter le total de commits au lieu de ne compter que les commits de l'année en cours _(boolean)_ 161 + - `count_private` - Compter les commits privés _(boolean)_ 162 + - `line_height` - Fixer la hauteur de la ligne entre les textes _(number)_ 163 + 164 + #### Repo Card Exclusive Options: 165 + 166 + - `show_owner` - Affiche le nom du propriétaire du dépôt _(boolean)_ 167 + 168 + #### Language Card Exclusive Options: 169 + 170 + - `hide` - Masquer les langages spécifiés sur la carte _(Comma seperated values)_ 171 + - `hide_title` - Masquer le titre _(boolean)_ 172 + - `layout` - Alterner entre 2 mise en page `default` & `compact` 173 + - `card_width` - Fixer la largeur de la carte manuellement _(number)_ 174 + 175 + > :warning: **Important:** 176 + > Les noms des langages doivent être en format uri, comme spécifié dans [Percent Encoding](https://fr.wikipedia.org/wiki/Percent-encoding) 177 + > (c'est-à-dire que: `c++` devrait devenir `c%2B%2B`, `jupyter notebook` devrait devenir `jupyter%20notebook`, etc.) 178 + 179 + --- 180 + 181 + # GitHub Extra Pins 182 + 183 + Les épingles supplémentaires GitHub vous permettent d'épingler plus de 6 dépôts dans votre profil en utilisant un profil GitHub readme. 184 + 185 + Et OUI ! Vous n'êtes plus limité à 6 dépôts épinglés. 186 + 187 + ### Usage 188 + 189 + Copiez-collez ce code dans votre readme et modifiez les liens. 190 + 191 + Extrémité: `api/pin?username=anuraghazra&repo=github-readme-stats` 192 + 193 + ```md 194 + [![Carte ReadMe](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 195 + ``` 196 + 197 + ### Démo 198 + 199 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 200 + 201 + Utiliser la variable [show_owner](#customization) pour inclure le nom d'utilisateur du propriétaire du dépôt. 202 + 203 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 204 + 205 + # Carte des langages les + utilisés 206 + 207 + La carte des langages principaux montre les langages les plus utilisés par les utilisateurs de GitHub. 208 + 209 + _NOTE: Les langages affichés n'indiquent pas mon niveau de compétence ou quelque chose comme ça, c'est une métrique GitHub de quelles langages j'ai le plus de code sur GitHub, c'est une nouvelle fonctionnalité de github-readme-stats_ 210 + 211 + ### Usage 212 + 213 + Copiez-collez ce code dans votre readme et modifiez les liens. 214 + 215 + Extrémité: `api/top-langs?username=anuraghazra` 216 + 217 + ```md 218 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 219 + ``` 220 + 221 + ### Cacher certaines langages 222 + 223 + Vous pouvez utiliser le paramètre `?hide=language1,language2` pour masquer les langages individuels. 224 + 225 + ```md 226 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 227 + ``` 228 + 229 + ### Carte compacte des langages 230 + 231 + Vous pouvez utiliser l'option `&layout=compact` pour changer le style de la carte. 232 + 233 + ```md 234 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 235 + ``` 236 + 237 + ### Démo 238 + 239 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 240 + 241 + - Carte compacte 242 + 243 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 244 + 245 + --- 246 + 247 + ### Toutes les démos 248 + 249 + - Défaut 250 + 251 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 252 + 253 + - Ne pas afficher des stats spécifiques 254 + 255 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 256 + 257 + - Afficher les icônes 258 + 259 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 260 + 261 + - Inclure tous les commits 262 + 263 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 264 + 265 + - Thèmes 266 + 267 + Choisissez parmi l'un des [thèmes par défaut](#themes) 268 + 269 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 270 + 271 + - Dégradé 272 + 273 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 274 + 275 + - Personnaliser la carte des stats 276 + 277 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 278 + 279 + - Personnaliser la carte dépôt 280 + 281 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 282 + 283 + - Top Langages 284 + 285 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 286 + 287 + --- 288 + 289 + ### Conseil rapide (aligner les cartes des dépôts) 290 + 291 + En général, vous ne pourrez pas mettre les images côte à côte. Pour ce faire, vous pouvez utiliser cette approche : 292 + 293 + ```md 294 + <a href="https://github.com/anuraghazra/github-readme-stats"> 295 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 296 + </a> 297 + <a href="https://github.com/anuraghazra/convoychat"> 298 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 299 + </a> 300 + ``` 301 + 302 + ## Déployer sur votre propre instance Vercel 303 + 304 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 305 + 306 + Comme l'API GitHub ne permet que 5k requêtes par heure, il est possible que mon `https://github-readme-stats.vercel.app/api` puisse atteindre le limiteur de débit. Si vous l'hébergez sur votre propre serveur Vercel, alors vous n'avez pas à vous soucier de quoi que ce soit. Cliquez sur le bouton de déploiement pour commencer ! 307 + 308 + NOTE: Depuis [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) nous devrions être en mesure de traiter plus de 5 000 demandes et ne pas avoir de problèmes de temps d'arrêt :D 309 + 310 + [![Deployer avec Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 311 + 312 + <details> 313 + <summary><b> Guide pour la mise en place de Vercel 🔨 </b></summary> 314 + 315 + 1. Allez sur [vercel.com](https://vercel.com/) 316 + 1. Cliquez sur `Log in` 317 + ![](https://files.catbox.moe/tct1wg.png) 318 + 1. Connectez-vous avec GitHub en cliquant `Continue with GitHub` 319 + ![](https://files.catbox.moe/btd78j.jpeg) 320 + 1. Connectez-vous à GitHub et autorisez l'accès à tous les dépôts, si vous y êtes invité 321 + 1. Forkez ce dépôt 322 + 1. Retournez au [dashboard Vercel](https://vercel.com/dashboard) 323 + 1. Sélectionnez `Import Project` 324 + ![](https://files.catbox.moe/qckos0.png) 325 + 1. Sélectionnez `Import Git Repository` 326 + ![](https://files.catbox.moe/pqub9q.png) 327 + 1. Choisissez root et gardez tout tel quel, ajoutez simplement votre variable d'environnement nommée PAT_1 (comme indiqué), qui contiendra un jeton d'accès personnel (PAT), que vous pouvez facilement créer [ici](https://github.com/settings/tokens/new) (laissez tout tel quel, nommez le simplement quelque chose, cela peut être tout ce que vous voulez) 328 + ![](https://files.catbox.moe/0ez4g7.png) 329 + 1. Cliquez sur "Deploy" et vous êtes prêt à partir. Regardez vos domaines pour utiliser l'API ! 330 + 331 + </details> 332 + 333 + ## :sparkling_heart: Supporter le project 334 + 335 + Je mets open-source presque tout ce que je peux, et j'essaie de répondre à tous ceux qui ont besoin d'aide en utilisant ces projets. Évidemment, cela prend du temps. Vous pouvez utiliser ce service gratuitement. 336 + 337 + Cependant, si vous utilisez ce projet et que vous en êtes satisfait ou si vous voulez simplement m'encourager à continuer à créer, il y a quelques façons de le faire :- 338 + 339 + - Donner un crédit approprié lorsque vous utilisez github-readme-stats sur votre readme, avec un lien vers celui-ci :D 340 + - Mettre une étoile et partager le projet :rocket: 341 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Vous pouvez faire des dons uniques via PayPal. Je vais probablement acheter un ~~café~~ thé. :tea: 342 + 343 + Merci ! :heart: 344 + 345 + --- 346 + 347 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 348 + 349 + 350 + Les contributions sont les bienvenues ! <3 351 + 352 + Fait avec :heart: et JavaScript.
+350
docs/readme_it.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Mostra nei tuoi README file le statistiche GitHub generate dinamicamente!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supportato%20da-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supportato%20da-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">Anteprima</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Segnala un errore</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Richiedi una nuova funzionalità</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">Se ti piace questo progetto, considera la possibilità di <a href="https://www.paypal.me/anuraghazra">donare</a> per aiutare a renderlo migliore! 59 + 60 + # Caratteristiche 61 + 62 + - [Statistiche GitHub (GitHub Stats Card)](#github-stats-card) 63 + - [GitHub Extra Pin](#github-extra-pins) 64 + - [Linguaggi più usati (Top Languages Card)](#top-languages-card) 65 + - [Temi](#temi) 66 + - [Personalizzazione](#personalizzazione) 67 + - [Effettua il Deploy](#deploy-su-vercel) 68 + 69 + # GitHub Stats Card 70 + 71 + Per creare una Card con le statistiche GitHub, copia e incolla nel tuo file markdown, tutto qua: è semplice! 72 + 73 + Ricorda di cambiare il valore `?username=` con il tuo nome utente GitHub. 74 + 75 + ```md 76 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 77 + ``` 78 + 79 + _Nota: I punteggi sono calcolati sulla base delle tue statistiche, dai un'occhiata a [src/calculateRank.js](../src/calculateRank.js) per ulteriori informazioni_ 80 + 81 + ### Nascondere statistiche individuali 82 + 83 + Per nascondere qualche dato, puoi aggiungere i parametri `?hide=`, separando i valori con una virgola. 84 + 85 + > Opzioni: `&hide=stars,commits,prs,issues,contribs` 86 + 87 + ```md 88 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 89 + ``` 90 + 91 + ### Includere i contributi privati nel computo totale 92 + 93 + Puoi aggiungere i tuoi contributi privati al totale dei commit, utilizzando il parametro `?count_private=true`. 94 + 95 + _Nota: se hai deciso di fare il deploy del progetto, i contributi privati verranno inclusi in automatico._ 96 + 97 + > Opzioni: `&count_private=true` 98 + 99 + ```md 100 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 101 + ``` 102 + 103 + ### Mostrare le icone 104 + 105 + Per abilitare le icone, puoi specificare `show_icons=true`, ad esempio: 106 + 107 + ```md 108 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 109 + ``` 110 + 111 + ### Temi 112 + 113 + Esistono alcuni temi predefiniti coi quali è possibile personalizzare l'aspetto delle card. In alternativa, è possibile effettuare una [personalizzazione manuale](#personalizzazione). 114 + 115 + Usa il parametro `?theme=NOME_TEMA` in questo modo:- 116 + 117 + ```md 118 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 119 + ``` 120 + 121 + #### Galleria dei temi:- 122 + 123 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 124 + 125 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 126 + 127 + Puoi avere un'anteprima di [tutti i temi supportati](../themes/README.md) o controllare il [file di configurazione dei temi](../themes/index.js) e **puoi anche contribuire creando un nuovo tema** se vuoi :D 128 + 129 + ### Personalizzazione 130 + 131 + Puoi personalizzare l'aspetto delle tue `Stats Card` o delle `Repo Card` in qualsiasi modo, semplicemente modificando i parametri dell'URL. 132 + 133 + #### Opzioni comuni: 134 + 135 + - `title_color` - Colore del titolo _(in esadecimale)_ 136 + - `text_color` - Colore del testo _(in esadecimale)_ 137 + - `icon_color` - Colore delle icone, se disponibili _(in esadecimale)_ 138 + - `bg_color` - Colore dello sfondo _(in esadecimale)_ **oppure** un gradiente nella forma _angolo,inizio,fine_ 139 + - `hide_border` - Nasconde il bordo della carta _(booleano)_ 140 + - `theme` - Nome del tema, dai un'occhiata a [tutti i temi disponibili](../themes/README.md) 141 + - `cache_seconds` - Specifica manualmente il valore di cache, in secondi _(min: 1800, max: 86400)_ 142 + - `locale` - Impostare la lingua nella scheda _(per esempio. cn, de, es, eccetera.)_ 143 + 144 + ##### Gradiente nello sfondo 145 + 146 + Puoi fornire valori separati da virgola nel parametro bg_color per creare un gradiente, il cui formato è:- 147 + 148 + ``` 149 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 150 + ``` 151 + 152 + > Nota sulla cache: le card hanno un valore di cache di 4 ore (14400 seconds) di default se il numero di fork & il numero di stelle è inferiore a 1000; altrimenti è pari a 2 ore (7200). 153 + 154 + #### Opzioni valide solo per le card delle statistiche: 155 + 156 + - `hide` - Nasconde gli oggetti selezionati _(valori separati da virgola)_ 157 + - `hide_title` - Nasconde il titolo _(booleano)_ 158 + - `hide_rank` - Nasconde il punteggio _(booleano)_ 159 + - `show_icons` - Mostra le icone _(booleano)_ 160 + - `include_all_commits` - Mostra tutti i commit e non solo quelli dell'anno corrente _(booleano)_ 161 + - `count_private` - Include i contributi privati _(booleano)_ 162 + - `line_height` - Specifica il valore dell'altezza di riga _(numero)_ 163 + 164 + #### Opzioni valide solo per le Repo Card: 165 + 166 + - `show_owner` - Mostra il nome utente del proprietario _(booleano)_ 167 + 168 + #### Opzioni valide solo per le card dei linguaggi: 169 + 170 + - `hide` - Nasconde un linguaggio specifico _(valori separati da virgola)_ 171 + - `hide_title` - Nasconde il titolo _(booleano)_ 172 + - `layout` - Specifica il tipo di layout, `default` (esteso) o `compact` (compatto) 173 + - `card_width` - Specifica il valore della larghezza _(numero)_ 174 + 175 + > :warning: **Importante:** 176 + > Per i nomi dei linguaggi, assicurati di effettuare l'encoding giusto nell'uri, come specificato in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 177 + > (ad esempio: `c++` diventa `c%2B%2B`, `jupyter notebook` diventa `jupyter%20notebook`, ecc.) 178 + 179 + --- 180 + 181 + # GitHub Extra Pins 182 + 183 + GitHub Extra Pins ti permette di fissare in alto più di 6 repository nel tuo profilo, sfruttando il README del profilo. 184 + 185 + ### Utilizzo 186 + 187 + Copia e incolla il seguente codice, premurandoti di cambiare il link. 188 + 189 + Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` 190 + 191 + ```md 192 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 193 + ``` 194 + 195 + ### Demo 196 + 197 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 198 + 199 + Usa la variabile [show_owner](#personalizzazione) per includere il nome utente del proprietario 200 + 201 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 202 + 203 + # Top Languages Card 204 + 205 + La Top Languages Card mostra i linguaggi che utilizzi di più su GitHub. 206 + 207 + _NOTA: questa card non indica il livello di abilità, ma piuttosto quanto codice hai scritto in un determinato linguaggio_ 208 + 209 + ### Utilizzo 210 + 211 + Copia e incolla nel tuo file README, cambiando i link. 212 + 213 + Endpoint: `api/top-langs?username=anuraghazra` 214 + 215 + ```md 216 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 217 + ``` 218 + 219 + ### Nascondi linguaggi specifici 220 + 221 + Puoi utilizzare il parametro `?hide=linguaggio1,linguaggio2` per nascondere alcuni linguaggi. 222 + 223 + ```md 224 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 225 + ``` 226 + 227 + ### Layout compatto 228 + 229 + Puoi utilizzare l'opzione `&layout=compact` per cambiare l'aspetto della card. 230 + 231 + ```md 232 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 233 + ``` 234 + 235 + ### Demo 236 + 237 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 238 + 239 + - Layout Compatto 240 + 241 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 242 + 243 + --- 244 + 245 + ### Galleria di esempi 246 + 247 + - Default 248 + 249 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 250 + 251 + - Nascondere dati specifici 252 + 253 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 254 + 255 + - Mostrare le icone 256 + 257 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 258 + 259 + - Includere tutti i commit 260 + 261 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 262 + 263 + - Temi 264 + 265 + Scegli uno dei [temi di default](#themes) 266 + 267 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 268 + 269 + - Gradiente 270 + 271 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 272 + 273 + - Personalizzare le Stats Card 274 + 275 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 276 + 277 + - Personalizzare le Repo Card 278 + 279 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 280 + 281 + - Linguaggi più usati 282 + 283 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 284 + 285 + --- 286 + 287 + ### Consiglio veloce (Allineare le Card) 288 + 289 + Per allineare le card una accanto all'altra, puoi adottare questo approccio: 290 + 291 + ```md 292 + <a href="https://github.com/anuraghazra/github-readme-stats"> 293 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 294 + </a> 295 + <a href="https://github.com/anuraghazra/convoychat"> 296 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 297 + </a> 298 + ``` 299 + 300 + ## Deploy su Vercel 301 + 302 + #### [Guarda questo Video Tutorial, realizzato da @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 303 + 304 + Since the GitHub API only allows 5k requests per hour, it is possible that my `https://github-readme-stats.vercel.app/api` could hit the rate limiter. If you host it on your own Vercel server, then you don't have to worry about anything. Click on the deploy button to get started! 305 + 306 + NOTE: Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) we should be able to handle more than 5k requests and have no issues with downtime :D 307 + 308 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 309 + 310 + <details> 311 + <summary><b> Guide on setting up Vercel 🔨 </b></summary> 312 + 313 + 1. Go to [vercel.com](https://vercel.com/) 314 + 1. Click on `Log in` 315 + ![](https://files.catbox.moe/tct1wg.png) 316 + 1. Sign in with GitHub by pressing `Continue with GitHub` 317 + ![](https://files.catbox.moe/btd78j.jpeg) 318 + 1. Sign into GitHub and allow access to all repositories, if prompted 319 + 1. Fork this repo 320 + 1. Go back to your [Vercel dashboard](https://vercel.com/dashboard) 321 + 1. Select `Import Project` 322 + ![](https://files.catbox.moe/qckos0.png) 323 + 1. Select `Import Git Repository` 324 + ![](https://files.catbox.moe/pqub9q.png) 325 + 1. Select root and keep everything as is, just add your environment variable named PAT_1 (as shown), which will contain a personal access token (PAT), which you can easily create [here](https://github.com/settings/tokens/new) (leave everything as is, just name it something, it can be anything you want) 326 + ![](https://files.catbox.moe/0ez4g7.png) 327 + 1. Click deploy, and you're good to go. See your domains to use the API! 328 + 329 + </details> 330 + 331 + ## :sparkling_heart: Supporta il progetto 332 + 333 + Rendo open-source quasi tutto ciò che posso e provo a rispondere a chiunque sia in difficoltà nell'utilizzare questi progetti. Ovviamente, mi richiede del tempo. 334 + Puoi utilizzare questo servizio gratuitamente. 335 + 336 + Tuttavia, se usi il progetto e ti piace e vuoi sostenermi, puoi:- 337 + 338 + - Dare il giusto riconoscimento quando usi github-readme-stats nei tuoi readme, includendo un link :D 339 + - Mettere una stella e condividere il progetto :rocket: 340 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Fare una donazione via PayPal. Probabilmente compreròun ~~caffè~~ tè. :tea: 341 + 342 + Grazie! :heart: 343 + 344 + --- 345 + 346 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 347 + 348 + I contributi sono benvenuti! <3 349 + 350 + Realizzato col :heart: e in JavaScript.
+358
docs/readme_ja.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">あなたの README に自動生成された GitHub の統計情報を載せましょう!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">View Demo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Report Bug</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Request Feature</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français</a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">このプロジェクトを気に入っていただけましたか?<br>もしよろしければ、プロジェクトのさらなる改善のために<a href="https://www.paypal.me/anuraghazra">寄付</a>を検討して頂けると嬉しいです!</p> 59 + 60 + # 主な機能 61 + 62 + - [GitHub Stats Card](#github-stats-card) 63 + - [GitHub Extra Pins](#github-extra-pins) 64 + - [Top Languages Card](#top-languages-card) 65 + - [Themes](#テーマの変更) 66 + - [Customization](#テーマを自分でカスタマイズする) 67 + - [Deploy Yourself](#自分の-Vercel-インスタンスにデプロイする) 68 + 69 + # GitHub Stats Card 70 + 71 + 以下のコードをコピーして、あなたの Markdown ファイルに貼り付けるだけです。 72 + 簡単ですね! 73 + 74 + `?username=` の値は、あなたの GitHub アカウントのユーザー名に変更してください。 75 + 76 + ```md 77 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 78 + ``` 79 + 80 + _Note: カードに表示されるランクはユーザの統計情報に基づいて計算されています。詳しくは、[src/calculateRank.js](../src/calculateRank.js)をご覧ください。_ 81 + 82 + ### 特定の統計情報を隠す 83 + 84 + クエリパラメータ `?hide=` に値をカンマ区切りで渡すことで、特定の統計情報を隠すことができます。 85 + 86 + > Options: `&hide=stars,commits,prs,issues,contribs` 87 + 88 + ```md 89 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 90 + ``` 91 + 92 + ### プライベートリポジトリへのコミットをカウントする 93 + 94 + クエリパラメータ `?count_private=true` を使用することで、プライベートリポジトリへのコミット数を総数に追加することができます。 95 + 96 + _Note: このプロジェクトを自分でデプロイしている場合、デフォルトではプライベートリポジトリへのコミットがカウントされます。_ 97 + 98 + > Options: `&count_private=true` 99 + 100 + ```md 101 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 102 + ``` 103 + 104 + ### アイコンを表示する 105 + 106 + クエリパラメータ `?show_icons=true` を使用することで、アイコンの表示が有効になります。 107 + 108 + ```md 109 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 110 + ``` 111 + 112 + ### テーマの変更 113 + 114 + 内蔵されているテーマを使用すれば、[手動のカスタマイズ](#customization)を行うことなくカードの外観を変更することができます。 115 + 116 + `?theme=THEME_NAME` は以下のように使います。 117 + 118 + ```md 119 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 120 + ``` 121 + 122 + #### 内蔵テーマの一覧 123 + 124 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 125 + 126 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 127 + 128 + その他の使用可能なテーマの[プレビュー](../themes/README.md)や[設定ファイル](../themes/index.js)もご覧ください。もしよろしければ、**新しいテーマを投稿してみてください** :smile: 129 + 130 + ### テーマを自分でカスタマイズする 131 + 132 + `Stats Card` や `Repo Card` の外観を URL パラメータを使って好きなようにカスタマイズすることができます。 133 + 134 + #### 共通のオプション 135 + 136 + - `title_color` - タイトルの色 _(16 進数カラーコード)_ 137 + - `text_color` - 中身のテキストの色 _(16 進数カラーコード)_ 138 + - `icon_color` - アイコンの色(変更可能な場合のみ) _(16 進数カラーコード)_ 139 + - `bg_color` - 背景の色 _(16 進数カラーコード)_ **または** _angle,start,end_ の形式でグラデーションを指定することも可 140 + - `hide_border` - カードの境界線を非表示にします _(ブール値)_ 141 + - `theme` - [使用可能なテーマ一覧](../themes/README.md) から選んだテーマ名 142 + - `cache_seconds` - キャッシュ時間の秒数 _(最小値: 1800, 最大値: 86400)_ 143 + - `locale` - カードに言語を設定する _(例えば cn, de, es, 等)_ 144 + 145 + ##### bg_color の グラデーション指定 146 + 147 + bg_color オプションで複数のカンマ区切りの値を指定してグラデーションをレンダリングすることができます。フォーマットは以下の通りになります。 148 + 149 + ``` 150 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 151 + ``` 152 + 153 + > キャッシュに関する注意点: Repo cards のデフォルトのキャッシュは、フォーク数とスター数が 1k 未満の場合は 30 分(1800 秒) で、それ以外の場合は 2 時間(7200) です。また、キャッシュは最低でも 30 分、最大でも 24 時間に制限されていることに注意してください。 154 + 155 + #### Stats Card だけに存在するオプション 156 + 157 + - `hide` - 特定の統計情報を隠す _(カンマ区切りで指定)_ 158 + - `hide_title` - _(boolean)_ 159 + - `hide_rank` - _(boolean)_ 160 + - `show_icons` - _(boolean)_ 161 + - `include_all_commits` - 今年度のコミット数だけでなく、コミット数の総数をカウントする _(boolean)_ 162 + - `count_private` - プライベートリポジトリへのコミットをカウントする _(boolean)_ 163 + - `line_height` - テキストの行の高さ _(number)_ 164 + - `custom_title` - タイトル文字列を変更する 165 + - `disable_animations` - カードのアニメーションを無効にする _(boolean)_ 166 + 167 + #### Repo Card だけに存在するオプション 168 + 169 + - `show_owner` - リポジトリのオーナーを表示する _(boolean)_ 170 + 171 + #### Language Card だけに存在するオプション 172 + 173 + - `hide` - 特定の言語を隠す _(カンマ区切りで指定)_ 174 + - `hide_title` - _(boolean)_ 175 + - `layout` - `default` か `compact` のいずれかのレイアウトに切り替える 176 + - `card_width` - カードの横幅 _(number)_ 177 + - `langs_count` - 表示される言語の数 _(1 ~ 10, 初期値 5)_ 178 + - `exclude_repo` - 指定されたリポジトリを除外する _(カンマ区切りで指定)_ 179 + - `custom_title` - タイトル文字列を変更する 180 + 181 + > :warning: **重要:** 182 + > [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) で指定されているように、プログラミング言語の名前は URL エンコードされている必要があります。 183 + > (例: `c++` は `c%2B%2B`, `jupyter notebook` は `jupyter%20notebook`, など) 184 + 185 + --- 186 + 187 + # GitHub Extra Pins 188 + 189 + GitHub extra pins を使うと、GitHub の readme プロフィールを使って、自分のプロフィールに 6 つ以上のリポジトリをピン留めすることができます。 190 + 191 + やったー! もはや、リポジトリをピン留めできる数が 6 つに制限されることはありません。 192 + 193 + ### 使い方 194 + 195 + 以下のコードをあなたの readme にコピー & ペーストし、リンクを変更してください。 196 + 197 + エンドポイント: `api/pin?username=anuraghazra&repo=github-readme-stats` 198 + 199 + ```md 200 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 201 + ``` 202 + 203 + ### デモ 204 + 205 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 206 + 207 + リポジトリのオーナーのユーザー名を含める場合は、show_owner 変数を使用します。 208 + 209 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 210 + 211 + # Top Languages Card 212 + 213 + Top languages card には、その GitHub ユーザーが最も利用している Top languages が表示されます。 214 + 215 + _NOTE: Top languages は、ユーザのスキルレベルを示すものではなく、GitHub 上でどの言語で最も多くのコードを書いているかを示す GitHub の指標です。_ 216 + 217 + ### 使い方 218 + 219 + 以下のコードをあなたの readme にコピー & ペーストし、リンクを変更してください。 220 + 221 + エンドポイント: `api/top-langs?username=anuraghazra` 222 + 223 + ```md 224 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 225 + ``` 226 + 227 + ### 特定の言語を隠す 228 + 229 + クエリパラメータ `?hide=language1,language2` 使用することで、特定の言語を非表示にすることができます。 230 + 231 + ```md 232 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 233 + ``` 234 + 235 + ### レイアウトをコンパクトにする 236 + 237 + クエリパラメータ `&layout=compact` を使用することで、カードのデザインを変更することができます。 238 + 239 + ```md 240 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 241 + ``` 242 + 243 + ### デモ 244 + 245 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 246 + 247 + - Compact layout の場合 248 + 249 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 250 + 251 + --- 252 + 253 + ### 全てのデモ 254 + 255 + - デフォルト 256 + 257 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 258 + 259 + - 特定の統計情報を隠す 260 + 261 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 262 + 263 + - アイコンを表示する 264 + 265 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 266 + 267 + - コミット数の総数をカウントする 268 + 269 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 270 + 271 + - テーマの変更 272 + 273 + 任意の[テーマ](#themes)を選択できます。 274 + 275 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 276 + 277 + - グラデーション 278 + 279 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 280 + 281 + - stats card のカスタマイズ 282 + 283 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 284 + 285 + - repo card のカスタマイズ 286 + 287 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 288 + 289 + - Top languages 290 + 291 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 292 + 293 + --- 294 + 295 + ### クイックヒント (カードを並べる) 296 + 297 + 通常、画像を並べてレイアウトすることはできません。画像を並べるには、以下のような方法があります。 298 + 299 + ```md 300 + <a href="https://github.com/anuraghazra/github-readme-stats"> 301 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 302 + </a> 303 + <a href="https://github.com/anuraghazra/convoychat"> 304 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 305 + </a> 306 + ``` 307 + 308 + ## 自分の Vercel インスタンスにデプロイする 309 + 310 + #### [@codeSTACKr によるチュートリアルはこちら](https://youtu.be/n6d4KHSKqGk?t=107) 311 + 312 + GitHub API は 1 時間あたり 5k リクエストしか受け付けていないので、私の `https://github-readme-stats.vercel.app/api` がレートリミッターを超えてしまう可能性があります。自分の Vercel サーバーでホストしているのであれば、何も心配する必要はありません。デプロイボタンをクリックして始めましょう! 313 + 314 + NOTE: [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) 以降は 5k 以上のリクエストに対応できるようになり、ダウンタイムの問題もなくなりました :smile: 315 + 316 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 317 + 318 + <details> 319 + <summary>Vercelの設定ガイド</summary> 320 + 321 + 1. [vercel.com](https://vercel.com/)に行きます。 322 + 1. `Log in`をクリックします。 323 + ![](https://files.catbox.moe/tct1wg.png) 324 + 1. `Continue with GitHub` を押して GitHub にサインインします。 325 + ![](https://files.catbox.moe/btd78j.jpeg) 326 + 1. GitHub にサインインし、すべてのリポジトリへのアクセスを許可します。 327 + 1. このリポジトリをフォークします。 328 + 1. [Vercel dashboard](https://vercel.com/dashboard)に戻ります。 329 + 1. `Import Project` を選択します。 330 + ![](https://files.catbox.moe/qckos0.png) 331 + 1. `Import Git Repository` を選択します。 332 + ![](https://files.catbox.moe/pqub9q.png) 333 + 1. root を選択して、すべてをそのままにしておき、PAT_1 という名前の環境変数を(下図のように)追加します。これには個人アクセストークン (PAT) が含まれており、[ここ](https://github.com/settings/tokens/new)で簡単に作成することができます (すべてをそのままにしておいて、何かに名前を付けてください。) 334 + ![](https://files.catbox.moe/0ez4g7.png) 335 + 1. デプロイをクリックすれば完了です。API を使用するためにあなたのドメインを参照してください! 336 + 337 + </details> 338 + 339 + ## :sparkling_heart: このプロジェクトを支援する 340 + 341 + 私はできる限りのことをオープンソースで行い、また、このプロジェクトを利用する上で困っている皆さん全員に返信するようにしています。もちろん返信には時間が掛かる場合がありますが。 342 + このプロジェクトは無料でご利用いただけます。 343 + 344 + しかしながら、もしあなたがこのプロジェクトに満足しているのであれば、あるいはただ、私がソフトウェアを作り続けるよう励ましたいのであれば、いくつかの方法があります。 345 + 346 + - あなたの readme で github-readme-stats を使用して適切なクレジットを付与し、それにリンクします :smile: 347 + - このプロジェクトにスターを贈り、他の人達にもシェアしてください :rocket: 348 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - PayPal を介して 1 回限りの寄付を行うことができます。私はおそらく ~~コーヒー~~ お茶を買うでしょう。 :tea: 349 + 350 + Thanks! :heart: 351 + 352 + --- 353 + 354 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 355 + 356 + コントリビュートは大歓迎です! :heart_eyes: 357 + 358 + このプロジェクトは :heart: と JavaScript で作られています。
+439
docs/readme_kr.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">동적으로 생성되는 Github 사용량 통계를 여러분의 README 에 추가해보세요!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#미리보기">미리보기 확인</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">버그 제보하기</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">기능 추가 요청하기</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">기능들이 마음에 드시나요? 괜찮으시다면, 서비스 개선을 위해 <a href="https://www.paypal.me/anuraghazra">기부</a>를 고려해주세요! 59 + 60 + # 기능들 61 + 62 + - [GitHub 통계](#github-통계) 63 + - [GitHub 저장소 핀](#github-저장소-핀) 64 + - [언어 사용량 통계](#언어-사용량-통계) 65 + - [Wakatime 주간 통계](#wakatime-주간-통계) 66 + - [테마](#테마) 67 + - [커스터마이징](#커스터마이징) 68 + - [직접 배포하기](#나만의-Vercel-인스턴스에-직접-배포하기) 69 + 70 + 71 + # GitHub 통계 72 + 73 + 아래 코드를 복사해서 마크다운 파일에 붙여넣으면 끝이에요, 아주 간단해요! 74 + 75 + `?username=` 속성의 값을 Github 계정의 사용자 명(닉네임)으로 바꿔주세요. 76 + 77 + ```md 78 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 79 + ``` 80 + 81 + _참고:_ 82 + 83 + _랭크는 S+ (상위 1%), S (상위 25%), A++ (상위 45%), A+ (상위 60%), 그리고 B+ (전체) 로 구성되어 있습니다._ 84 + 85 + _커밋의 수(commits), 기여도(contribution), 이슈의 수(issues), 즐겨찾기(star), 작업내용 반영 요청(Pull Request), 86 + 팔로워 수, 그리고 보유 중인 저장소 등의 항목들에 대해 [누적 분포 함수](https://ko.wikipedia.org/wiki/%EB%88%84%EC%A0%81_%EB%B6%84%ED%8F%AC_%ED%95%A8%EC%88%98) 를 이용해 계산됩니다._ 87 + 88 + _[src/calculateRank.js](../src/calculateRank.js) 에서 수행되는 계산 작업의 내용을 확인할 수 있습니다._ 89 + 90 + ### 개별 통계 숨기기 91 + 92 + 특정 통계를 숨기려면 `콤마(,)`로 구분된 값들을 `?hide=` 속성의 값으로 넣어주세요. 93 + 94 + > 사용 가능한 항목들: `&hide=stars,commits,prs,issues,contribs` 95 + 96 + ```md 97 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 98 + ``` 99 + 100 + ### 총 커밋 수에 비공개 기여도 (private contribs) 수 추가하기 101 + 102 + `?count_private=true` 속성을 추가하시면, 여러분의 모든 비공개 기여도까지 반영됩니다. 103 + 104 + _참고: 프로젝트를 직접 배포하신 경우, 비공개 기여도는 기본적으로 반영됩니다. 원하지 않는 경우엔 직접 설정해야 합니다._ 105 + 106 + > 예시: `&count_private=true` 107 + 108 + ```md 109 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 110 + ``` 111 + 112 + ### 아이콘 표시하기 113 + 114 + 아이콘 항목을 활성화 하기 위해선, 다음과 같이 `show_icons=true` 속성을 추가해주세요. 115 + 116 + ```md 117 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 118 + ``` 119 + 120 + ### 테마 설정하기 121 + 122 + 내장 테마를 사용하시면, 별도의 [커스터마이징](#커스터마이징) 없이 GitHub 통계 카드를 꾸미실 수 있어요. 123 + 124 + 다음과 같이 `?theme=THEME_NAME` 속성을 이용해주세요. 125 + 126 + ```md 127 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 128 + ``` 129 + 130 + #### 지원하는 내장 테마 목록 131 + 132 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 133 + 134 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 135 + 136 + [사용 가능한 모든 테마](../themes/README.md) 에서 미리보기를 확인하실 수 있어요. 137 + 138 + 원하신다면 [테마 설정하기](../themes/index.js) 항목에서 **새로운 테마를 직접 만드실수 있어요.** :D 139 + 140 + ### 커스터마이징 141 + 142 + 여러가지 추가 속성을 통해, 원하는대로 `Stats Card` 또는 `Repo Card` 모양을 커스터마이징할 수 있어요. 143 + 144 + #### 기본 옵션: 145 + 146 + - `title_color` - 카드 타이틀 색상 _(hex color)_ 147 + - `text_color` - 카드 본문 글씨 색상 _(hex color)_ 148 + - `icon_color` - 아이콘 색상 (활성화된 경우) _(hex color)_ 149 + - `bg_color` - 카드의 배경 색상 _(hex color)_ **혹은** 다음 양식으로 그라데이션 주기 _angle,start,end_ 150 + - `hide_border` - 카드의 테두리 표시 여부 _(boolean)_ 151 + - `theme` - 테마의 이름, [사용 가능한 모든 테마](../themes/README.md) 에서 선택 152 + - `cache_seconds` - 수동으로 캐시 헤더 설정 _(min: 1800, max: 86400)_ 153 + - `locale` - 카드에 표시할 언어 _(e.g. kr, cn, de, es, etc.)_ 154 + 155 + ##### 배경에 그라데이션 주기 156 + 157 + 그라데이션이 적용된 카드를 표시하고 싶으시다면, 여러가지 쉼표(,) 로 구분된 값을 추가할 수 있어요. 158 + 159 + 양식은 다음과 같습니다. 160 + 161 + ``` 162 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 163 + ``` 164 + 165 + > 캐시에 대한 참고사항: 166 + > 포크와 스타 수가 1,000 개 미만인 저장소의 카드는 기본적으로 4시간 (14,400초) 으로 설정되어 있습니다. 167 + > 그 외에는, it's 2시간 (7,200초) 입니다. 또한, 캐시설정 시간의 범위는 최소 2시간, 최대 24시간입니다. 168 + 169 + 170 + #### 통계 카드의 표시 제한 옵션: 171 + 172 + - `hide` - 통계에서 특정한 값 제외 _(Comma-separated values)_ 173 + - `hide_title` - 타이틀 표시 여부 _(boolean)_ 174 + - `hide_rank` - 랭크 표시 여부 _(boolean)_ 175 + - `show_icons` - 아이콘 표시 여부 _(boolean)_ 176 + - `include_all_commits` - 올해가 아닌 전체 연도에 대한 커밋 포함 여부 _(boolean)_ 177 + - `count_private` - 비공개 기여도 포함 여부 _(boolean)_ 178 + - `line_height` - 텍스트 간 줄 높이 설정(자간) _(number)_ 179 + - `custom_title` - 카드의 타이틀 값 설정 180 + - `disable_animations` - 카드의 모든 에니메이션 활성 여부 _(boolean)_ 181 + 182 + #### 저장소 카드의 표시 제한 옵션: 183 + 184 + - `show_owner` - 저장소 소유자 닉네임 표기 여부 _(boolean)_ 185 + 186 + #### 언어 사용량 통계 카드의 표시 제한 옵션: 187 + 188 + - `hide` - 카드에서 특정 언어 제외 _(Comma-separated values)_ 189 + - `hide_title` - 타이틀 제외 _(boolean)_ 190 + - `layout` - 사용 가능한 두 가지 값, `default` & `compact` 중 표시 형태 선택 191 + - `card_width` - 카드 너비 직접 설정 _(number)_ 192 + - `langs_count` - 카드에 표시할 언어의 수 (1-10 사이, 기본 값 : 5) _(number)_ 193 + - `exclude_repo` - 통계에 제외할 저장소 지정 _(Comma-separated values)_ 194 + - `custom_title` - 카드의 타이틀 값 설정 195 + 196 + ##### 경고! **매우 중요** 197 + > 198 + > 언어의 이름은 [퍼센트 인코딩](https://ko.wikipedia.org/wiki/%ED%8D%BC%EC%84%BC%ED%8A%B8_%EC%9D%B8%EC%BD%94%EB%94%A9) 에 지정된 URI 방식으로 표기되어야 합니다. 199 + > ( 예를 들면, `c++` 는 `c%2B%2B`, `jupyter notebook` 는 `jupyter%20notebook`, 등등. ) 200 + > [urlencoder.org](https://www.urlencoder.org/) < 서비스를 이용하면 자동으로 생성할 수 있습니다. 201 + 202 + #### Wakatime 카드의 표시 제한 옵션: 203 + 204 + - `hide_title` - 타이틀 제외 _(boolean)_ 205 + - `line_height` - 텍스트 간 줄 높이 설정(자간) _(number)_ 206 + - `hide_progress` - 퍼센트와 표기바 표시 여부 _(boolean)_ 207 + - `custom_title` - 카드의 타이틀 값 설정 208 + - `layout` - 사용 가능한 두 가지 값, `default` & `compact` 중 표시 형태 선택 209 + 210 + --- 211 + 212 + # GitHub 저장소 핀 213 + 214 + GitHub 저장소 여분 핀을 이용하면, 6개 이상의 저장소 핀을 여러분의 프로필에 추가할 수 있어요. 215 + 216 + 맞아요! 이제 6개 이상의 핀을 사용할 수 있어요! (핀이 부족할 일이 없답니다!) 217 + 218 + ### 사용법 219 + 220 + 이 코드를 복사해서 여러분의 README 에 넣고 링크를 변경해주세요. 221 + 222 + 엔드 포인트: `api/pin?username=anuraghazra&repo=github-readme-stats` 223 + 224 + ```md 225 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 226 + ``` 227 + 228 + ### 미리보기 229 + 230 + [![GitHub 저장소 핀 카드](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 231 + 232 + [show_owner](#커스터마이징) 속성을 통해 저장소 소유자의 닉네임 표시 여부를 설정할 수 있어요. 233 + 234 + [![GitHub 저장소 핀 카드](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 235 + 236 + # 언어 사용량 통계 237 + 238 + 언어 사용량 통계 카드는 Github 사용자가 가장 많이 사용한 언어가 표시됩니다. 239 + 240 + _참고: 241 + 언어 사용량 통계는 GitHub 에서 가장 많이 사용된 언어의 표기일 뿐입니다. 242 + 숙련도, 혹은 그와 비슷한 지표를 나타내진 않습니다. (새로 추가된 기능입니다!)_ 243 + 244 + ### 사용법 245 + 246 + 이 코드를 복사해서 여러분의 README 에 넣고 링크를 변경해주세요. 247 + 248 + 엔드 포인트: `api/top-langs?username=anuraghazra` 249 + 250 + ```md 251 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 252 + ``` 253 + 254 + ### 통계에서 제외할 저장소 지정하기 255 + 256 + `?exclude_repo=repo1,repo2` 속성을 통해 특정 저장소를 제외할 수 있어요. 257 + 258 + ```md 259 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 260 + ``` 261 + 262 + ### 통계에서 특정 언어 제외하기 263 + 264 + `?hide=language1,language2` 속성을 통해 특정 언어를 제외할 수 있어요. 265 + 266 + ```md 267 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 268 + ``` 269 + 270 + ### 표시할 언어 수 지정하기 271 + 272 + `&langs_count=` 속성을 통해 카드에 표시할 언어의 수를 지정할 수 있어요. (1-10 사이, 기본 값 : 5) 273 + 274 + ```md 275 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 276 + ``` 277 + 278 + ### 컴택트한 카드 레이아웃 설정하기 279 + 280 + `&layout=compact` 속성을 통해 카드의 디자인을 변경할 수 있어요. 281 + 282 + ```md 283 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 284 + ``` 285 + 286 + ### 미리보기 287 + 288 + [![언어 사용량 통계](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 289 + 290 + - 컴팩트한 레이아웃 291 + 292 + [![언어 사용량 통계](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 293 + 294 + # Wakatime 주간 통계 295 + 296 + `?username=` 속성의 값을 [Wakatime](https://wakatime.com) 계정의 사용자 명(닉네임)으로 바꿔주세요. 297 + 298 + ```md 299 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 300 + ``` 301 + 302 + ### 미리보기 303 + 304 + [![willianrod 님의 wakatime 통계](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 305 + 306 + [![willianrod 님의 wakatime 통계](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 307 + 308 + - 컴팩트한 레이아웃 309 + 310 + [![willianrod 님의 wakatime 통계](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 311 + 312 + --- 313 + 314 + ### 전체 미리보기 315 + 316 + - 기본 317 + 318 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra) 319 + 320 + - 특정 통계 내용 숨김 321 + 322 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 323 + 324 + - 아이콘 표시 325 + 326 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 327 + 328 + - 전체 커밋 포함 시 329 + 330 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 331 + 332 + - 테마들 333 + 334 + [내장 테마](#themes) 에서 직접 선택해보세요 335 + 336 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 337 + 338 + - 그라데이션 주기 339 + 340 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 341 + 342 + - 통계 카드 커스터마이징하기 343 + 344 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 345 + 346 + - 언어 사용 지역 설정하기 347 + 348 + ![Anurag 님의 GitHub 사용량 통계](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=kr) 349 + 350 + - 저장소 핀 커스터마이징하기 351 + 352 + ![Anurag 님의 GitHub 저장소 핀](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 353 + 354 + - 언어 사용량 통계 355 + 356 + [![언어 사용량 통계](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 357 + 358 + - Wakatime 카드 359 + 360 + [![willianrod 님의 Wakatime 카드](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 361 + 362 + --- 363 + 364 + ### 꿀팁 (저장소 핀 정렬하기) 365 + 366 + 아마, 이미지들을 나란히 정렬할 수 없을거에요. 367 + 368 + 그럴땐, 이렇게 해보세요! 369 + 370 + ```md 371 + <a href="https://github.com/anuraghazra/github-readme-stats"> 372 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 373 + </a> 374 + <a href="https://github.com/anuraghazra/convoychat"> 375 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 376 + </a> 377 + ``` 378 + 379 + ## 나만의 Vercel 인스턴스에 직접 배포하기 380 + 381 + #### [@codeSTACKr 님의 튜토리얼 영상 보기](https://youtu.be/n6d4KHSKqGk?t=107) 382 + 383 + GitHub API 가 시간 당 요청 개수를 5,000회로 제한한 뒤로, 384 + 저의 `https://github-readme-stats.vercel.app/api` 가 사용량 제한에 걸릴 위험이 생겼어요. 385 + 386 + 만약, 여러분이 Vercel server 에서 직접 호스트 하신다면, 걱정하실 일은 없을거에요. 387 + 388 + 아래의 버튼을 이용해 직접 배포해보세요! 389 + 390 + 참고: [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) 풀 리퀘스트 이후로, 저희는 5,000 개 이상의 요청을 처리할 수 있게 됐어요. 더이상 서버 다운에 대한 걱정은 노놉! :D 391 + 392 + [![Vercel 에 배포하기](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 393 + 394 + <details> 395 + <summary><b> 🔨 Vercel 세팅 가이드! </b></summary> 396 + 397 + 1. [vercel.com](https://vercel.com/) 으로 이동하기 398 + 1. `Log in` 버튼 클릭! 399 + ![](https://files.catbox.moe/tct1wg.png) 400 + 1. `Continue with GitHub` 버튼을 이용해 GitHub 계정으로 가입하기 401 + ![](https://files.catbox.moe/btd78j.jpeg) 402 + 1. GitHub 에 로그인한 뒤, (권한을 요청한다면) 모든 저장소에 대한 권한을 허용해주세요! 403 + 1. 이 저장소를 Fork! 404 + 1. [Vercel 대시보드](https://vercel.com/dashboard) 로 돌아가세요! 405 + 1. `Import Project` 항목 선택! 406 + ![](https://files.catbox.moe/qckos0.png) 407 + 1. `Import Git Repository` 항목 선택! 408 + ![](https://files.catbox.moe/pqub9q.png) 409 + 1. 'root' 를 선택하고 넘어간 후, 아래와 같이 개인용 엑세스 토큰 (PAT) 을 저장할 환경변수를 PAT_1 의 값으로 추가해주세요. [이 곳](https://github.com/settings/tokens/new)에서 쉽게 생성할 수 있어요. (모든 항목을 그대로 두고, 이 부분만 원하는 이름으로 변경해주세요.) 410 + ![](https://files.catbox.moe/0ez4g7.png) 411 + 1. 마지막으로 'Deploy' 버튼을 클릭하면, 끝! => API 를 사용하기 위한 도메인 주소를 확인하세요! 412 + 413 + </details> 414 + 415 + ## :sparkling_heart: 프로젝트 지원하기! 416 + 417 + 저는 가능한 모든 요소들을 오픈소스로 공개하고, 418 + 이 서비스를 이용하는데 도움이 필요한 모두에게 도움을 드리려 노력하고 있어요. 419 + 420 + 솔직히 말하자면, 시간이 좀 걸린답니다... 421 + 물론, 여러분이 이 서비스를 사용하는건 무료에요 ㅎ 422 + 423 + 하지만, 만약 여러분이 이 서비스를 잘 이용하시고, 424 + 만족하시거나, 제가 이런 요소들을 만드는 데에 도움을 주고 싶으시다면, 425 + 여러분께서 도와주실 수 있는 것들이 있어요! 426 + 427 + - github-readme-stats 를 README 에 표시하실 때 확실한 도움을 주세요! 이 저장소로 링크를 걸어주시면 되요! :D 428 + - 이 프로젝트를 많이 공유해주시고, 즐겨찾기 해주세요! :rocket: 429 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - PayPal 을 이용해 1회성 도네이션을 해주실 수 있어요. 아마도 전 ~~커피, 아... 아니~~ 차를 사서 마시겠죠? ㅎ; :tea: 430 + 431 + 감사합니다! :heart: 432 + 433 + --- 434 + 435 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 436 + 437 + 프로젝트에 대한 기여는 언제나 환영이에요! <3 438 + 439 + Made with :heart: and JavaScript.
+407
docs/readme_nl.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Krijg dynamisch gegenereerde GitHub statistieken op je readme's!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">Bekijk Demo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Rapporteer een Bug</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Vraag een nieuwe toepassing aan</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">Bevalt het project? <a href="https://www.paypal.me/anuraghazra">Doneer</a> om het te verbeteren! 59 + 60 + # Functionaliteiten 61 + 62 + - [GitHub Statistieken Kaart](#github-statistieken-kaart) 63 + - [GitHub Extra Pins](#github-extra-pins) 64 + - [Top Programmeertalen Kaart](#top-Programmeertalen-kaart) 65 + - [Wekelijkse Wakatime Statistieken](#wekelijkse-wakatime-statistieken) 66 + - [Thema\'s](#themas) 67 + - [Opmaak](#opmaak) 68 + - [Zelf deployen](#deploy-je-eigen-vercel-instatie) 69 + 70 + # GitHub Statistieken Kaart 71 + 72 + Kopieer en plak dit in je markdown content, zo simpel is het! 73 + 74 + Verander de waarde `?username=` naar jou gebruikersnaam. 75 + 76 + ```md 77 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 78 + ``` 79 + 80 + _Notitie: Beschikbare rangen zijn S+ (top 1%), S (top 25%), A++ (top 45%), A+ (top 60%), and B+ (iedereen). 81 + De waarden worden berekend met behulp van de zogeheten [cumulative distribution function](https://en.wikipedia.org/wiki/Cumulative_distribution_function) met de waardes van de commits, bijdragens, issues, sterren, PR's, volgers en eigen repositories. 82 + De implementatie hiervan kan bekijken op [src/calculateRank.js](../src/calculateRank.js)_ 83 + 84 + ### Verberg individueele statistieken 85 + 86 + Om specifieke statistieken te verbergen, kan je een `?hide=` query parameter toevogen, verdeeld met komma\'s. 87 + 88 + 89 + > Opties: `&hide=stars,commits,prs,issues,contribs` 90 + 91 + ```md 92 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 93 + ``` 94 + 95 + ### Voeg privé contributies toe aan totale commits. 96 + 97 + Je kan de hoeveelheid privé commits toevoegen aan je totale hoeveelheid commits door de query parameter `?count_private=true` te gebruiken. 98 + 99 + _Notitie: Als je dit project zelf deployt, zullen de privé contributies standaard toegevoegt worden aan je totaal, omdat anders je hoeveelheid privé contributies moet delen._ 100 + 101 + > Opties: `&count_private=true` 102 + 103 + ```md 104 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 105 + ``` 106 + 107 + ### Laat icoontjes zien 108 + 109 + Om icoontjes te gebruiken kan je `show_icons=true` gebruiken in de query parameter, zoals hier: 110 + 111 + ```md 112 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 113 + ``` 114 + 115 + ### Thema\'s 116 + 117 + Met ingebouwde thema\'s kan je het uiterlijk van de kaart aanpassen zonder enige [handmatige opmaak](#customization). 118 + 119 + Gebruik `?theme=THEME_NAME` parameters zo :- 120 + 121 + ```md 122 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 123 + ``` 124 + 125 + #### Alle ingeboude thema\'s :- 126 + 127 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 128 + 129 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Statestieken Thema's" width="600px"/> 130 + 131 + Je kan een preview van alle [beschikbare thema\'s](../themes/README.md) bekijken, of zie het [thema configuratie bestand](../themes/index.js) en **je kan aan nieuwe thema\'s bijdragen** als je dat leuk lijkt :D 132 + 133 + ### Opmaak 134 + 135 + Je kan het uiterlijk van je `Statistieken kaart` of `Repo kaart` aanpassen hoe je ook maar wilt met URL parameters. 136 + 137 + #### Veel gebruikte opties: 138 + 139 + - `title_color` - De kleur van de titel van de kaart _(hex kleur)_ 140 + - `text_color` - Tekst kleur _(hex kleur)_ 141 + - `icon_color` - Icoon kleuren, wanneer beschikbaar _(hex kleur)_ 142 + - `bg_color` - Achtergrond kleur van de kaart _(hex kleur)_ **of** een verloop van kleuren in het formaat van _graden,start,einde_ 143 + - `hide_border` - Verbergt de rand van de kaart _(boolean)_ 144 + - `theme` - Naam van het thema, kies uit [alle beschikbare thema\'s](../themes/README.md) 145 + - `cache_seconds` - Stel de cache header handmatig in _(min: 1800, max: 86400)_ 146 + - `locale` - Stel taal van de kaart in _(e.g. cn, de, es, etc.)_ 147 + 148 + ##### Kleurenverloop in bg_color (achtergrond kleur): 149 + 150 + Je kan meerdere komma verdeelde waarden in de bg_color optie geven om een kleurenverloop te creeëren, het formaat van het kleurenverloop is:- 151 + 152 + ``` 153 + &bg_color=GRADEN,KLEUR1,KLEUR2,KLEUR3...KLEUR10 154 + ``` 155 + 156 + > Notities i.v.b.m. cache: Repo kaarten hebben een standaard cache van 4 uur (14400 seconden) als de fork hoeveelheid en de star hoeveelheid minder is dan 1k, anders is het 2 uur (7200 seconden). Daarnaast ligt de cache vast aan een minimum van 2 uur en een maximum van 24 uur. 157 + 158 + #### Exclusieve opties voor Statistieken Kaart: 159 + 160 + - `hide` - Verbergt gespecificeerde items van de statistieken. _(komma gescheiden waardes)_ 161 + - `hide_title` - _(boolean)_ 162 + - `hide_rank` - _(boolean)_ 163 + - `show_icons` - _(boolean)_ 164 + - `include_all_commits` - Tel alle commits inplaats van alleen de commits van het huidige jaar _(boolean)_ 165 + - `count_private` - Tel privé commits mee _(boolean)_ 166 + - `line_height` - Stel de lijn-hoogte tussen text in _(nummer)_ 167 + - `custom_title` - Stel een aangepaste titel voor je kaart in 168 + 169 + #### Exclusieve opties voor Repo Kaart: 170 + 171 + - `show_owner` - Laat de eigenaar van de repo zien _(boolean)_ 172 + 173 + #### Exclusieve opties voor Programmeertaal Kaart: 174 + 175 + - `hide` - Verbergt specifieke talen van de kaart _(komma gescheiden waardes)_ 176 + - `hide_title` - _(boolean)_ 177 + - `layout` - Keuze voor de twee beschikbare layouts `default` & `compact` 178 + - `card_width` - Stelt de breedte van de kaart handmatig in. _(nummer)_ 179 + - `langs_count` - Laat meer talen op de kaart zien, waarde tussen 1-10, staat standaard op to 5 _(nummer)_ 180 + - `exclude_repo` - Verbergt specifieke repositories _(komma gescheiden waardes)_ 181 + - `custom_title` - Stelt een eigen titel voor de kaart in 182 + 183 + > :Waarschuwing: **Belangrijk:** 184 + > Namen van programmeertalen moeten worden geuri-escaped, zoals gespecificeerd in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 185 + > (Oftewel: `c++` moet `c%2B%2B` worden, `jupyter notebook` moet `jupyter%20notebook` worden, enzovoort...) 186 + > Zie [urlencoder.org](https://www.urlencoder.org/) om dit automatisch te doen. 187 + 188 + #### Exclusieve opties voor Wakatime Kaart: 189 + 190 + - `hide_title` - _(boolean)_ 191 + - `line_height` - Verandert de lijn hoogte tussen tekst _(nummer)_ 192 + - `hide_progress` - Verbergt de progressiebalk en het percentage _(boolean)_ 193 + - `custom_title` - Stelt een eigen titel voor de kaart in 194 + - `layout` - Schakel tussen de twee beschikbare lay-outs `default` en `compact` 195 + 196 + --- 197 + 198 + # GitHub Extra Pins 199 + 200 + GitHub extra pins geven je de mogelijkheid om meer dan 6 repositories op je profiel te pinnen, doormiddel van een GitHub readme profile. 201 + 202 + Joepie! Je bent niet langer aan 6 pins gelimiteerd! 203 + 204 + ### Gebruik 205 + 206 + Kopieer en plak deze code in je readme en verander de links. 207 + 208 + Eindpunt: `api/pin?username=anuraghazra&repo=github-readme-stats` 209 + 210 + ```md 211 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 212 + ``` 213 + 214 + ### Demo 215 + 216 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 217 + 218 + Gebruikt [show_owner](#customization) variabele om de repo\'s eigenaar toe te voegen 219 + 220 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 221 + 222 + # Top Programmeertalen Kaart 223 + 224 + De top programmeertalen kaart laat zien welke talen een GitHub gebruiker het meest gebruikt. 225 + 226 + _Notitie: Top programmeertalen wijzen niet op een vaardigheids niveau, het is puur een GitHub metriek over welke talen de meeste code op GitHub hebben. Het is een nieuwe funktie van github-readme-stats._ 227 + 228 + ### Gebruik 229 + 230 + Kopieer en plak deze code in je readme en verander de links. 231 + 232 + 233 + Eindpunt: `api/top-langs?username=anuraghazra` 234 + 235 + ```md 236 + [![Top Talen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 237 + ``` 238 + 239 + ### Verberg individueele repositories 240 + 241 + Je kan de parameter `?exclude_repo=repo1,repo2` gebruiken om individueele repositories te verbergen. 242 + 243 + ```md 244 + [![Top Talen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 245 + ``` 246 + 247 + ### Verberg individueele talen 248 + 249 + Je kan de `?hide=taal1,taal2` parameter gebruiken om individuele programmeer talen te verbergen. 250 + 251 + ```md 252 + [![Top Talen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 253 + ``` 254 + 255 + ### Laat meer programmeertalen zien 256 + 257 + Je kan de `&langs_count=` optie gebruiken om de hoeveelheid talen op je kaart groter en kleiner te maken. Geldige waardes zijn tussen de 1 en 10 (inclusief), en de standaard waarde is 5. 258 + 259 + ```md 260 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 261 + ``` 262 + 263 + ### Compacte Talen Kaart opmaak 264 + 265 + Je kan de `&layout=compact` optie gebruiken om het kaart ontwerp aan te passen. 266 + 267 + ```md 268 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 269 + ``` 270 + 271 + ### Demo 272 + 273 + [![Top programmeertalen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 274 + 275 + - Compacte opmaak 276 + 277 + [![Top programmeertalen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 278 + 279 + # Wekelijkse Wakatime Statistieken 280 + 281 + Verander de `?username=` waarde naar je [Wakatime](https://wakatime.com) gebruikersnaam. 282 + 283 + ```md 284 + [![willianrod's Wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 285 + ``` 286 + 287 + ### Demo 288 + 289 + [![willianrod's Wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 290 + 291 + [![willianrod's Wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 292 + 293 + --- 294 + 295 + ### Alle demos 296 + 297 + - Standaard 298 + 299 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 300 + 301 + - Verberg specifieke statestieken 302 + 303 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 304 + 305 + - Weergeef icoontjes 306 + 307 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 308 + 309 + - Voeg alle commits toe 310 + 311 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 312 + 313 + - Thema\'s 314 + 315 + Kies uit de [standaard thema\'s](#themes) 316 + 317 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 318 + 319 + - Kleurenverloop 320 + 321 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 322 + 323 + - Pas statistieken kaart aan 324 + 325 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 326 + 327 + - Stel je kaart locale (taal) in 328 + 329 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=es) 330 + 331 + - Pas repo kaart aan. 332 + 333 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 334 + 335 + - Top programmeertalen 336 + 337 + [![Top Programmeertalen](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 338 + 339 + - Wakatime kaart 340 + 341 + [![willianrod's Wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 342 + 343 + --- 344 + 345 + ### Kleine tip (Verstel de repo kaart z\'n positie) 346 + 347 + Meestal kan je de afbeeldingen niet naast elkaar zetten, op deze manier wel: 348 + 349 + ```md 350 + <a href="https://github.com/anuraghazra/github-readme-stats"> 351 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 352 + </a> 353 + <a href="https://github.com/anuraghazra/convoychat"> 354 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 355 + </a> 356 + ``` 357 + 358 + ## Deploy je eigen Vercel instatie 359 + 360 + #### [Check de stapsgewijze video tutorial door @codeSTACKr (In het Engels)](https://youtu.be/n6d4KHSKqGk?t=107) 361 + 362 + Sinds de GitHub API alleen maar 5k verzoeken per uur toestaat, zou mijn `https://github-readme-stats.vercel.app/api` mogelijk de rate limiet behalen. Als je het op je eigen Vercel server host, dan hoef je je nergens zorgen om te maken. Klik op de deploy knop om te beginnen! 363 + 364 + NOTITIE: Sinds [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) zouden we geen problemen meer moeten hebben de 5k verzoeken per uur, en verdere downtime :D 365 + 366 + [![Deploy naar Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 367 + 368 + <details> 369 + <summary><b>Versel deploy gids: 🔨 </b></summary> 370 + 371 + 1. Ga naar [vercel.com](https://vercel.com/) 372 + 2. Klik op `Log in` 373 + ![](https://files.catbox.moe/tct1wg.png) 374 + 3. Meld je aan met GitHub door op `Continue with GitHub` te klikken. 375 + ![](https://files.catbox.moe/btd78j.jpeg) 376 + 4. Log in op GitHub en sta toegang tot alle repositories toe, wanneer dat gevraagt wordt. 377 + 5. Fork deze repo 378 + 6. Ga terug naar je [Vercel dashboard](https://vercel.com/dashboard) 379 + 7. Selecteer `Import Project` 380 + ![](https://files.catbox.moe/qckos0.png) 381 + 8. Selecteer `Import Git Repository` 382 + ![](https://files.catbox.moe/pqub9q.png) 383 + 9. Selecteer root en hou alles zoals het is, voeg alleen je environment variable genaamd PAT_1 toe (Zoals hier late zien word), die beheert over een persoonlijke toegangs token (PAT), die je gemakklijk [hier](https://github.com/settings/tokens/new) gemakkelijk kan creeëren. (Laat alles zoals het is, noem het maar iets, mag alles zijn.) 384 + ![](https://files.catbox.moe/0ez4g7.png) 385 + 10. Klik deploy, en alles zou moeten werken. Zie je domein om de api te gebruiken! 386 + 387 + </details> 388 + 389 + ## :sparkling_heart: Ondersteun het project 390 + 391 + Ik maak bijna alles open-source wat ik kan, en ik probeer iedereen te helpen die deze projecten gebruiken. Natuurlijk kost dit tijd, je mag deze services gratis gebruiken. 392 + 393 + Hoe dan ook, als je dit project gebruikt en er blij mee bent, of mij wilt aanmoedigen om dingen te blijven maken, zijn er een paar manieren om dit te doen; - 394 + 395 + - Credits geven aan github-readme-stats op je readme, die terug naar het project linkt :D 396 + - Sterren en delen van het project :rocket: 397 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Je kan eenmalig giften via PayPal, ik koop er waarschijnlijk ~~koffie~~ thee van. :tea: 398 + 399 + Bedankt! :heart: 400 + 401 + --- 402 + 403 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 404 + 405 + Contributies zijn welkom! <3 406 + 407 + Gemaakt met :heart: en JavaScript.
+403
docs/readme_np.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">पहुनु होस् द्य्नामिचल्ली गेनेरटे गितहब रेअडमी सतत </p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">डेमो हेर्नुहोस्</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">रिपोर्ट बग</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">अनुरोध सुविधा</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + · 53 + <a href="/docs/readme_np.md">नेपाली</a> 54 + </p> 55 + </p> 56 + <p align="center">परियोजना मनपर्‍यो? तपाईं मद्दत गर्न सक्नुहुन्छ <a href="https://www.paypal.me/anuraghazra">यो परियोजना</a> बढ्न 57 + 58 + # विशेषताहरु 59 + 60 + - [गितहब स्टेट कार्ड](#गितहब-स्टेट-कार्ड) 61 + - [गितहब अतिरिक्त पिन्स](#गितहब-अतिरिक्त-पिन्स) 62 + - [टोप भाषा कार्ड](#टोप-भाषा-कार्ड) 63 + - [वाका समय वीक स्तट्स ](#वाका-समय-वीक-स्तट्स ) 64 + - [विषयवस्तुहरू](#विषयवस्तुहरू) 65 + - [अनुकूलन](#अनुकूलन) 66 + - [आफैलाई तैनाथ गर्नुहोस्](#देप्लोय-आफ्नै-वेर्चेल-इन्स्तंस ) 67 + 68 + # गितहब स्टेट कार्ड 69 + 70 + Copy-paste this into your markdown content, and that's it. Simple! 71 + 72 + Change the `?username=` value to your GitHub's username. 73 + 74 + ```md 75 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 76 + ``` 77 + 78 + _Note: Ranks are calculated based on user's stats, see [src/calculateRank.js](./src/calculateRank.js)_ 79 + 80 + ### लुकाउनु होस् व्यक्तिगत स्टेट 81 + 82 + To hide any specific stats, you can pass a query parameter `?hide=` with comma-separated values. 83 + 84 + > Options: `&hide=stars,commits,prs,issues,contribs` 85 + 86 + ```md 87 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 88 + ``` 89 + 90 + ### जोड्नु होस् निजी टोटल योगदान 91 + 92 + You can add the count of all your private contributions to the total commits count by using the query parameter `?count_private=true`. 93 + 94 + _Note: If you are deploying this project yourself, the private contributions will be counted by default otherwise you need to chose to share your private contribution counts._ 95 + 96 + > Options: `&count_private=true` 97 + 98 + ```md 99 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 100 + ``` 101 + 102 + ### देखाउनु होस् इकोन 103 + 104 + To enable icons, you can pass `show_icons=true` in the query param, like so: 105 + 106 + ```md 107 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 108 + ``` 109 + 110 + ### विषयवस्तुहरू 111 + 112 + With inbuilt themes, you can customize the look of the card without doing any [manual customization](#customization). 113 + 114 + Use `?theme=THEME_NAME` parameter like so :- 115 + 116 + ```md 117 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 118 + ``` 119 + 120 + #### सबै इनबिल्ट विषयवस्तु :- 121 + 122 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 123 + 124 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 125 + 126 + 127 + तपैले सबै थेम्सहरु प्रेविउ गर्न सक्नु हुनेछ । [all available themes](./themes/README.md) नत्र थेम्सहरुको config [theme config file](./themes/index.js) पनि हेर्न सक्नु हुनेछ र **थेम्सहरुमा योगदान पनि गर्नु सक्नु हुनेछ** :D । 128 + 129 + ### अनुकूलन 130 + 131 + तपैले `Stats Card` or `Repo Card` को अपपेअरंस कस्टमेज गर्न सक्नु हुनेछ जसमा तपैले URL params पनि प्रयोग गर्नु सक्नु हुनेछ । 132 + 133 + #### साधारण विकल्पहरू: 134 + 135 + - `title_color` - Card's title color _(hex color)_ 136 + - `text_color` - Body text color _(hex color)_ 137 + - `icon_color` - Icons color if available _(hex color)_ 138 + - `bg_color` - Card's background color _(hex color)_ **or** a gradient in the form of _angle,start,end_ 139 + - `hide_border` - Hides the card's border _(boolean)_ 140 + - `theme` - name of the theme, choose from [all available themes](./themes/README.md) 141 + - `cache_seconds` - set the cache header manually _(min: 1800, max: 86400)_ 142 + - `locale` - set the language in the card _(e.g. cn, de, es, etc.)_ 143 + 144 + ##### Gradient in bg_color 145 + 146 + You can provide multiple comma-separated values in bg_color option to render a gradient, the format of the gradient is :- 147 + 148 + ``` 149 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 150 + ``` 151 + 152 + > Note on cache: Repo cards have a default cache of 4 hours (14400 seconds) if the fork count & star count is less than 1k, otherwise, it's 2 hours (7200 seconds). Also, note that the cache is clamped to a minimum of 2 hours and a maximum of 24 hours 153 + 154 + #### Stats कार्ड विशेष विकल्पहरू: 155 + 156 + - `hide` - Hides the specified items from stats _(Comma-separated values)_ 157 + - `hide_title` - _(boolean)_ 158 + - `hide_rank` - _(boolean)_ 159 + - `show_icons` - _(boolean)_ 160 + - `include_all_commits` - Count total commits instead of just the current year commits _(boolean)_ 161 + - `count_private` - Count private commits _(boolean)_ 162 + - `line_height` - Sets the line-height between text _(number)_ 163 + - `custom_title` - Sets a custom title for the card 164 + 165 + #### Repo कार्ड विशेष विकल्पहरू: 166 + 167 + - `show_owner` - Show the owner name of the repo _(boolean)_ 168 + 169 + #### भाषा कार्ड अनन्य विकल्पहरू : 170 + 171 + - `hide` - Hide the languages specified from the card _(Comma-separated values)_ 172 + - `hide_title` - _(boolean)_ 173 + - `layout` - Switch between two available layouts `default` & `compact` 174 + - `card_width` - Set the card's width manually _(number)_ 175 + - `langs_count` - Show more languages on the card, between 1-10, defaults to 5 _(number)_ 176 + - `exclude_repo` - Exclude specified repositories _(Comma-separated values)_ 177 + - `custom_title` - Sets a custom title for the card 178 + 179 + > :warning: **Important:** 180 + > Language names should be uri-escaped, as specified in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 181 + > (i.e: `c++` should become `c%2B%2B`, `jupyter notebook` should become `jupyter%20notebook`, etc.) 182 + 183 + #### वकासमय कार्ड विशेष विकल्प: 184 + 185 + - `hide_title` - _(boolean)_ 186 + - `line_height` - Sets the line-height between text _(number)_ 187 + - `hide_progress` - Hides the progress bar and percentage _(boolean)_ 188 + - `custom_title` - Sets a custom title for the card 189 + 190 + --- 191 + 192 + # गितहब अतिरिक्त पिन्स 193 + 194 + GitHub extra pins allow you to pin more than 6 repositories in your profile using a GitHub readme profile. 195 + 196 + GitHub फाल्तु पिनले तपाइँलाए GitHub रीडमी प्रोफाइल प्रयोग गरी तपाइँको प्रोफाइलमा छ ओटा भन्दा बढि प्रोजेक्टहरु पिन गर्न अनुमति दिन्छ । 197 + 198 + हो! तपाईं अब pin पिन गरीएको छ ओटा प्रोजेक्ट सीमित हुनुहुन्छ । 199 + 200 + ### प्रयोग 201 + 202 + कोदलाए कपी- पेसेत readme मा गर्नु होला र लिंक परिवतन गर्नु होला | 203 + 204 + Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` 205 + 206 + ```md 207 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 208 + ``` 209 + 210 + ### डेमो 211 + 212 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 213 + 214 + Use [show_owner](#customization) variable to include the repo's owner username 215 + 216 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 217 + 218 + # टोप भाषा कार्ड 219 + 220 + टोप भाषाकार्डले github परयोग गर्नेहरुको प्रोग्रम्मिंग भाषाहरु देखाऊने गर्दछ |. 221 + 222 + _NOTE: टोप भाषाहरुले आफ्नो सिपलाए संकेत गरेको होईन | योचै Github Metricबाट धेरै कुन भाषा परयोग भाकोलाए संकेत गरेको हो | 223 + ### प्रयोग 224 + 225 + कोदलाए कपी- पेसेत readme मा गर्नु होला र लिंक परिवतन गर्नु होला | 226 + 227 + Endpoint: `api/top-langs?username=anuraghazra` 228 + 229 + ```md 230 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 231 + ``` 232 + 233 + ### Exclude individual repositories 234 + 235 + You can use `?exclude_repo=repo1,repo2` parameter to exclude individual repositories. 236 + 237 + ```md 238 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 239 + ``` 240 + 241 + ### कुनै भाषा चुपौनॆ तरिका 242 + 243 + You can use `?hide=language1,language2` parameter to hide individual languages. 244 + 245 + ```md 246 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 247 + ``` 248 + 249 + ### धेरॆ भाषाहरु हेर्नको लागि 250 + 251 + You can use the `&langs_count=` option to increase or decrease the number of languages shown on the card. Valid values are integers between 1 and 10 (inclusive), and the default is 5. 252 + 253 + ```md 254 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 255 + ``` 256 + 257 + ### कम्प्याक्ट भाषा कार्ड ळयोउत 258 + 259 + तपाइले `&layout=compact` ओप्तिओनपनि कार्ड देसिग्न को लागि परहयोग गर्न सक्नु हुन्क्ष 260 + 261 + ```md 262 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 263 + ``` 264 + 265 + ### डेमो 266 + 267 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 268 + 269 + - Compact layout 270 + 271 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 272 + 273 + # वाका समय वीक स्तट्स 274 + 275 + Change the `?username=` value to your [Wakatime](https://wakatime.com) username. 276 + 277 + ```md 278 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 279 + ``` 280 + 281 + ### डेमो 282 + 283 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 284 + 285 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 286 + 287 + --- 288 + 289 + ### सबै डेमोहरु 290 + 291 + - देफौल्ट 292 + 293 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 294 + 295 + - हिदिंग स्पेचific स्तट्स 296 + 297 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 298 + 299 + - इकोनहरु शो गर्ने 300 + 301 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 302 + 303 + - सबै कमितहरु 304 + 305 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 306 + 307 + - थेम्स 308 + 309 + कुनै एउटा चोज गर्नुस [default themes](#themes) 310 + 311 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 312 + 313 + - घ्रदिएन्त 314 + 315 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 316 + 317 + - स्तत्स कार्ड लाए कस्तोमेज गर्ने 318 + 319 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 320 + 321 + - सेत्तिंग कार्ड लोचले 322 + 323 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=es) 324 + 325 + - रेपो कार्डलाई एडित गर्नु 326 + 327 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 328 + 329 + - टोप भाषा 330 + 331 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 332 + 333 + - वक समय कार्ड 334 + 335 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 336 + 337 + --- 338 + 339 + ### टिप् (रेपो कार्डलाए अलिग्न गर्ने ) 340 + 341 + तपाइले इमेजलाई सइद बय सइद अलीग्न गर्न सक्नु हुदैन तेसैले येसरी गर्नु होस् : 342 + 343 + ```md 344 + <a href="https://github.com/anuraghazra/github-readme-stats"> 345 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 346 + </a> 347 + <a href="https://github.com/anuraghazra/convoychat"> 348 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 349 + </a> 350 + ``` 351 + 352 + ## देप्लोय आफ्नै वेर्चेल इन्स्तंस 353 + 354 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 355 + 356 + गितहब को अपिएले पाच हजार रेक़ुएस्त प्रति घण्टा मात्र मिल्क्ष । मेरो 357 + `https://github-readme-stats.vercel.app/api` प्रोजेक्ट मा रेत् लिमिट हुन सक्क्ष । तर तपाइले आफ्नै वेर्चेल सेर्वेर मा होस्ट गर्नु बाको छ बने यो प्रोब्लेम हुदैन। 358 + होस्ट गर्ने तरिका यस पकारका षन । 359 + 360 + NOTE: Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) we should be able to handle more than 5k requests and have no issues with downtime :D 361 + 362 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 363 + 364 + <details> 365 + <summary><b> Guide on setting up Vercel 🔨 </b></summary> 366 + 367 + 1. Go to [vercel.com](https://vercel.com/) 368 + 1. Click on `Log in` 369 + ![](https://files.catbox.moe/tct1wg.png) 370 + 1. Sign in with GitHub by pressing `Continue with GitHub` 371 + ![](https://files.catbox.moe/btd78j.jpeg) 372 + 1. Sign into GitHub and allow access to all repositories, if prompted 373 + 1. Fork this repo 374 + 1. Go back to your [Vercel dashboard](https://vercel.com/dashboard) 375 + 1. Select `Import Project` 376 + ![](https://files.catbox.moe/qckos0.png) 377 + 1. Select `Import Git Repository` 378 + ![](https://files.catbox.moe/pqub9q.png) 379 + 1. Select root and keep everything as is, just add your environment variable named PAT_1 (as shown), which will contain a personal access token (PAT), which you can easily create [here](https://github.com/settings/tokens/new) (leave everything as is, just name it something, it can be anything you want) 380 + ![](https://files.catbox.moe/0ez4g7.png) 381 + 1. Click deploy, and you're good to go. See your domains to use the API! 382 + 383 + </details> 384 + 385 + ## :sparkling_heart: सहपोर्ट द प्रोजेक्ट 386 + 387 + म सके सम्म आफ्नो प्रोजेक्ट हरु ओपेन्सोउर्चे गर्छु र अरु ले पनि सहयोग गर्क्षु । मेले सहयोग गर्दा आफ्नो समय पनि देरै ने दिन्क्षु । तपाइहरु ले यो सेर्विचेस फ्री मा चलाउनु सक्नु हुनेक्ष । 388 + 389 + येदि तपाइले यो प्रोजेक्ट चलाउनु बाकोक्ष बने र मलाई अझै प्रसंसा गर्ने हो बने तपाइले थुप्रै तरिका ले गर्नु सक्नु हुने छ :- 390 + 391 + - यो प्रोजेक्टमा तपाइले प्रहयोग गर्दा मलाई क्रेडिट दिन सक्नु हुनेक्ष । 392 + - तपाइले Github ReadMe Stats स्तार्रेड गर्न सक्नु हुनेक्ष :rocket: 393 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - तपाइले पेपाल बाट पनि सहयोग (डक्क्षिन) गर्न सक्नु हुनेक्ष | म ~~कोफी ~~ चिया . :tea: किन्न सक्क्षु । 394 + 395 + धन्याबाद! :heart: 396 + 397 + --- 398 + 399 + ![https://vercel.com](https://res.cloudinary.com/anuraghazra/image/upload/v1597827714/powered-by-vercel_1_ug4uro.svg) 400 + 401 + योगधन को लागी स्वगत छ! <3 402 + 403 + जाभास्क्रिप्ट बाटा बनको :heart:
+357
docs/readme_pt-BR.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Adicione suas estatísticas no GitHub geradas dinamicamente em seus readmes!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Testes aprovados" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Apoiado%20por-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Apoiado%20por-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">Ver demonstração</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Reportar erros</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Solicitar recursos</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français</a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + </p> 57 + </p> 58 + <p align="center">Gostou do projeto? Por favor considere <a href="https://www.paypal.me/anuraghazra">fazer uma doação</a> para ajudar a melhorá-lo! 59 + 60 + # Características 61 + 62 + - [Cartão de estatísticas do GitHub](#cartão-de-estatísticas-do-github) 63 + - [Pins extras do GitHub](#pins-extras-do-github) 64 + - [Cartão de principais linguagens de programação](#cartão-de-principais-linguagens-de-programação) 65 + - [Estatística semanal Wakatime](#estatística-semanal-wakatime) 66 + - [Temas](#temas) 67 + - [Personalização](#personalização) 68 + - [Faça suas próprias implantações](#implante-em-sua-própria-instância-do-vercel) 69 + 70 + # Cartão de estatísticas do GitHub 71 + 72 + Copie e cole isso no seu conteúdo de remarcação e é isso. Simples! 73 + 74 + Mude o valor de `?username=` para o seu nome de usuário no GitHub. 75 + 76 + ```md 77 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 78 + ``` 79 + 80 + _Nota: As classificações são baseadas nas estatísticas do usuário, veja [src/calculateRank.js](../src/calculateRank.js)_ 81 + 82 + ### Ocultando estatísticas específicas 83 + 84 + Para ocultar estatísticas individualmente, você pode passar um parâmetro de consulta `?hide=` com valores separados por vírgula. 85 + 86 + > Opções: `&hide=stars,commits,prs,issues,contribs` 87 + 88 + ```md 89 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 90 + ``` 91 + 92 + ### Adicionando contagem de contribuições privadas à contagem total de commits 93 + 94 + Adicione a contagem de todas as suas contribuições privadas à contagem total de confirmações usando o parâmetro de consulta `?count_private=true`. 95 + 96 + _Nota: Se você estiver implantando este projeto, as contribuições privadas serão contadas por padrão; caso contrário, você precisará compartilhar suas contagens de contribuições privadas._ 97 + 98 + > Opções: `&count_private=true` 99 + 100 + ```md 101 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 102 + ``` 103 + 104 + ### Exibindo ícones 105 + 106 + Para habilitar ícones, basta utilizar o parâmetro `show_icons=true` na sua requisição, da seguinte forma: 107 + 108 + ```md 109 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 110 + ``` 111 + 112 + ### Temas 113 + 114 + Com temas predefinidos, pode personalizar a aparência dos cartões sem precisar fazer nenhuma [configuração manual](#personalização). 115 + 116 + Utilize o parâmetro `?theme=THEME_NAME`, da seguinte forma: 117 + 118 + ```md 119 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 120 + ``` 121 + 122 + #### Todos os temas predefinidos : 123 + 124 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 125 + 126 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Themes" width="600px"/> 127 + 128 + Visualize [todos o temas disponíveis](../themes/README.md) ou o [arquivo de configuração de tema](../themes/index.js), além de **também poder contribuir com novos temas**, se desejar :D 129 + 130 + ### Personalização 131 + 132 + Personalize a aparência do seu `Stats Card` ou `Repo Card` da maneira que desejar com os parâmetros de URL. 133 + 134 + #### Opções comuns 135 + 136 + - `title_color` - Cor do título do cartão _(hex color)_ 137 + - `text_color` - Cor de texto do conteúdo _(hex color)_ 138 + - `icon_color` - Cor dos ícones (se disponível) _(hex color)_ 139 + - `bg_color` - Cor de fundo do cartão _(hex color)_ 140 + - `hide_border` - Esconde a borda do cartão _(boleano)_ 141 + - `theme` - Nome do tema, escolha em [todos os temas disponíveis](../themes/README.md) 142 + - `cache_seconds` - Defina o cabeçalho do cache manualmente _(min: 1800, max: 86400)_ 143 + - `locale` - defina o idioma no cartão _(por exemplo. cn, de, es, etc.)_ 144 + 145 + > Nota sobre o cache: Cartões de repositório tem um cache padrão de 30 minutos (1800 segundos), se o número a contagem de forks e contagem de estrelas é menor que 1 mil o padrão é 2 horas (7200). Note também que o cache é limitado a um mínimo de 30 minutos e um máximo de 24 horas. 146 + 147 + #### Opções exclusivas do cartão de estatísticas: 148 + 149 + - `hide` - Oculta itens específicos das estatísticas _(Valores separados por vírgulas)_ 150 + - `hide_title` - Ocutar o título _(boolean)_ 151 + - `hide_rank` - Ocultar a classificação _(boolean)_ 152 + - `show_icons` - Mostrar ícones _(boolean)_ 153 + - `include_all_commits` - Contabiliza todos os commits ao invés de apenas os atual ano _(boolean)_ 154 + - `count_private` - Contabiliza commits privados _(boolean)_ 155 + - `line_height` - Define a altura do espaçamento entre o texto _(number)_ 156 + 157 + #### Opções exclusivas do cartão de repositórios: 158 + 159 + - `show_owner` - Exibir o nome da pessoa a quem o repositório pertence _(boolean)_ 160 + 161 + #### Opções exclusivas do cartão de linguagens: 162 + 163 + - `hide` - Oculta linguagens específicas _(Valores separados por vírgulas)_ 164 + - `hide_title` - Oculta o título _(boolean)_ 165 + - `layout` - Alterna entre os dois layouts disponíveis `default` & `compact` 166 + - `card_width` - Define a largura do cartão manualmente _(number)_ 167 + 168 + > :warning: **Importante:** 169 + > Nomes de linguagens devem ser uma sequência escapada de URI, como específicado em [Codificação por cento](https://pt.wikipedia.org/wiki/Codificação_por_cento) 170 + > (Isso é: `c++` deve se tornar `c%2B%2B`, `jupyter notebook` deve se tornar `jupyter%20notebook`, etc.) 171 + 172 + --- 173 + 174 + # Pins extras do GitHub 175 + 176 + Os Pins extras do GitHub permitem fixar mais de 6 repositórios no seu perfil usando um perfil README.me do GitHub. 177 + 178 + Uhu! Você não está mais limitado a 6 repositórios fixados. 179 + 180 + ### Utilização 181 + 182 + Copie e cole esse código no seu README.md e altere os atributos. 183 + 184 + Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` 185 + 186 + ```md 187 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 188 + ``` 189 + 190 + ### Demonstração 191 + 192 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 193 + 194 + Utilize a variável [show_owner](#personalização) para incluir o nome de usuário do proprietária do repositório 195 + 196 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 197 + 198 + # Cartão de principais linguagens de programação 199 + 200 + Exibe uma métrica de linguagens de programação mais usadas pelo usuário do GitHub. 201 + 202 + _Nota: As principais linguagens de programação não fazem declarações sobre habilidades pessoais ou similares, é apenas uma figura-chave com base nas estatísticas do GitHub do usuário indicando a frequência com que cada uma foi utilizada._ 203 + 204 + ### Utilização 205 + 206 + Copie e cole esse código no seu README.md e altere os atributos. 207 + 208 + Endpoint: `api/top-langs?username=anuraghazra` 209 + 210 + ```md 211 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 212 + ``` 213 + 214 + ### Ocultar linguagens individualmente 215 + 216 + Utilize o parâmetro `?hide=language1,language2` para ocultar linguagens específicas. 217 + 218 + ```md 219 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 220 + ``` 221 + 222 + ### Layout de cartão de linguagens compacto 223 + 224 + Utilize a opção `&layout=compact` para mudar o layout do cartão. 225 + 226 + ```md 227 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 228 + ``` 229 + 230 + ### Demonstração 231 + 232 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 233 + 234 + - Layout compacto 235 + 236 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 237 + 238 + # Estatística semanal Wakatime 239 + 240 + Altere o valor de `?username=` para o seu username do Wakatime. 241 + 242 + ```md 243 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 244 + ``` 245 + 246 + ### Demonstração 247 + 248 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 249 + 250 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 251 + 252 + --- 253 + 254 + 255 + 256 + ### Todas as demonstrações 257 + 258 + - Padronizado 259 + 260 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 261 + 262 + - Ocultando estatísticas específicas 263 + 264 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 265 + 266 + - Mostrando ícones 267 + 268 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 269 + 270 + - Incluir todos os commits 271 + 272 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 273 + 274 + - Temas 275 + 276 + Escolha entre um dos [temas predefinidos](#temas) 277 + 278 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 279 + 280 + - Personalizando o cartão de estatísticas 281 + 282 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 283 + 284 + - Customizando o cartão de repositório 285 + 286 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 287 + 288 + - Principais linguagens 289 + 290 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 291 + 292 + --- 293 + 294 + ### Dica (Alinhandos os cartões de repositório) 295 + 296 + Por padrão, você não poderá organizar as imagens lado a lado. Para fazer isso, você pode usar a seguinte abordagem: 297 + 298 + ```md 299 + <a href="https://github.com/anuraghazra/github-readme-stats"> 300 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 301 + </a> 302 + <a href="https://github.com/anuraghazra/convoychat"> 303 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 304 + </a> 305 + ``` 306 + 307 + ## Implante em sua própria instância do Vercel 308 + 309 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 310 + 311 + Como a API do GitHub permite apenas 5 mil solicitações por hora, é possível que minha `https://github-readme-stats.vercel.app/api` atinja a cota limite. Se hospedar em seu próprio servidor Vercel, não precisará se preocupar com nada. Clique no botão de implantação para começar! 312 + 313 + Nota: Desde [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) há possibilidade de lidar com mais de 5 mil chamadas por hora, sem interrupções :D 314 + 315 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 316 + 317 + <details> 318 + <summary>Guia de configuração do Vercel</summary> 319 + 320 + 1. Acesse [vercel.com](https://vercel.com/) 321 + 1. Clique em `Login` 322 + ![](https://files.catbox.moe/tct1wg.png) 323 + 1. Acesse com o GitHub clicando em `Continue with GitHub` 324 + ![](https://files.catbox.moe/btd78j.jpeg) 325 + 1. Entre no GitHub e permita acesso a todos os repositórios, se solicitado 326 + 1. Faça Fork neste repositório 327 + 1. Volte ao seu [painel principal do Vercel](https://vercel.com/dashboard) 328 + 1. Selecione `Import Project` 329 + ![](https://files.catbox.moe/qckos0.png) 330 + 1. Selecione `Import Git Repository` 331 + ![](https://files.catbox.moe/pqub9q.png) 332 + 1. Selecione a raiz e mantenha tudo como está, basta adicionar sua variável de ambiente chamada PAT_1 (que será exibida), que conterá um token de acesso pessoal (PAT), que você pode criar facilmente [aqui](https://github.com/settings/tokens/new) (deixe tudo como está, apenas dê um nome, que pode ser o que você quiser) 333 + ![](https://files.catbox.moe/0ez4g7.png) 334 + 1. Clique em `deploy` e já estará tudo pronto. Veja seus domínios para usar a API! 335 + 336 + </details> 337 + 338 + ## :sparkling_heart: Apoie o projeto 339 + 340 + Disponibilizo como código aberto quase tudo o que posso e tento responder a todos que precisam de ajuda para utilizar esses projetos. Claro, 341 + isso demanda tempo. Utilize este serviço gratuitamente. 342 + 343 + No entanto, se você utilizar este projeto e estiver satisfeito com ele, ou apenas quiser me encorajar a continuar criando coisas, existem algumas formas fazê-lo: 344 + 345 + - Dando os devidos créditos ao usar github-readme-stats no seu README.me, adicionando uma referência ao projeto :D 346 + - Dando uma estrela (Starring) e compartilhando o projeto 🚀 347 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - Você pode fazer doações únicas via PayPal. Provavelmente vou comprar um ~~café~~ chá. :tea: 348 + 349 + Obrigado! :heart: 350 + 351 + --- 352 + 353 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 354 + 355 + Contribuições são bem-vindas! <3 356 + 357 + Feito com :heart: e JavaScript.
+417
docs/readme_tr.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Readme'lerinizde dinamik olarak oluşturulmuş GitHub istatistikleri alın!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">Demo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Hata İlet</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Özellik Talep Et</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + . 57 + <a href="/docs/readme_tr.md">Türkçe</a> 58 + </p> 59 + </p> 60 + <p align="center">Projeyi sevdiniz mi? Daha da gelişmesi için lütfen <a href="https://www.paypal.me/anuraghazra">bağış</a> yapın! 61 + 62 + # Features 63 + 64 + - [GitHub İstatistikler Kartı](#github-istatistikler-kartı) 65 + - [GitHub Ekstra Pinler](#github-ekstra-pinler) 66 + - [En Çok Kullanılan Diller](#en-çok-kullanılan-diller) 67 + - [Wakatime Haftalık İstatistikler](#wakatime-haftalık-istatistikler) 68 + - [Temalar](#temalar) 69 + - [Özelleştirmeler](#özelleştirmeler) 70 + - [Yayınlayın](#yayınlayın) 71 + 72 + # GitHub İstatistikler Kartı 73 + 74 + Alt kısımdaki kodu Kopyalayın ve yapıştırın. İşte bu kadar. Çok basit! 75 + 76 + `?username=` değerini kendi Github kullanıcı adınız ile değiştirin. 77 + 78 + ```md 79 + [![Anurag'nın Github İstatistikleri](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 80 + ``` 81 + _Not: Şu sıralamalar mevcut: S+ (en üst 1%), S (en üst 25%), A++ (en üst 45%), A+ (en üst 60%), and B+ (herkes). 82 + Buradaki değerler [cumulative distribution function](https://en.wikipedia.org/wiki/Cumulative_distribution_function) ile hesaplanırken; commitler, katkılar, hatalar, yıldızlar, çekme istekleri, takipçiler ve sahip olunan depolar (repository) göz önünde bulundurulamaktadır. 83 + Uygulamanın yapısı [src/calculateRank.js](./src/calculateRank.js)'te daha detaylı incelenebilir._ 84 + 85 + ### Bazı İstatitistikleri Gizleme 86 + 87 + Bazı belirli istatistikleri gizlemek için `?hide=` paremetresi içerisinde virgülle ayırarak gönderebilirsiniz. 88 + 89 + > Örnek: `&hide=stars,commits,prs,issues,contribs` 90 + 91 + ```md 92 + ![mustafacagri's github stats](https://github-readme-stats.vercel.app/api?username=mustafacagri&hide=contribs,prs) 93 + ``` 94 + 95 + ### Özel Katkı Sayısını Toplam Commit Sayısına Ekleme 96 + 97 + Özel (private) olarak geliştirdiğiniz depolardaki commit sayınızı toplam commit sayınız içerisinde göstermek istiyorsanız `?count_private=true` parametresini gönderebilirsiniz. 98 + 99 + _Not: Eğer projeyi kendiniz yayınlayıp kullanacaksanız, özel depolardaki geliştirmelerinizin sayısını varsayılan olarak toplam commit sayınız içerisinde gösterilecektir. Aksi taktirde özel depolardaki katkı sayınızı paylaşmayı ayrıca seçmeniz gerekecektir. 100 + 101 + > Örnek: `&count_private=true` 102 + 103 + ```md 104 + ![mustafacagri's github stats](https://github-readme-stats.vercel.app/api?username=mustafacagri&count_private=true) 105 + ``` 106 + 107 + ### İkonları Göstermek 108 + 109 + Eğer ikonları göstermek istiyorsanız, `show_icons=true` parametresini göndermeniz gerekmektedir. Örnek olarak: 110 + 111 + ```md 112 + ![mustafacagri's github stats](https://github-readme-stats.vercel.app/api?username=mustafacagri&show_icons=true) 113 + ``` 114 + 115 + ### Temalar 116 + 117 + Dahili olarak gelen temalarla, herhangi bir [manuel özelleştirme](#özelleştirmeler) yapmadan kartın görünümünü özelleştirebilirsiniz. 118 + 119 + `?theme=THEME_NAME` parametresini kullanabilirsiniz: 120 + 121 + ```md 122 + ![mustafacagri's github stats](https://github-readme-stats.vercel.app/api?username=mustafacagri&show_icons=true&theme=radical) 123 + ``` 124 + 125 + #### Tüm Dahili Temalar :- 126 + 127 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 128 + 129 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stat Temaları" width="600px"/> 130 + 131 + Önizleme yapmak için şuralara göz atabilirsiniz: [tüm dahili temalar](./themes/README.md) veya [tema ayar dosyası](./themes/index.js) & **ayrıca siz de yeni bir tema oluşturarak katkı sağlayabilirsiniz** elbette isterseniz :D 132 + 133 + ### Özelleştirmeler 134 + 135 + 136 + `Stats Card` ya da `Repo Card` görüntünüzü istediğiniz gibi şu parametreler ile değiştirebilirsiniz: 137 + 138 + #### Yaygın Seçenekler: 139 + 140 + - `title_color` - Kart başlığı rengi _(hex color / hex rengi)_ 141 + - `text_color` - İçerik rengi _(hex color / hex rengi)_ 142 + - `icon_color` - Mümkünse ikon rengi _(hex color / hex rengi)_ 143 + - `bg_color` - Kartın arkaplan rengi _(hex color / hex rengi)_ **ya da** gradient şeklinde _açı,başlangıç,bitiş_ 144 + - `hide_border` - Kartın çerçevelerini gizler _(boolean)_ 145 + - `theme` - Temanın rengi [tüm temalar](./themes/README.md) 146 + - `cache_seconds` - Manuel olarak cache'i belirleyebilirsiniz _(en az: 1800, en fazla: 86400)_ 147 + - `locale` - Karttaki dili seçebilirsiniz _(örneğin; tr, cn, de, es, vb.)_ 148 + 149 + ##### bg_color'da Gradient 150 + 151 + bg_color içerisinde birden fazla rengi gradient olarak göstermek için virgülle ayırarak kullanabilirsiniz. Gradient kullanımı için örnek format: 152 + 153 + ``` 154 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 155 + ``` 156 + 157 + > Cache Hakkında: Repo kartında fork ve yıldız sayısı 1.000'den küçükse varsayılan cache süresi 4 saat yani 14400 saniyedir. 1.000'den büyükse 2 saat yani 7200 saniyedir. Ayrıca, önbelleğin minimum 2 ve maksimum 24 saate sabitlendiğini unutmayın. 158 + 159 + #### İstatistik Karları Exclusive Özellikler: 160 + 161 + - `hide` - Spesifik özellikleri istatistiklerden gizleyebilirsiniz. _(Virgül ile ayırılmış değerlerle)_ 162 + - `hide_title` - _(boolean)_ 163 + - `hide_rank` - _(boolean)_ Sıralamayı gizler ve kartın genişliğini otomatik olarak tekrar düzenler 164 + - `show_icons` - _(boolean)_ 165 + - `include_all_commits` - _(boolean)_ Sadece bu yılın değil tüm zamanlarda yaptığınız commit sayısını gösterir 166 + - `count_private` - _(boolean)_ Özel depolarda yaptığınız commitleri gösterir 167 + - `line_height` - _(number)_ Satır arası yüksekliği belirler 168 + - `custom_title` - Kart için istediğiniz bir başlığı belirler 169 + - `disable_animations` - _(boolean)_ Kart içerisindeki tüm animasyonları kapatır 170 + 171 + #### Repo Kartları Exclusive Özellikler: 172 + 173 + - `show_owner` - _(boolean)_ Reponun sahibinin ismini gösterir 174 + 175 + #### Dil Kartları Exclusive Özellikler: 176 + 177 + - `hide` - Belirli bir dili listede gizler _(Virgül ile ayırılmış değerlerle)_ 178 + - `hide_title` - _(boolean)_ 179 + - `layout` - Uygun olan iki tasarım / layout arasında değişiklik yapar `default` & `compact` 180 + - `card_width` - Kartın genişliğini manuel olarak belirler _(number)_ 181 + - `langs_count` - 1-10 arasında istediğiniz kadar dil gösterebilirsiniz. Varsayılan: 5 _(number)_ 182 + - `exclude_repo` - Belirli repoları listeden çıkartır _(Virgül ile ayırılmış değerlerle)_ 183 + - `custom_title` - Kart için istediğiniz bir başlığı belirler 184 + 185 + > :warning: **Önemli:** 186 + > Dİl isimleri [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding)'te belirtildiği üzere uri-escaped olarak belirtilmelidir. 187 + > (ör: `c++` yerine `c%2B%2B`, `jupyter notebook` yerine `jupyter%20notebook`, vb.) 188 + > [urlencoder.org](https://www.urlencoder.org/) adresini kullanarak otomatik olarak değerleri bu şekle çevirebilirsiniz. 189 + 190 + #### Wakatime Kart Exclusive Özellikler: 191 + 192 + - `hide_title` - _(boolean)_ 193 + - `line_height` - Satır aralığı yüksekliği _(number)_ 194 + - `hide_progress` - Progresbarı ve yüzdeyi gizler _(boolean)_ 195 + - `custom_title` - Kart için istediğiniz bir başlığı belirler 196 + - `layout` - Uygun olan iki tasarım / layout arasında değişiklik yapar `default` & `compact` 197 + 198 + --- 199 + 200 + # GitHub Ekstra Pinler 201 + 202 + Github ekstra pinler profilinize 6'dan fazla repoyu / depoyu profilinizde pinleyebilirsiniz. 203 + 204 + Hey! Artık 6 pin ile kısıtlı kalmayacaksınız! 205 + 206 + ### Kullanım 207 + 208 + Alttaki kodu kopyalayıp readme dosyanıza urlleri değiştirerek yapıştırın. 209 + 210 + Endpoint: `api/pin?username=mustafacagri&repo=github-readme-stats` 211 + 212 + ```md 213 + [![ReadMe Kartı](https://github-readme-stats.vercel.app/api/pin/?username=mustafacagri&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 214 + ``` 215 + 216 + ### Demo 217 + 218 + [![ReadMe Kartı](https://github-readme-stats.vercel.app/api/pin/?username=mustafacagri&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 219 + 220 + [show_owner](#özelleştirmeler) ile reponun sahibini gösterebilirsiniz. 221 + 222 + [![ReadMe Kartı](https://github-readme-stats.vercel.app/api/pin/?username=mustafacagri&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 223 + 224 + # En Çok Kullanılan Diller 225 + 226 + En çok kullanılan diller kartı kullanıcının en çok kullandığı dilleri gösterir. 227 + 228 + _NOTE: En çok kullanılan dillerde yer alan bilgiler sizin yeteneğinizi ve benzeri şeyleri göstermek. Bu, kodlarınızda en çok kullandığınız dilleri gösteren bir Github metriğidir. Ayrıca, github-readme-stats'ın yeni özelliğidir. 229 + 230 + ### Kullanım 231 + 232 + Alttaki kodu kopyalayıp readme dosyanıza urlleri değiştirerek yapıştırın. 233 + 234 + Endpoint: `api/top-langs?username=mustafacagri` 235 + 236 + ```md 237 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri)](https://github.com/anuraghazra/github-readme-stats) 238 + ``` 239 + 240 + ### Belirli Repoları Çıkartın 241 + 242 + `?exclude_repo=repo1,repo2` parametresini kullanarak istediğiniz repoları çıkartabilirsiniz. 243 + 244 + ```md 245 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 246 + ``` 247 + 248 + ### Belirli Dilleri Çıkartın 249 + 250 + `?hide=language1,language2` parametresini kullanarak istediğiniz dilleri çıkartabilirsiniz. 251 + 252 + ```md 253 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 254 + ``` 255 + 256 + ### Daha Fazla Dil Gösterin 257 + 258 + `&langs_count=` parametresini kullanarak kartınızda gösterilen dil sayısını azaltabilir ya da artırabilirsiniz. Varsayılan değeri 5, kullanılabilir sayı aralığı ise 1-10'dur. 259 + 260 + ```md 261 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 262 + ``` 263 + 264 + ### Kompakt Dil Kartı Düzeni 265 + 266 + `&layout=compact` parametresiyle kart tasarımınızı değiştirebilirsiniz. 267 + 268 + ```md 269 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 270 + ``` 271 + 272 + ### Demo 273 + 274 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri)](https://github.com/anuraghazra/github-readme-stats) 275 + 276 + - Kompakt Düzen / Layout 277 + 278 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=mustafacagri&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 279 + 280 + # Wakatime Haftalık İstatistikler 281 + 282 + `?username=` değerini [Wakatime](https://wakatime.com)'daki kullanıcı adınızla değiştirin. 283 + 284 + ```md 285 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 286 + ``` 287 + 288 + ### Demo 289 + 290 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 291 + 292 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 293 + 294 + - Kompakt Düzen 295 + 296 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 297 + 298 + --- 299 + 300 + ### Tüm Demolar 301 + 302 + - Varsayılan 303 + 304 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 305 + 306 + - Belirli istatistikler gizli 307 + 308 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 309 + 310 + - İkonlar gösteriliyor 311 + 312 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 313 + 314 + - Tüm commitler dahil 315 + 316 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 317 + 318 + - Temalar 319 + 320 + [default themes](#themes) adresinden istediğiniz temayı seçin. 321 + 322 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=mustafacagri&show_icons=true&theme=radical) 323 + 324 + - Gradient 325 + 326 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 327 + 328 + - İstatistik Kartını Düzenleyin 329 + 330 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 331 + 332 + - Kartın dilini seçin 333 + 334 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=es) 335 + 336 + - Repo kartı düzenleyin 337 + 338 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 339 + 340 + - En çok kullanılan diller 341 + 342 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 343 + 344 + - Wakatime kart 345 + 346 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 347 + 348 + --- 349 + 350 + ### Hızlı İpucu (Repo Kartları Hizlayın) 351 + 352 + Genellikle resimleri yan yana düzenleyemezsiniz. Bunu yapmak için şu yaklaşımı kullanabilirsiniz: 353 + 354 + ```md 355 + <a href="https://github.com/anuraghazra/github-readme-stats"> 356 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 357 + </a> 358 + <a href="https://github.com/anuraghazra/convoychat"> 359 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 360 + </a> 361 + ``` 362 + 363 + ## Kendi Vercel Örneğinizde Yayınlayın 364 + 365 + 366 + #### [@codeSTACKr'ın Yayınladığı Video Eğitimine Göz Atın](https://youtu.be/n6d4KHSKqGk?t=107) 367 + 368 + Github API saatte sadece 5.000 isteğe izin verdiği için `https://github-readme-stats.vercel.app/api` adresindeki API'm bu limite muhtemelen takılmış olabilir. Eğer projeyi kendi Vercel sunucunuzda yayınlarsanız, böyle bir sorun yaşamayabilirsiniz. Deploy butonuna tıkla ve deploy başlasın! 369 + 370 + 371 + NOT: [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) geliştirmesi sonrasında anlamadığımız bir şekilde 5.000 istek limitine takılmıyoruz :) 372 + 373 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 374 + 375 + <details> 376 + <summary><strong> Vercel Kurulum Rehberi 🔨 </strong></summary> 377 + 378 + 1. [vercel.com](https://vercel.com/) adresine gidin 379 + 1. `Log in`'e tıklayın 380 + ![](https://files.catbox.moe/tct1wg.png) 381 + 1. `Continue with GitHub`'e basarak Github ile giriş yapın 382 + ![](https://files.catbox.moe/btd78j.jpeg) 383 + 1. Github'a giriş yapın ve eğer çıkarsa tüm repolara izin verin. 384 + 1. Bu repoyu fork'layın 385 + 1. [Vercel dashboard](https://vercel.com/dashboard)'unuza geri dönün. 386 + 1. `Import Project`'i seçin. 387 + ![](https://files.catbox.moe/qckos0.png) 388 + 1. `Import Git Repository`'yi seçin. 389 + ![](https://files.catbox.moe/pqub9q.png) 390 + 1. Root'u seçin ve her şeyi olduğu gibi bırakın, [burada](https://github.com/settings/tokens/new) kolayca oluşturabileceğiniz kişisel bir erişim belirteci (personal access token) (PAT) içerecek olan PAT_1 adlı ortam değişkeninizi (gösterildiği gibi) ekleyin. (istediğiniz bir isim verin, çok da mühim değil açıkçası) 391 + ![](https://files.catbox.moe/0ez4g7.png) 392 + 1. Deploy'u tıklayın ve hazırsınız. 393 + Click deploy, and you're good to go. API'ı kullanmak için alanlarınızı (domainlerinizi) görün! 394 + 395 + </details> 396 + 397 + ## :sparkling_heart: Projeyi Destekleyin 398 + 399 + Neredeyse yapabildiğim her şeyi açık kaynak yapıyorum ve bu projeleri kullanırken yardıma ihtiyacı olan herkese cevap vermeye çalışıyorum. Açıkçası, 400 + bu zaman alıyor. Destekleriniz sayesinde bu hizmeti ücretsiz olarak kullanabilirsiniz. 401 + 402 + Ayrıca, bu projeyi kullanıyor ve memnunsanız veya sadece bir şeyler yaratmaya devam etmem için beni teşvik etmek istiyorsanız, bunu yapmanın birkaç yolu var: - 403 + 404 + - Readme'nizde github-readme-stats'ı kullanırken bu projeye uygun bir link verebilirsiniz. 405 + - Projeye yıldız verebilir ve paylaşabilirsiniz :rocket: 406 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - PayPal ile tek seferlik bağış yapabilirsiniz. Muhtemelen bir ~~kahve~~ ya da çay :tea: alacağım. 407 + 408 + Teşekkürler! :heart: 409 + 410 + --- 411 + 412 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](./powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 413 + 414 + 415 + Katkılara açığız! <3 416 + 417 + :heart: ve JavaScript ile hazırlandı.
+3
jest.config.js
··· 1 + module.exports = { 2 + clearMocks: true, 3 + };
+38
package.json
··· 1 + { 2 + "name": "github-readme-stats", 3 + "version": "1.0.0", 4 + "description": "Dynamically generate stats for your github readmes", 5 + "main": "index.js", 6 + "scripts": { 7 + "test": "jest --coverage", 8 + "test:watch": "jest --watch", 9 + "theme-readme-gen": "node scripts/generate-theme-doc", 10 + "preview-theme": "node scripts/preview-theme" 11 + }, 12 + "author": "Anurag Hazra", 13 + "license": "MIT", 14 + "devDependencies": { 15 + "@actions/core": "^1.2.4", 16 + "@actions/github": "^4.0.0", 17 + "@testing-library/dom": "^7.20.0", 18 + "@testing-library/jest-dom": "^5.11.0", 19 + "axios": "^0.19.2", 20 + "axios-mock-adapter": "^1.18.1", 21 + "css-to-object": "^1.1.0", 22 + "husky": "^4.2.5", 23 + "jest": "^26.1.0", 24 + "parse-diff": "^0.7.0" 25 + }, 26 + "dependencies": { 27 + "dotenv": "^8.2.0", 28 + "emoji-name-map": "^1.2.8", 29 + "github-username-regex": "^1.0.0", 30 + "prettier": "^2.1.2", 31 + "word-wrap": "^1.2.3" 32 + }, 33 + "husky": { 34 + "hooks": { 35 + "pre-commit": "npm test" 36 + } 37 + } 38 + }
+6
powered-by-vercel.svg
··· 1 + <svg width="212" height="44" viewBox="0 0 212 44" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 + <rect width="212" height="44" rx="8" fill="black"/> 3 + <path d="M60.4375 15.2266V26.5H61.8438V22.4766H64.6797C66.7969 22.4766 68.3047 20.9844 68.3047 18.875C68.3047 16.7266 66.8281 15.2266 64.6953 15.2266H60.4375ZM61.8438 16.4766H64.3281C65.9609 16.4766 66.8594 17.3281 66.8594 18.875C66.8594 20.3672 65.9297 21.2266 64.3281 21.2266H61.8438V16.4766ZM73.3441 26.6484C75.7425 26.6484 77.2269 24.9922 77.2269 22.2891C77.2269 19.5781 75.7425 17.9297 73.3441 17.9297C70.9456 17.9297 69.4613 19.5781 69.4613 22.2891C69.4613 24.9922 70.9456 26.6484 73.3441 26.6484ZM73.3441 25.4375C71.7503 25.4375 70.8519 24.2812 70.8519 22.2891C70.8519 20.2891 71.7503 19.1406 73.3441 19.1406C74.9378 19.1406 75.8363 20.2891 75.8363 22.2891C75.8363 24.2812 74.9378 25.4375 73.3441 25.4375ZM89.2975 18.0781H87.9459L86.2897 24.8125H86.1647L84.2819 18.0781H82.9928L81.11 24.8125H80.985L79.3288 18.0781H77.9694L80.3288 26.5H81.6881L83.5631 19.9844H83.6881L85.5709 26.5H86.9381L89.2975 18.0781ZM93.8213 19.1172C95.1572 19.1172 96.0478 20.1016 96.0791 21.5938H91.4384C91.54 20.1016 92.4775 19.1172 93.8213 19.1172ZM96.04 24.3203C95.6884 25.0625 94.9541 25.4609 93.8681 25.4609C92.4384 25.4609 91.5088 24.4062 91.4384 22.7422V22.6797H97.4931V22.1641C97.4931 19.5469 96.1103 17.9297 93.8369 17.9297C91.5244 17.9297 90.04 19.6484 90.04 22.2969C90.04 24.9609 91.5009 26.6484 93.8369 26.6484C95.6806 26.6484 96.9931 25.7578 97.3838 24.3203H96.04ZM99.2825 26.5H100.626V21.2812C100.626 20.0938 101.556 19.2344 102.837 19.2344C103.103 19.2344 103.587 19.2812 103.697 19.3125V17.9688C103.525 17.9453 103.243 17.9297 103.025 17.9297C101.908 17.9297 100.939 18.5078 100.689 19.3281H100.564V18.0781H99.2825V26.5ZM108.181 19.1172C109.517 19.1172 110.408 20.1016 110.439 21.5938H105.798C105.9 20.1016 106.838 19.1172 108.181 19.1172ZM110.4 24.3203C110.048 25.0625 109.314 25.4609 108.228 25.4609C106.798 25.4609 105.869 24.4062 105.798 22.7422V22.6797H111.853V22.1641C111.853 19.5469 110.47 17.9297 108.197 17.9297C105.884 17.9297 104.4 19.6484 104.4 22.2969C104.4 24.9609 105.861 26.6484 108.197 26.6484C110.041 26.6484 111.353 25.7578 111.744 24.3203H110.4ZM116.76 26.6484C117.924 26.6484 118.924 26.0938 119.455 25.1562H119.58V26.5H120.861V14.7344H119.518V19.4062H119.4C118.924 18.4844 117.932 17.9297 116.76 17.9297C114.619 17.9297 113.221 19.6484 113.221 22.2891C113.221 24.9375 114.603 26.6484 116.76 26.6484ZM117.072 19.1406C118.596 19.1406 119.549 20.3594 119.549 22.2891C119.549 24.2344 118.603 25.4375 117.072 25.4375C115.533 25.4375 114.611 24.2578 114.611 22.2891C114.611 20.3281 115.541 19.1406 117.072 19.1406ZM131.534 26.6484C133.667 26.6484 135.065 24.9219 135.065 22.2891C135.065 19.6406 133.674 17.9297 131.534 17.9297C130.378 17.9297 129.354 18.5 128.893 19.4062H128.768V14.7344H127.424V26.5H128.706V25.1562H128.831C129.362 26.0938 130.362 26.6484 131.534 26.6484ZM131.221 19.1406C132.76 19.1406 133.674 20.3203 133.674 22.2891C133.674 24.2578 132.76 25.4375 131.221 25.4375C129.69 25.4375 128.737 24.2344 128.737 22.2891C128.737 20.3438 129.69 19.1406 131.221 19.1406ZM137.261 29.5469C138.753 29.5469 139.425 28.9688 140.143 27.0156L143.433 18.0781H142.003L139.698 25.0078H139.573L137.261 18.0781H135.808L138.925 26.5078L138.768 27.0078C138.417 28.0234 137.995 28.3906 137.222 28.3906C137.034 28.3906 136.823 28.3828 136.659 28.3516V29.5C136.847 29.5312 137.081 29.5469 137.261 29.5469ZM154.652 26.5L158.55 15.2266H156.402L153.589 24.1484H153.457L150.621 15.2266H148.394L152.332 26.5H154.652ZM162.668 19.3203C163.832 19.3203 164.598 20.1328 164.637 21.3984H160.613C160.699 20.1484 161.512 19.3203 162.668 19.3203ZM164.652 24.1484C164.371 24.7812 163.707 25.1328 162.746 25.1328C161.473 25.1328 160.652 24.2422 160.605 22.8203V22.7188H166.574V22.0938C166.574 19.3984 165.113 17.7812 162.676 17.7812C160.199 17.7812 158.66 19.5078 158.66 22.2578C158.66 25.0078 160.176 26.6719 162.691 26.6719C164.707 26.6719 166.137 25.7031 166.488 24.1484H164.652ZM168.199 26.5H170.137V21.5625C170.137 20.3672 171.012 19.5859 172.27 19.5859C172.598 19.5859 173.113 19.6406 173.262 19.6953V17.8984C173.082 17.8438 172.738 17.8125 172.457 17.8125C171.356 17.8125 170.434 18.4375 170.199 19.2812H170.067V17.9531H168.199V26.5ZM181.7 20.8281C181.497 19.0312 180.168 17.7812 177.973 17.7812C175.403 17.7812 173.895 19.4297 173.895 22.2031C173.895 25.0156 175.411 26.6719 177.981 26.6719C180.145 26.6719 181.489 25.4688 181.7 23.6797H179.856C179.653 24.5703 178.981 25.0469 177.973 25.0469C176.653 25.0469 175.856 24 175.856 22.2031C175.856 20.4297 176.645 19.4062 177.973 19.4062C179.036 19.4062 179.676 20 179.856 20.8281H181.7ZM186.817 19.3203C187.981 19.3203 188.747 20.1328 188.786 21.3984H184.762C184.848 20.1484 185.661 19.3203 186.817 19.3203ZM188.802 24.1484C188.52 24.7812 187.856 25.1328 186.895 25.1328C185.622 25.1328 184.802 24.2422 184.755 22.8203V22.7188H190.723V22.0938C190.723 19.3984 189.262 17.7812 186.825 17.7812C184.348 17.7812 182.809 19.5078 182.809 22.2578C182.809 25.0078 184.325 26.6719 186.841 26.6719C188.856 26.6719 190.286 25.7031 190.637 24.1484H188.802ZM192.427 26.5H194.364V14.6484H192.427V26.5Z" fill="white"/> 4 + <path d="M23.3248 13L32.6497 29H14L23.3248 13Z" fill="white"/> 5 + <line x1="43.5" y1="2.18557e-08" x2="43.5" y2="44" stroke="#5E5E5E"/> 6 + </svg>
+417
readme.md
··· 1 + <p align="center"> 2 + <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> 3 + <h2 align="center">GitHub Readme Stats</h2> 4 + <p align="center">Get dynamically generated GitHub stats on your readmes!</p> 5 + </p> 6 + <p align="center"> 7 + <a href="https://github.com/anuraghazra/github-readme-stats/actions"> 8 + <img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" /> 9 + </a> 10 + <a href="https://codecov.io/gh/anuraghazra/github-readme-stats"> 11 + <img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" /> 12 + </a> 13 + <a href="https://github.com/anuraghazra/github-readme-stats/issues"> 14 + <img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" /> 15 + </a> 16 + <a href="https://github.com/anuraghazra/github-readme-stats/pulls"> 17 + <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/anuraghazra/github-readme-stats?color=0088ff" /> 18 + </a> 19 + <br /> 20 + <br /> 21 + <a href="https://a.paddle.com/v2/click/16413/119403?link=1227"> 22 + <img src="https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> 23 + </a> 24 + <a href="https://a.paddle.com/v2/click/16413/119403?link=2345"> 25 + <img src="https://img.shields.io/badge/Supported%20by-Node%20Cli.com%20%E2%86%92-gray.svg?colorA=61c265&colorB=4CAF50&style=for-the-badge"/> 26 + </a> 27 + </p> 28 + 29 + <p align="center"> 30 + <a href="#demo">View Demo</a> 31 + · 32 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Report Bug</a> 33 + · 34 + <a href="https://github.com/anuraghazra/github-readme-stats/issues/new/choose">Request Feature</a> 35 + </p> 36 + <p align="center"> 37 + <a href="/docs/readme_fr.md">Français </a> 38 + · 39 + <a href="/docs/readme_cn.md">简体中文</a> 40 + · 41 + <a href="/docs/readme_es.md">Español</a> 42 + · 43 + <a href="/docs/readme_de.md">Deutsch</a> 44 + · 45 + <a href="/docs/readme_ja.md">日本語</a> 46 + · 47 + <a href="/docs/readme_pt-BR.md">Português Brasileiro</a> 48 + · 49 + <a href="/docs/readme_it.md">Italiano</a> 50 + · 51 + <a href="/docs/readme_kr.md">한국어</a> 52 + . 53 + <a href="/docs/readme_nl.md">Nederlands</a> 54 + . 55 + <a href="/docs/readme_np.md">नेपाली</a> 56 + . 57 + <a href="/docs/readme_tr.md">Türkçe</a> 58 + </p> 59 + </p> 60 + <p align="center">Love the project? Please consider <a href="https://www.paypal.me/anuraghazra">donating</a> to help it improve! 61 + 62 + # Features 63 + 64 + - [GitHub Stats Card](#github-stats-card) 65 + - [GitHub Extra Pins](#github-extra-pins) 66 + - [Top Languages Card](#top-languages-card) 67 + - [Wakatime Week Stats](#wakatime-week-stats) 68 + - [Themes](#themes) 69 + - [Customization](#customization) 70 + - [Deploy Yourself](#deploy-on-your-own-vercel-instance) 71 + 72 + # GitHub Stats Card 73 + 74 + Copy-paste this into your markdown content, and that's it. Simple! 75 + 76 + Change the `?username=` value to your GitHub's username. 77 + 78 + ```md 79 + [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 80 + ``` 81 + 82 + _Note: Available ranks are S+ (top 1%), S (top 25%), A++ (top 45%), A+ (top 60%), and B+ (everyone). 83 + The values are calculated by using the [cumulative distribution function](https://en.wikipedia.org/wiki/Cumulative_distribution_function) using commits, contributions, issues, stars, pull requests, followers, and owned repositories. 84 + The implementation can be investigated at [src/calculateRank.js](./src/calculateRank.js)_ 85 + 86 + ### Hiding individual stats 87 + 88 + To hide any specific stats, you can pass a query parameter `?hide=` with comma-separated values. 89 + 90 + > Options: `&hide=stars,commits,prs,issues,contribs` 91 + 92 + ```md 93 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs) 94 + ``` 95 + 96 + ### Adding private contributions count to total commits count 97 + 98 + You can add the count of all your private contributions to the total commits count by using the query parameter `?count_private=true`. 99 + 100 + _Note: If you are deploying this project yourself, the private contributions will be counted by default otherwise you need to chose to share your private contribution counts._ 101 + 102 + > Options: `&count_private=true` 103 + 104 + ```md 105 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true) 106 + ``` 107 + 108 + ### Showing icons 109 + 110 + To enable icons, you can pass `show_icons=true` in the query param, like so: 111 + 112 + ```md 113 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true) 114 + ``` 115 + 116 + ### Themes 117 + 118 + With inbuilt themes, you can customize the look of the card without doing any [manual customization](#customization). 119 + 120 + Use `?theme=THEME_NAME` parameter like so :- 121 + 122 + ```md 123 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 124 + ``` 125 + 126 + #### All inbuilt themes :- 127 + 128 + dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula 129 + 130 + <img src="https://res.cloudinary.com/anuraghazra/image/upload/v1595174536/grs-themes_l4ynja.png" alt="GitHub Readme Stats Themes" width="600px"/> 131 + 132 + You can look at a preview for [all available themes](./themes/README.md) or checkout the [theme config file](./themes/index.js) & **you can also contribute new themes** if you like :D 133 + 134 + ### Customization 135 + 136 + You can customize the appearance of your `Stats Card` or `Repo Card` however you wish with URL params. 137 + 138 + #### Common Options: 139 + 140 + - `title_color` - Card's title color _(hex color)_ 141 + - `text_color` - Body text color _(hex color)_ 142 + - `icon_color` - Icons color if available _(hex color)_ 143 + - `bg_color` - Card's background color _(hex color)_ **or** a gradient in the form of _angle,start,end_ 144 + - `hide_border` - Hides the card's border _(boolean)_ 145 + - `theme` - name of the theme, choose from [all available themes](./themes/README.md) 146 + - `cache_seconds` - set the cache header manually _(min: 1800, max: 86400)_ 147 + - `locale` - set the language in the card _(e.g. cn, de, es, etc.)_ 148 + - `border_radius` - Corner rounding on the card_ 149 + 150 + ##### Gradient in bg_color 151 + 152 + You can provide multiple comma-separated values in bg_color option to render a gradient, the format of the gradient is :- 153 + 154 + ``` 155 + &bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10 156 + ``` 157 + 158 + > Note on cache: Repo cards have a default cache of 4 hours (14400 seconds) if the fork count & star count is less than 1k, otherwise, it's 2 hours (7200 seconds). Also, note that the cache is clamped to a minimum of 2 hours and a maximum of 24 hours. 159 + 160 + #### Stats Card Exclusive Options: 161 + 162 + - `hide` - Hides the specified items from stats _(Comma-separated values)_ 163 + - `hide_title` - _(boolean)_ 164 + - `hide_rank` - _(boolean)_ hides the rank and automatically resizes the card width 165 + - `show_icons` - _(boolean)_ 166 + - `include_all_commits` - Count total commits instead of just the current year commits _(boolean)_ 167 + - `count_private` - Count private commits _(boolean)_ 168 + - `line_height` - Sets the line-height between text _(number)_ 169 + - `custom_title` - Sets a custom title for the card 170 + - `disable_animations` - Disables all animations in the card _(boolean)_ 171 + 172 + #### Repo Card Exclusive Options: 173 + 174 + - `show_owner` - Show the repo's owner name _(boolean)_ 175 + 176 + #### Language Card Exclusive Options: 177 + 178 + - `hide` - Hide the languages specified from the card _(Comma-separated values)_ 179 + - `hide_title` - _(boolean)_ 180 + - `layout` - Switch between two available layouts `default` & `compact` 181 + - `card_width` - Set the card's width manually _(number)_ 182 + - `langs_count` - Show more languages on the card, between 1-10, defaults to 5 _(number)_ 183 + - `exclude_repo` - Exclude specified repositories _(Comma-separated values)_ 184 + - `custom_title` - Sets a custom title for the card 185 + 186 + > :warning: **Important:** 187 + > Language names should be uri-escaped, as specified in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding) 188 + > (i.e: `c++` should become `c%2B%2B`, `jupyter notebook` should become `jupyter%20notebook`, etc.) You can use 189 + > [urlencoder.org](https://www.urlencoder.org/) to help you do this automatically. 190 + 191 + #### Wakatime Card Exclusive Options: 192 + 193 + - `hide_title` - _(boolean)_ 194 + - `line_height` - Sets the line-height between text _(number)_ 195 + - `hide_progress` - Hides the progress bar and percentage _(boolean)_ 196 + - `custom_title` - Sets a custom title for the card 197 + - `layout` - Switch between two available layouts `default` & `compact` 198 + - `api_domain` - Set a custom API domain for the card, e.g. to use services like [Hakatime](https://github.com/mujx/hakatime) or [Wakapi](https://github.com/muety/wakapi) 199 + - `range` – Request a range different from your WakaTime default, e.g. `last_7_days`. See [WakaTime API docs](https://wakatime.com/developers#stats) for list of available options. 200 + 201 + --- 202 + 203 + # GitHub Extra Pins 204 + 205 + GitHub extra pins allow you to pin more than 6 repositories in your profile using a GitHub readme profile. 206 + 207 + Yay! You are no longer limited to 6 pinned repositories. 208 + 209 + ### Usage 210 + 211 + Copy-paste this code into your readme and change the links. 212 + 213 + Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats` 214 + 215 + ```md 216 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 217 + ``` 218 + 219 + ### Demo 220 + 221 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats) 222 + 223 + Use [show_owner](#customization) variable to include the repo's owner username 224 + 225 + [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&show_owner=true)](https://github.com/anuraghazra/github-readme-stats) 226 + 227 + # Top Languages Card 228 + 229 + The top languages card show a GitHub user's most frequently used top language. 230 + 231 + _NOTE: Top Languages does not indicate my skill level or anything like that, it's a GitHub metric of which languages have the most code on GitHub. It's a new feature of github-readme-stats._ 232 + 233 + ### Usage 234 + 235 + Copy-paste this code into your readme and change the links. 236 + 237 + Endpoint: `api/top-langs?username=anuraghazra` 238 + 239 + ```md 240 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 241 + ``` 242 + 243 + ### Exclude individual repositories 244 + 245 + You can use `?exclude_repo=repo1,repo2` parameter to exclude individual repositories. 246 + 247 + ```md 248 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io)](https://github.com/anuraghazra/github-readme-stats) 249 + ``` 250 + 251 + ### Hide individual languages 252 + 253 + You can use `?hide=language1,language2` parameter to hide individual languages. 254 + 255 + ```md 256 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) 257 + ``` 258 + 259 + ### Show more languages 260 + 261 + You can use the `&langs_count=` option to increase or decrease the number of languages shown on the card. Valid values are integers between 1 and 10 (inclusive), and the default is 5. 262 + 263 + ```md 264 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) 265 + ``` 266 + 267 + ### Compact Language Card Layout 268 + 269 + You can use the `&layout=compact` option to change the card design. 270 + 271 + ```md 272 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 273 + ``` 274 + 275 + ### Demo 276 + 277 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 278 + 279 + - Compact layout 280 + 281 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 282 + 283 + # Wakatime Week Stats 284 + 285 + Change the `?username=` value to your [Wakatime](https://wakatime.com) username. 286 + 287 + ```md 288 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 289 + ``` 290 + 291 + ### Demo 292 + 293 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 294 + 295 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats) 296 + 297 + - Compact layout 298 + 299 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod&layout=compact)](https://github.com/anuraghazra/github-readme-stats) 300 + 301 + --- 302 + 303 + ### All Demos 304 + 305 + - Default 306 + 307 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra) 308 + 309 + - Hiding specific stats 310 + 311 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,issues) 312 + 313 + - Showing icons 314 + 315 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true) 316 + 317 + - Include All Commits 318 + 319 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&include_all_commits=true) 320 + 321 + - Themes 322 + 323 + Choose from any of the [default themes](#themes) 324 + 325 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical) 326 + 327 + - Gradient 328 + 329 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&bg_color=30,e96443,904e95&title_color=fff&text_color=fff) 330 + 331 + - Customizing stats card 332 + 333 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) 334 + 335 + - Setting card locale 336 + 337 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api/?username=anuraghazra&locale=es) 338 + 339 + - Customizing repo card 340 + 341 + ![Customized Card](https://github-readme-stats.vercel.app/api/pin?username=anuraghazra&repo=github-readme-stats&title_color=fff&icon_color=f9f9f9&text_color=9f9f9f&bg_color=151515) 342 + 343 + - Top languages 344 + 345 + [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats) 346 + 347 + - Wakatime card 348 + 349 + [![willianrod's wakatime stats](https://github-readme-stats.vercel.app/api/wakatime?username=willianrod)](https://github.com/anuraghazra/github-readme-stats) 350 + 351 + --- 352 + 353 + ### Quick Tip (Align The Repo Cards) 354 + 355 + You usually won't be able to layout the images side by side. To do that you can use this approach: 356 + 357 + ```html 358 + <a href="https://github.com/anuraghazra/github-readme-stats"> 359 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" /> 360 + </a> 361 + <a href="https://github.com/anuraghazra/convoychat"> 362 + <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" /> 363 + </a> 364 + ``` 365 + 366 + ## Deploy on your own Vercel instance 367 + 368 + #### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107) 369 + 370 + Since the GitHub API only allows 5k requests per hour, my `https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter. If you host it on your own Vercel server, then you don't have to worry about anything. Click on the deploy button to get started! 371 + 372 + NOTE: Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58) we should be able to handle more than 5k requests and have no issues with downtime :D 373 + 374 + [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) 375 + 376 + <details> 377 + <summary><b> Guide on setting up Vercel 🔨 </b></summary> 378 + 379 + 1. Go to [vercel.com](https://vercel.com/) 380 + 1. Click on `Log in` 381 + ![](https://files.catbox.moe/tct1wg.png) 382 + 1. Sign in with GitHub by pressing `Continue with GitHub` 383 + ![](https://files.catbox.moe/btd78j.jpeg) 384 + 1. Sign into GitHub and allow access to all repositories, if prompted 385 + 1. Fork this repo 386 + 1. Go back to your [Vercel dashboard](https://vercel.com/dashboard) 387 + 1. Select `Import Project` 388 + ![](https://files.catbox.moe/qckos0.png) 389 + 1. Select `Import Git Repository` 390 + ![](https://files.catbox.moe/pqub9q.png) 391 + 1. Select root and keep everything as is, just add your environment variable named PAT_1 (as shown), which will contain a personal access token (PAT), which you can easily create [here](https://github.com/settings/tokens/new) (leave everything as is, just name it something, it can be anything you want) 392 + ![](https://files.catbox.moe/0ez4g7.png) 393 + 1. Click deploy, and you're good to go. See your domains to use the API! 394 + 395 + </details> 396 + 397 + ## :sparkling_heart: Support the project 398 + 399 + I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, 400 + this takes time. You can use this service for free. 401 + 402 + However, if you are using this project and are happy with it or just want to encourage me to continue creating stuff, there are few ways you can do it :- 403 + 404 + - Giving proper credit when you use github-readme-stats on your readme, linking back to it :D 405 + - Starring and sharing the project :rocket: 406 + - [![paypal.me/anuraghazra](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/anuraghazra) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: 407 + 408 + Thanks! :heart: 409 + 410 + --- 411 + 412 + [![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](./powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss) 413 + 414 + 415 + Contributions are welcome! <3 416 + 417 + Made with :heart: and JavaScript.
+115
scripts/generate-theme-doc.js
··· 1 + const theme = require("../themes/index"); 2 + const fs = require("fs"); 3 + 4 + const TARGET_FILE = "./themes/README.md"; 5 + const REPO_CARD_LINKS_FLAG = "<!-- REPO_CARD_LINKS -->"; 6 + const STAT_CARD_LINKS_FLAG = "<!-- STATS_CARD_LINKS -->"; 7 + 8 + const STAT_CARD_TABLE_FLAG = "<!-- STATS_CARD_TABLE -->"; 9 + const REPO_CARD_TABLE_FLAG = "<!-- REPO_CARD_TABLE -->"; 10 + 11 + const THEME_TEMPLATE = `## Available Themes 12 + 13 + <!-- DO NOT EDIT THIS FILE DIRECTLY --> 14 + 15 + With inbuilt themes you can customize the look of the card without doing any manual customization. 16 + 17 + Use \`?theme=THEME_NAME\` parameter like so :- 18 + 19 + \`\`\`md 20 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&theme=dark&show_icons=true) 21 + \`\`\` 22 + 23 + ## Stats 24 + 25 + > These themes work both for the Stats Card and Repo Card. 26 + 27 + | | | | 28 + | :--: | :--: | :--: | 29 + ${STAT_CARD_TABLE_FLAG} 30 + 31 + ## Repo Card 32 + 33 + > These themes work both for the Stats Card and Repo Card. 34 + 35 + | | | | 36 + | :--: | :--: | :--: | 37 + ${REPO_CARD_TABLE_FLAG} 38 + 39 + ${STAT_CARD_LINKS_FLAG} 40 + 41 + ${REPO_CARD_LINKS_FLAG} 42 + 43 + 44 + [add-theme]: https://github.com/anuraghazra/github-readme-stats/edit/master/themes/index.js 45 + 46 + Wanted to add a new theme? Consider reading the [contribution guidelines](../CONTRIBUTING.md#themes-contribution) :D 47 + `; 48 + 49 + const createRepoMdLink = (theme) => { 50 + return `\n[${theme}_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=${theme}`; 51 + }; 52 + const createStatMdLink = (theme) => { 53 + return `\n[${theme}]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=${theme}`; 54 + }; 55 + 56 + const generateLinks = (fn) => { 57 + return Object.keys(theme) 58 + .map((name) => fn(name)) 59 + .join(""); 60 + }; 61 + 62 + const createTableItem = ({ link, label, isRepoCard }) => { 63 + if (!link || !label) return ""; 64 + return `\`${label}\` ![${link}][${link}${isRepoCard ? "_repo" : ""}]`; 65 + }; 66 + const generateTable = ({ isRepoCard }) => { 67 + const rows = []; 68 + const themes = Object.keys(theme).filter( 69 + (name) => name !== (!isRepoCard ? "default_repocard" : "default"), 70 + ); 71 + 72 + for (let i = 0; i < themes.length; i += 3) { 73 + const one = themes[i]; 74 + const two = themes[i + 1]; 75 + const three = themes[i + 2]; 76 + 77 + let tableItem1 = createTableItem({ link: one, label: one, isRepoCard }); 78 + let tableItem2 = createTableItem({ link: two, label: two, isRepoCard }); 79 + let tableItem3 = createTableItem({ link: three, label: three, isRepoCard }); 80 + 81 + if (three === undefined) { 82 + tableItem3 = `[Add your theme][add-theme]`; 83 + } 84 + rows.push(`| ${tableItem1} | ${tableItem2} | ${tableItem3} |`); 85 + 86 + // if it's the last row & the row has no empty space push a new row 87 + if (three && i + 3 === themes.length) { 88 + rows.push(`| [Add your theme][add-theme] | | |`); 89 + } 90 + } 91 + 92 + return rows.join("\n"); 93 + }; 94 + 95 + const buildReadme = () => { 96 + return THEME_TEMPLATE.split("\n") 97 + .map((line) => { 98 + if (line.includes(REPO_CARD_LINKS_FLAG)) { 99 + return generateLinks(createRepoMdLink); 100 + } 101 + if (line.includes(STAT_CARD_LINKS_FLAG)) { 102 + return generateLinks(createStatMdLink); 103 + } 104 + if (line.includes(REPO_CARD_TABLE_FLAG)) { 105 + return generateTable({ isRepoCard: true }); 106 + } 107 + if (line.includes(STAT_CARD_TABLE_FLAG)) { 108 + return generateTable({ isRepoCard: false }); 109 + } 110 + return line; 111 + }) 112 + .join("\n"); 113 + }; 114 + 115 + fs.writeFileSync(TARGET_FILE, buildReadme());
+100
scripts/preview-theme.js
··· 1 + const core = require("@actions/core"); 2 + const github = require("@actions/github"); 3 + const parse = require("parse-diff"); 4 + require("dotenv").config(); 5 + 6 + function getPrNumber() { 7 + const pullRequest = github.context.payload.pull_request; 8 + if (!pullRequest) { 9 + return undefined; 10 + } 11 + 12 + return pullRequest.number; 13 + } 14 + 15 + const themeContribGuidelines = ` 16 + \r> Hi thanks for the theme contribution, please read our theme contribution guidelines 17 + 18 + \r> We are currently only accepting color combinations from any vscode theme or which has good color combination to minimize bloating the themes collection. 19 + 20 + \r> Also note that if this theme is exclusively for your personal use then instead of adding it to our theme collection you can use card [customization options](https://github.com/anuraghazra/github-readme-stats#customization) 21 + \r> Read our [contribution guidelines](https://github.com/anuraghazra/github-readme-stats/blob/master/CONTRIBUTING.md) for more info 22 + `; 23 + 24 + async function run() { 25 + try { 26 + const token = core.getInput("token"); 27 + const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN); 28 + const pullRequestId = getPrNumber(); 29 + 30 + if (!pullRequestId) { 31 + console.log("PR not found"); 32 + return; 33 + } 34 + 35 + let res = await octokit.pulls.get({ 36 + owner: "anuraghazra", 37 + repo: "github-readme-stats", 38 + pull_number: pullRequestId, 39 + mediaType: { 40 + format: "diff", 41 + }, 42 + }); 43 + 44 + let diff = parse(res.data); 45 + let colorStrings = diff 46 + .find((file) => file.to === "themes/index.js") 47 + .chunks[0].changes.filter((c) => c.type === "add") 48 + .map((c) => c.content.replace("+", "")) 49 + .join(""); 50 + 51 + let matches = colorStrings.match(/(title_color:.*bg_color.*\")/); 52 + let colors = matches && matches[0].split(","); 53 + 54 + if (!colors) { 55 + await octokit.issues.createComment({ 56 + owner: "anuraghazra", 57 + repo: "github-readme-stats", 58 + body: ` 59 + \rTheme preview (bot) 60 + 61 + \rCannot create theme preview 62 + 63 + ${themeContribGuidelines} 64 + `, 65 + issue_number: pullRequestId, 66 + }); 67 + return; 68 + } 69 + colors = colors.map((color) => 70 + color.replace(/.*\:\s/, "").replace(/\"/g, ""), 71 + ); 72 + 73 + const titleColor = colors[0]; 74 + const iconColor = colors[1]; 75 + const textColor = colors[2]; 76 + const bgColor = colors[3]; 77 + const url = `https://github-readme-stats.vercel.app/api?username=anuraghazra&title_color=${titleColor}&icon_color=${iconColor}&text_color=${textColor}&bg_color=${bgColor}&show_icons=true`; 78 + 79 + await octokit.issues.createComment({ 80 + owner: "anuraghazra", 81 + repo: "github-readme-stats", 82 + body: ` 83 + \rTheme preview (bot) 84 + 85 + \ntitle_color: <code>#${titleColor}</code> | icon_color: <code>#${iconColor}</code> | text_color: <code>#${textColor}</code> | bg_color: <code>#${bgColor}</code> 86 + 87 + \rLink: ${url} 88 + 89 + \r[![](${url})](${url}) 90 + 91 + ${themeContribGuidelines} 92 + `, 93 + issue_number: pullRequestId, 94 + }); 95 + } catch (error) { 96 + console.log(error); 97 + } 98 + } 99 + 100 + run();
+14
scripts/push-theme-readme.sh
··· 1 + #!/bin/bash 2 + set -x 3 + set -e 4 + 5 + export BRANCH_NAME=updated-theme-readme 6 + git --version 7 + git config --global user.email "no-reply@githubreadmestats.com" 8 + git config --global user.name "Github Readme Stats Bot" 9 + git branch -d $BRANCH_NAME || true 10 + git checkout -b $BRANCH_NAME 11 + git add --all 12 + git commit --message "docs(theme): Auto update theme readme" || exit 0 13 + git remote add origin-$BRANCH_NAME https://${PERSONAL_TOKEN}@github.com/${GH_REPO}.git 14 + git push --force --quiet --set-upstream origin-$BRANCH_NAME $BRANCH_NAME
+93
src/calculateRank.js
··· 1 + // https://stackoverflow.com/a/5263759/10629172 2 + function normalcdf(mean, sigma, to) { 3 + var z = (to - mean) / Math.sqrt(2 * sigma * sigma); 4 + var t = 1 / (1 + 0.3275911 * Math.abs(z)); 5 + var a1 = 0.254829592; 6 + var a2 = -0.284496736; 7 + var a3 = 1.421413741; 8 + var a4 = -1.453152027; 9 + var a5 = 1.061405429; 10 + var erf = 11 + 1 - ((((a5 * t + a4) * t + a3) * t + a2) * t + a1) * t * Math.exp(-z * z); 12 + var sign = 1; 13 + if (z < 0) { 14 + sign = -1; 15 + } 16 + return (1 / 2) * (1 + sign * erf); 17 + } 18 + 19 + function calculateRank({ 20 + totalRepos, 21 + totalCommits, 22 + contributions, 23 + followers, 24 + prs, 25 + issues, 26 + stargazers, 27 + }) { 28 + const COMMITS_OFFSET = 1.65; 29 + const CONTRIBS_OFFSET = 1.65; 30 + const ISSUES_OFFSET = 1; 31 + const STARS_OFFSET = 0.75; 32 + const PRS_OFFSET = 0.5; 33 + const FOLLOWERS_OFFSET = 0.45; 34 + const REPO_OFFSET = 1; 35 + 36 + const ALL_OFFSETS = 37 + CONTRIBS_OFFSET + 38 + ISSUES_OFFSET + 39 + STARS_OFFSET + 40 + PRS_OFFSET + 41 + FOLLOWERS_OFFSET + 42 + REPO_OFFSET; 43 + 44 + const RANK_S_VALUE = 1; 45 + const RANK_DOUBLE_A_VALUE = 25; 46 + const RANK_A2_VALUE = 45; 47 + const RANK_A3_VALUE = 60; 48 + const RANK_B_VALUE = 100; 49 + 50 + const TOTAL_VALUES = 51 + RANK_S_VALUE + RANK_A2_VALUE + RANK_A3_VALUE + RANK_B_VALUE; 52 + 53 + // prettier-ignore 54 + const score = ( 55 + totalCommits * COMMITS_OFFSET + 56 + contributions * CONTRIBS_OFFSET + 57 + issues * ISSUES_OFFSET + 58 + stargazers * STARS_OFFSET + 59 + prs * PRS_OFFSET + 60 + followers * FOLLOWERS_OFFSET + 61 + totalRepos * REPO_OFFSET 62 + ) / 100; 63 + 64 + const normalizedScore = normalcdf(score, TOTAL_VALUES, ALL_OFFSETS) * 100; 65 + 66 + let level = ""; 67 + 68 + if (normalizedScore < RANK_S_VALUE) { 69 + level = "S+"; 70 + } 71 + if ( 72 + normalizedScore >= RANK_S_VALUE && 73 + normalizedScore < RANK_DOUBLE_A_VALUE 74 + ) { 75 + level = "S"; 76 + } 77 + if ( 78 + normalizedScore >= RANK_DOUBLE_A_VALUE && 79 + normalizedScore < RANK_A2_VALUE 80 + ) { 81 + level = "A++"; 82 + } 83 + if (normalizedScore >= RANK_A2_VALUE && normalizedScore < RANK_A3_VALUE) { 84 + level = "A+"; 85 + } 86 + if (normalizedScore >= RANK_A3_VALUE && normalizedScore < RANK_B_VALUE) { 87 + level = "B+"; 88 + } 89 + 90 + return { level, score: normalizedScore }; 91 + } 92 + 93 + module.exports = calculateRank;
+170
src/cards/repo-card.js
··· 1 + const toEmoji = require("emoji-name-map"); 2 + const { 3 + kFormatter, 4 + encodeHTML, 5 + getCardColors, 6 + FlexLayout, 7 + wrapTextMultiline, 8 + } = require("../common/utils"); 9 + const I18n = require("../common/I18n"); 10 + const Card = require("../common/Card"); 11 + const icons = require("../common/icons"); 12 + const { repoCardLocales } = require("../translations"); 13 + 14 + const renderRepoCard = (repo, options = {}) => { 15 + const { 16 + name, 17 + nameWithOwner, 18 + description, 19 + primaryLanguage, 20 + stargazers, 21 + isArchived, 22 + isTemplate, 23 + forkCount, 24 + } = repo; 25 + const { 26 + hide_border = false, 27 + title_color, 28 + icon_color, 29 + text_color, 30 + bg_color, 31 + show_owner, 32 + theme = "default_repocard", 33 + border_radius, 34 + locale, 35 + } = options; 36 + 37 + const header = show_owner ? nameWithOwner : name; 38 + const langName = (primaryLanguage && primaryLanguage.name) || "Unspecified"; 39 + const langColor = (primaryLanguage && primaryLanguage.color) || "#333"; 40 + 41 + const shiftText = langName.length > 15 ? 0 : 30; 42 + 43 + let desc = description || "No description provided"; 44 + 45 + // parse emojis to unicode 46 + desc = desc.replace(/:\w+:/gm, (emoji) => { 47 + return toEmoji.get(emoji) || ""; 48 + }); 49 + 50 + const multiLineDescription = wrapTextMultiline(desc); 51 + const descriptionLines = multiLineDescription.length; 52 + const lineHeight = 10; 53 + 54 + const height = 55 + (descriptionLines > 1 ? 120 : 110) + descriptionLines * lineHeight; 56 + 57 + const i18n = new I18n({ 58 + locale, 59 + translations: repoCardLocales, 60 + }); 61 + 62 + // returns theme based colors with proper overrides and defaults 63 + const { titleColor, textColor, iconColor, bgColor } = getCardColors({ 64 + title_color, 65 + icon_color, 66 + text_color, 67 + bg_color, 68 + theme, 69 + }); 70 + 71 + const totalStars = kFormatter(stargazers.totalCount); 72 + const totalForks = kFormatter(forkCount); 73 + 74 + const getBadgeSVG = (label) => ` 75 + <g data-testid="badge" class="badge" transform="translate(320, -18)"> 76 + <rect stroke="${textColor}" stroke-width="1" width="70" height="20" x="-12" y="-14" ry="10" rx="10"></rect> 77 + <text 78 + x="23" y="-5" 79 + alignment-baseline="central" 80 + dominant-baseline="central" 81 + text-anchor="middle" 82 + fill="${textColor}" 83 + > 84 + ${label} 85 + </text> 86 + </g> 87 + `; 88 + 89 + const svgLanguage = primaryLanguage 90 + ? ` 91 + <g data-testid="primary-lang" transform="translate(30, 0)"> 92 + <circle data-testid="lang-color" cx="0" cy="-5" r="6" fill="${langColor}" /> 93 + <text data-testid="lang-name" class="gray" x="15">${langName}</text> 94 + </g> 95 + ` 96 + : ""; 97 + 98 + const iconWithLabel = (icon, label, testid) => { 99 + return ` 100 + <svg class="icon" y="-12" viewBox="0 0 16 16" version="1.1" width="16" height="16"> 101 + ${icon} 102 + </svg> 103 + <text data-testid="${testid}" class="gray" x="25">${label}</text> 104 + `; 105 + }; 106 + const svgStars = 107 + stargazers.totalCount > 0 && 108 + iconWithLabel(icons.star, totalStars, "stargazers"); 109 + const svgForks = 110 + forkCount > 0 && iconWithLabel(icons.fork, totalForks, "forkcount"); 111 + 112 + const starAndForkCount = FlexLayout({ 113 + items: [svgStars, svgForks], 114 + gap: 65, 115 + }).join(""); 116 + 117 + const card = new Card({ 118 + defaultTitle: header, 119 + titlePrefixIcon: icons.contribs, 120 + width: 400, 121 + height, 122 + border_radius, 123 + colors: { 124 + titleColor, 125 + textColor, 126 + iconColor, 127 + bgColor, 128 + }, 129 + }); 130 + 131 + card.disableAnimations(); 132 + card.setHideBorder(hide_border); 133 + card.setHideTitle(false); 134 + card.setCSS(` 135 + .description { font: 400 13px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} } 136 + .gray { font: 400 12px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} } 137 + .icon { fill: ${iconColor} } 138 + .badge { font: 600 11px 'Segoe UI', Ubuntu, Sans-Serif; } 139 + .badge rect { opacity: 0.2 } 140 + `); 141 + 142 + return card.render(` 143 + ${ 144 + isTemplate 145 + ? getBadgeSVG(i18n.t("repocard.template")) 146 + : isArchived 147 + ? getBadgeSVG(i18n.t("repocard.archived")) 148 + : "" 149 + } 150 + 151 + <text class="description" x="25" y="-5"> 152 + ${multiLineDescription 153 + .map((line) => `<tspan dy="1.2em" x="25">${encodeHTML(line)}</tspan>`) 154 + .join("")} 155 + </text> 156 + 157 + <g transform="translate(0, ${height - 75})"> 158 + ${svgLanguage} 159 + 160 + <g 161 + data-testid="star-fork-group" 162 + transform="translate(${primaryLanguage ? 155 - shiftText : 25}, 0)" 163 + > 164 + ${starAndForkCount} 165 + </g> 166 + </g> 167 + `); 168 + }; 169 + 170 + module.exports = renderRepoCard;
+232
src/cards/stats-card.js
··· 1 + const I18n = require("../common/I18n"); 2 + const Card = require("../common/Card"); 3 + const icons = require("../common/icons"); 4 + const { getStyles } = require("../getStyles"); 5 + const { statCardLocales } = require("../translations"); 6 + const { 7 + kFormatter, 8 + FlexLayout, 9 + clampValue, 10 + measureText, 11 + getCardColors, 12 + } = require("../common/utils"); 13 + 14 + const createTextNode = ({ 15 + icon, 16 + label, 17 + value, 18 + id, 19 + index, 20 + showIcons, 21 + shiftValuePos, 22 + }) => { 23 + const kValue = kFormatter(value); 24 + const staggerDelay = (index + 3) * 150; 25 + 26 + const labelOffset = showIcons ? `x="25"` : ""; 27 + const iconSvg = showIcons 28 + ? ` 29 + <svg data-testid="icon" class="icon" viewBox="0 0 16 16" version="1.1" width="16" height="16"> 30 + ${icon} 31 + </svg> 32 + ` 33 + : ""; 34 + return ` 35 + <g class="stagger" style="animation-delay: ${staggerDelay}ms" transform="translate(25, 0)"> 36 + ${iconSvg} 37 + <text class="stat bold" ${labelOffset} y="12.5">${label}:</text> 38 + <text 39 + class="stat" 40 + x="${(showIcons ? 140 : 120) + shiftValuePos}" 41 + y="12.5" 42 + data-testid="${id}" 43 + >${kValue}</text> 44 + </g> 45 + `; 46 + }; 47 + 48 + const renderStatsCard = (stats = {}, options = { hide: [] }) => { 49 + const { 50 + name, 51 + totalStars, 52 + totalCommits, 53 + totalIssues, 54 + totalPRs, 55 + contributedTo, 56 + rank, 57 + } = stats; 58 + const { 59 + hide = [], 60 + show_icons = false, 61 + hide_title = false, 62 + hide_border = false, 63 + hide_rank = false, 64 + include_all_commits = false, 65 + line_height = 25, 66 + title_color, 67 + icon_color, 68 + text_color, 69 + bg_color, 70 + theme = "default", 71 + custom_title, 72 + border_radius, 73 + locale, 74 + disable_animations = false, 75 + } = options; 76 + 77 + const lheight = parseInt(line_height, 10); 78 + 79 + // returns theme based colors with proper overrides and defaults 80 + const { titleColor, textColor, iconColor, bgColor } = getCardColors({ 81 + title_color, 82 + icon_color, 83 + text_color, 84 + bg_color, 85 + theme, 86 + }); 87 + 88 + const apostrophe = ["x", "s"].includes(name.slice(-1).toLocaleLowerCase()) 89 + ? "" 90 + : "s"; 91 + const i18n = new I18n({ 92 + locale, 93 + translations: statCardLocales({ name, apostrophe }), 94 + }); 95 + 96 + // Meta data for creating text nodes with createTextNode function 97 + const STATS = { 98 + stars: { 99 + icon: icons.star, 100 + label: i18n.t("statcard.totalstars"), 101 + value: totalStars, 102 + id: "stars", 103 + }, 104 + commits: { 105 + icon: icons.commits, 106 + label: `${i18n.t("statcard.commits")}${ 107 + include_all_commits ? "" : ` (${new Date().getFullYear()})` 108 + }`, 109 + value: totalCommits, 110 + id: "commits", 111 + }, 112 + prs: { 113 + icon: icons.prs, 114 + label: i18n.t("statcard.prs"), 115 + value: totalPRs, 116 + id: "prs", 117 + }, 118 + issues: { 119 + icon: icons.issues, 120 + label: i18n.t("statcard.issues"), 121 + value: totalIssues, 122 + id: "issues", 123 + }, 124 + contribs: { 125 + icon: icons.contribs, 126 + label: i18n.t("statcard.contribs"), 127 + value: contributedTo, 128 + id: "contribs", 129 + }, 130 + }; 131 + 132 + const longLocales = ["cn", "es", "fr", "pt-br", "ru", "uk-ua", "id", "my", "pl"]; 133 + const isLongLocale = longLocales.includes(locale) === true; 134 + 135 + // filter out hidden stats defined by user & create the text nodes 136 + const statItems = Object.keys(STATS) 137 + .filter((key) => !hide.includes(key)) 138 + .map((key, index) => 139 + // create the text nodes, and pass index so that we can calculate the line spacing 140 + createTextNode({ 141 + ...STATS[key], 142 + index, 143 + showIcons: show_icons, 144 + shiftValuePos: 145 + (!include_all_commits ? 50 : 20) + (isLongLocale ? 50 : 0), 146 + }), 147 + ); 148 + 149 + // Calculate the card height depending on how many items there are 150 + // but if rank circle is visible clamp the minimum height to `150` 151 + let height = Math.max( 152 + 45 + (statItems.length + 1) * lheight, 153 + hide_rank ? 0 : 150, 154 + ); 155 + 156 + // Conditionally rendered elements 157 + const rankCircle = hide_rank 158 + ? "" 159 + : `<g data-testid="rank-circle" 160 + transform="translate(400, ${height / 2 - 50})"> 161 + <circle class="rank-circle-rim" cx="-10" cy="8" r="40" /> 162 + <circle class="rank-circle" cx="-10" cy="8" r="40" /> 163 + <g class="rank-text"> 164 + <text 165 + x="${rank.level.length === 1 ? "-4" : "0"}" 166 + y="0" 167 + alignment-baseline="central" 168 + dominant-baseline="central" 169 + text-anchor="middle" 170 + > 171 + ${rank.level} 172 + </text> 173 + </g> 174 + </g>`; 175 + 176 + // the better user's score the the rank will be closer to zero so 177 + // subtracting 100 to get the progress in 100% 178 + const progress = 100 - rank.score; 179 + const cssStyles = getStyles({ 180 + titleColor, 181 + textColor, 182 + iconColor, 183 + show_icons, 184 + progress, 185 + }); 186 + 187 + const calculateTextWidth = () => { 188 + return measureText(custom_title ? custom_title : i18n.t("statcard.title")); 189 + }; 190 + 191 + const width = hide_rank 192 + ? clampValue( 193 + 50 /* padding */ + calculateTextWidth() * 2, 194 + 270 /* min */, 195 + Infinity, 196 + ) 197 + : 495; 198 + 199 + const card = new Card({ 200 + customTitle: custom_title, 201 + defaultTitle: i18n.t("statcard.title"), 202 + width, 203 + height, 204 + border_radius, 205 + colors: { 206 + titleColor, 207 + textColor, 208 + iconColor, 209 + bgColor, 210 + }, 211 + }); 212 + 213 + card.setHideBorder(hide_border); 214 + card.setHideTitle(hide_title); 215 + card.setCSS(cssStyles); 216 + 217 + if (disable_animations) card.disableAnimations(); 218 + 219 + return card.render(` 220 + ${rankCircle} 221 + 222 + <svg x="0" y="0"> 223 + ${FlexLayout({ 224 + items: statItems, 225 + gap: lheight, 226 + direction: "column", 227 + }).join("")} 228 + </svg> 229 + `); 230 + }; 231 + 232 + module.exports = renderStatsCard;
+209
src/cards/top-languages-card.js
··· 1 + const Card = require("../common/Card"); 2 + const { getCardColors, FlexLayout } = require("../common/utils"); 3 + const { createProgressNode } = require("../common/createProgressNode"); 4 + const { langCardLocales } = require("../translations"); 5 + const I18n = require("../common/I18n"); 6 + 7 + const createProgressTextNode = ({ width, color, name, progress }) => { 8 + const paddingRight = 95; 9 + const progressTextX = width - paddingRight + 10; 10 + const progressWidth = width - paddingRight; 11 + 12 + return ` 13 + <text data-testid="lang-name" x="2" y="15" class="lang-name">${name}</text> 14 + <text x="${progressTextX}" y="34" class="lang-name">${progress}%</text> 15 + ${createProgressNode({ 16 + x: 0, 17 + y: 25, 18 + color, 19 + width: progressWidth, 20 + progress, 21 + progressBarBackgroundColor: "#ddd", 22 + })} 23 + `; 24 + }; 25 + 26 + const createCompactLangNode = ({ lang, totalSize, x, y }) => { 27 + const percentage = ((lang.size / totalSize) * 100).toFixed(2); 28 + const color = lang.color || "#858585"; 29 + 30 + return ` 31 + <g transform="translate(${x}, ${y})"> 32 + <circle cx="5" cy="6" r="5" fill="${color}" /> 33 + <text data-testid="lang-name" x="15" y="10" class='lang-name'> 34 + ${lang.name} ${percentage}% 35 + </text> 36 + </g> 37 + `; 38 + }; 39 + 40 + const createLanguageTextNode = ({ langs, totalSize, x, y }) => { 41 + return langs.map((lang, index) => { 42 + if (index % 2 === 0) { 43 + return createCompactLangNode({ 44 + lang, 45 + x, 46 + y: 12.5 * index + y, 47 + totalSize, 48 + index, 49 + }); 50 + } 51 + return createCompactLangNode({ 52 + lang, 53 + x: 150, 54 + y: 12.5 + 12.5 * index, 55 + totalSize, 56 + index, 57 + }); 58 + }); 59 + }; 60 + 61 + const lowercaseTrim = (name) => name.toLowerCase().trim(); 62 + 63 + const renderTopLanguages = (topLangs, options = {}) => { 64 + const { 65 + hide_title, 66 + hide_border, 67 + card_width, 68 + title_color, 69 + text_color, 70 + bg_color, 71 + hide, 72 + theme, 73 + layout, 74 + custom_title, 75 + locale, 76 + border_radius 77 + } = options; 78 + 79 + const i18n = new I18n({ 80 + locale, 81 + translations: langCardLocales, 82 + }); 83 + 84 + let langs = Object.values(topLangs); 85 + let langsToHide = {}; 86 + 87 + // populate langsToHide map for quick lookup 88 + // while filtering out 89 + if (hide) { 90 + hide.forEach((langName) => { 91 + langsToHide[lowercaseTrim(langName)] = true; 92 + }); 93 + } 94 + 95 + // filter out langauges to be hidden 96 + langs = langs 97 + .sort((a, b) => b.size - a.size) 98 + .filter((lang) => { 99 + return !langsToHide[lowercaseTrim(lang.name)]; 100 + }); 101 + 102 + const totalLanguageSize = langs.reduce((acc, curr) => { 103 + return acc + curr.size; 104 + }, 0); 105 + 106 + // returns theme based colors with proper overrides and defaults 107 + const { titleColor, textColor, bgColor } = getCardColors({ 108 + title_color, 109 + text_color, 110 + bg_color, 111 + theme, 112 + }); 113 + 114 + let width = isNaN(card_width) ? 300 : card_width; 115 + let height = 45 + (langs.length + 1) * 40; 116 + 117 + let finalLayout = ""; 118 + 119 + // RENDER COMPACT LAYOUT 120 + if (layout === "compact") { 121 + width = width + 50; 122 + height = 90 + Math.round(langs.length / 2) * 25; 123 + 124 + // progressOffset holds the previous language's width and used to offset the next language 125 + // so that we can stack them one after another, like this: [--][----][---] 126 + let progressOffset = 0; 127 + const compactProgressBar = langs 128 + .map((lang) => { 129 + const percentage = ( 130 + (lang.size / totalLanguageSize) * 131 + (width - 50) 132 + ).toFixed(2); 133 + 134 + const progress = 135 + percentage < 10 ? parseFloat(percentage) + 10 : percentage; 136 + 137 + const output = ` 138 + <rect 139 + mask="url(#rect-mask)" 140 + data-testid="lang-progress" 141 + x="${progressOffset}" 142 + y="0" 143 + width="${progress}" 144 + height="8" 145 + fill="${lang.color || "#858585"}" 146 + /> 147 + `; 148 + progressOffset += parseFloat(percentage); 149 + return output; 150 + }) 151 + .join(""); 152 + 153 + finalLayout = ` 154 + <mask id="rect-mask"> 155 + <rect x="0" y="0" width="${ 156 + width - 50 157 + }" height="8" fill="white" rx="5" /> 158 + </mask> 159 + ${compactProgressBar} 160 + ${createLanguageTextNode({ 161 + x: 0, 162 + y: 25, 163 + langs, 164 + totalSize: totalLanguageSize, 165 + }).join("")} 166 + `; 167 + } else { 168 + finalLayout = FlexLayout({ 169 + items: langs.map((lang) => { 170 + return createProgressTextNode({ 171 + width: width, 172 + name: lang.name, 173 + color: lang.color || "#858585", 174 + progress: ((lang.size / totalLanguageSize) * 100).toFixed(2), 175 + }); 176 + }), 177 + gap: 40, 178 + direction: "column", 179 + }).join(""); 180 + } 181 + 182 + const card = new Card({ 183 + customTitle: custom_title, 184 + defaultTitle: i18n.t("langcard.title"), 185 + width, 186 + height, 187 + border_radius, 188 + colors: { 189 + titleColor, 190 + textColor, 191 + bgColor, 192 + }, 193 + }); 194 + 195 + card.disableAnimations(); 196 + card.setHideBorder(hide_border); 197 + card.setHideTitle(hide_title); 198 + card.setCSS(` 199 + .lang-name { font: 400 11px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} } 200 + `); 201 + 202 + return card.render(` 203 + <svg data-testid="lang-items" x="25"> 204 + ${finalLayout} 205 + </svg> 206 + `); 207 + }; 208 + 209 + module.exports = renderTopLanguages;
+240
src/cards/wakatime-card.js
··· 1 + const Card = require("../common/Card"); 2 + const I18n = require("../common/I18n"); 3 + const { getStyles } = require("../getStyles"); 4 + const { wakatimeCardLocales } = require("../translations"); 5 + const { getCardColors, FlexLayout } = require("../common/utils"); 6 + const { createProgressNode } = require("../common/createProgressNode"); 7 + const languageColors = require("../common/languageColors.json"); 8 + 9 + const noCodingActivityNode = ({ color, text }) => { 10 + return ` 11 + <text x="25" y="11" class="stat bold" fill="${color}">${text}</text> 12 + `; 13 + }; 14 + 15 + const createCompactLangNode = ({ lang, totalSize, x, y }) => { 16 + const color = languageColors[lang.name] || "#858585"; 17 + 18 + return ` 19 + <g transform="translate(${x}, ${y})"> 20 + <circle cx="5" cy="6" r="5" fill="${color}" /> 21 + <text data-testid="lang-name" x="15" y="10" class='lang-name'> 22 + ${lang.name} - ${lang.text} 23 + </text> 24 + </g> 25 + `; 26 + }; 27 + 28 + const createLanguageTextNode = ({ langs, totalSize, x, y }) => { 29 + return langs.map((lang, index) => { 30 + if (index % 2 === 0) { 31 + return createCompactLangNode({ 32 + lang, 33 + x: 25, 34 + y: 12.5 * index + y, 35 + totalSize, 36 + index, 37 + }); 38 + } 39 + return createCompactLangNode({ 40 + lang, 41 + x: 230, 42 + y: 12.5 + 12.5 * index, 43 + totalSize, 44 + index, 45 + }); 46 + }); 47 + }; 48 + 49 + const createTextNode = ({ 50 + id, 51 + label, 52 + value, 53 + index, 54 + percent, 55 + hideProgress, 56 + progressBarColor, 57 + progressBarBackgroundColor, 58 + }) => { 59 + const staggerDelay = (index + 3) * 150; 60 + 61 + const cardProgress = hideProgress 62 + ? null 63 + : createProgressNode({ 64 + x: 110, 65 + y: 4, 66 + progress: percent, 67 + color: progressBarColor, 68 + width: 220, 69 + name: label, 70 + progressBarBackgroundColor, 71 + }); 72 + 73 + return ` 74 + <g class="stagger" style="animation-delay: ${staggerDelay}ms" transform="translate(25, 0)"> 75 + <text class="stat bold" y="12.5">${label}:</text> 76 + <text 77 + class="stat" 78 + x="${hideProgress ? 170 : 350}" 79 + y="12.5" 80 + data-testid="${id}" 81 + >${value}</text> 82 + ${cardProgress} 83 + </g> 84 + `; 85 + }; 86 + 87 + const renderWakatimeCard = (stats = {}, options = { hide: [] }) => { 88 + const { languages } = stats; 89 + const { 90 + hide_title = false, 91 + hide_border = false, 92 + line_height = 25, 93 + title_color, 94 + icon_color, 95 + text_color, 96 + bg_color, 97 + theme = "default", 98 + hide_progress, 99 + custom_title, 100 + locale, 101 + layout, 102 + border_radius 103 + } = options; 104 + 105 + const i18n = new I18n({ 106 + locale, 107 + translations: wakatimeCardLocales, 108 + }); 109 + 110 + const lheight = parseInt(line_height, 10); 111 + 112 + // returns theme based colors with proper overrides and defaults 113 + const { titleColor, textColor, iconColor, bgColor } = getCardColors({ 114 + title_color, 115 + icon_color, 116 + text_color, 117 + bg_color, 118 + theme, 119 + }); 120 + 121 + const statItems = languages 122 + ? languages 123 + .filter((language) => language.hours || language.minutes) 124 + .map((language) => { 125 + return createTextNode({ 126 + id: language.name, 127 + label: language.name, 128 + value: language.text, 129 + percent: language.percent, 130 + progressBarColor: titleColor, 131 + progressBarBackgroundColor: textColor, 132 + hideProgress: hide_progress, 133 + }); 134 + }) 135 + : []; 136 + 137 + // Calculate the card height depending on how many items there are 138 + // but if rank circle is visible clamp the minimum height to `150` 139 + let height = Math.max(45 + (statItems.length + 1) * lheight, 150); 140 + 141 + const cssStyles = getStyles({ 142 + titleColor, 143 + textColor, 144 + iconColor, 145 + }); 146 + 147 + let finalLayout = ""; 148 + 149 + let width = 440; 150 + 151 + // RENDER COMPACT LAYOUT 152 + if (layout === "compact") { 153 + width = width + 50; 154 + height = 90 + Math.round(languages.length / 2) * 25; 155 + 156 + // progressOffset holds the previous language's width and used to offset the next language 157 + // so that we can stack them one after another, like this: [--][----][---] 158 + let progressOffset = 0; 159 + const compactProgressBar = languages 160 + .map((lang) => { 161 + // const progress = (width * lang.percent) / 100; 162 + const progress = ((width - 25) * lang.percent) / 100; 163 + 164 + const languageColor = languageColors[lang.name] || "#858585"; 165 + 166 + const output = ` 167 + <rect 168 + mask="url(#rect-mask)" 169 + data-testid="lang-progress" 170 + x="${progressOffset}" 171 + y="0" 172 + width="${progress}" 173 + height="8" 174 + fill="${languageColor}" 175 + /> 176 + `; 177 + progressOffset += progress; 178 + return output; 179 + }) 180 + .join(""); 181 + 182 + finalLayout = ` 183 + <mask id="rect-mask"> 184 + <rect x="25" y="0" width="${width - 50}" height="8" fill="white" rx="5" /> 185 + </mask> 186 + ${compactProgressBar} 187 + ${createLanguageTextNode({ 188 + x: 0, 189 + y: 25, 190 + langs: languages, 191 + totalSize: 100, 192 + }).join("")} 193 + `; 194 + } else { 195 + finalLayout = FlexLayout({ 196 + items: statItems.length 197 + ? statItems 198 + : [ 199 + noCodingActivityNode({ 200 + color: textColor, 201 + text: i18n.t("wakatimecard.nocodingactivity"), 202 + }), 203 + ], 204 + gap: lheight, 205 + direction: "column", 206 + }).join(""); 207 + } 208 + 209 + const card = new Card({ 210 + customTitle: custom_title, 211 + defaultTitle: i18n.t("wakatimecard.title"), 212 + width: 495, 213 + height, 214 + border_radius, 215 + colors: { 216 + titleColor, 217 + textColor, 218 + iconColor, 219 + bgColor, 220 + }, 221 + }); 222 + 223 + card.setHideBorder(hide_border); 224 + card.setHideTitle(hide_title); 225 + card.setCSS( 226 + ` 227 + ${cssStyles} 228 + .lang-name { font: 400 11px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} } 229 + `, 230 + ); 231 + 232 + return card.render(` 233 + <svg x="0" y="0" width="100%"> 234 + ${finalLayout} 235 + </svg> 236 + `); 237 + }; 238 + 239 + module.exports = renderWakatimeCard; 240 + exports.createProgressNode = createProgressNode;
+175
src/common/Card.js
··· 1 + const { FlexLayout, encodeHTML } = require("../common/utils"); 2 + const { getAnimations } = require("../getStyles"); 3 + 4 + class Card { 5 + constructor({ 6 + width = 100, 7 + height = 100, 8 + border_radius = 4.5, 9 + colors = {}, 10 + customTitle, 11 + defaultTitle = "", 12 + titlePrefixIcon, 13 + }) { 14 + this.width = width; 15 + this.height = height; 16 + 17 + this.hideBorder = false; 18 + this.hideTitle = false; 19 + 20 + this.border_radius = border_radius; 21 + 22 + // returns theme based colors with proper overrides and defaults 23 + this.colors = colors; 24 + this.title = 25 + customTitle !== undefined 26 + ? encodeHTML(customTitle) 27 + : encodeHTML(defaultTitle); 28 + 29 + this.css = ""; 30 + 31 + this.paddingX = 25; 32 + this.paddingY = 35; 33 + this.titlePrefixIcon = titlePrefixIcon; 34 + this.animations = true; 35 + } 36 + 37 + disableAnimations() { 38 + this.animations = false; 39 + } 40 + 41 + setCSS(value) { 42 + this.css = value; 43 + } 44 + 45 + setHideBorder(value) { 46 + this.hideBorder = value; 47 + } 48 + 49 + setHideTitle(value) { 50 + this.hideTitle = value; 51 + if (value) { 52 + this.height -= 30; 53 + } 54 + } 55 + 56 + setTitle(text) { 57 + this.title = text; 58 + } 59 + 60 + renderTitle() { 61 + const titleText = ` 62 + <text 63 + x="0" 64 + y="0" 65 + class="header" 66 + data-testid="header" 67 + >${this.title}</text> 68 + `; 69 + 70 + const prefixIcon = ` 71 + <svg 72 + class="icon" 73 + x="0" 74 + y="-13" 75 + viewBox="0 0 16 16" 76 + version="1.1" 77 + width="16" 78 + height="16" 79 + > 80 + ${this.titlePrefixIcon} 81 + </svg> 82 + `; 83 + return ` 84 + <g 85 + data-testid="card-title" 86 + transform="translate(${this.paddingX}, ${this.paddingY})" 87 + > 88 + ${FlexLayout({ 89 + items: [this.titlePrefixIcon && prefixIcon, titleText], 90 + gap: 25, 91 + }).join("")} 92 + </g> 93 + `; 94 + } 95 + 96 + renderGradient() { 97 + if (typeof this.colors.bgColor !== "object") return; 98 + 99 + const gradients = this.colors.bgColor.slice(1); 100 + return typeof this.colors.bgColor === "object" 101 + ? ` 102 + <defs> 103 + <linearGradient 104 + id="gradient" 105 + gradientTransform="rotate(${this.colors.bgColor[0]})" 106 + > 107 + ${gradients.map((grad, index) => { 108 + let offset = (index * 100) / (gradients.length - 1); 109 + return `<stop offset="${offset}%" stop-color="#${grad}" />`; 110 + })} 111 + </linearGradient> 112 + </defs> 113 + ` 114 + : ""; 115 + } 116 + 117 + render(body) { 118 + return ` 119 + <svg 120 + width="${this.width}" 121 + height="${this.height}" 122 + viewBox="0 0 ${this.width} ${this.height}" 123 + fill="none" 124 + xmlns="http://www.w3.org/2000/svg" 125 + > 126 + <style> 127 + .header { 128 + font: 600 18px 'Segoe UI', Ubuntu, Sans-Serif; 129 + fill: ${this.colors.titleColor}; 130 + animation: fadeInAnimation 0.8s ease-in-out forwards; 131 + } 132 + ${this.css} 133 + 134 + ${process.env.NODE_ENV === "test" ? "" : getAnimations()} 135 + ${ 136 + this.animations === false 137 + ? `* { animation-duration: 0s !important; animation-delay: 0s !important; }` 138 + : "" 139 + } 140 + </style> 141 + 142 + ${this.renderGradient()} 143 + 144 + <rect 145 + data-testid="card-bg" 146 + x="0.5" 147 + y="0.5" 148 + rx="${this.border_radius}" 149 + height="99%" 150 + stroke="#E4E2E2" 151 + width="${this.width - 1}" 152 + fill="${ 153 + typeof this.colors.bgColor === "object" 154 + ? "url(#gradient)" 155 + : this.colors.bgColor 156 + }" 157 + stroke-opacity="${this.hideBorder ? 0 : 1}" 158 + /> 159 + 160 + ${this.hideTitle ? "" : this.renderTitle()} 161 + 162 + <g 163 + data-testid="main-card-body" 164 + transform="translate(0, ${ 165 + this.hideTitle ? this.paddingX : this.paddingY + 20 166 + })" 167 + > 168 + ${body} 169 + </g> 170 + </svg> 171 + `; 172 + } 173 + } 174 + 175 + module.exports = Card;
+21
src/common/I18n.js
··· 1 + class I18n { 2 + constructor({ locale, translations }) { 3 + this.locale = locale; 4 + this.translations = translations; 5 + this.fallbackLocale = "en"; 6 + } 7 + 8 + t(str) { 9 + if (!this.translations[str]) { 10 + throw new Error(`${str} Translation string not found`); 11 + } 12 + 13 + if (!this.translations[str][this.locale || this.fallbackLocale]) { 14 + throw new Error(`${str} Translation locale not found`); 15 + } 16 + 17 + return this.translations[str][this.locale || this.fallbackLocale]; 18 + } 19 + } 20 + 21 + module.exports = I18n;
+3
src/common/blacklist.js
··· 1 + const blacklist = ["renovate-bot", "technote-space", "sw-yx"]; 2 + 3 + module.exports = blacklist;
+28
src/common/createProgressNode.js
··· 1 + const { clampValue } = require("../common/utils"); 2 + 3 + const createProgressNode = ({ 4 + x, 5 + y, 6 + width, 7 + color, 8 + progress, 9 + progressBarBackgroundColor, 10 + }) => { 11 + const progressPercentage = clampValue(progress, 2, 100); 12 + 13 + return ` 14 + <svg width="${width}" x="${x}" y="${y}"> 15 + <rect rx="5" ry="5" x="0" y="0" width="${width}" height="8" fill="${progressBarBackgroundColor}"></rect> 16 + <rect 17 + height="8" 18 + fill="${color}" 19 + rx="5" ry="5" x="0" y="0" 20 + data-testid="lang-progress" 21 + width="${progressPercentage}%" 22 + > 23 + </rect> 24 + </svg> 25 + `; 26 + }; 27 + 28 + exports.createProgressNode = createProgressNode;
+11
src/common/icons.js
··· 1 + const icons = { 2 + star: `<path fill-rule="evenodd" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z"/>`, 3 + commits: `<path fill-rule="evenodd" d="M1.643 3.143L.427 1.927A.25.25 0 000 2.104V5.75c0 .138.112.25.25.25h3.646a.25.25 0 00.177-.427L2.715 4.215a6.5 6.5 0 11-1.18 4.458.75.75 0 10-1.493.154 8.001 8.001 0 101.6-5.684zM7.75 4a.75.75 0 01.75.75v2.992l2.028.812a.75.75 0 01-.557 1.392l-2.5-1A.75.75 0 017 8.25v-3.5A.75.75 0 017.75 4z"/>`, 4 + prs: `<path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"/>`, 5 + issues: `<path fill-rule="evenodd" d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"/>`, 6 + icon: `<path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"/>`, 7 + contribs: `<path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"/>`, 8 + fork: `<path fill-rule="evenodd" d="M5 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm0 2.122a2.25 2.25 0 10-1.5 0v.878A2.25 2.25 0 005.75 8.5h1.5v2.128a2.251 2.251 0 101.5 0V8.5h1.5a2.25 2.25 0 002.25-2.25v-.878a2.25 2.25 0 10-1.5 0v.878a.75.75 0 01-.75.75h-4.5A.75.75 0 015 6.25v-.878zm3.75 7.378a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm3-8.75a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>`, 9 + }; 10 + 11 + module.exports = icons;
+430
src/common/languageColors.json
··· 1 + { 2 + "1C Enterprise": "#814CCC", 3 + "4D": null, 4 + "ABAP": "#E8274B", 5 + "ActionScript": "#882B0F", 6 + "Ada": "#02f88c", 7 + "Agda": "#315665", 8 + "AGS Script": "#B9D9FF", 9 + "AL": "#3AA2B5", 10 + "Alloy": "#64C800", 11 + "Alpine Abuild": null, 12 + "AMPL": "#E6EFBB", 13 + "AngelScript": "#C7D7DC", 14 + "ANTLR": "#9DC3FF", 15 + "Apex": "#1797c0", 16 + "API Blueprint": "#2ACCA8", 17 + "APL": "#5A8164", 18 + "Apollo Guidance Computer": "#0B3D91", 19 + "AppleScript": "#101F1F", 20 + "Arc": "#aa2afe", 21 + "ASL": null, 22 + "ASP.NET": "#9400ff", 23 + "AspectJ": "#a957b0", 24 + "Assembly": "#6E4C13", 25 + "Asymptote": "#ff0000", 26 + "ATS": "#1ac620", 27 + "Augeas": null, 28 + "AutoHotkey": "#6594b9", 29 + "AutoIt": "#1C3552", 30 + "Awk": null, 31 + "Ballerina": "#FF5000", 32 + "Batchfile": "#C1F12E", 33 + "Befunge": null, 34 + "Bison": "#6A463F", 35 + "BitBake": null, 36 + "Blade": "#f7523f", 37 + "BlitzBasic": null, 38 + "BlitzMax": "#cd6400", 39 + "Bluespec": null, 40 + "Boo": "#d4bec1", 41 + "Brainfuck": "#2F2530", 42 + "Brightscript": null, 43 + "C": "#555555", 44 + "C#": "#178600", 45 + "C++": "#f34b7d", 46 + "C2hs Haskell": null, 47 + "Cap'n Proto": null, 48 + "CartoCSS": null, 49 + "Ceylon": "#dfa535", 50 + "Chapel": "#8dc63f", 51 + "Charity": null, 52 + "ChucK": null, 53 + "Cirru": "#ccccff", 54 + "Clarion": "#db901e", 55 + "Classic ASP": "#6a40fd", 56 + "Clean": "#3F85AF", 57 + "Click": "#E4E6F3", 58 + "CLIPS": null, 59 + "Clojure": "#db5855", 60 + "CMake": null, 61 + "COBOL": null, 62 + "CodeQL": null, 63 + "CoffeeScript": "#244776", 64 + "ColdFusion": "#ed2cd6", 65 + "ColdFusion CFC": "#ed2cd6", 66 + "Common Lisp": "#3fb68b", 67 + "Common Workflow Language": "#B5314C", 68 + "Component Pascal": "#B0CE4E", 69 + "Cool": null, 70 + "Coq": null, 71 + "Crystal": "#000100", 72 + "CSON": "#244776", 73 + "Csound": null, 74 + "Csound Document": null, 75 + "Csound Score": null, 76 + "CSS": "#563d7c", 77 + "Cuda": "#3A4E3A", 78 + "CWeb": null, 79 + "Cycript": null, 80 + "Cython": null, 81 + "D": "#ba595e", 82 + "Dafny": "#FFEC25", 83 + "Dart": "#00B4AB", 84 + "DataWeave": "#003a52", 85 + "Dhall": "#dfafff", 86 + "DIGITAL Command Language": null, 87 + "DM": "#447265", 88 + "Dockerfile": "#384d54", 89 + "Dogescript": "#cca760", 90 + "DTrace": null, 91 + "Dylan": "#6c616e", 92 + "E": "#ccce35", 93 + "eC": "#913960", 94 + "ECL": "#8a1267", 95 + "ECLiPSe": null, 96 + "Eiffel": "#4d6977", 97 + "EJS": "#a91e50", 98 + "Elixir": "#6e4a7e", 99 + "Elm": "#60B5CC", 100 + "Emacs Lisp": "#c065db", 101 + "EmberScript": "#FFF4F3", 102 + "EQ": "#a78649", 103 + "Erlang": "#B83998", 104 + "F#": "#b845fc", 105 + "F*": "#572e30", 106 + "Factor": "#636746", 107 + "Fancy": "#7b9db4", 108 + "Fantom": "#14253c", 109 + "Faust": "#c37240", 110 + "Filebench WML": null, 111 + "Filterscript": null, 112 + "fish": null, 113 + "FLUX": "#88ccff", 114 + "Forth": "#341708", 115 + "Fortran": "#4d41b1", 116 + "Fortran Free Form": null, 117 + "FreeMarker": "#0050b2", 118 + "Frege": "#00cafe", 119 + "Futhark": "#5f021f", 120 + "G-code": "#D08CF2", 121 + "Game Maker Language": "#71b417", 122 + "GAML": "#FFC766", 123 + "GAMS": null, 124 + "GAP": null, 125 + "GCC Machine Description": null, 126 + "GDB": null, 127 + "GDScript": "#355570", 128 + "Genie": "#fb855d", 129 + "Genshi": null, 130 + "Gentoo Ebuild": null, 131 + "Gentoo Eclass": null, 132 + "Gherkin": "#5B2063", 133 + "GLSL": null, 134 + "Glyph": "#c1ac7f", 135 + "Gnuplot": "#f0a9f0", 136 + "Go": "#00ADD8", 137 + "Golo": "#88562A", 138 + "Gosu": "#82937f", 139 + "Grace": null, 140 + "Grammatical Framework": "#ff0000", 141 + "GraphQL": "#e10098", 142 + "Groovy": "#e69f56", 143 + "Groovy Server Pages": null, 144 + "Hack": "#878787", 145 + "Haml": "#ece2a9", 146 + "Handlebars": "#f7931e", 147 + "Harbour": "#0e60e3", 148 + "Haskell": "#5e5086", 149 + "Haxe": "#df7900", 150 + "HCL": null, 151 + "HiveQL": "#dce200", 152 + "HLSL": null, 153 + "HolyC": "#ffefaf", 154 + "HTML": "#e34c26", 155 + "Hy": "#7790B2", 156 + "HyPhy": null, 157 + "IDL": "#a3522f", 158 + "Idris": "#b30000", 159 + "IGOR Pro": "#0000cc", 160 + "Inform 7": null, 161 + "Inno Setup": null, 162 + "Io": "#a9188d", 163 + "Ioke": "#078193", 164 + "Isabelle": "#FEFE00", 165 + "Isabelle ROOT": null, 166 + "J": "#9EEDFF", 167 + "Jasmin": null, 168 + "Java": "#b07219", 169 + "Java Server Pages": null, 170 + "JavaScript": "#f1e05a", 171 + "JavaScript+ERB": null, 172 + "JFlex": "#DBCA00", 173 + "Jison": null, 174 + "Jison Lex": null, 175 + "Jolie": "#843179", 176 + "JSONiq": "#40d47e", 177 + "Jsonnet": "#0064bd", 178 + "JSX": null, 179 + "Julia": "#a270ba", 180 + "Jupyter Notebook": "#DA5B0B", 181 + "Kaitai Struct": "#773b37", 182 + "Kotlin": "#F18E33", 183 + "KRL": "#28430A", 184 + "LabVIEW": null, 185 + "Lasso": "#999999", 186 + "Latte": "#f2a542", 187 + "Lean": null, 188 + "Less": "#1d365d", 189 + "Lex": "#DBCA00", 190 + "LFE": "#4C3023", 191 + "LilyPond": null, 192 + "Limbo": null, 193 + "Literate Agda": null, 194 + "Literate CoffeeScript": null, 195 + "Literate Haskell": null, 196 + "LiveScript": "#499886", 197 + "LLVM": "#185619", 198 + "Logos": null, 199 + "Logtalk": null, 200 + "LOLCODE": "#cc9900", 201 + "LookML": "#652B81", 202 + "LoomScript": null, 203 + "LSL": "#3d9970", 204 + "Lua": "#000080", 205 + "M": null, 206 + "M4": null, 207 + "M4Sugar": null, 208 + "Macaulay2": "#d8ffff", 209 + "Makefile": "#427819", 210 + "Mako": null, 211 + "Markdown": "#083fa1", 212 + "Marko": "#42bff2", 213 + "Mask": "#f97732", 214 + "Mathematica": null, 215 + "MATLAB": "#e16737", 216 + "Max": "#c4a79c", 217 + "MAXScript": "#00a6a6", 218 + "mcfunction": "#E22837", 219 + "Mercury": "#ff2b2b", 220 + "Meson": "#007800", 221 + "Metal": "#8f14e9", 222 + "MiniD": null, 223 + "Mirah": "#c7a938", 224 + "mIRC Script": "#3d57c3", 225 + "MLIR": "#5EC8DB", 226 + "Modelica": null, 227 + "Modula-2": null, 228 + "Modula-3": "#223388", 229 + "Module Management System": null, 230 + "Monkey": null, 231 + "Moocode": null, 232 + "MoonScript": null, 233 + "Motorola 68K Assembly": null, 234 + "MQL4": "#62A8D6", 235 + "MQL5": "#4A76B8", 236 + "MTML": "#b7e1f4", 237 + "MUF": null, 238 + "mupad": null, 239 + "Myghty": null, 240 + "NASL": null, 241 + "NCL": "#28431f", 242 + "Nearley": "#990000", 243 + "Nemerle": "#3d3c6e", 244 + "nesC": "#94B0C7", 245 + "NetLinx": "#0aa0ff", 246 + "NetLinx+ERB": "#747faa", 247 + "NetLogo": "#ff6375", 248 + "NewLisp": "#87AED7", 249 + "Nextflow": "#3ac486", 250 + "Nim": "#ffc200", 251 + "Nit": "#009917", 252 + "Nix": "#7e7eff", 253 + "NSIS": null, 254 + "Nu": "#c9df40", 255 + "NumPy": "#9C8AF9", 256 + "Objective-C": "#438eff", 257 + "Objective-C++": "#6866fb", 258 + "Objective-J": "#ff0c5a", 259 + "ObjectScript": "#424893", 260 + "OCaml": "#3be133", 261 + "Odin": "#60AFFE", 262 + "Omgrofl": "#cabbff", 263 + "ooc": "#b0b77e", 264 + "Opa": null, 265 + "Opal": "#f7ede0", 266 + "Open Policy Agent": null, 267 + "OpenCL": null, 268 + "OpenEdge ABL": null, 269 + "OpenQASM": "#AA70FF", 270 + "OpenRC runscript": null, 271 + "OpenSCAD": null, 272 + "Ox": null, 273 + "Oxygene": "#cdd0e3", 274 + "Oz": "#fab738", 275 + "P4": "#7055b5", 276 + "Pan": "#cc0000", 277 + "Papyrus": "#6600cc", 278 + "Parrot": "#f3ca0a", 279 + "Parrot Assembly": null, 280 + "Parrot Internal Representation": null, 281 + "Pascal": "#E3F171", 282 + "Pawn": "#dbb284", 283 + "Pep8": "#C76F5B", 284 + "Perl": "#0298c3", 285 + "PHP": "#4F5D95", 286 + "PicoLisp": null, 287 + "PigLatin": "#fcd7de", 288 + "Pike": "#005390", 289 + "PLpgSQL": null, 290 + "PLSQL": "#dad8d8", 291 + "PogoScript": "#d80074", 292 + "Pony": null, 293 + "PostScript": "#da291c", 294 + "POV-Ray SDL": null, 295 + "PowerBuilder": "#8f0f8d", 296 + "PowerShell": "#012456", 297 + "Prisma": "#0c344b", 298 + "Processing": "#0096D8", 299 + "Prolog": "#74283c", 300 + "Propeller Spin": "#7fa2a7", 301 + "Pug": "#a86454", 302 + "Puppet": "#302B6D", 303 + "PureBasic": "#5a6986", 304 + "PureScript": "#1D222D", 305 + "Python": "#3572A5", 306 + "Python console": null, 307 + "q": "#0040cd", 308 + "Q#": "#fed659", 309 + "QMake": null, 310 + "QML": "#44a51c", 311 + "Qt Script": "#00b841", 312 + "Quake": "#882233", 313 + "R": "#198CE7", 314 + "Racket": "#3c5caa", 315 + "Ragel": "#9d5200", 316 + "Raku": "#0000fb", 317 + "RAML": "#77d9fb", 318 + "Rascal": "#fffaa0", 319 + "REALbasic": null, 320 + "Reason": "#ff5847", 321 + "Rebol": "#358a5b", 322 + "Red": "#f50000", 323 + "Redcode": null, 324 + "Ren'Py": "#ff7f7f", 325 + "RenderScript": null, 326 + "REXX": null, 327 + "Ring": "#2D54CB", 328 + "Riot": "#A71E49", 329 + "RobotFramework": null, 330 + "Roff": "#ecdebe", 331 + "Rouge": "#cc0088", 332 + "RPC": null, 333 + "Ruby": "#701516", 334 + "RUNOFF": "#665a4e", 335 + "Rust": "#dea584", 336 + "Sage": null, 337 + "SaltStack": "#646464", 338 + "SAS": "#B34936", 339 + "Sass": "#a53b70", 340 + "Scala": "#c22d40", 341 + "Scheme": "#1e4aec", 342 + "Scilab": null, 343 + "SCSS": "#c6538c", 344 + "sed": "#64b970", 345 + "Self": "#0579aa", 346 + "ShaderLab": null, 347 + "Shell": "#89e051", 348 + "ShellSession": null, 349 + "Shen": "#120F14", 350 + "Sieve": null, 351 + "Slash": "#007eff", 352 + "Slice": "#003fa2", 353 + "Slim": "#2b2b2b", 354 + "Smali": null, 355 + "Smalltalk": "#596706", 356 + "Smarty": null, 357 + "SmPL": "#c94949", 358 + "SMT": null, 359 + "Solidity": "#AA6746", 360 + "SourcePawn": "#f69e1d", 361 + "SQF": "#3F3F3F", 362 + "SQLPL": null, 363 + "Squirrel": "#800000", 364 + "SRecode Template": "#348a34", 365 + "Stan": "#b2011d", 366 + "Standard ML": "#dc566d", 367 + "Starlark": "#76d275", 368 + "Stata": null, 369 + "Stylus": "#ff6347", 370 + "SuperCollider": "#46390b", 371 + "Svelte": "#ff3e00", 372 + "SVG": "#ff9900", 373 + "Swift": "#ffac45", 374 + "SWIG": null, 375 + "SystemVerilog": "#DAE1C2", 376 + "Tcl": "#e4cc98", 377 + "Tcsh": null, 378 + "Terra": "#00004c", 379 + "TeX": "#3D6117", 380 + "Thrift": null, 381 + "TI Program": "#A0AA87", 382 + "TLA": null, 383 + "TSQL": null, 384 + "TSX": null, 385 + "Turing": "#cf142b", 386 + "Twig": "#c1d026", 387 + "TXL": null, 388 + "TypeScript": "#2b7489", 389 + "Unified Parallel C": "#4e3617", 390 + "Unix Assembly": null, 391 + "Uno": "#9933cc", 392 + "UnrealScript": "#a54c4d", 393 + "UrWeb": null, 394 + "V": "#4f87c4", 395 + "Vala": "#fbe5cd", 396 + "VBA": "#867db1", 397 + "VBScript": "#15dcdc", 398 + "VCL": "#148AA8", 399 + "Verilog": "#b2b7f8", 400 + "VHDL": "#adb2cb", 401 + "Vim script": "#199f4b", 402 + "Visual Basic .NET": "#945db7", 403 + "Volt": "#1F1F1F", 404 + "Vue": "#2c3e50", 405 + "wdl": "#42f1f4", 406 + "WebAssembly": "#04133b", 407 + "WebIDL": null, 408 + "wisp": "#7582D1", 409 + "Wollok": "#a23738", 410 + "X10": "#4B6BEF", 411 + "xBase": "#403a40", 412 + "XC": "#99DA07", 413 + "Xojo": null, 414 + "XProc": null, 415 + "XQuery": "#5232e7", 416 + "XS": null, 417 + "XSLT": "#EB8CEB", 418 + "Xtend": null, 419 + "Yacc": "#4B6C4B", 420 + "YAML": "#cb171e", 421 + "YARA": "#220000", 422 + "YASnippet": "#32AB90", 423 + "ZAP": "#0d665e", 424 + "Zeek": null, 425 + "ZenScript": "#00BCD1", 426 + "Zephir": "#118f9e", 427 + "Zig": "#ec915c", 428 + "ZIL": "#dc75e5", 429 + "Zimpl": null 430 + }
+43
src/common/retryer.js
··· 1 + const { logger, CustomError } = require("../common/utils"); 2 + 3 + const retryer = async (fetcher, variables, retries = 0) => { 4 + if (retries > 7) { 5 + throw new CustomError("Maximum retries exceeded", CustomError.MAX_RETRY); 6 + } 7 + try { 8 + // try to fetch with the first token since RETRIES is 0 index i'm adding +1 9 + let response = await fetcher( 10 + variables, 11 + process.env[`PAT_${retries + 1}`], 12 + retries, 13 + ); 14 + 15 + // prettier-ignore 16 + const isRateExceeded = response.data.errors && response.data.errors[0].type === "RATE_LIMITED"; 17 + 18 + // if rate limit is hit increase the RETRIES and recursively call the retryer 19 + // with username, and current RETRIES 20 + if (isRateExceeded) { 21 + logger.log(`PAT_${retries + 1} Failed`); 22 + retries++; 23 + // directly return from the function 24 + return retryer(fetcher, variables, retries); 25 + } 26 + 27 + // finally return the response 28 + return response; 29 + } catch (err) { 30 + // prettier-ignore 31 + // also checking for bad credentials if any tokens gets invalidated 32 + const isBadCredential = err.response.data && err.response.data.message === "Bad credentials"; 33 + 34 + if (isBadCredential) { 35 + logger.log(`PAT_${retries + 1} Failed`); 36 + retries++; 37 + // directly return from the function 38 + return retryer(fetcher, variables, retries); 39 + } 40 + } 41 + }; 42 + 43 + module.exports = retryer;
+243
src/common/utils.js
··· 1 + const axios = require("axios"); 2 + const wrap = require("word-wrap"); 3 + const themes = require("../../themes"); 4 + 5 + const renderError = (message, secondaryMessage = "") => { 6 + return ` 7 + <svg width="495" height="120" viewBox="0 0 495 120" fill="none" xmlns="http://www.w3.org/2000/svg"> 8 + <style> 9 + .text { font: 600 16px 'Segoe UI', Ubuntu, Sans-Serif; fill: #2F80ED } 10 + .small { font: 600 12px 'Segoe UI', Ubuntu, Sans-Serif; fill: #252525 } 11 + .gray { fill: #858585 } 12 + </style> 13 + <rect x="0.5" y="0.5" width="494" height="99%" rx="4.5" fill="#FFFEFE" stroke="#E4E2E2"/> 14 + <text x="25" y="45" class="text">Something went wrong! file an issue at https://git.io/JJmN9</text> 15 + <text data-testid="message" x="25" y="55" class="text small"> 16 + <tspan x="25" dy="18">${encodeHTML(message)}</tspan> 17 + <tspan x="25" dy="18" class="gray">${secondaryMessage}</tspan> 18 + </text> 19 + </svg> 20 + `; 21 + }; 22 + 23 + // https://stackoverflow.com/a/48073476/10629172 24 + function encodeHTML(str) { 25 + return str 26 + .replace(/[\u00A0-\u9999<>&](?!#)/gim, (i) => { 27 + return "&#" + i.charCodeAt(0) + ";"; 28 + }) 29 + .replace(/\u0008/gim, ""); 30 + } 31 + 32 + function kFormatter(num) { 33 + return Math.abs(num) > 999 34 + ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + "k" 35 + : Math.sign(num) * Math.abs(num); 36 + } 37 + 38 + function isValidHexColor(hexColor) { 39 + return new RegExp( 40 + /^([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{4})$/, 41 + ).test(hexColor); 42 + } 43 + 44 + function parseBoolean(value) { 45 + if (value === "true") { 46 + return true; 47 + } else if (value === "false") { 48 + return false; 49 + } else { 50 + return value; 51 + } 52 + } 53 + 54 + function parseArray(str) { 55 + if (!str) return []; 56 + return str.split(","); 57 + } 58 + 59 + function clampValue(number, min, max) { 60 + return Math.max(min, Math.min(number, max)); 61 + } 62 + 63 + function isValidGradient(colors) { 64 + return isValidHexColor(colors[1]) && isValidHexColor(colors[2]); 65 + } 66 + 67 + function fallbackColor(color, fallbackColor) { 68 + let colors = color.split(","); 69 + let gradient = null; 70 + 71 + if (colors.length > 1 && isValidGradient(colors)) { 72 + gradient = colors; 73 + } 74 + 75 + return ( 76 + (gradient ? gradient : isValidHexColor(color) && `#${color}`) || 77 + fallbackColor 78 + ); 79 + } 80 + 81 + function request(data, headers) { 82 + return axios({ 83 + url: "https://api.github.com/graphql", 84 + method: "post", 85 + headers, 86 + data, 87 + }); 88 + } 89 + 90 + /** 91 + * 92 + * @param {String[]} items 93 + * @param {Number} gap 94 + * @param {string} direction 95 + * 96 + * @description 97 + * Auto layout utility, allows us to layout things 98 + * vertically or horizontally with proper gaping 99 + */ 100 + function FlexLayout({ items, gap, direction }) { 101 + // filter() for filtering out empty strings 102 + return items.filter(Boolean).map((item, i) => { 103 + let transform = `translate(${gap * i}, 0)`; 104 + if (direction === "column") { 105 + transform = `translate(0, ${gap * i})`; 106 + } 107 + return `<g transform="${transform}">${item}</g>`; 108 + }); 109 + } 110 + 111 + // returns theme based colors with proper overrides and defaults 112 + function getCardColors({ 113 + title_color, 114 + text_color, 115 + icon_color, 116 + bg_color, 117 + theme, 118 + fallbackTheme = "default", 119 + }) { 120 + const defaultTheme = themes[fallbackTheme]; 121 + const selectedTheme = themes[theme] || defaultTheme; 122 + 123 + // get the color provided by the user else the theme color 124 + // finally if both colors are invalid fallback to default theme 125 + const titleColor = fallbackColor( 126 + title_color || selectedTheme.title_color, 127 + "#" + defaultTheme.title_color, 128 + ); 129 + const iconColor = fallbackColor( 130 + icon_color || selectedTheme.icon_color, 131 + "#" + defaultTheme.icon_color, 132 + ); 133 + const textColor = fallbackColor( 134 + text_color || selectedTheme.text_color, 135 + "#" + defaultTheme.text_color, 136 + ); 137 + const bgColor = fallbackColor( 138 + bg_color || selectedTheme.bg_color, 139 + "#" + defaultTheme.bg_color, 140 + ); 141 + 142 + return { titleColor, iconColor, textColor, bgColor }; 143 + } 144 + 145 + function wrapTextMultiline(text, width = 60, maxLines = 3) { 146 + const wrapped = wrap(encodeHTML(text), { width }) 147 + .split("\n") // Split wrapped lines to get an array of lines 148 + .map((line) => line.trim()); // Remove leading and trailing whitespace of each line 149 + 150 + const lines = wrapped.slice(0, maxLines); // Only consider maxLines lines 151 + 152 + // Add "..." to the last line if the text exceeds maxLines 153 + if (wrapped.length > maxLines) { 154 + lines[maxLines - 1] += "..."; 155 + } 156 + 157 + // Remove empty lines if text fits in less than maxLines lines 158 + const multiLineText = lines.filter(Boolean); 159 + return multiLineText; 160 + } 161 + 162 + const noop = () => {}; 163 + // return console instance based on the environment 164 + const logger = 165 + process.env.NODE_ENV !== "test" ? console : { log: noop, error: noop }; 166 + 167 + const CONSTANTS = { 168 + THIRTY_MINUTES: 1800, 169 + TWO_HOURS: 7200, 170 + FOUR_HOURS: 14400, 171 + ONE_DAY: 86400, 172 + }; 173 + 174 + const SECONDARY_ERROR_MESSAGES = { 175 + MAX_RETRY: 176 + "Please add an env variable called PAT_1 with your github token in vercel", 177 + USER_NOT_FOUND: "Make sure the provided username is not an organization", 178 + }; 179 + 180 + class CustomError extends Error { 181 + constructor(message, type) { 182 + super(message); 183 + this.type = type; 184 + this.secondaryMessage = SECONDARY_ERROR_MESSAGES[type] || "adsad"; 185 + } 186 + 187 + static MAX_RETRY = "MAX_RETRY"; 188 + static USER_NOT_FOUND = "USER_NOT_FOUND"; 189 + } 190 + 191 + // https://stackoverflow.com/a/48172630/10629172 192 + function measureText(str, fontSize = 10) { 193 + // prettier-ignore 194 + const widths = [ 195 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197 + 0, 0, 0, 0, 0.2796875, 0.2765625, 198 + 0.3546875, 0.5546875, 0.5546875, 0.8890625, 0.665625, 0.190625, 199 + 0.3328125, 0.3328125, 0.3890625, 0.5828125, 0.2765625, 0.3328125, 200 + 0.2765625, 0.3015625, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 201 + 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 202 + 0.2765625, 0.2765625, 0.584375, 0.5828125, 0.584375, 0.5546875, 203 + 1.0140625, 0.665625, 0.665625, 0.721875, 0.721875, 0.665625, 204 + 0.609375, 0.7765625, 0.721875, 0.2765625, 0.5, 0.665625, 205 + 0.5546875, 0.8328125, 0.721875, 0.7765625, 0.665625, 0.7765625, 206 + 0.721875, 0.665625, 0.609375, 0.721875, 0.665625, 0.94375, 207 + 0.665625, 0.665625, 0.609375, 0.2765625, 0.3546875, 0.2765625, 208 + 0.4765625, 0.5546875, 0.3328125, 0.5546875, 0.5546875, 0.5, 209 + 0.5546875, 0.5546875, 0.2765625, 0.5546875, 0.5546875, 0.221875, 210 + 0.240625, 0.5, 0.221875, 0.8328125, 0.5546875, 0.5546875, 211 + 0.5546875, 0.5546875, 0.3328125, 0.5, 0.2765625, 0.5546875, 212 + 0.5, 0.721875, 0.5, 0.5, 0.5, 0.3546875, 0.259375, 0.353125, 0.5890625, 213 + ]; 214 + 215 + const avg = 0.5279276315789471; 216 + return ( 217 + str 218 + .split("") 219 + .map((c) => 220 + c.charCodeAt(0) < widths.length ? widths[c.charCodeAt(0)] : avg, 221 + ) 222 + .reduce((cur, acc) => acc + cur) * fontSize 223 + ); 224 + } 225 + 226 + module.exports = { 227 + renderError, 228 + kFormatter, 229 + encodeHTML, 230 + isValidHexColor, 231 + request, 232 + parseArray, 233 + parseBoolean, 234 + fallbackColor, 235 + FlexLayout, 236 + getCardColors, 237 + clampValue, 238 + wrapTextMultiline, 239 + measureText, 240 + logger, 241 + CONSTANTS, 242 + CustomError, 243 + };
+80
src/fetchers/repo-fetcher.js
··· 1 + const { request } = require("../common/utils"); 2 + const retryer = require("../common/retryer"); 3 + 4 + const fetcher = (variables, token) => { 5 + return request( 6 + { 7 + query: ` 8 + fragment RepoInfo on Repository { 9 + name 10 + nameWithOwner 11 + isPrivate 12 + isArchived 13 + isTemplate 14 + stargazers { 15 + totalCount 16 + } 17 + description 18 + primaryLanguage { 19 + color 20 + id 21 + name 22 + } 23 + forkCount 24 + } 25 + query getRepo($login: String!, $repo: String!) { 26 + user(login: $login) { 27 + repository(name: $repo) { 28 + ...RepoInfo 29 + } 30 + } 31 + organization(login: $login) { 32 + repository(name: $repo) { 33 + ...RepoInfo 34 + } 35 + } 36 + } 37 + `, 38 + variables, 39 + }, 40 + { 41 + Authorization: `bearer ${token}`, 42 + }, 43 + ); 44 + }; 45 + 46 + async function fetchRepo(username, reponame) { 47 + if (!username || !reponame) { 48 + throw new Error("Invalid username or reponame"); 49 + } 50 + 51 + let res = await retryer(fetcher, { login: username, repo: reponame }); 52 + 53 + const data = res.data.data; 54 + 55 + if (!data.user && !data.organization) { 56 + throw new Error("Not found"); 57 + } 58 + 59 + const isUser = data.organization === null && data.user; 60 + const isOrg = data.user === null && data.organization; 61 + 62 + if (isUser) { 63 + if (!data.user.repository || data.user.repository.isPrivate) { 64 + throw new Error("User Repository Not found"); 65 + } 66 + return data.user.repository; 67 + } 68 + 69 + if (isOrg) { 70 + if ( 71 + !data.organization.repository || 72 + data.organization.repository.isPrivate 73 + ) { 74 + throw new Error("Organization Repository Not found"); 75 + } 76 + return data.organization.repository; 77 + } 78 + } 79 + 80 + module.exports = fetchRepo;
+153
src/fetchers/stats-fetcher.js
··· 1 + const { request, logger, CustomError } = require("../common/utils"); 2 + const axios = require("axios"); 3 + const retryer = require("../common/retryer"); 4 + const calculateRank = require("../calculateRank"); 5 + const githubUsernameRegex = require("github-username-regex"); 6 + 7 + require("dotenv").config(); 8 + 9 + const fetcher = (variables, token) => { 10 + return request( 11 + { 12 + query: ` 13 + query userInfo($login: String!) { 14 + user(login: $login) { 15 + name 16 + login 17 + contributionsCollection { 18 + totalCommitContributions 19 + restrictedContributionsCount 20 + } 21 + repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { 22 + totalCount 23 + } 24 + pullRequests(first: 1) { 25 + totalCount 26 + } 27 + issues(first: 1) { 28 + totalCount 29 + } 30 + followers { 31 + totalCount 32 + } 33 + repositories(first: 100, ownerAffiliations: OWNER, orderBy: {direction: DESC, field: STARGAZERS}) { 34 + totalCount 35 + nodes { 36 + stargazers { 37 + totalCount 38 + } 39 + } 40 + } 41 + } 42 + } 43 + `, 44 + variables, 45 + }, 46 + { 47 + Authorization: `bearer ${token}`, 48 + }, 49 + ); 50 + }; 51 + 52 + // https://github.com/anuraghazra/github-readme-stats/issues/92#issuecomment-661026467 53 + // https://github.com/anuraghazra/github-readme-stats/pull/211/ 54 + const totalCommitsFetcher = async (username) => { 55 + if (!githubUsernameRegex.test(username)) { 56 + logger.log("Invalid username"); 57 + return 0; 58 + } 59 + 60 + // https://developer.github.com/v3/search/#search-commits 61 + const fetchTotalCommits = (variables, token) => { 62 + return axios({ 63 + method: "get", 64 + url: `https://api.github.com/search/commits?q=author:${variables.login}`, 65 + headers: { 66 + "Content-Type": "application/json", 67 + Accept: "application/vnd.github.cloak-preview", 68 + Authorization: `bearer ${token}`, 69 + }, 70 + }); 71 + }; 72 + 73 + try { 74 + let res = await retryer(fetchTotalCommits, { login: username }); 75 + if (res.data.total_count) { 76 + return res.data.total_count; 77 + } 78 + } catch (err) { 79 + logger.log(err); 80 + // just return 0 if there is something wrong so that 81 + // we don't break the whole app 82 + return 0; 83 + } 84 + }; 85 + 86 + async function fetchStats( 87 + username, 88 + count_private = false, 89 + include_all_commits = false, 90 + ) { 91 + if (!username) throw Error("Invalid username"); 92 + 93 + const stats = { 94 + name: "", 95 + totalPRs: 0, 96 + totalCommits: 0, 97 + totalIssues: 0, 98 + totalStars: 0, 99 + contributedTo: 0, 100 + rank: { level: "C", score: 0 }, 101 + }; 102 + 103 + let res = await retryer(fetcher, { login: username }); 104 + 105 + if (res.data.errors) { 106 + logger.error(res.data.errors); 107 + throw new CustomError( 108 + res.data.errors[0].message || "Could not fetch user", 109 + CustomError.USER_NOT_FOUND, 110 + ); 111 + } 112 + 113 + const user = res.data.data.user; 114 + 115 + stats.name = user.name || user.login; 116 + stats.totalIssues = user.issues.totalCount; 117 + 118 + // normal commits 119 + stats.totalCommits = user.contributionsCollection.totalCommitContributions; 120 + 121 + // if include_all_commits then just get that, 122 + // since totalCommitsFetcher already sends totalCommits no need to += 123 + if (include_all_commits) { 124 + stats.totalCommits = await totalCommitsFetcher(username); 125 + } 126 + 127 + // if count_private then add private commits to totalCommits so far. 128 + if (count_private) { 129 + stats.totalCommits += 130 + user.contributionsCollection.restrictedContributionsCount; 131 + } 132 + 133 + stats.totalPRs = user.pullRequests.totalCount; 134 + stats.contributedTo = user.repositoriesContributedTo.totalCount; 135 + 136 + stats.totalStars = user.repositories.nodes.reduce((prev, curr) => { 137 + return prev + curr.stargazers.totalCount; 138 + }, 0); 139 + 140 + stats.rank = calculateRank({ 141 + totalCommits: stats.totalCommits, 142 + totalRepos: user.repositories.totalCount, 143 + followers: user.followers.totalCount, 144 + contributions: stats.contributedTo, 145 + stargazers: stats.totalStars, 146 + prs: stats.totalPRs, 147 + issues: stats.totalIssues, 148 + }); 149 + 150 + return stats; 151 + } 152 + 153 + module.exports = fetchStats;
+104
src/fetchers/top-languages-fetcher.js
··· 1 + const { request, logger, clampValue } = require("../common/utils"); 2 + const retryer = require("../common/retryer"); 3 + require("dotenv").config(); 4 + 5 + const fetcher = (variables, token) => { 6 + return request( 7 + { 8 + query: ` 9 + query userInfo($login: String!) { 10 + user(login: $login) { 11 + # fetch only owner repos & not forks 12 + repositories(ownerAffiliations: OWNER, isFork: false, first: 100) { 13 + nodes { 14 + name 15 + languages(first: 10, orderBy: {field: SIZE, direction: DESC}) { 16 + edges { 17 + size 18 + node { 19 + color 20 + name 21 + } 22 + } 23 + } 24 + } 25 + } 26 + } 27 + } 28 + `, 29 + variables, 30 + }, 31 + { 32 + Authorization: `bearer ${token}`, 33 + }, 34 + ); 35 + }; 36 + 37 + async function fetchTopLanguages(username, langsCount = 5, exclude_repo = []) { 38 + if (!username) throw Error("Invalid username"); 39 + 40 + langsCount = clampValue(parseInt(langsCount), 1, 10); 41 + 42 + const res = await retryer(fetcher, { login: username }); 43 + 44 + if (res.data.errors) { 45 + logger.error(res.data.errors); 46 + throw Error(res.data.errors[0].message || "Could not fetch user"); 47 + } 48 + 49 + let repoNodes = res.data.data.user.repositories.nodes; 50 + let repoToHide = {}; 51 + 52 + // populate repoToHide map for quick lookup 53 + // while filtering out 54 + if (exclude_repo) { 55 + exclude_repo.forEach((repoName) => { 56 + repoToHide[repoName] = true; 57 + }); 58 + } 59 + 60 + // filter out repositories to be hidden 61 + repoNodes = repoNodes 62 + .sort((a, b) => b.size - a.size) 63 + .filter((name) => { 64 + return !repoToHide[name.name]; 65 + }); 66 + 67 + repoNodes = repoNodes 68 + .filter((node) => { 69 + return node.languages.edges.length > 0; 70 + }) 71 + // flatten the list of language nodes 72 + .reduce((acc, curr) => curr.languages.edges.concat(acc), []) 73 + .reduce((acc, prev) => { 74 + // get the size of the language (bytes) 75 + let langSize = prev.size; 76 + 77 + // if we already have the language in the accumulator 78 + // & the current language name is same as previous name 79 + // add the size to the language size. 80 + if (acc[prev.node.name] && prev.node.name === acc[prev.node.name].name) { 81 + langSize = prev.size + acc[prev.node.name].size; 82 + } 83 + return { 84 + ...acc, 85 + [prev.node.name]: { 86 + name: prev.node.name, 87 + color: prev.node.color, 88 + size: langSize, 89 + }, 90 + }; 91 + }, {}); 92 + 93 + const topLangs = Object.keys(repoNodes) 94 + .sort((a, b) => repoNodes[b].size - repoNodes[a].size) 95 + .slice(0, langsCount) 96 + .reduce((result, key) => { 97 + result[key] = repoNodes[key]; 98 + return result; 99 + }, {}); 100 + 101 + return topLangs; 102 + } 103 + 104 + module.exports = fetchTopLanguages;
+24
src/fetchers/wakatime-fetcher.js
··· 1 + const axios = require("axios"); 2 + 3 + const fetchWakatimeStats = async ({ username, api_domain, range }) => { 4 + try { 5 + const { data } = await axios.get( 6 + `https://${ 7 + api_domain ? api_domain.replace(/[^a-z-.0-9]/gi, "") : "wakatime.com" 8 + }/api/v1/users/${username}/stats/${range || ''}?is_including_today=true`, 9 + ); 10 + 11 + return data.data; 12 + } catch (err) { 13 + if (err.response.status < 200 || err.response.status > 299) { 14 + throw new Error( 15 + "Wakatime user not found, make sure you have a wakatime profile", 16 + ); 17 + } 18 + throw err; 19 + } 20 + }; 21 + 22 + module.exports = { 23 + fetchWakatimeStats, 24 + };
+94
src/getStyles.js
··· 1 + const calculateCircleProgress = (value) => { 2 + let radius = 40; 3 + let c = Math.PI * (radius * 2); 4 + 5 + if (value < 0) value = 0; 6 + if (value > 100) value = 100; 7 + 8 + let percentage = ((100 - value) / 100) * c; 9 + return percentage; 10 + }; 11 + 12 + const getProgressAnimation = ({ progress }) => { 13 + return ` 14 + @keyframes rankAnimation { 15 + from { 16 + stroke-dashoffset: ${calculateCircleProgress(0)}; 17 + } 18 + to { 19 + stroke-dashoffset: ${calculateCircleProgress(progress)}; 20 + } 21 + } 22 + `; 23 + }; 24 + 25 + const getAnimations = () => { 26 + return ` 27 + /* Animations */ 28 + @keyframes scaleInAnimation { 29 + from { 30 + transform: translate(-5px, 5px) scale(0); 31 + } 32 + to { 33 + transform: translate(-5px, 5px) scale(1); 34 + } 35 + } 36 + @keyframes fadeInAnimation { 37 + from { 38 + opacity: 0; 39 + } 40 + to { 41 + opacity: 1; 42 + } 43 + } 44 + `; 45 + }; 46 + 47 + const getStyles = ({ 48 + titleColor, 49 + textColor, 50 + iconColor, 51 + show_icons, 52 + progress, 53 + }) => { 54 + return ` 55 + .stat { 56 + font: 600 14px 'Segoe UI', Ubuntu, "Helvetica Neue", Sans-Serif; fill: ${textColor}; 57 + } 58 + .stagger { 59 + opacity: 0; 60 + animation: fadeInAnimation 0.3s ease-in-out forwards; 61 + } 62 + .rank-text { 63 + font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor}; 64 + animation: scaleInAnimation 0.3s ease-in-out forwards; 65 + } 66 + 67 + .bold { font-weight: 700 } 68 + .icon { 69 + fill: ${iconColor}; 70 + display: ${!!show_icons ? "block" : "none"}; 71 + } 72 + 73 + .rank-circle-rim { 74 + stroke: ${titleColor}; 75 + fill: none; 76 + stroke-width: 6; 77 + opacity: 0.2; 78 + } 79 + .rank-circle { 80 + stroke: ${titleColor}; 81 + stroke-dasharray: 250; 82 + fill: none; 83 + stroke-width: 6; 84 + stroke-linecap: round; 85 + opacity: 0.8; 86 + transform-origin: -10px 8px; 87 + transform: rotate(-90deg); 88 + animation: rankAnimation 1s forwards ease-in-out; 89 + } 90 + ${process.env.NODE_ENV === "test" ? "" : getProgressAnimation({ progress })} 91 + `; 92 + }; 93 + 94 + module.exports = { getStyles, getAnimations };
+294
src/translations.js
··· 1 + const { encodeHTML } = require("./common/utils"); 2 + 3 + const statCardLocales = ({ name, apostrophe }) => { 4 + return { 5 + "statcard.title": { 6 + cn: `${encodeHTML(name)} 的 GitHub 统计数据`, 7 + cs: `GitHub statistiky uživatele ${encodeHTML(name)}`, 8 + de: `${encodeHTML(name) + apostrophe} GitHub-Statistiken`, 9 + en: `${encodeHTML(name)}'${apostrophe} GitHub Stats`, 10 + es: `Estadísticas de GitHub de ${encodeHTML(name)}`, 11 + fr: `Statistiques GitHub de ${encodeHTML(name)}`, 12 + hu: `${encodeHTML(name)} GitHub statisztika`, 13 + it: `Statistiche GitHub di ${encodeHTML(name)}`, 14 + ja: `${encodeHTML(name)}の GitHub 統計`, 15 + kr: `${encodeHTML(name)}의 GitHub 통계`, 16 + nl: `${encodeHTML(name)}'${apostrophe} GitHub Statistieken`, 17 + "pt-pt": `Estatísticas do GitHub de ${encodeHTML(name)}`, 18 + "pt-br": `Estatísticas do GitHub de ${encodeHTML(name)}`, 19 + np: `${encodeHTML(name)}'${apostrophe} गिटहब तथ्याङ्क`, 20 + el: `Στατιστικά GitHub του ${encodeHTML(name)}`, 21 + ru: `Статистика GitHub пользователя ${encodeHTML(name)}`, 22 + "uk-ua": `Статистика GitHub користувача ${encodeHTML(name)}`, 23 + id: `Statistik GitHub ${encodeHTML(name)}`, 24 + my: `Statistik GitHub ${encodeHTML(name)}`, 25 + sk: `GitHub štatistiky používateľa ${encodeHTML(name)}`, 26 + tr: `${encodeHTML(name)} Hesabının GitHub Yıldızları`, 27 + pl: `Statystyki GitHub użytkownika ${encodeHTML(name)}`, 28 + }, 29 + "statcard.totalstars": { 30 + cn: "获标星数(star)", 31 + cs: "Celkem hvězd", 32 + de: "Sterne Insgesamt", 33 + en: "Total Stars", 34 + es: "Estrellas totales", 35 + fr: "Total d'étoiles", 36 + hu: "Csillagok", 37 + it: "Stelle totali", 38 + ja: "スターされた数", 39 + kr: "받은 스타 수", 40 + nl: "Totale Sterren", 41 + "pt-pt": "Total de estrelas", 42 + "pt-br": "Total de estrelas", 43 + np: "कुल ताराहरू", 44 + el: "Σύνολο Αστεριών", 45 + ru: "Всего звезд", 46 + "uk-ua": "Всього зірок", 47 + id: "Total Bintang", 48 + my: "Jumlah Bintang", 49 + sk: "Hviezdy", 50 + tr: "Toplam Yıldız", 51 + pl: "Liczba Gwiazdek", 52 + }, 53 + "statcard.commits": { 54 + cn: "累计提交数(commit)", 55 + cs: "Celkem commitů", 56 + de: "Anzahl Commits", 57 + en: "Total Commits", 58 + es: "Commits totales", 59 + fr: "Total des validations", 60 + hu: "Összes commit", 61 + it: "Commit totali", 62 + ja: "合計コミット数", 63 + kr: "전체 커밋 수", 64 + nl: "Totale Commits", 65 + "pt-pt": "Total de Commits", 66 + "pt-br": "Total de Commits", 67 + np: "कुल Commits", 68 + el: "Σύνολο Commits", 69 + ru: "Всего коммитов", 70 + "uk-ua": "Всього коммітов", 71 + id: "Total Komitmen", 72 + my: "Jumlah Komitmen", 73 + sk: "Všetky commity", 74 + tr: "Toplam Commit", 75 + pl: "Wszystkie commity", 76 + }, 77 + "statcard.prs": { 78 + cn: "拉取请求数(PR)", 79 + cs: "Celkem PRs", 80 + de: "PRs Insgesamt", 81 + en: "Total PRs", 82 + es: "PRs totales", 83 + fr: "Total des PR", 84 + hu: "Összes PR", 85 + it: "PR totali", 86 + ja: "合計 PR", 87 + kr: "PR 횟수", 88 + nl: "Totale PR's", 89 + "pt-pt": "Total de PRs", 90 + "pt-br": "Total de PRs", 91 + np: "कुल PRs", 92 + el: "Σύνολο PRs", 93 + ru: "Всего pull request`ов", 94 + "uk-ua": "Всього pull request`iв", 95 + id: "Total Permintaan Tarik", 96 + my: "Jumlah PR", 97 + sk: "Všetky PR", 98 + tr: "Toplam PR", 99 + pl: "Wszystkie PR", 100 + }, 101 + "statcard.issues": { 102 + cn: "指出问题数(issue)", 103 + cs: "Celkem problémů", 104 + de: "Anzahl Issues", 105 + en: "Total Issues", 106 + es: "Issues totales", 107 + fr: "Nombre total d'incidents", 108 + hu: "Összes hibajegy", 109 + it: "Segnalazioni totali", 110 + ja: "合計 issue", 111 + kr: "이슈 개수", 112 + nl: "Totale Issues", 113 + "pt-pt": "Total de Issues", 114 + "pt-br": "Total de Issues", 115 + np: "कुल मुद्दाहरू", 116 + el: "Σύνολο Ζητημάτων", 117 + ru: "Всего issue", 118 + "uk-ua": "Всього issue", 119 + id: "Total Masalah Dilaporkan", 120 + my: "Jumlah Isu Dilaporkan", 121 + sk: "Všetky problémy", 122 + tr: "Toplam Hata", 123 + pl: "Wszystkie problemy", 124 + }, 125 + "statcard.contribs": { 126 + cn: "参与项目数", 127 + cs: "Přispěl k", 128 + de: "Beigetragen zu", 129 + en: "Contributed to", 130 + es: "Contribuciones en", 131 + fr: "Contribué à", 132 + hu: "Hozzájárulások", 133 + it: "Ha contribuito a", 134 + ja: "コントリビュートしたリポジトリ", 135 + kr: "전체 기여도", 136 + nl: "Bijgedragen aan", 137 + "pt-pt": "Contribuiu em", 138 + "pt-br": "Contribuiu para", 139 + np: "कुल योगदानहरू", 140 + el: "Συνεισφέρθηκε σε", 141 + ru: "Внёс вклад в", 142 + "uk-ua": "Вніс внесок у", 143 + id: "Berkontribusi ke", 144 + my: "Menyumbang kepada", 145 + sk: "Účasti", 146 + tr: "Katkı Verildi", 147 + pl: "Udziały", 148 + }, 149 + }; 150 + }; 151 + 152 + const repoCardLocales = { 153 + "repocard.template": { 154 + cn: "模板", 155 + cs: "Šablona", 156 + de: "Vorlage", 157 + en: "Template", 158 + es: "Planitlla", 159 + fr: "Modèle", 160 + hu: "Sablon", 161 + it: "Template", 162 + ja: "テンプレート", 163 + kr: "템플릿", 164 + nl: "Sjabloon", 165 + "pt-pt": "Modelo", 166 + "pt-br": "Modelo", 167 + np: "टेम्पलेट", 168 + el: "Πρότυπο", 169 + ru: "Шаблон", 170 + "uk-ua": "Шаблон", 171 + id: "Pola", 172 + my: "Templat", 173 + sk: "Šablóna", 174 + tr: "Şablon", 175 + pl: "Szablony", 176 + }, 177 + "repocard.archived": { 178 + cn: "已归档", 179 + cs: "Archivováno", 180 + de: "Archiviert", 181 + en: "Archived", 182 + es: "Archivados", 183 + fr: "Archivé", 184 + hu: "Archivált", 185 + it: "Archiviata", 186 + ja: "アーカイブ済み", 187 + kr: "보관됨", 188 + nl: "Gearchiveerd", 189 + "pt-pt": "Arquivados", 190 + "pt-br": "Arquivados", 191 + np: "अभिलेख राखियो", 192 + el: "Αρχειοθετημένα", 193 + ru: "Архивирован", 194 + "uk-ua": "Архивирован", 195 + id: "Arsip", 196 + my: "Arkib", 197 + sk: "Archivované", 198 + tr: "Arşiv", 199 + pl: "Zarchiwizowano", 200 + }, 201 + }; 202 + 203 + const langCardLocales = { 204 + "langcard.title": { 205 + cn: "最常用的语言", 206 + cs: "Nejpoužívanější jazyky", 207 + de: "Meist verwendete Sprachen", 208 + en: "Most Used Languages", 209 + es: "Lenguajes más usados", 210 + fr: "Langages les plus utilisés", 211 + hu: "Leggyakrabban használt nyelvek", 212 + it: "Linguaggi più utilizzati", 213 + ja: "最もよく使っている言語", 214 + kr: "가장 많이 사용된 언어", 215 + nl: "Meest gebruikte talen", 216 + "pt-pt": "Idiomas mais usados", 217 + "pt-br": "Linguagens mais usadas", 218 + np: "अधिक प्रयोग गरिएको भाषाहरू", 219 + el: "Οι περισσότερο χρησιμοποιούμενες γλώσσες", 220 + ru: "Наиболее часто используемые языки", 221 + "uk-ua": "Найбільш часто використовувані мови", 222 + id: "Bahasa Yang Paling Banyak Digunakan", 223 + my: "Bahasa Paling Digunakan", 224 + sk: "Najviac používané jazyky", 225 + tr: "En Çok Kullanılan Diller", 226 + pl: "Najczęściej używane języki", 227 + }, 228 + }; 229 + 230 + const wakatimeCardLocales = { 231 + "wakatimecard.title": { 232 + cn: "Wakatime 周统计", 233 + cs: "Statistiky Wakatime", 234 + de: "Wakatime Status", 235 + en: "Wakatime Stats", 236 + es: "Estadísticas de Wakatime", 237 + fr: "Statistiques de Wakatime", 238 + hu: "Wakatime statisztika", 239 + it: "Statistiche Wakatime", 240 + ja: "Wakatime ワカタイム統計", 241 + kr: "Wakatime 주간 통계", 242 + nl: "Takwimu za Wakatime", 243 + "pt-pt": "Estatísticas Wakatime", 244 + "pt-br": "Estatísticas Wakatime", 245 + np: "Wakatime तथ्या .्क", 246 + el: "Στατιστικά Wakatime", 247 + ru: "Статистика Wakatime", 248 + "uk-ua": "Статистика Wakatime", 249 + id: "Status Wakatime", 250 + my: "Statistik Wakatime", 251 + sk: "Wakatime štatistika", 252 + tr: "Waketime İstatistikler", 253 + pl: "statystyki Wakatime", 254 + }, 255 + "wakatimecard.nocodingactivity": { 256 + cn: "本周没有编程活动", 257 + cs: "Tento týden žádná aktivita v kódování", 258 + de: "Keine Aktivitäten in dieser Woche", 259 + en: "No coding activity this week", 260 + es: "No hay actividad de codificación esta semana", 261 + fr: "Aucune activité de codage cette semaine", 262 + hu: "Nem volt aktivitás ezen a héten", 263 + it: "Nessuna attività in questa settimana", 264 + ja: "今週のコーディング活動はありません", 265 + kr: "이번 주 작업내역 없음", 266 + nl: "Geen coderings activiet deze week", 267 + "pt-pt": "Sem atividade esta semana", 268 + "pt-br": "Nenhuma atividade de codificação esta semana", 269 + np: "यस हप्ता कुनै कोडिंग गतिविधि छैन", 270 + el: "Δεν υπάρχει δραστηριότητα κώδικα γι' αυτή την εβδομάδα", 271 + ru: "На этой неделе не было активности", 272 + "uk-ua": "На цьому тижні не було активності", 273 + id: "Tidak ada aktivitas perkodingan minggu ini", 274 + my: "Tiada aktiviti pengekodan minggu ini", 275 + sk: "Žiadna kódovacia aktivita tento týždeň", 276 + tr: "Bu hafta herhangi bir kod yazma aktivitesi olmadı", 277 + pl: "Brak aktywności w tym tygodniu", 278 + }, 279 + }; 280 + 281 + const availableLocales = Object.keys(repoCardLocales["repocard.archived"]); 282 + 283 + function isLocaleAvailable(locale) { 284 + return availableLocales.includes(locale.toLowerCase()); 285 + } 286 + 287 + module.exports = { 288 + isLocaleAvailable, 289 + availableLocales, 290 + statCardLocales, 291 + repoCardLocales, 292 + langCardLocales, 293 + wakatimeCardLocales, 294 + };
+314
tests/__snapshots__/renderWakatimeCard.test.js.snap
··· 1 + // Jest Snapshot v1, https://goo.gl/fbAQLP 2 + 3 + exports[`Test Render Wakatime Card should render correctly 1`] = ` 4 + " 5 + <svg 6 + width=\\"495\\" 7 + height=\\"150\\" 8 + viewBox=\\"0 0 495 150\\" 9 + fill=\\"none\\" 10 + xmlns=\\"http://www.w3.org/2000/svg\\" 11 + > 12 + <style> 13 + .header { 14 + font: 600 18px 'Segoe UI', Ubuntu, Sans-Serif; 15 + fill: #2f80ed; 16 + animation: fadeInAnimation 0.8s ease-in-out forwards; 17 + } 18 + 19 + 20 + .stat { 21 + font: 600 14px 'Segoe UI', Ubuntu, \\"Helvetica Neue\\", Sans-Serif; fill: #333; 22 + } 23 + .stagger { 24 + opacity: 0; 25 + animation: fadeInAnimation 0.3s ease-in-out forwards; 26 + } 27 + .rank-text { 28 + font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: #333; 29 + animation: scaleInAnimation 0.3s ease-in-out forwards; 30 + } 31 + 32 + .bold { font-weight: 700 } 33 + .icon { 34 + fill: #4c71f2; 35 + display: none; 36 + } 37 + 38 + .rank-circle-rim { 39 + stroke: #2f80ed; 40 + fill: none; 41 + stroke-width: 6; 42 + opacity: 0.2; 43 + } 44 + .rank-circle { 45 + stroke: #2f80ed; 46 + stroke-dasharray: 250; 47 + fill: none; 48 + stroke-width: 6; 49 + stroke-linecap: round; 50 + opacity: 0.8; 51 + transform-origin: -10px 8px; 52 + transform: rotate(-90deg); 53 + animation: rankAnimation 1s forwards ease-in-out; 54 + } 55 + 56 + 57 + .lang-name { font: 400 11px 'Segoe UI', Ubuntu, Sans-Serif; fill: #333 } 58 + 59 + 60 + 61 + 62 + </style> 63 + 64 + undefined 65 + 66 + <rect 67 + data-testid=\\"card-bg\\" 68 + x=\\"0.5\\" 69 + y=\\"0.5\\" 70 + rx=\\"4.5\\" 71 + height=\\"99%\\" 72 + stroke=\\"#E4E2E2\\" 73 + width=\\"494\\" 74 + fill=\\"#fffefe\\" 75 + stroke-opacity=\\"1\\" 76 + /> 77 + 78 + 79 + <g 80 + data-testid=\\"card-title\\" 81 + transform=\\"translate(25, 35)\\" 82 + > 83 + <g transform=\\"translate(0, 0)\\"> 84 + <text 85 + x=\\"0\\" 86 + y=\\"0\\" 87 + class=\\"header\\" 88 + data-testid=\\"header\\" 89 + >Wakatime Stats</text> 90 + </g> 91 + </g> 92 + 93 + 94 + <g 95 + data-testid=\\"main-card-body\\" 96 + transform=\\"translate(0, 55)\\" 97 + > 98 + 99 + <svg x=\\"0\\" y=\\"0\\" width=\\"100%\\"> 100 + <g transform=\\"translate(0, 0)\\"> 101 + <g class=\\"stagger\\" style=\\"animation-delay: NaNms\\" transform=\\"translate(25, 0)\\"> 102 + <text class=\\"stat bold\\" y=\\"12.5\\">Other:</text> 103 + <text 104 + class=\\"stat\\" 105 + x=\\"350\\" 106 + y=\\"12.5\\" 107 + data-testid=\\"Other\\" 108 + >19 mins</text> 109 + 110 + <svg width=\\"220\\" x=\\"110\\" y=\\"4\\"> 111 + <rect rx=\\"5\\" ry=\\"5\\" x=\\"0\\" y=\\"0\\" width=\\"220\\" height=\\"8\\" fill=\\"#333\\"></rect> 112 + <rect 113 + height=\\"8\\" 114 + fill=\\"#2f80ed\\" 115 + rx=\\"5\\" ry=\\"5\\" x=\\"0\\" y=\\"0\\" 116 + data-testid=\\"lang-progress\\" 117 + width=\\"2%\\" 118 + > 119 + </rect> 120 + </svg> 121 + 122 + </g> 123 + </g><g transform=\\"translate(0, 25)\\"> 124 + <g class=\\"stagger\\" style=\\"animation-delay: NaNms\\" transform=\\"translate(25, 0)\\"> 125 + <text class=\\"stat bold\\" y=\\"12.5\\">TypeScript:</text> 126 + <text 127 + class=\\"stat\\" 128 + x=\\"350\\" 129 + y=\\"12.5\\" 130 + data-testid=\\"TypeScript\\" 131 + >1 min</text> 132 + 133 + <svg width=\\"220\\" x=\\"110\\" y=\\"4\\"> 134 + <rect rx=\\"5\\" ry=\\"5\\" x=\\"0\\" y=\\"0\\" width=\\"220\\" height=\\"8\\" fill=\\"#333\\"></rect> 135 + <rect 136 + height=\\"8\\" 137 + fill=\\"#2f80ed\\" 138 + rx=\\"5\\" ry=\\"5\\" x=\\"0\\" y=\\"0\\" 139 + data-testid=\\"lang-progress\\" 140 + width=\\"2%\\" 141 + > 142 + </rect> 143 + </svg> 144 + 145 + </g> 146 + </g> 147 + </svg> 148 + 149 + </g> 150 + </svg> 151 + " 152 + `; 153 + 154 + exports[`Test Render Wakatime Card should render correctly with compact layout 1`] = ` 155 + " 156 + <svg 157 + width=\\"495\\" 158 + height=\\"140\\" 159 + viewBox=\\"0 0 495 140\\" 160 + fill=\\"none\\" 161 + xmlns=\\"http://www.w3.org/2000/svg\\" 162 + > 163 + <style> 164 + .header { 165 + font: 600 18px 'Segoe UI', Ubuntu, Sans-Serif; 166 + fill: #2f80ed; 167 + animation: fadeInAnimation 0.8s ease-in-out forwards; 168 + } 169 + 170 + 171 + .stat { 172 + font: 600 14px 'Segoe UI', Ubuntu, \\"Helvetica Neue\\", Sans-Serif; fill: #333; 173 + } 174 + .stagger { 175 + opacity: 0; 176 + animation: fadeInAnimation 0.3s ease-in-out forwards; 177 + } 178 + .rank-text { 179 + font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: #333; 180 + animation: scaleInAnimation 0.3s ease-in-out forwards; 181 + } 182 + 183 + .bold { font-weight: 700 } 184 + .icon { 185 + fill: #4c71f2; 186 + display: none; 187 + } 188 + 189 + .rank-circle-rim { 190 + stroke: #2f80ed; 191 + fill: none; 192 + stroke-width: 6; 193 + opacity: 0.2; 194 + } 195 + .rank-circle { 196 + stroke: #2f80ed; 197 + stroke-dasharray: 250; 198 + fill: none; 199 + stroke-width: 6; 200 + stroke-linecap: round; 201 + opacity: 0.8; 202 + transform-origin: -10px 8px; 203 + transform: rotate(-90deg); 204 + animation: rankAnimation 1s forwards ease-in-out; 205 + } 206 + 207 + 208 + .lang-name { font: 400 11px 'Segoe UI', Ubuntu, Sans-Serif; fill: #333 } 209 + 210 + 211 + 212 + 213 + </style> 214 + 215 + undefined 216 + 217 + <rect 218 + data-testid=\\"card-bg\\" 219 + x=\\"0.5\\" 220 + y=\\"0.5\\" 221 + rx=\\"4.5\\" 222 + height=\\"99%\\" 223 + stroke=\\"#E4E2E2\\" 224 + width=\\"494\\" 225 + fill=\\"#fffefe\\" 226 + stroke-opacity=\\"1\\" 227 + /> 228 + 229 + 230 + <g 231 + data-testid=\\"card-title\\" 232 + transform=\\"translate(25, 35)\\" 233 + > 234 + <g transform=\\"translate(0, 0)\\"> 235 + <text 236 + x=\\"0\\" 237 + y=\\"0\\" 238 + class=\\"header\\" 239 + data-testid=\\"header\\" 240 + >Wakatime Stats</text> 241 + </g> 242 + </g> 243 + 244 + 245 + <g 246 + data-testid=\\"main-card-body\\" 247 + transform=\\"translate(0, 55)\\" 248 + > 249 + 250 + <svg x=\\"0\\" y=\\"0\\" width=\\"100%\\"> 251 + 252 + <mask id=\\"rect-mask\\"> 253 + <rect x=\\"25\\" y=\\"0\\" width=\\"440\\" height=\\"8\\" fill=\\"white\\" rx=\\"5\\" /> 254 + </mask> 255 + 256 + <rect 257 + mask=\\"url(#rect-mask)\\" 258 + data-testid=\\"lang-progress\\" 259 + x=\\"0\\" 260 + y=\\"0\\" 261 + width=\\"6.6495\\" 262 + height=\\"8\\" 263 + fill=\\"#858585\\" 264 + /> 265 + 266 + <rect 267 + mask=\\"url(#rect-mask)\\" 268 + data-testid=\\"lang-progress\\" 269 + x=\\"6.6495\\" 270 + y=\\"0\\" 271 + width=\\"0.465\\" 272 + height=\\"8\\" 273 + fill=\\"#2b7489\\" 274 + /> 275 + 276 + <rect 277 + mask=\\"url(#rect-mask)\\" 278 + data-testid=\\"lang-progress\\" 279 + x=\\"7.1145\\" 280 + y=\\"0\\" 281 + width=\\"0.32550000000000007\\" 282 + height=\\"8\\" 283 + fill=\\"#cb171e\\" 284 + /> 285 + 286 + 287 + <g transform=\\"translate(25, 25)\\"> 288 + <circle cx=\\"5\\" cy=\\"6\\" r=\\"5\\" fill=\\"#858585\\" /> 289 + <text data-testid=\\"lang-name\\" x=\\"15\\" y=\\"10\\" class='lang-name'> 290 + Other - 19 mins 291 + </text> 292 + </g> 293 + 294 + <g transform=\\"translate(230, 25)\\"> 295 + <circle cx=\\"5\\" cy=\\"6\\" r=\\"5\\" fill=\\"#2b7489\\" /> 296 + <text data-testid=\\"lang-name\\" x=\\"15\\" y=\\"10\\" class='lang-name'> 297 + TypeScript - 1 min 298 + </text> 299 + </g> 300 + 301 + <g transform=\\"translate(25, 50)\\"> 302 + <circle cx=\\"5\\" cy=\\"6\\" r=\\"5\\" fill=\\"#cb171e\\" /> 303 + <text data-testid=\\"lang-name\\" x=\\"15\\" y=\\"10\\" class='lang-name'> 304 + YAML - 0 secs 305 + </text> 306 + </g> 307 + 308 + 309 + </svg> 310 + 311 + </g> 312 + </svg> 313 + " 314 + `;
+224
tests/api.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const api = require("../api/index"); 5 + const renderStatsCard = require("../src/cards/stats-card"); 6 + const { renderError, CONSTANTS } = require("../src/common/utils"); 7 + const calculateRank = require("../src/calculateRank"); 8 + 9 + const stats = { 10 + name: "Anurag Hazra", 11 + totalStars: 100, 12 + totalCommits: 200, 13 + totalIssues: 300, 14 + totalPRs: 400, 15 + contributedTo: 500, 16 + rank: null, 17 + }; 18 + stats.rank = calculateRank({ 19 + totalCommits: stats.totalCommits, 20 + totalRepos: 1, 21 + followers: 0, 22 + contributions: stats.contributedTo, 23 + stargazers: stats.totalStars, 24 + prs: stats.totalPRs, 25 + issues: stats.totalIssues, 26 + }); 27 + 28 + const data = { 29 + data: { 30 + user: { 31 + name: stats.name, 32 + repositoriesContributedTo: { totalCount: stats.contributedTo }, 33 + contributionsCollection: { 34 + totalCommitContributions: stats.totalCommits, 35 + restrictedContributionsCount: 100, 36 + }, 37 + pullRequests: { totalCount: stats.totalPRs }, 38 + issues: { totalCount: stats.totalIssues }, 39 + followers: { totalCount: 0 }, 40 + repositories: { 41 + totalCount: 1, 42 + nodes: [{ stargazers: { totalCount: 100 } }], 43 + }, 44 + }, 45 + }, 46 + }; 47 + 48 + const error = { 49 + errors: [ 50 + { 51 + type: "NOT_FOUND", 52 + path: ["user"], 53 + locations: [], 54 + message: "Could not fetch user", 55 + }, 56 + ], 57 + }; 58 + 59 + const mock = new MockAdapter(axios); 60 + 61 + const faker = (query, data) => { 62 + const req = { 63 + query: { 64 + username: "anuraghazra", 65 + ...query, 66 + }, 67 + }; 68 + const res = { 69 + setHeader: jest.fn(), 70 + send: jest.fn(), 71 + }; 72 + mock.onPost("https://api.github.com/graphql").reply(200, data); 73 + 74 + return { req, res }; 75 + }; 76 + 77 + afterEach(() => { 78 + mock.reset(); 79 + }); 80 + 81 + describe("Test /api/", () => { 82 + it("should test the request", async () => { 83 + const { req, res } = faker({}, data); 84 + 85 + await api(req, res); 86 + 87 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 88 + expect(res.send).toBeCalledWith(renderStatsCard(stats, { ...req.query })); 89 + }); 90 + 91 + it("should render error card on error", async () => { 92 + const { req, res } = faker({}, error); 93 + 94 + await api(req, res); 95 + 96 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 97 + expect(res.send).toBeCalledWith( 98 + renderError( 99 + error.errors[0].message, 100 + "Make sure the provided username is not an organization", 101 + ), 102 + ); 103 + }); 104 + 105 + it("should get the query options", async () => { 106 + const { req, res } = faker( 107 + { 108 + username: "anuraghazra", 109 + hide: "issues,prs,contribs", 110 + show_icons: true, 111 + hide_border: true, 112 + line_height: 100, 113 + title_color: "fff", 114 + icon_color: "fff", 115 + text_color: "fff", 116 + bg_color: "fff", 117 + }, 118 + data, 119 + ); 120 + 121 + await api(req, res); 122 + 123 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 124 + expect(res.send).toBeCalledWith( 125 + renderStatsCard(stats, { 126 + hide: ["issues", "prs", "contribs"], 127 + show_icons: true, 128 + hide_border: true, 129 + line_height: 100, 130 + title_color: "fff", 131 + icon_color: "fff", 132 + text_color: "fff", 133 + bg_color: "fff", 134 + }), 135 + ); 136 + }); 137 + 138 + it("should have proper cache", async () => { 139 + const { req, res } = faker({}, data); 140 + mock.onPost("https://api.github.com/graphql").reply(200, data); 141 + 142 + await api(req, res); 143 + 144 + expect(res.setHeader.mock.calls).toEqual([ 145 + ["Content-Type", "image/svg+xml"], 146 + ["Cache-Control", `public, max-age=${CONSTANTS.TWO_HOURS}`], 147 + ]); 148 + }); 149 + 150 + it("should set proper cache", async () => { 151 + const { req, res } = faker({ cache_seconds: 8000 }, data); 152 + await api(req, res); 153 + 154 + expect(res.setHeader.mock.calls).toEqual([ 155 + ["Content-Type", "image/svg+xml"], 156 + ["Cache-Control", `public, max-age=${8000}`], 157 + ]); 158 + }); 159 + 160 + it("should set proper cache with clamped values", async () => { 161 + { 162 + let { req, res } = faker({ cache_seconds: 200000 }, data); 163 + await api(req, res); 164 + 165 + expect(res.setHeader.mock.calls).toEqual([ 166 + ["Content-Type", "image/svg+xml"], 167 + ["Cache-Control", `public, max-age=${CONSTANTS.ONE_DAY}`], 168 + ]); 169 + } 170 + 171 + // note i'm using block scoped vars 172 + { 173 + let { req, res } = faker({ cache_seconds: 0 }, data); 174 + await api(req, res); 175 + 176 + expect(res.setHeader.mock.calls).toEqual([ 177 + ["Content-Type", "image/svg+xml"], 178 + ["Cache-Control", `public, max-age=${CONSTANTS.TWO_HOURS}`], 179 + ]); 180 + } 181 + 182 + { 183 + let { req, res } = faker({ cache_seconds: -10000 }, data); 184 + await api(req, res); 185 + 186 + expect(res.setHeader.mock.calls).toEqual([ 187 + ["Content-Type", "image/svg+xml"], 188 + ["Cache-Control", `public, max-age=${CONSTANTS.TWO_HOURS}`], 189 + ]); 190 + } 191 + }); 192 + 193 + it("should add private contributions", async () => { 194 + const { req, res } = faker( 195 + { 196 + username: "anuraghazra", 197 + count_private: true, 198 + }, 199 + data, 200 + ); 201 + 202 + await api(req, res); 203 + 204 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 205 + expect(res.send).toBeCalledWith( 206 + renderStatsCard( 207 + { 208 + ...stats, 209 + totalCommits: stats.totalCommits + 100, 210 + rank: calculateRank({ 211 + totalCommits: stats.totalCommits + 100, 212 + totalRepos: 1, 213 + followers: 0, 214 + contributions: stats.contributedTo, 215 + stargazers: stats.totalStars, 216 + prs: stats.totalPRs, 217 + issues: stats.totalIssues, 218 + }), 219 + }, 220 + {}, 221 + ), 222 + ); 223 + }); 224 + });
+18
tests/calculateRank.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const calculateRank = require("../src/calculateRank"); 3 + 4 + describe("Test calculateRank", () => { 5 + it("should calculate rank correctly", () => { 6 + expect( 7 + calculateRank({ 8 + totalCommits: 100, 9 + totalRepos: 5, 10 + followers: 100, 11 + contributions: 61, 12 + stargazers: 400, 13 + prs: 300, 14 + issues: 200, 15 + }), 16 + ).toStrictEqual({ level: "A+", score: 49.16605417270399 }); 17 + }); 18 + });
+185
tests/card.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const cssToObject = require("css-to-object"); 3 + const Card = require("../src/common/Card"); 4 + const icons = require("../src/common/icons"); 5 + const { getCardColors } = require("../src/common/utils"); 6 + const { queryByTestId } = require("@testing-library/dom"); 7 + 8 + describe("Card", () => { 9 + it("should hide border", () => { 10 + const card = new Card({}); 11 + card.setHideBorder(true); 12 + 13 + document.body.innerHTML = card.render(``); 14 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 15 + "stroke-opacity", 16 + "0", 17 + ); 18 + }); 19 + 20 + it("should not hide border", () => { 21 + const card = new Card({}); 22 + card.setHideBorder(false); 23 + 24 + document.body.innerHTML = card.render(``); 25 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 26 + "stroke-opacity", 27 + "1", 28 + ); 29 + }); 30 + 31 + it("should have a custom title", () => { 32 + const card = new Card({ 33 + customTitle: "custom title", 34 + defaultTitle: "default title", 35 + }); 36 + 37 + document.body.innerHTML = card.render(``); 38 + expect(queryByTestId(document.body, "card-title")).toHaveTextContent( 39 + "custom title", 40 + ); 41 + }); 42 + 43 + it("should hide title", () => { 44 + const card = new Card({}); 45 + card.setHideTitle(true); 46 + 47 + document.body.innerHTML = card.render(``); 48 + expect(queryByTestId(document.body, "card-title")).toBeNull(); 49 + }); 50 + 51 + it("should not hide title", () => { 52 + const card = new Card({}); 53 + card.setHideTitle(false); 54 + 55 + document.body.innerHTML = card.render(``); 56 + expect(queryByTestId(document.body, "card-title")).toBeInTheDocument(); 57 + }); 58 + 59 + it("title should have prefix icon", () => { 60 + const card = new Card({ title: "ok", titlePrefixIcon: icons.contribs }); 61 + 62 + document.body.innerHTML = card.render(``); 63 + expect(document.getElementsByClassName("icon")[0]).toBeInTheDocument(); 64 + }); 65 + 66 + it("title should not have prefix icon", () => { 67 + const card = new Card({ title: "ok" }); 68 + 69 + document.body.innerHTML = card.render(``); 70 + expect(document.getElementsByClassName("icon")[0]).toBeUndefined(); 71 + }); 72 + 73 + it("should have proper height, width", () => { 74 + const card = new Card({ height: 200, width: 200, title: "ok" }); 75 + document.body.innerHTML = card.render(``); 76 + expect(document.getElementsByTagName("svg")[0]).toHaveAttribute( 77 + "height", 78 + "200", 79 + ); 80 + expect(document.getElementsByTagName("svg")[0]).toHaveAttribute( 81 + "height", 82 + "200", 83 + ); 84 + }); 85 + 86 + it("should have less height after title is hidden", () => { 87 + const card = new Card({ height: 200, title: "ok" }); 88 + card.setHideTitle(true); 89 + 90 + document.body.innerHTML = card.render(``); 91 + expect(document.getElementsByTagName("svg")[0]).toHaveAttribute( 92 + "height", 93 + "170", 94 + ); 95 + }); 96 + 97 + it("main-card-body should have proper when title is visible", () => { 98 + const card = new Card({ height: 200 }); 99 + document.body.innerHTML = card.render(``); 100 + expect(queryByTestId(document.body, "main-card-body")).toHaveAttribute( 101 + "transform", 102 + "translate(0, 55)", 103 + ); 104 + }); 105 + 106 + it("main-card-body should have proper position after title is hidden", () => { 107 + const card = new Card({ height: 200 }); 108 + card.setHideTitle(true); 109 + 110 + document.body.innerHTML = card.render(``); 111 + expect(queryByTestId(document.body, "main-card-body")).toHaveAttribute( 112 + "transform", 113 + "translate(0, 25)", 114 + ); 115 + }); 116 + 117 + it("should render with correct colors", () => { 118 + // returns theme based colors with proper overrides and defaults 119 + const { titleColor, textColor, iconColor, bgColor } = getCardColors({ 120 + title_color: "f00", 121 + icon_color: "0f0", 122 + text_color: "00f", 123 + bg_color: "fff", 124 + theme: "default", 125 + }); 126 + 127 + const card = new Card({ 128 + height: 200, 129 + colors: { 130 + titleColor, 131 + textColor, 132 + iconColor, 133 + bgColor, 134 + }, 135 + }); 136 + document.body.innerHTML = card.render(``); 137 + 138 + const styleTag = document.querySelector("style"); 139 + const stylesObject = cssToObject(styleTag.innerHTML); 140 + const headerClassStyles = stylesObject[".header"]; 141 + 142 + expect(headerClassStyles.fill).toBe("#f00"); 143 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 144 + "fill", 145 + "#fff", 146 + ); 147 + }); 148 + it("should render gradient backgrounds", () => { 149 + const { titleColor, textColor, iconColor, bgColor } = getCardColors({ 150 + title_color: "f00", 151 + icon_color: "0f0", 152 + text_color: "00f", 153 + bg_color: "90,fff,000,f00", 154 + theme: "default", 155 + }); 156 + 157 + const card = new Card({ 158 + height: 200, 159 + colors: { 160 + titleColor, 161 + textColor, 162 + iconColor, 163 + bgColor, 164 + }, 165 + }); 166 + document.body.innerHTML = card.render(``); 167 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 168 + "fill", 169 + "url(#gradient)", 170 + ); 171 + expect(document.querySelector("defs linearGradient")).toHaveAttribute( 172 + "gradientTransform", 173 + "rotate(90)", 174 + ); 175 + expect( 176 + document.querySelector("defs linearGradient stop:nth-child(1)"), 177 + ).toHaveAttribute("stop-color", "#fff"); 178 + expect( 179 + document.querySelector("defs linearGradient stop:nth-child(2)"), 180 + ).toHaveAttribute("stop-color", "#000"); 181 + expect( 182 + document.querySelector("defs linearGradient stop:nth-child(3)"), 183 + ).toHaveAttribute("stop-color", "#f00"); 184 + }); 185 + });
+96
tests/fetchRepo.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const fetchRepo = require("../src/fetchers/repo-fetcher"); 5 + 6 + const data_repo = { 7 + repository: { 8 + name: "convoychat", 9 + stargazers: { totalCount: 38000 }, 10 + description: "Help us take over the world! React + TS + GraphQL Chat App", 11 + primaryLanguage: { 12 + color: "#2b7489", 13 + id: "MDg6TGFuZ3VhZ2UyODc=", 14 + name: "TypeScript", 15 + }, 16 + forkCount: 100, 17 + }, 18 + }; 19 + 20 + const data_user = { 21 + data: { 22 + user: { repository: data_repo }, 23 + organization: null, 24 + }, 25 + }; 26 + const data_org = { 27 + data: { 28 + user: null, 29 + organization: { repository: data_repo }, 30 + }, 31 + }; 32 + 33 + const mock = new MockAdapter(axios); 34 + 35 + afterEach(() => { 36 + mock.reset(); 37 + }); 38 + 39 + describe("Test fetchRepo", () => { 40 + it("should fetch correct user repo", async () => { 41 + mock.onPost("https://api.github.com/graphql").reply(200, data_user); 42 + 43 + let repo = await fetchRepo("anuraghazra", "convoychat"); 44 + expect(repo).toStrictEqual(data_repo); 45 + }); 46 + 47 + it("should fetch correct org repo", async () => { 48 + mock.onPost("https://api.github.com/graphql").reply(200, data_org); 49 + 50 + let repo = await fetchRepo("anuraghazra", "convoychat"); 51 + expect(repo).toStrictEqual(data_repo); 52 + }); 53 + 54 + it("should throw error if user is found but repo is null", async () => { 55 + mock 56 + .onPost("https://api.github.com/graphql") 57 + .reply(200, { data: { user: { repository: null }, organization: null } }); 58 + 59 + await expect(fetchRepo("anuraghazra", "convoychat")).rejects.toThrow( 60 + "User Repository Not found", 61 + ); 62 + }); 63 + 64 + it("should throw error if org is found but repo is null", async () => { 65 + mock 66 + .onPost("https://api.github.com/graphql") 67 + .reply(200, { data: { user: null, organization: { repository: null } } }); 68 + 69 + await expect(fetchRepo("anuraghazra", "convoychat")).rejects.toThrow( 70 + "Organization Repository Not found", 71 + ); 72 + }); 73 + 74 + it("should throw error if both user & org data not found", async () => { 75 + mock 76 + .onPost("https://api.github.com/graphql") 77 + .reply(200, { data: { user: null, organization: null } }); 78 + 79 + await expect(fetchRepo("anuraghazra", "convoychat")).rejects.toThrow( 80 + "Not found", 81 + ); 82 + }); 83 + 84 + it("should throw error if repository is private", async () => { 85 + mock.onPost("https://api.github.com/graphql").reply(200, { 86 + data: { 87 + user: { repository: { ...data_repo, isPrivate: true } }, 88 + organization: null, 89 + }, 90 + }); 91 + 92 + await expect(fetchRepo("anuraghazra", "convoychat")).rejects.toThrow( 93 + "User Repository Not found", 94 + ); 95 + }); 96 + });
+136
tests/fetchStats.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const fetchStats = require("../src/fetchers/stats-fetcher"); 5 + const calculateRank = require("../src/calculateRank"); 6 + 7 + const data = { 8 + data: { 9 + user: { 10 + name: "Anurag Hazra", 11 + repositoriesContributedTo: { totalCount: 61 }, 12 + contributionsCollection: { 13 + totalCommitContributions: 100, 14 + restrictedContributionsCount: 50, 15 + }, 16 + pullRequests: { totalCount: 300 }, 17 + issues: { totalCount: 200 }, 18 + followers: { totalCount: 100 }, 19 + repositories: { 20 + totalCount: 5, 21 + nodes: [ 22 + { stargazers: { totalCount: 100 } }, 23 + { stargazers: { totalCount: 100 } }, 24 + { stargazers: { totalCount: 100 } }, 25 + { stargazers: { totalCount: 50 } }, 26 + { stargazers: { totalCount: 50 } }, 27 + ], 28 + }, 29 + }, 30 + }, 31 + }; 32 + 33 + const error = { 34 + errors: [ 35 + { 36 + type: "NOT_FOUND", 37 + path: ["user"], 38 + locations: [], 39 + message: "Could not resolve to a User with the login of 'noname'.", 40 + }, 41 + ], 42 + }; 43 + 44 + const mock = new MockAdapter(axios); 45 + 46 + afterEach(() => { 47 + mock.reset(); 48 + }); 49 + 50 + describe("Test fetchStats", () => { 51 + it("should fetch correct stats", async () => { 52 + mock.onPost("https://api.github.com/graphql").reply(200, data); 53 + 54 + let stats = await fetchStats("anuraghazra"); 55 + const rank = calculateRank({ 56 + totalCommits: 100, 57 + totalRepos: 5, 58 + followers: 100, 59 + contributions: 61, 60 + stargazers: 400, 61 + prs: 300, 62 + issues: 200, 63 + }); 64 + 65 + expect(stats).toStrictEqual({ 66 + contributedTo: 61, 67 + name: "Anurag Hazra", 68 + totalCommits: 100, 69 + totalIssues: 200, 70 + totalPRs: 300, 71 + totalStars: 400, 72 + rank, 73 + }); 74 + }); 75 + 76 + it("should throw error", async () => { 77 + mock.onPost("https://api.github.com/graphql").reply(200, error); 78 + 79 + await expect(fetchStats("anuraghazra")).rejects.toThrow( 80 + "Could not resolve to a User with the login of 'noname'.", 81 + ); 82 + }); 83 + 84 + it("should fetch and add private contributions", async () => { 85 + mock.onPost("https://api.github.com/graphql").reply(200, data); 86 + 87 + let stats = await fetchStats("anuraghazra", true); 88 + const rank = calculateRank({ 89 + totalCommits: 150, 90 + totalRepos: 5, 91 + followers: 100, 92 + contributions: 61, 93 + stargazers: 400, 94 + prs: 300, 95 + issues: 200, 96 + }); 97 + 98 + expect(stats).toStrictEqual({ 99 + contributedTo: 61, 100 + name: "Anurag Hazra", 101 + totalCommits: 150, 102 + totalIssues: 200, 103 + totalPRs: 300, 104 + totalStars: 400, 105 + rank, 106 + }); 107 + }); 108 + 109 + it("should fetch total commits", async () => { 110 + mock.onPost("https://api.github.com/graphql").reply(200, data); 111 + mock 112 + .onGet("https://api.github.com/search/commits?q=author:anuraghazra") 113 + .reply(200, { total_count: 1000 }); 114 + 115 + let stats = await fetchStats("anuraghazra", true, true); 116 + const rank = calculateRank({ 117 + totalCommits: 1050, 118 + totalRepos: 5, 119 + followers: 100, 120 + contributions: 61, 121 + stargazers: 400, 122 + prs: 300, 123 + issues: 200, 124 + }); 125 + 126 + expect(stats).toStrictEqual({ 127 + contributedTo: 61, 128 + name: "Anurag Hazra", 129 + totalCommits: 1050, 130 + totalIssues: 200, 131 + totalPRs: 300, 132 + totalStars: 400, 133 + rank, 134 + }); 135 + }); 136 + });
+97
tests/fetchTopLanguages.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const fetchTopLanguages = require("../src/fetchers/top-languages-fetcher"); 5 + 6 + const mock = new MockAdapter(axios); 7 + 8 + afterEach(() => { 9 + mock.reset(); 10 + }); 11 + 12 + const data_langs = { 13 + data: { 14 + user: { 15 + repositories: { 16 + nodes: [ 17 + { 18 + languages: { 19 + edges: [{ size: 100, node: { color: "#0f0", name: "HTML" } }], 20 + }, 21 + }, 22 + { 23 + languages: { 24 + edges: [{ size: 100, node: { color: "#0f0", name: "HTML" } }], 25 + }, 26 + }, 27 + { 28 + languages: { 29 + edges: [ 30 + { size: 100, node: { color: "#0ff", name: "javascript" } }, 31 + ], 32 + }, 33 + }, 34 + { 35 + languages: { 36 + edges: [ 37 + { size: 100, node: { color: "#0ff", name: "javascript" } }, 38 + ], 39 + }, 40 + }, 41 + ], 42 + }, 43 + }, 44 + }, 45 + }; 46 + 47 + const error = { 48 + errors: [ 49 + { 50 + type: "NOT_FOUND", 51 + path: ["user"], 52 + locations: [], 53 + message: "Could not resolve to a User with the login of 'noname'.", 54 + }, 55 + ], 56 + }; 57 + 58 + describe("FetchTopLanguages", () => { 59 + it("should fetch correct language data", async () => { 60 + mock.onPost("https://api.github.com/graphql").reply(200, data_langs); 61 + 62 + let repo = await fetchTopLanguages("anuraghazra"); 63 + expect(repo).toStrictEqual({ 64 + HTML: { 65 + color: "#0f0", 66 + name: "HTML", 67 + size: 200, 68 + }, 69 + javascript: { 70 + color: "#0ff", 71 + name: "javascript", 72 + size: 200, 73 + }, 74 + }); 75 + }); 76 + 77 + it("should fetch langs with specified langs_count", async () => { 78 + mock.onPost("https://api.github.com/graphql").reply(200, data_langs); 79 + 80 + let repo = await fetchTopLanguages("anuraghazra", 1); 81 + expect(repo).toStrictEqual({ 82 + javascript: { 83 + color: "#0ff", 84 + name: "javascript", 85 + size: 200, 86 + }, 87 + }); 88 + }); 89 + 90 + it("should throw error", async () => { 91 + mock.onPost("https://api.github.com/graphql").reply(200, error); 92 + 93 + await expect(fetchTopLanguages("anuraghazra")).rejects.toThrow( 94 + "Could not resolve to a User with the login of 'noname'.", 95 + ); 96 + }); 97 + });
+215
tests/fetchWakatime.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const { fetchWakatimeStats } = require("../src/fetchers/wakatime-fetcher"); 5 + const mock = new MockAdapter(axios); 6 + 7 + afterEach(() => { 8 + mock.reset(); 9 + }); 10 + 11 + const wakaTimeData = { 12 + data: { 13 + categories: [ 14 + { 15 + digital: "22:40", 16 + hours: 22, 17 + minutes: 40, 18 + name: "Coding", 19 + percent: 100, 20 + text: "22 hrs 40 mins", 21 + total_seconds: 81643.570077, 22 + }, 23 + ], 24 + daily_average: 16095, 25 + daily_average_including_other_language: 16329, 26 + days_including_holidays: 7, 27 + days_minus_holidays: 5, 28 + editors: [ 29 + { 30 + digital: "22:40", 31 + hours: 22, 32 + minutes: 40, 33 + name: "VS Code", 34 + percent: 100, 35 + text: "22 hrs 40 mins", 36 + total_seconds: 81643.570077, 37 + }, 38 + ], 39 + holidays: 2, 40 + human_readable_daily_average: "4 hrs 28 mins", 41 + human_readable_daily_average_including_other_language: "4 hrs 32 mins", 42 + human_readable_total: "22 hrs 21 mins", 43 + human_readable_total_including_other_language: "22 hrs 40 mins", 44 + id: "random hash", 45 + is_already_updating: false, 46 + is_coding_activity_visible: true, 47 + is_including_today: false, 48 + is_other_usage_visible: true, 49 + is_stuck: false, 50 + is_up_to_date: true, 51 + languages: [ 52 + { 53 + digital: "0:19", 54 + hours: 0, 55 + minutes: 19, 56 + name: "Other", 57 + percent: 1.43, 58 + text: "19 mins", 59 + total_seconds: 1170.434361, 60 + }, 61 + { 62 + digital: "0:01", 63 + hours: 0, 64 + minutes: 1, 65 + name: "TypeScript", 66 + percent: 0.1, 67 + text: "1 min", 68 + total_seconds: 83.293809, 69 + }, 70 + { 71 + digital: "0:00", 72 + hours: 0, 73 + minutes: 0, 74 + name: "YAML", 75 + percent: 0.07, 76 + text: "0 secs", 77 + total_seconds: 54.975151, 78 + }, 79 + ], 80 + operating_systems: [ 81 + { 82 + digital: "22:40", 83 + hours: 22, 84 + minutes: 40, 85 + name: "Mac", 86 + percent: 100, 87 + text: "22 hrs 40 mins", 88 + total_seconds: 81643.570077, 89 + }, 90 + ], 91 + percent_calculated: 100, 92 + range: "last_7_days", 93 + status: "ok", 94 + timeout: 15, 95 + total_seconds: 80473.135716, 96 + total_seconds_including_other_language: 81643.570077, 97 + user_id: "random hash", 98 + username: "anuraghazra", 99 + writes_only: false, 100 + }, 101 + }; 102 + 103 + describe("Wakatime fetcher", () => { 104 + it("should fetch correct wakatime data", async () => { 105 + const username = "anuraghazra"; 106 + mock 107 + .onGet( 108 + `https://wakatime.com/api/v1/users/${username}/stats/?is_including_today=true`, 109 + ) 110 + .reply(200, wakaTimeData); 111 + 112 + const repo = await fetchWakatimeStats({ username }); 113 + expect(repo).toMatchInlineSnapshot(` 114 + Object { 115 + "categories": Array [ 116 + Object { 117 + "digital": "22:40", 118 + "hours": 22, 119 + "minutes": 40, 120 + "name": "Coding", 121 + "percent": 100, 122 + "text": "22 hrs 40 mins", 123 + "total_seconds": 81643.570077, 124 + }, 125 + ], 126 + "daily_average": 16095, 127 + "daily_average_including_other_language": 16329, 128 + "days_including_holidays": 7, 129 + "days_minus_holidays": 5, 130 + "editors": Array [ 131 + Object { 132 + "digital": "22:40", 133 + "hours": 22, 134 + "minutes": 40, 135 + "name": "VS Code", 136 + "percent": 100, 137 + "text": "22 hrs 40 mins", 138 + "total_seconds": 81643.570077, 139 + }, 140 + ], 141 + "holidays": 2, 142 + "human_readable_daily_average": "4 hrs 28 mins", 143 + "human_readable_daily_average_including_other_language": "4 hrs 32 mins", 144 + "human_readable_total": "22 hrs 21 mins", 145 + "human_readable_total_including_other_language": "22 hrs 40 mins", 146 + "id": "random hash", 147 + "is_already_updating": false, 148 + "is_coding_activity_visible": true, 149 + "is_including_today": false, 150 + "is_other_usage_visible": true, 151 + "is_stuck": false, 152 + "is_up_to_date": true, 153 + "languages": Array [ 154 + Object { 155 + "digital": "0:19", 156 + "hours": 0, 157 + "minutes": 19, 158 + "name": "Other", 159 + "percent": 1.43, 160 + "text": "19 mins", 161 + "total_seconds": 1170.434361, 162 + }, 163 + Object { 164 + "digital": "0:01", 165 + "hours": 0, 166 + "minutes": 1, 167 + "name": "TypeScript", 168 + "percent": 0.1, 169 + "text": "1 min", 170 + "total_seconds": 83.293809, 171 + }, 172 + Object { 173 + "digital": "0:00", 174 + "hours": 0, 175 + "minutes": 0, 176 + "name": "YAML", 177 + "percent": 0.07, 178 + "text": "0 secs", 179 + "total_seconds": 54.975151, 180 + }, 181 + ], 182 + "operating_systems": Array [ 183 + Object { 184 + "digital": "22:40", 185 + "hours": 22, 186 + "minutes": 40, 187 + "name": "Mac", 188 + "percent": 100, 189 + "text": "22 hrs 40 mins", 190 + "total_seconds": 81643.570077, 191 + }, 192 + ], 193 + "percent_calculated": 100, 194 + "range": "last_7_days", 195 + "status": "ok", 196 + "timeout": 15, 197 + "total_seconds": 80473.135716, 198 + "total_seconds_including_other_language": 81643.570077, 199 + "user_id": "random hash", 200 + "username": "anuraghazra", 201 + "writes_only": false, 202 + } 203 + `); 204 + }); 205 + 206 + it("should throw error", async () => { 207 + mock.onGet(/\/https:\/\/wakatime\.com\/api/).reply(404, wakaTimeData); 208 + 209 + await expect(fetchWakatimeStats("noone")).rejects.toThrow( 210 + "Wakatime user not found, make sure you have a wakatime profile", 211 + ); 212 + }); 213 + }); 214 + 215 + module.exports = { wakaTimeData };
+126
tests/pin.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const pin = require("../api/pin"); 5 + const renderRepoCard = require("../src/cards/repo-card"); 6 + const { renderError } = require("../src/common/utils"); 7 + 8 + const data_repo = { 9 + repository: { 10 + username: "anuraghazra", 11 + name: "convoychat", 12 + stargazers: { totalCount: 38000 }, 13 + description: "Help us take over the world! React + TS + GraphQL Chat App", 14 + primaryLanguage: { 15 + color: "#2b7489", 16 + id: "MDg6TGFuZ3VhZ2UyODc=", 17 + name: "TypeScript", 18 + }, 19 + forkCount: 100, 20 + isTemplate: false, 21 + }, 22 + }; 23 + 24 + const data_user = { 25 + data: { 26 + user: { repository: data_repo.repository }, 27 + organization: null, 28 + }, 29 + }; 30 + 31 + const mock = new MockAdapter(axios); 32 + 33 + afterEach(() => { 34 + mock.reset(); 35 + }); 36 + 37 + describe("Test /api/pin", () => { 38 + it("should test the request", async () => { 39 + const req = { 40 + query: { 41 + username: "anuraghazra", 42 + repo: "convoychat", 43 + }, 44 + }; 45 + const res = { 46 + setHeader: jest.fn(), 47 + send: jest.fn(), 48 + }; 49 + mock.onPost("https://api.github.com/graphql").reply(200, data_user); 50 + 51 + await pin(req, res); 52 + 53 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 54 + expect(res.send).toBeCalledWith(renderRepoCard(data_repo.repository)); 55 + }); 56 + 57 + it("should get the query options", async () => { 58 + const req = { 59 + query: { 60 + username: "anuraghazra", 61 + repo: "convoychat", 62 + title_color: "fff", 63 + icon_color: "fff", 64 + text_color: "fff", 65 + bg_color: "fff", 66 + full_name: "1", 67 + }, 68 + }; 69 + const res = { 70 + setHeader: jest.fn(), 71 + send: jest.fn(), 72 + }; 73 + mock.onPost("https://api.github.com/graphql").reply(200, data_user); 74 + 75 + await pin(req, res); 76 + 77 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 78 + expect(res.send).toBeCalledWith( 79 + renderRepoCard(data_repo.repository, { ...req.query }), 80 + ); 81 + }); 82 + 83 + it("should render error card if user repo not found", async () => { 84 + const req = { 85 + query: { 86 + username: "anuraghazra", 87 + repo: "convoychat", 88 + }, 89 + }; 90 + const res = { 91 + setHeader: jest.fn(), 92 + send: jest.fn(), 93 + }; 94 + mock 95 + .onPost("https://api.github.com/graphql") 96 + .reply(200, { data: { user: { repository: null }, organization: null } }); 97 + 98 + await pin(req, res); 99 + 100 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 101 + expect(res.send).toBeCalledWith(renderError("User Repository Not found")); 102 + }); 103 + 104 + it("should render error card if org repo not found", async () => { 105 + const req = { 106 + query: { 107 + username: "anuraghazra", 108 + repo: "convoychat", 109 + }, 110 + }; 111 + const res = { 112 + setHeader: jest.fn(), 113 + send: jest.fn(), 114 + }; 115 + mock 116 + .onPost("https://api.github.com/graphql") 117 + .reply(200, { data: { user: null, organization: { repository: null } } }); 118 + 119 + await pin(req, res); 120 + 121 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 122 + expect(res.send).toBeCalledWith( 123 + renderError("Organization Repository Not found"), 124 + ); 125 + }); 126 + });
+342
tests/renderRepoCard.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const cssToObject = require("css-to-object"); 3 + const renderRepoCard = require("../src/cards/repo-card"); 4 + 5 + const { queryByTestId } = require("@testing-library/dom"); 6 + const themes = require("../themes"); 7 + 8 + const data_repo = { 9 + repository: { 10 + nameWithOwner: "anuraghazra/convoychat", 11 + name: "convoychat", 12 + stargazers: { totalCount: 38000 }, 13 + description: "Help us take over the world! React + TS + GraphQL Chat App", 14 + primaryLanguage: { 15 + color: "#2b7489", 16 + id: "MDg6TGFuZ3VhZ2UyODc=", 17 + name: "TypeScript", 18 + }, 19 + forkCount: 100, 20 + }, 21 + }; 22 + 23 + describe("Test renderRepoCard", () => { 24 + it("should render correctly", () => { 25 + document.body.innerHTML = renderRepoCard(data_repo.repository); 26 + 27 + const [header] = document.getElementsByClassName("header"); 28 + 29 + expect(header).toHaveTextContent("convoychat"); 30 + expect(header).not.toHaveTextContent("anuraghazra"); 31 + expect(document.getElementsByClassName("description")[0]).toHaveTextContent( 32 + "Help us take over the world! React + TS + GraphQL Chat App", 33 + ); 34 + expect(queryByTestId(document.body, "stargazers")).toHaveTextContent("38k"); 35 + expect(queryByTestId(document.body, "forkcount")).toHaveTextContent("100"); 36 + expect(queryByTestId(document.body, "lang-name")).toHaveTextContent( 37 + "TypeScript", 38 + ); 39 + expect(queryByTestId(document.body, "lang-color")).toHaveAttribute( 40 + "fill", 41 + "#2b7489", 42 + ); 43 + }); 44 + 45 + it("should display username in title (full repo name)", () => { 46 + document.body.innerHTML = renderRepoCard(data_repo.repository, { 47 + show_owner: true, 48 + }); 49 + expect(document.getElementsByClassName("header")[0]).toHaveTextContent( 50 + "anuraghazra/convoychat", 51 + ); 52 + }); 53 + 54 + it("should trim description", () => { 55 + document.body.innerHTML = renderRepoCard({ 56 + ...data_repo.repository, 57 + description: 58 + "The quick brown fox jumps over the lazy dog is an English-language pangram—a sentence that contains all of the letters of the English alphabet", 59 + }); 60 + 61 + expect( 62 + document.getElementsByClassName("description")[0].children[0].textContent, 63 + ).toBe("The quick brown fox jumps over the lazy dog is an"); 64 + 65 + expect( 66 + document.getElementsByClassName("description")[0].children[1].textContent, 67 + ).toBe("English-language pangram—a sentence that contains all"); 68 + 69 + // Should not trim 70 + document.body.innerHTML = renderRepoCard({ 71 + ...data_repo.repository, 72 + description: "Small text should not trim", 73 + }); 74 + 75 + expect(document.getElementsByClassName("description")[0]).toHaveTextContent( 76 + "Small text should not trim", 77 + ); 78 + }); 79 + 80 + it("should render emojis", () => { 81 + document.body.innerHTML = renderRepoCard({ 82 + ...data_repo.repository, 83 + description: "This is a text with a :poop: poo emoji", 84 + }); 85 + 86 + // poop emoji may not show in all editors but it's there between "a" and "poo" 87 + expect(document.getElementsByClassName("description")[0]).toHaveTextContent( 88 + "This is a text with a 💩 poo emoji", 89 + ); 90 + }); 91 + 92 + it("should shift the text position depending on language length", () => { 93 + document.body.innerHTML = renderRepoCard({ 94 + ...data_repo.repository, 95 + primaryLanguage: { 96 + ...data_repo.repository.primaryLanguage, 97 + name: "Jupyter Notebook", 98 + }, 99 + }); 100 + 101 + expect(queryByTestId(document.body, "primary-lang")).toBeInTheDocument(); 102 + expect(queryByTestId(document.body, "star-fork-group")).toHaveAttribute( 103 + "transform", 104 + "translate(155, 0)", 105 + ); 106 + 107 + // Small lang 108 + document.body.innerHTML = renderRepoCard({ 109 + ...data_repo.repository, 110 + primaryLanguage: { 111 + ...data_repo.repository.primaryLanguage, 112 + name: "Ruby", 113 + }, 114 + }); 115 + 116 + expect(queryByTestId(document.body, "star-fork-group")).toHaveAttribute( 117 + "transform", 118 + "translate(125, 0)", 119 + ); 120 + }); 121 + 122 + it("should hide language if primaryLanguage is null & fallback to correct values", () => { 123 + document.body.innerHTML = renderRepoCard({ 124 + ...data_repo.repository, 125 + primaryLanguage: null, 126 + }); 127 + 128 + expect(queryByTestId(document.body, "primary-lang")).toBeNull(); 129 + 130 + document.body.innerHTML = renderRepoCard({ 131 + ...data_repo.repository, 132 + primaryLanguage: { color: null, name: null }, 133 + }); 134 + 135 + expect(queryByTestId(document.body, "primary-lang")).toBeInTheDocument(); 136 + expect(queryByTestId(document.body, "lang-color")).toHaveAttribute( 137 + "fill", 138 + "#333", 139 + ); 140 + 141 + expect(queryByTestId(document.body, "lang-name")).toHaveTextContent( 142 + "Unspecified", 143 + ); 144 + }); 145 + 146 + it("should render default colors properly", () => { 147 + document.body.innerHTML = renderRepoCard(data_repo.repository); 148 + 149 + const styleTag = document.querySelector("style"); 150 + const stylesObject = cssToObject(styleTag.innerHTML); 151 + 152 + const headerClassStyles = stylesObject[".header"]; 153 + const descClassStyles = stylesObject[".description"]; 154 + const iconClassStyles = stylesObject[".icon"]; 155 + 156 + expect(headerClassStyles.fill).toBe("#2f80ed"); 157 + expect(descClassStyles.fill).toBe("#333"); 158 + expect(iconClassStyles.fill).toBe("#586069"); 159 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 160 + "fill", 161 + "#fffefe", 162 + ); 163 + }); 164 + 165 + it("should render custom colors properly", () => { 166 + const customColors = { 167 + title_color: "5a0", 168 + icon_color: "1b998b", 169 + text_color: "9991", 170 + bg_color: "252525", 171 + }; 172 + 173 + document.body.innerHTML = renderRepoCard(data_repo.repository, { 174 + ...customColors, 175 + }); 176 + 177 + const styleTag = document.querySelector("style"); 178 + const stylesObject = cssToObject(styleTag.innerHTML); 179 + 180 + const headerClassStyles = stylesObject[".header"]; 181 + const descClassStyles = stylesObject[".description"]; 182 + const iconClassStyles = stylesObject[".icon"]; 183 + 184 + expect(headerClassStyles.fill).toBe(`#${customColors.title_color}`); 185 + expect(descClassStyles.fill).toBe(`#${customColors.text_color}`); 186 + expect(iconClassStyles.fill).toBe(`#${customColors.icon_color}`); 187 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 188 + "fill", 189 + "#252525", 190 + ); 191 + }); 192 + 193 + it("should render with all the themes", () => { 194 + Object.keys(themes).forEach((name) => { 195 + document.body.innerHTML = renderRepoCard(data_repo.repository, { 196 + theme: name, 197 + }); 198 + 199 + const styleTag = document.querySelector("style"); 200 + const stylesObject = cssToObject(styleTag.innerHTML); 201 + 202 + const headerClassStyles = stylesObject[".header"]; 203 + const descClassStyles = stylesObject[".description"]; 204 + const iconClassStyles = stylesObject[".icon"]; 205 + 206 + expect(headerClassStyles.fill).toBe(`#${themes[name].title_color}`); 207 + expect(descClassStyles.fill).toBe(`#${themes[name].text_color}`); 208 + expect(iconClassStyles.fill).toBe(`#${themes[name].icon_color}`); 209 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 210 + "fill", 211 + `#${themes[name].bg_color}`, 212 + ); 213 + }); 214 + }); 215 + 216 + it("should render custom colors with themes", () => { 217 + document.body.innerHTML = renderRepoCard(data_repo.repository, { 218 + title_color: "5a0", 219 + theme: "radical", 220 + }); 221 + 222 + const styleTag = document.querySelector("style"); 223 + const stylesObject = cssToObject(styleTag.innerHTML); 224 + 225 + const headerClassStyles = stylesObject[".header"]; 226 + const descClassStyles = stylesObject[".description"]; 227 + const iconClassStyles = stylesObject[".icon"]; 228 + 229 + expect(headerClassStyles.fill).toBe("#5a0"); 230 + expect(descClassStyles.fill).toBe(`#${themes.radical.text_color}`); 231 + expect(iconClassStyles.fill).toBe(`#${themes.radical.icon_color}`); 232 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 233 + "fill", 234 + `#${themes.radical.bg_color}`, 235 + ); 236 + }); 237 + 238 + it("should render custom colors with themes and fallback to default colors if invalid", () => { 239 + document.body.innerHTML = renderRepoCard(data_repo.repository, { 240 + title_color: "invalid color", 241 + text_color: "invalid color", 242 + theme: "radical", 243 + }); 244 + 245 + const styleTag = document.querySelector("style"); 246 + const stylesObject = cssToObject(styleTag.innerHTML); 247 + 248 + const headerClassStyles = stylesObject[".header"]; 249 + const descClassStyles = stylesObject[".description"]; 250 + const iconClassStyles = stylesObject[".icon"]; 251 + 252 + expect(headerClassStyles.fill).toBe(`#${themes.default.title_color}`); 253 + expect(descClassStyles.fill).toBe(`#${themes.default.text_color}`); 254 + expect(iconClassStyles.fill).toBe(`#${themes.radical.icon_color}`); 255 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 256 + "fill", 257 + `#${themes.radical.bg_color}`, 258 + ); 259 + }); 260 + 261 + it("should not render star count or fork count if either of the are zero", () => { 262 + document.body.innerHTML = renderRepoCard({ 263 + ...data_repo.repository, 264 + stargazers: { totalCount: 0 }, 265 + }); 266 + 267 + expect(queryByTestId(document.body, "stargazers")).toBeNull(); 268 + expect(queryByTestId(document.body, "forkcount")).toBeInTheDocument(); 269 + 270 + document.body.innerHTML = renderRepoCard({ 271 + ...data_repo.repository, 272 + stargazers: { totalCount: 1 }, 273 + forkCount: 0, 274 + }); 275 + 276 + expect(queryByTestId(document.body, "stargazers")).toBeInTheDocument(); 277 + expect(queryByTestId(document.body, "forkcount")).toBeNull(); 278 + 279 + document.body.innerHTML = renderRepoCard({ 280 + ...data_repo.repository, 281 + stargazers: { totalCount: 0 }, 282 + forkCount: 0, 283 + }); 284 + 285 + expect(queryByTestId(document.body, "stargazers")).toBeNull(); 286 + expect(queryByTestId(document.body, "forkcount")).toBeNull(); 287 + }); 288 + 289 + it("should render badges", () => { 290 + document.body.innerHTML = renderRepoCard({ 291 + ...data_repo.repository, 292 + isArchived: true, 293 + }); 294 + 295 + expect(queryByTestId(document.body, "badge")).toHaveTextContent("Archived"); 296 + 297 + document.body.innerHTML = renderRepoCard({ 298 + ...data_repo.repository, 299 + isTemplate: true, 300 + }); 301 + expect(queryByTestId(document.body, "badge")).toHaveTextContent("Template"); 302 + }); 303 + 304 + it("should not render template", () => { 305 + document.body.innerHTML = renderRepoCard({ 306 + ...data_repo.repository, 307 + }); 308 + expect(queryByTestId(document.body, "badge")).toBeNull(); 309 + }); 310 + 311 + it("should render translated badges", () => { 312 + document.body.innerHTML = renderRepoCard( 313 + { 314 + ...data_repo.repository, 315 + isArchived: true, 316 + }, 317 + { 318 + locale: "cn", 319 + }, 320 + ); 321 + 322 + expect(queryByTestId(document.body, "badge")).toHaveTextContent("已归档"); 323 + 324 + document.body.innerHTML = renderRepoCard( 325 + { 326 + ...data_repo.repository, 327 + isTemplate: true, 328 + }, 329 + { 330 + locale: "cn", 331 + }, 332 + ); 333 + expect(queryByTestId(document.body, "badge")).toHaveTextContent("模板"); 334 + }); 335 + 336 + it("should render without rounding", () => { 337 + document.body.innerHTML = renderRepoCard(data_repo.repository, { border_radius: "0" }); 338 + expect(document.querySelector("rect")).toHaveAttribute("rx", "0"); 339 + document.body.innerHTML = renderRepoCard(data_repo.repository, { }); 340 + expect(document.querySelector("rect")).toHaveAttribute("rx", "4.5"); 341 + }); 342 + });
+272
tests/renderStatsCard.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const cssToObject = require("css-to-object"); 3 + const renderStatsCard = require("../src/cards/stats-card"); 4 + 5 + const { 6 + getByTestId, 7 + queryByTestId, 8 + queryAllByTestId, 9 + } = require("@testing-library/dom"); 10 + const themes = require("../themes"); 11 + 12 + describe("Test renderStatsCard", () => { 13 + const stats = { 14 + name: "Anurag Hazra", 15 + totalStars: 100, 16 + totalCommits: 200, 17 + totalIssues: 300, 18 + totalPRs: 400, 19 + contributedTo: 500, 20 + rank: { level: "A+", score: 40 }, 21 + }; 22 + 23 + it("should render correctly", () => { 24 + document.body.innerHTML = renderStatsCard(stats); 25 + 26 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 27 + "Anurag Hazra's GitHub Stats", 28 + ); 29 + 30 + expect( 31 + document.body.getElementsByTagName("svg")[0].getAttribute("height"), 32 + ).toBe("195"); 33 + expect(getByTestId(document.body, "stars").textContent).toBe("100"); 34 + expect(getByTestId(document.body, "commits").textContent).toBe("200"); 35 + expect(getByTestId(document.body, "issues").textContent).toBe("300"); 36 + expect(getByTestId(document.body, "prs").textContent).toBe("400"); 37 + expect(getByTestId(document.body, "contribs").textContent).toBe("500"); 38 + expect(queryByTestId(document.body, "card-bg")).toBeInTheDocument(); 39 + expect(queryByTestId(document.body, "rank-circle")).toBeInTheDocument(); 40 + }); 41 + 42 + it("should have proper name apostrophe", () => { 43 + document.body.innerHTML = renderStatsCard({ ...stats, name: "Anil Das" }); 44 + 45 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 46 + "Anil Das' GitHub Stats", 47 + ); 48 + 49 + document.body.innerHTML = renderStatsCard({ ...stats, name: "Felix" }); 50 + 51 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 52 + "Felix' GitHub Stats", 53 + ); 54 + }); 55 + 56 + it("should hide individual stats", () => { 57 + document.body.innerHTML = renderStatsCard(stats, { 58 + hide: ["issues", "prs", "contribs"], 59 + }); 60 + 61 + expect( 62 + document.body.getElementsByTagName("svg")[0].getAttribute("height"), 63 + ).toBe("150"); // height should be 150 because we clamped it. 64 + 65 + expect(queryByTestId(document.body, "stars")).toBeDefined(); 66 + expect(queryByTestId(document.body, "commits")).toBeDefined(); 67 + expect(queryByTestId(document.body, "issues")).toBeNull(); 68 + expect(queryByTestId(document.body, "prs")).toBeNull(); 69 + expect(queryByTestId(document.body, "contribs")).toBeNull(); 70 + }); 71 + 72 + it("should hide_rank", () => { 73 + document.body.innerHTML = renderStatsCard(stats, { hide_rank: true }); 74 + 75 + expect(queryByTestId(document.body, "rank-circle")).not.toBeInTheDocument(); 76 + }); 77 + 78 + it("should render default colors properly", () => { 79 + document.body.innerHTML = renderStatsCard(stats); 80 + 81 + const styleTag = document.querySelector("style"); 82 + const stylesObject = cssToObject(styleTag.textContent); 83 + 84 + const headerClassStyles = stylesObject[".header"]; 85 + const statClassStyles = stylesObject[".stat"]; 86 + const iconClassStyles = stylesObject[".icon"]; 87 + 88 + expect(headerClassStyles.fill).toBe("#2f80ed"); 89 + expect(statClassStyles.fill).toBe("#333"); 90 + expect(iconClassStyles.fill).toBe("#4c71f2"); 91 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 92 + "fill", 93 + "#fffefe", 94 + ); 95 + }); 96 + 97 + it("should render custom colors properly", () => { 98 + const customColors = { 99 + title_color: "5a0", 100 + icon_color: "1b998b", 101 + text_color: "9991", 102 + bg_color: "252525", 103 + }; 104 + 105 + document.body.innerHTML = renderStatsCard(stats, { ...customColors }); 106 + 107 + const styleTag = document.querySelector("style"); 108 + const stylesObject = cssToObject(styleTag.innerHTML); 109 + 110 + const headerClassStyles = stylesObject[".header"]; 111 + const statClassStyles = stylesObject[".stat"]; 112 + const iconClassStyles = stylesObject[".icon"]; 113 + 114 + expect(headerClassStyles.fill).toBe(`#${customColors.title_color}`); 115 + expect(statClassStyles.fill).toBe(`#${customColors.text_color}`); 116 + expect(iconClassStyles.fill).toBe(`#${customColors.icon_color}`); 117 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 118 + "fill", 119 + "#252525", 120 + ); 121 + }); 122 + 123 + it("should render custom colors with themes", () => { 124 + document.body.innerHTML = renderStatsCard(stats, { 125 + title_color: "5a0", 126 + theme: "radical", 127 + }); 128 + 129 + const styleTag = document.querySelector("style"); 130 + const stylesObject = cssToObject(styleTag.innerHTML); 131 + 132 + const headerClassStyles = stylesObject[".header"]; 133 + const statClassStyles = stylesObject[".stat"]; 134 + const iconClassStyles = stylesObject[".icon"]; 135 + 136 + expect(headerClassStyles.fill).toBe("#5a0"); 137 + expect(statClassStyles.fill).toBe(`#${themes.radical.text_color}`); 138 + expect(iconClassStyles.fill).toBe(`#${themes.radical.icon_color}`); 139 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 140 + "fill", 141 + `#${themes.radical.bg_color}`, 142 + ); 143 + }); 144 + 145 + it("should render with all the themes", () => { 146 + Object.keys(themes).forEach((name) => { 147 + document.body.innerHTML = renderStatsCard(stats, { 148 + theme: name, 149 + }); 150 + 151 + const styleTag = document.querySelector("style"); 152 + const stylesObject = cssToObject(styleTag.innerHTML); 153 + 154 + const headerClassStyles = stylesObject[".header"]; 155 + const statClassStyles = stylesObject[".stat"]; 156 + const iconClassStyles = stylesObject[".icon"]; 157 + 158 + expect(headerClassStyles.fill).toBe(`#${themes[name].title_color}`); 159 + expect(statClassStyles.fill).toBe(`#${themes[name].text_color}`); 160 + expect(iconClassStyles.fill).toBe(`#${themes[name].icon_color}`); 161 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 162 + "fill", 163 + `#${themes[name].bg_color}`, 164 + ); 165 + }); 166 + }); 167 + 168 + it("should render custom colors with themes and fallback to default colors if invalid", () => { 169 + document.body.innerHTML = renderStatsCard(stats, { 170 + title_color: "invalid color", 171 + text_color: "invalid color", 172 + theme: "radical", 173 + }); 174 + 175 + const styleTag = document.querySelector("style"); 176 + const stylesObject = cssToObject(styleTag.innerHTML); 177 + 178 + const headerClassStyles = stylesObject[".header"]; 179 + const statClassStyles = stylesObject[".stat"]; 180 + const iconClassStyles = stylesObject[".icon"]; 181 + 182 + expect(headerClassStyles.fill).toBe(`#${themes.default.title_color}`); 183 + expect(statClassStyles.fill).toBe(`#${themes.default.text_color}`); 184 + expect(iconClassStyles.fill).toBe(`#${themes.radical.icon_color}`); 185 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 186 + "fill", 187 + `#${themes.radical.bg_color}`, 188 + ); 189 + }); 190 + 191 + it("should render icons correctly", () => { 192 + document.body.innerHTML = renderStatsCard(stats, { 193 + show_icons: true, 194 + }); 195 + 196 + expect(queryAllByTestId(document.body, "icon")[0]).toBeDefined(); 197 + expect(queryByTestId(document.body, "stars")).toBeDefined(); 198 + expect( 199 + queryByTestId(document.body, "stars").previousElementSibling, // the label 200 + ).toHaveAttribute("x", "25"); 201 + }); 202 + 203 + it("should not have icons if show_icons is false", () => { 204 + document.body.innerHTML = renderStatsCard(stats, { show_icons: false }); 205 + 206 + expect(queryAllByTestId(document.body, "icon")[0]).not.toBeDefined(); 207 + expect(queryByTestId(document.body, "stars")).toBeDefined(); 208 + expect( 209 + queryByTestId(document.body, "stars").previousElementSibling, // the label 210 + ).not.toHaveAttribute("x"); 211 + }); 212 + 213 + it("should auto resize if hide_rank is true", () => { 214 + document.body.innerHTML = renderStatsCard(stats, { 215 + hide_rank: true, 216 + }); 217 + 218 + expect( 219 + document.body.getElementsByTagName("svg")[0].getAttribute("width"), 220 + ).toBe("305.81250000000006"); 221 + }); 222 + 223 + it("should auto resize if hide_rank is true & custom_title is set", () => { 224 + document.body.innerHTML = renderStatsCard(stats, { 225 + hide_rank: true, 226 + custom_title: "Hello world", 227 + }); 228 + 229 + expect( 230 + document.body.getElementsByTagName("svg")[0].getAttribute("width"), 231 + ).toBe("270"); 232 + }); 233 + 234 + it("should render translations", () => { 235 + document.body.innerHTML = renderStatsCard(stats, { locale: "cn" }); 236 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 237 + "Anurag Hazra 的 GitHub 统计数据", 238 + ); 239 + expect( 240 + document.querySelector( 241 + 'g[transform="translate(0, 0)"]>.stagger>.stat.bold', 242 + ).textContent, 243 + ).toMatchInlineSnapshot(`"获标星数(star):"`); 244 + expect( 245 + document.querySelector( 246 + 'g[transform="translate(0, 25)"]>.stagger>.stat.bold', 247 + ).textContent, 248 + ).toMatchInlineSnapshot(`"累计提交数(commit) (2021):"`); 249 + expect( 250 + document.querySelector( 251 + 'g[transform="translate(0, 50)"]>.stagger>.stat.bold', 252 + ).textContent, 253 + ).toMatchInlineSnapshot(`"拉取请求数(PR):"`); 254 + expect( 255 + document.querySelector( 256 + 'g[transform="translate(0, 75)"]>.stagger>.stat.bold', 257 + ).textContent, 258 + ).toMatchInlineSnapshot(`"指出问题数(issue):"`); 259 + expect( 260 + document.querySelector( 261 + 'g[transform="translate(0, 100)"]>.stagger>.stat.bold', 262 + ).textContent, 263 + ).toMatchInlineSnapshot(`"参与项目数:"`); 264 + }); 265 + 266 + it("should render without rounding", () => { 267 + document.body.innerHTML = renderStatsCard(stats, { border_radius: "0" }); 268 + expect(document.querySelector("rect")).toHaveAttribute("rx", "0"); 269 + document.body.innerHTML = renderStatsCard(stats, {}); 270 + expect(document.querySelector("rect")).toHaveAttribute("rx", "4.5"); 271 + }); 272 + });
+233
tests/renderTopLanguages.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const cssToObject = require("css-to-object"); 3 + const renderTopLanguages = require("../src/cards/top-languages-card"); 4 + 5 + const { queryByTestId, queryAllByTestId } = require("@testing-library/dom"); 6 + const themes = require("../themes"); 7 + 8 + describe("Test renderTopLanguages", () => { 9 + const langs = { 10 + HTML: { 11 + color: "#0f0", 12 + name: "HTML", 13 + size: 200, 14 + }, 15 + javascript: { 16 + color: "#0ff", 17 + name: "javascript", 18 + size: 200, 19 + }, 20 + css: { 21 + color: "#ff0", 22 + name: "css", 23 + size: 100, 24 + }, 25 + }; 26 + 27 + it("should render correctly", () => { 28 + document.body.innerHTML = renderTopLanguages(langs); 29 + 30 + expect(queryByTestId(document.body, "header")).toHaveTextContent( 31 + "Most Used Languages", 32 + ); 33 + 34 + expect(queryAllByTestId(document.body, "lang-name")[0]).toHaveTextContent( 35 + "HTML", 36 + ); 37 + expect(queryAllByTestId(document.body, "lang-name")[1]).toHaveTextContent( 38 + "javascript", 39 + ); 40 + expect(queryAllByTestId(document.body, "lang-name")[2]).toHaveTextContent( 41 + "css", 42 + ); 43 + expect(queryAllByTestId(document.body, "lang-progress")[0]).toHaveAttribute( 44 + "width", 45 + "40%", 46 + ); 47 + expect(queryAllByTestId(document.body, "lang-progress")[1]).toHaveAttribute( 48 + "width", 49 + "40%", 50 + ); 51 + expect(queryAllByTestId(document.body, "lang-progress")[2]).toHaveAttribute( 52 + "width", 53 + "20%", 54 + ); 55 + }); 56 + 57 + it("should hide languages when hide is passed", () => { 58 + document.body.innerHTML = renderTopLanguages(langs, { 59 + hide: ["HTML"], 60 + }); 61 + expect(queryAllByTestId(document.body, "lang-name")[0]).toBeInTheDocument( 62 + "javascript", 63 + ); 64 + expect(queryAllByTestId(document.body, "lang-name")[1]).toBeInTheDocument( 65 + "css", 66 + ); 67 + expect(queryAllByTestId(document.body, "lang-name")[2]).not.toBeDefined(); 68 + 69 + // multiple languages passed 70 + document.body.innerHTML = renderTopLanguages(langs, { 71 + hide: ["HTML", "css"], 72 + }); 73 + expect(queryAllByTestId(document.body, "lang-name")[0]).toBeInTheDocument( 74 + "javascript", 75 + ); 76 + expect(queryAllByTestId(document.body, "lang-name")[1]).not.toBeDefined(); 77 + }); 78 + 79 + it("should resize the height correctly depending on langs", () => { 80 + document.body.innerHTML = renderTopLanguages(langs, {}); 81 + expect(document.querySelector("svg")).toHaveAttribute("height", "205"); 82 + 83 + document.body.innerHTML = renderTopLanguages( 84 + { 85 + ...langs, 86 + python: { 87 + color: "#ff0", 88 + name: "python", 89 + size: 100, 90 + }, 91 + }, 92 + {}, 93 + ); 94 + expect(document.querySelector("svg")).toHaveAttribute("height", "245"); 95 + }); 96 + 97 + it("should render with custom width set", () => { 98 + document.body.innerHTML = renderTopLanguages(langs, {}); 99 + 100 + expect(document.querySelector("svg")).toHaveAttribute("width", "300"); 101 + 102 + document.body.innerHTML = renderTopLanguages(langs, { card_width: 400 }); 103 + expect(document.querySelector("svg")).toHaveAttribute("width", "400"); 104 + }); 105 + 106 + it("should render default colors properly", () => { 107 + document.body.innerHTML = renderTopLanguages(langs); 108 + 109 + const styleTag = document.querySelector("style"); 110 + const stylesObject = cssToObject(styleTag.textContent); 111 + 112 + const headerStyles = stylesObject[".header"]; 113 + const langNameStyles = stylesObject[".lang-name"]; 114 + 115 + expect(headerStyles.fill).toBe("#2f80ed"); 116 + expect(langNameStyles.fill).toBe("#333"); 117 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 118 + "fill", 119 + "#fffefe", 120 + ); 121 + }); 122 + 123 + it("should render custom colors properly", () => { 124 + const customColors = { 125 + title_color: "5a0", 126 + icon_color: "1b998b", 127 + text_color: "9991", 128 + bg_color: "252525", 129 + }; 130 + 131 + document.body.innerHTML = renderTopLanguages(langs, { ...customColors }); 132 + 133 + const styleTag = document.querySelector("style"); 134 + const stylesObject = cssToObject(styleTag.innerHTML); 135 + 136 + const headerStyles = stylesObject[".header"]; 137 + const langNameStyles = stylesObject[".lang-name"]; 138 + 139 + expect(headerStyles.fill).toBe(`#${customColors.title_color}`); 140 + expect(langNameStyles.fill).toBe(`#${customColors.text_color}`); 141 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 142 + "fill", 143 + "#252525", 144 + ); 145 + }); 146 + 147 + it("should render custom colors with themes", () => { 148 + document.body.innerHTML = renderTopLanguages(langs, { 149 + title_color: "5a0", 150 + theme: "radical", 151 + }); 152 + 153 + const styleTag = document.querySelector("style"); 154 + const stylesObject = cssToObject(styleTag.innerHTML); 155 + 156 + const headerStyles = stylesObject[".header"]; 157 + const langNameStyles = stylesObject[".lang-name"]; 158 + 159 + expect(headerStyles.fill).toBe("#5a0"); 160 + expect(langNameStyles.fill).toBe(`#${themes.radical.text_color}`); 161 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 162 + "fill", 163 + `#${themes.radical.bg_color}`, 164 + ); 165 + }); 166 + 167 + it("should render with all the themes", () => { 168 + Object.keys(themes).forEach((name) => { 169 + document.body.innerHTML = renderTopLanguages(langs, { 170 + theme: name, 171 + }); 172 + 173 + const styleTag = document.querySelector("style"); 174 + const stylesObject = cssToObject(styleTag.innerHTML); 175 + 176 + const headerStyles = stylesObject[".header"]; 177 + const langNameStyles = stylesObject[".lang-name"]; 178 + 179 + expect(headerStyles.fill).toBe(`#${themes[name].title_color}`); 180 + expect(langNameStyles.fill).toBe(`#${themes[name].text_color}`); 181 + expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( 182 + "fill", 183 + `#${themes[name].bg_color}`, 184 + ); 185 + }); 186 + }); 187 + 188 + it("should render with layout compact", () => { 189 + document.body.innerHTML = renderTopLanguages(langs, { layout: "compact" }); 190 + 191 + expect(queryByTestId(document.body, "header")).toHaveTextContent( 192 + "Most Used Languages", 193 + ); 194 + 195 + expect(queryAllByTestId(document.body, "lang-name")[0]).toHaveTextContent( 196 + "HTML 40.00%", 197 + ); 198 + expect(queryAllByTestId(document.body, "lang-progress")[0]).toHaveAttribute( 199 + "width", 200 + "120.00", 201 + ); 202 + 203 + expect(queryAllByTestId(document.body, "lang-name")[1]).toHaveTextContent( 204 + "javascript 40.00%", 205 + ); 206 + expect(queryAllByTestId(document.body, "lang-progress")[1]).toHaveAttribute( 207 + "width", 208 + "120.00", 209 + ); 210 + 211 + expect(queryAllByTestId(document.body, "lang-name")[2]).toHaveTextContent( 212 + "css 20.00%", 213 + ); 214 + expect(queryAllByTestId(document.body, "lang-progress")[2]).toHaveAttribute( 215 + "width", 216 + "60.00", 217 + ); 218 + }); 219 + 220 + it("should render a translated title", () => { 221 + document.body.innerHTML = renderTopLanguages(langs, { locale: "cn" }); 222 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 223 + "最常用的语言", 224 + ); 225 + }); 226 + 227 + it("should render without rounding", () => { 228 + document.body.innerHTML = renderTopLanguages(langs, { border_radius: "0" }); 229 + expect(document.querySelector("rect")).toHaveAttribute("rx", "0"); 230 + document.body.innerHTML = renderTopLanguages(langs, { }); 231 + expect(document.querySelector("rect")).toHaveAttribute("rx", "4.5"); 232 + }); 233 + });
+36
tests/renderWakatimeCard.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const renderWakatimeCard = require("../src/cards/wakatime-card"); 3 + 4 + const { wakaTimeData } = require("./fetchWakatime.test"); 5 + 6 + describe("Test Render Wakatime Card", () => { 7 + it("should render correctly", () => { 8 + const card = renderWakatimeCard(wakaTimeData.data); 9 + 10 + expect(card).toMatchSnapshot(); 11 + }); 12 + 13 + it("should render correctly with compact layout", () => { 14 + const card = renderWakatimeCard(wakaTimeData.data, { layout: "compact" }); 15 + 16 + expect(card).toMatchSnapshot(); 17 + }); 18 + 19 + it("should render translations", () => { 20 + document.body.innerHTML = renderWakatimeCard({}, { locale: "cn" }); 21 + expect(document.getElementsByClassName("header")[0].textContent).toBe( 22 + "Wakatime 周统计", 23 + ); 24 + expect( 25 + document.querySelector('g[transform="translate(0, 0)"]>text.stat.bold') 26 + .textContent, 27 + ).toBe("本周没有编程活动"); 28 + }); 29 + 30 + it("should render without rounding", () => { 31 + document.body.innerHTML = renderWakatimeCard(wakaTimeData.data, { border_radius: "0" }); 32 + expect(document.querySelector("rect")).toHaveAttribute("rx", "0"); 33 + document.body.innerHTML = renderWakatimeCard(wakaTimeData.data, { }); 34 + expect(document.querySelector("rect")).toHaveAttribute("rx", "4.5"); 35 + }); 36 + });
+51
tests/retryer.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const retryer = require("../src/common/retryer"); 3 + const { logger } = require("../src/common/utils"); 4 + 5 + const fetcher = jest.fn((variables, token) => { 6 + logger.log(variables, token); 7 + return new Promise((res, rej) => res({ data: "ok" })); 8 + }); 9 + 10 + const fetcherFail = jest.fn(() => { 11 + return new Promise((res, rej) => 12 + res({ data: { errors: [{ type: "RATE_LIMITED" }] } }), 13 + ); 14 + }); 15 + 16 + const fetcherFailOnSecondTry = jest.fn((_vars, _token, retries) => { 17 + return new Promise((res, rej) => { 18 + // faking rate limit 19 + if (retries < 1) { 20 + return res({ data: { errors: [{ type: "RATE_LIMITED" }] } }); 21 + } 22 + return res({ data: "ok" }); 23 + }); 24 + }); 25 + 26 + describe("Test Retryer", () => { 27 + it("retryer should return value and have zero retries on first try", async () => { 28 + let res = await retryer(fetcher, {}); 29 + 30 + expect(fetcher).toBeCalledTimes(1); 31 + expect(res).toStrictEqual({ data: "ok" }); 32 + }); 33 + 34 + it("retryer should return value and have 2 retries", async () => { 35 + let res = await retryer(fetcherFailOnSecondTry, {}); 36 + 37 + expect(fetcherFailOnSecondTry).toBeCalledTimes(2); 38 + expect(res).toStrictEqual({ data: "ok" }); 39 + }); 40 + 41 + it("retryer should throw error if maximum retries reached", async () => { 42 + let res; 43 + 44 + try { 45 + res = await retryer(fetcherFail, {}); 46 + } catch (err) { 47 + expect(fetcherFail).toBeCalledTimes(8); 48 + expect(err.message).toBe("Maximum retries exceeded"); 49 + } 50 + }); 51 + });
+142
tests/top-langs.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const axios = require("axios"); 3 + const MockAdapter = require("axios-mock-adapter"); 4 + const topLangs = require("../api/top-langs"); 5 + const renderTopLanguages = require("../src/cards/top-languages-card"); 6 + const { renderError } = require("../src/common/utils"); 7 + 8 + const data_langs = { 9 + data: { 10 + user: { 11 + repositories: { 12 + nodes: [ 13 + { 14 + languages: { 15 + edges: [{ size: 150, node: { color: "#0f0", name: "HTML" } }], 16 + }, 17 + }, 18 + { 19 + languages: { 20 + edges: [{ size: 100, node: { color: "#0f0", name: "HTML" } }], 21 + }, 22 + }, 23 + { 24 + languages: { 25 + edges: [ 26 + { size: 100, node: { color: "#0ff", name: "javascript" } }, 27 + ], 28 + }, 29 + }, 30 + { 31 + languages: { 32 + edges: [ 33 + { size: 100, node: { color: "#0ff", name: "javascript" } }, 34 + ], 35 + }, 36 + }, 37 + ], 38 + }, 39 + }, 40 + }, 41 + }; 42 + 43 + const error = { 44 + errors: [ 45 + { 46 + type: "NOT_FOUND", 47 + path: ["user"], 48 + locations: [], 49 + message: "Could not fetch user", 50 + }, 51 + ], 52 + }; 53 + 54 + const langs = { 55 + HTML: { 56 + color: "#0f0", 57 + name: "HTML", 58 + size: 250, 59 + }, 60 + javascript: { 61 + color: "#0ff", 62 + name: "javascript", 63 + size: 200, 64 + }, 65 + }; 66 + 67 + const mock = new MockAdapter(axios); 68 + 69 + afterEach(() => { 70 + mock.reset(); 71 + }); 72 + 73 + describe("Test /api/top-langs", () => { 74 + it("should test the request", async () => { 75 + const req = { 76 + query: { 77 + username: "anuraghazra", 78 + }, 79 + }; 80 + const res = { 81 + setHeader: jest.fn(), 82 + send: jest.fn(), 83 + }; 84 + mock.onPost("https://api.github.com/graphql").reply(200, data_langs); 85 + 86 + await topLangs(req, res); 87 + 88 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 89 + expect(res.send).toBeCalledWith(renderTopLanguages(langs)); 90 + }); 91 + 92 + it("should work with the query options", async () => { 93 + const req = { 94 + query: { 95 + username: "anuraghazra", 96 + hide_title: true, 97 + card_width: 100, 98 + title_color: "fff", 99 + icon_color: "fff", 100 + text_color: "fff", 101 + bg_color: "fff", 102 + }, 103 + }; 104 + const res = { 105 + setHeader: jest.fn(), 106 + send: jest.fn(), 107 + }; 108 + mock.onPost("https://api.github.com/graphql").reply(200, data_langs); 109 + 110 + await topLangs(req, res); 111 + 112 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 113 + expect(res.send).toBeCalledWith( 114 + renderTopLanguages(langs, { 115 + hide_title: true, 116 + card_width: 100, 117 + title_color: "fff", 118 + icon_color: "fff", 119 + text_color: "fff", 120 + bg_color: "fff", 121 + }), 122 + ); 123 + }); 124 + 125 + it("should render error card on error", async () => { 126 + const req = { 127 + query: { 128 + username: "anuraghazra", 129 + }, 130 + }; 131 + const res = { 132 + setHeader: jest.fn(), 133 + send: jest.fn(), 134 + }; 135 + mock.onPost("https://api.github.com/graphql").reply(200, error); 136 + 137 + await topLangs(req, res); 138 + 139 + expect(res.setHeader).toBeCalledWith("Content-Type", "image/svg+xml"); 140 + expect(res.send).toBeCalledWith(renderError(error.errors[0].message)); 141 + }); 142 + });
+136
tests/utils.test.js
··· 1 + require("@testing-library/jest-dom"); 2 + const { 3 + kFormatter, 4 + encodeHTML, 5 + renderError, 6 + FlexLayout, 7 + getCardColors, 8 + wrapTextMultiline, 9 + } = require("../src/common/utils"); 10 + 11 + const { queryByTestId } = require("@testing-library/dom"); 12 + 13 + describe("Test utils.js", () => { 14 + it("should test kFormatter", () => { 15 + expect(kFormatter(1)).toBe(1); 16 + expect(kFormatter(-1)).toBe(-1); 17 + expect(kFormatter(500)).toBe(500); 18 + expect(kFormatter(1000)).toBe("1k"); 19 + expect(kFormatter(10000)).toBe("10k"); 20 + expect(kFormatter(12345)).toBe("12.3k"); 21 + expect(kFormatter(9900000)).toBe("9900k"); 22 + }); 23 + 24 + it("should test encodeHTML", () => { 25 + expect(encodeHTML(`<html>hello world<,.#4^&^@%!))`)).toBe( 26 + "&#60;html&#62;hello world&#60;,.#4^&#38;^@%!))", 27 + ); 28 + }); 29 + 30 + it("should test renderError", () => { 31 + document.body.innerHTML = renderError("Something went wrong"); 32 + expect( 33 + queryByTestId(document.body, "message").children[0], 34 + ).toHaveTextContent(/Something went wrong/gim); 35 + expect(queryByTestId(document.body, "message").children[1]).toBeEmpty(2); 36 + 37 + // Secondary message 38 + document.body.innerHTML = renderError( 39 + "Something went wrong", 40 + "Secondary Message", 41 + ); 42 + expect( 43 + queryByTestId(document.body, "message").children[1], 44 + ).toHaveTextContent(/Secondary Message/gim); 45 + }); 46 + 47 + it("should test FlexLayout", () => { 48 + const layout = FlexLayout({ 49 + items: ["<text>1</text>", "<text>2</text>"], 50 + gap: 60, 51 + }).join(""); 52 + 53 + expect(layout).toBe( 54 + `<g transform=\"translate(0, 0)\"><text>1</text></g><g transform=\"translate(60, 0)\"><text>2</text></g>`, 55 + ); 56 + 57 + const columns = FlexLayout({ 58 + items: ["<text>1</text>", "<text>2</text>"], 59 + gap: 60, 60 + direction: "column", 61 + }).join(""); 62 + 63 + expect(columns).toBe( 64 + `<g transform=\"translate(0, 0)\"><text>1</text></g><g transform=\"translate(0, 60)\"><text>2</text></g>`, 65 + ); 66 + }); 67 + 68 + it("getCardColors: should return expected values", () => { 69 + let colors = getCardColors({ 70 + title_color: "f00", 71 + text_color: "0f0", 72 + icon_color: "00f", 73 + bg_color: "fff", 74 + theme: "dark", 75 + }); 76 + expect(colors).toStrictEqual({ 77 + titleColor: "#f00", 78 + textColor: "#0f0", 79 + iconColor: "#00f", 80 + bgColor: "#fff", 81 + }); 82 + }); 83 + 84 + it("getCardColors: should fallback to default colors if color is invalid", () => { 85 + let colors = getCardColors({ 86 + title_color: "invalidcolor", 87 + text_color: "0f0", 88 + icon_color: "00f", 89 + bg_color: "fff", 90 + theme: "dark", 91 + }); 92 + expect(colors).toStrictEqual({ 93 + titleColor: "#2f80ed", 94 + textColor: "#0f0", 95 + iconColor: "#00f", 96 + bgColor: "#fff", 97 + }); 98 + }); 99 + 100 + it("getCardColors: should fallback to specified theme colors if is not defined", () => { 101 + let colors = getCardColors({ 102 + theme: "dark", 103 + }); 104 + expect(colors).toStrictEqual({ 105 + titleColor: "#fff", 106 + textColor: "#9f9f9f", 107 + iconColor: "#79ff97", 108 + bgColor: "#151515", 109 + }); 110 + }); 111 + }); 112 + 113 + describe("wrapTextMultiline", () => { 114 + it("should not wrap small texts", () => { 115 + { 116 + let multiLineText = wrapTextMultiline("Small text should not wrap"); 117 + expect(multiLineText).toEqual(["Small text should not wrap"]); 118 + } 119 + }); 120 + it("should wrap large texts", () => { 121 + let multiLineText = wrapTextMultiline( 122 + "Hello world long long long text", 123 + 20, 124 + 3, 125 + ); 126 + expect(multiLineText).toEqual(["Hello world long", "long long text"]); 127 + }); 128 + it("should wrap large texts and limit max lines", () => { 129 + let multiLineText = wrapTextMultiline( 130 + "Hello world long long long text", 131 + 10, 132 + 2, 133 + ); 134 + expect(multiLineText).toEqual(["Hello", "world long..."]); 135 + }); 136 + });
+154
themes/README.md
··· 1 + ## Available Themes 2 + 3 + <!-- DO NOT EDIT THIS FILE DIRECTLY --> 4 + 5 + With inbuilt themes you can customize the look of the card without doing any manual customization. 6 + 7 + Use `?theme=THEME_NAME` parameter like so :- 8 + 9 + ```md 10 + ![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&theme=dark&show_icons=true) 11 + ``` 12 + 13 + ## Stats 14 + 15 + > These themes work both for the Stats Card and Repo Card. 16 + 17 + | | | | 18 + | :--: | :--: | :--: | 19 + | `default` ![default][default] | `dark` ![dark][dark] | `radical` ![radical][radical] | 20 + | `merko` ![merko][merko] | `gruvbox` ![gruvbox][gruvbox] | `tokyonight` ![tokyonight][tokyonight] | 21 + | `onedark` ![onedark][onedark] | `cobalt` ![cobalt][cobalt] | `synthwave` ![synthwave][synthwave] | 22 + | `highcontrast` ![highcontrast][highcontrast] | `dracula` ![dracula][dracula] | `prussian` ![prussian][prussian] | 23 + | `monokai` ![monokai][monokai] | `vue` ![vue][vue] | `vue-dark` ![vue-dark][vue-dark] | 24 + | `shades-of-purple` ![shades-of-purple][shades-of-purple] | `nightowl` ![nightowl][nightowl] | `buefy` ![buefy][buefy] | 25 + | `blue-green` ![blue-green][blue-green] | `algolia` ![algolia][algolia] | `great-gatsby` ![great-gatsby][great-gatsby] | 26 + | `darcula` ![darcula][darcula] | `bear` ![bear][bear] | `solarized-dark` ![solarized-dark][solarized-dark] | 27 + | `solarized-light` ![solarized-light][solarized-light] | `chartreuse-dark` ![chartreuse-dark][chartreuse-dark] | `nord` ![nord][nord] | 28 + | `gotham` ![gotham][gotham] | `material-palenight` ![material-palenight][material-palenight] | `graywhite` ![graywhite][graywhite] | 29 + | `vision-friendly-dark` ![vision-friendly-dark][vision-friendly-dark] | `ayu-mirage` ![ayu-mirage][ayu-mirage] | `midnight-purple` ![midnight-purple][midnight-purple] | 30 + | `calm` ![calm][calm] | `flag-india` ![flag-india][flag-india] | `omni` ![omni][omni] | 31 + | `react` ![react][react] | `jolly` ![jolly][jolly] | `maroongold` ![maroongold][maroongold] | 32 + | `yeblu` ![yeblu][yeblu] | `blueberry` ![blueberry][blueberry] | `slateorange` ![slateorange][slateorange] | 33 + | `kacho_ga` ![kacho_ga][kacho_ga] | `outrun` ![outrun][outrun] | [Add your theme][add-theme] | 34 + 35 + ## Repo Card 36 + 37 + > These themes work both for the Stats Card and Repo Card. 38 + 39 + | | | | 40 + | :--: | :--: | :--: | 41 + | `default_repocard` ![default_repocard][default_repocard_repo] | `dark` ![dark][dark_repo] | `radical` ![radical][radical_repo] | 42 + | `merko` ![merko][merko_repo] | `gruvbox` ![gruvbox][gruvbox_repo] | `tokyonight` ![tokyonight][tokyonight_repo] | 43 + | `onedark` ![onedark][onedark_repo] | `cobalt` ![cobalt][cobalt_repo] | `synthwave` ![synthwave][synthwave_repo] | 44 + | `highcontrast` ![highcontrast][highcontrast_repo] | `dracula` ![dracula][dracula_repo] | `prussian` ![prussian][prussian_repo] | 45 + | `monokai` ![monokai][monokai_repo] | `vue` ![vue][vue_repo] | `vue-dark` ![vue-dark][vue-dark_repo] | 46 + | `shades-of-purple` ![shades-of-purple][shades-of-purple_repo] | `nightowl` ![nightowl][nightowl_repo] | `buefy` ![buefy][buefy_repo] | 47 + | `blue-green` ![blue-green][blue-green_repo] | `algolia` ![algolia][algolia_repo] | `great-gatsby` ![great-gatsby][great-gatsby_repo] | 48 + | `darcula` ![darcula][darcula_repo] | `bear` ![bear][bear_repo] | `solarized-dark` ![solarized-dark][solarized-dark_repo] | 49 + | `solarized-light` ![solarized-light][solarized-light_repo] | `chartreuse-dark` ![chartreuse-dark][chartreuse-dark_repo] | `nord` ![nord][nord_repo] | 50 + | `gotham` ![gotham][gotham_repo] | `material-palenight` ![material-palenight][material-palenight_repo] | `graywhite` ![graywhite][graywhite_repo] | 51 + | `vision-friendly-dark` ![vision-friendly-dark][vision-friendly-dark_repo] | `ayu-mirage` ![ayu-mirage][ayu-mirage_repo] | `midnight-purple` ![midnight-purple][midnight-purple_repo] | 52 + | `calm` ![calm][calm_repo] | `flag-india` ![flag-india][flag-india_repo] | `omni` ![omni][omni_repo] | 53 + | `react` ![react][react_repo] | `jolly` ![jolly][jolly_repo] | `maroongold` ![maroongold][maroongold_repo] | 54 + | `yeblu` ![yeblu][yeblu_repo] | `blueberry` ![blueberry][blueberry_repo] | `slateorange` ![slateorange][slateorange_repo] | 55 + | `kacho_ga` ![kacho_ga][kacho_ga_repo] | `outrun` ![outrun][outrun_repo] | [Add your theme][add-theme] | 56 + 57 + 58 + [default]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=default 59 + [default_repocard]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=default_repocard 60 + [dark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=dark 61 + [radical]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=radical 62 + [merko]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=merko 63 + [gruvbox]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=gruvbox 64 + [tokyonight]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=tokyonight 65 + [onedark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=onedark 66 + [cobalt]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=cobalt 67 + [synthwave]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=synthwave 68 + [highcontrast]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=highcontrast 69 + [dracula]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=dracula 70 + [prussian]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=prussian 71 + [monokai]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=monokai 72 + [vue]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=vue 73 + [vue-dark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=vue-dark 74 + [shades-of-purple]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=shades-of-purple 75 + [nightowl]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=nightowl 76 + [buefy]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=buefy 77 + [blue-green]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=blue-green 78 + [algolia]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=algolia 79 + [great-gatsby]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=great-gatsby 80 + [darcula]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=darcula 81 + [bear]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=bear 82 + [solarized-dark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=solarized-dark 83 + [solarized-light]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=solarized-light 84 + [chartreuse-dark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=chartreuse-dark 85 + [nord]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=nord 86 + [gotham]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=gotham 87 + [material-palenight]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=material-palenight 88 + [graywhite]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=graywhite 89 + [vision-friendly-dark]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=vision-friendly-dark 90 + [ayu-mirage]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=ayu-mirage 91 + [midnight-purple]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=midnight-purple 92 + [calm]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=calm 93 + [flag-india]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=flag-india 94 + [omni]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=omni 95 + [react]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=react 96 + [jolly]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=jolly 97 + [maroongold]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=maroongold 98 + [yeblu]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=yeblu 99 + [blueberry]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=blueberry 100 + [slateorange]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=slateorange 101 + [kacho_ga]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=kacho_ga 102 + [outrun]: https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&hide=contribs,prs&cache_seconds=86400&theme=outrun 103 + 104 + 105 + [default_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=default 106 + [default_repocard_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=default_repocard 107 + [dark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=dark 108 + [radical_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=radical 109 + [merko_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=merko 110 + [gruvbox_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=gruvbox 111 + [tokyonight_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=tokyonight 112 + [onedark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=onedark 113 + [cobalt_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=cobalt 114 + [synthwave_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=synthwave 115 + [highcontrast_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=highcontrast 116 + [dracula_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=dracula 117 + [prussian_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=prussian 118 + [monokai_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=monokai 119 + [vue_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=vue 120 + [vue-dark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=vue-dark 121 + [shades-of-purple_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=shades-of-purple 122 + [nightowl_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=nightowl 123 + [buefy_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=buefy 124 + [blue-green_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=blue-green 125 + [algolia_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=algolia 126 + [great-gatsby_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=great-gatsby 127 + [darcula_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=darcula 128 + [bear_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=bear 129 + [solarized-dark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=solarized-dark 130 + [solarized-light_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=solarized-light 131 + [chartreuse-dark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=chartreuse-dark 132 + [nord_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=nord 133 + [gotham_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=gotham 134 + [material-palenight_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=material-palenight 135 + [graywhite_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=graywhite 136 + [vision-friendly-dark_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=vision-friendly-dark 137 + [ayu-mirage_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=ayu-mirage 138 + [midnight-purple_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=midnight-purple 139 + [calm_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=calm 140 + [flag-india_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=flag-india 141 + [omni_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=omni 142 + [react_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=react 143 + [jolly_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=jolly 144 + [maroongold_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=maroongold 145 + [yeblu_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=yeblu 146 + [blueberry_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=blueberry 147 + [slateorange_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=slateorange 148 + [kacho_ga_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=kacho_ga 149 + [outrun_repo]: https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats&cache_seconds=86400&theme=outrun 150 + 151 + 152 + [add-theme]: https://github.com/anuraghazra/github-readme-stats/edit/master/themes/index.js 153 + 154 + Wanted to add a new theme? Consider reading the [contribution guidelines](../CONTRIBUTING.md#themes-contribution) :D
+292
themes/index.js
··· 1 + const themes = { 2 + default: { 3 + title_color: "2f80ed", 4 + icon_color: "4c71f2", 5 + text_color: "333", 6 + bg_color: "fffefe", 7 + }, 8 + default_repocard: { 9 + title_color: "2f80ed", 10 + icon_color: "586069", // icon color is different 11 + text_color: "333", 12 + bg_color: "fffefe", 13 + }, 14 + dark: { 15 + title_color: "fff", 16 + icon_color: "79ff97", 17 + text_color: "9f9f9f", 18 + bg_color: "151515", 19 + }, 20 + radical: { 21 + title_color: "fe428e", 22 + icon_color: "f8d847", 23 + text_color: "a9fef7", 24 + bg_color: "141321", 25 + }, 26 + merko: { 27 + title_color: "abd200", 28 + icon_color: "b7d364", 29 + text_color: "68b587", 30 + bg_color: "0a0f0b", 31 + }, 32 + gruvbox: { 33 + title_color: "fabd2f", 34 + icon_color: "fe8019", 35 + text_color: "8ec07c", 36 + bg_color: "282828", 37 + }, 38 + tokyonight: { 39 + title_color: "70a5fd", 40 + icon_color: "bf91f3", 41 + text_color: "38bdae", 42 + bg_color: "1a1b27", 43 + }, 44 + onedark: { 45 + title_color: "e4bf7a", 46 + icon_color: "8eb573", 47 + text_color: "df6d74", 48 + bg_color: "282c34", 49 + }, 50 + cobalt: { 51 + title_color: "e683d9", 52 + icon_color: "0480ef", 53 + text_color: "75eeb2", 54 + bg_color: "193549", 55 + }, 56 + synthwave: { 57 + title_color: "e2e9ec", 58 + icon_color: "ef8539", 59 + text_color: "e5289e", 60 + bg_color: "2b213a", 61 + }, 62 + highcontrast: { 63 + title_color: "e7f216", 64 + icon_color: "00ffff", 65 + text_color: "fff", 66 + bg_color: "000", 67 + }, 68 + dracula: { 69 + title_color: "ff6e96", 70 + icon_color: "79dafa", 71 + text_color: "f8f8f2", 72 + bg_color: "282a36", 73 + }, 74 + prussian: { 75 + title_color: "bddfff", 76 + icon_color: "38a0ff", 77 + text_color: "6e93b5", 78 + bg_color: "172f45", 79 + }, 80 + monokai: { 81 + title_color: "eb1f6a", 82 + icon_color: "e28905", 83 + text_color: "f1f1eb", 84 + bg_color: "272822", 85 + }, 86 + vue: { 87 + title_color: "41b883", 88 + icon_color: "41b883", 89 + text_color: "273849", 90 + bg_color: "fffefe", 91 + }, 92 + "vue-dark": { 93 + title_color: "41b883", 94 + icon_color: "41b883", 95 + text_color: "fffefe", 96 + bg_color: "273849", 97 + }, 98 + "shades-of-purple": { 99 + title_color: "fad000", 100 + icon_color: "b362ff", 101 + text_color: "a599e9", 102 + bg_color: "2d2b55", 103 + }, 104 + nightowl: { 105 + title_color: "c792ea", 106 + icon_color: "ffeb95", 107 + text_color: "7fdbca", 108 + bg_color: "011627", 109 + }, 110 + buefy: { 111 + title_color: "7957d5", 112 + icon_color: "ff3860", 113 + text_color: "363636", 114 + bg_color: "ffffff", 115 + }, 116 + "blue-green": { 117 + title_color: "2f97c1", 118 + icon_color: "f5b700", 119 + text_color: "0cf574", 120 + bg_color: "040f0f", 121 + }, 122 + algolia: { 123 + title_color: "00AEFF", 124 + icon_color: "2DDE98", 125 + text_color: "FFFFFF", 126 + bg_color: "050F2C", 127 + }, 128 + "great-gatsby": { 129 + title_color: "ffa726", 130 + icon_color: "ffb74d", 131 + text_color: "ffd95b", 132 + bg_color: "000000", 133 + }, 134 + darcula: { 135 + title_color: "BA5F17", 136 + icon_color: "84628F", 137 + text_color: "BEBEBE", 138 + bg_color: "242424", 139 + }, 140 + bear: { 141 + title_color: "e03c8a", 142 + icon_color: "00AEFF", 143 + text_color: "bcb28d", 144 + bg_color: "1f2023", 145 + }, 146 + "solarized-dark": { 147 + title_color: "268bd2", 148 + icon_color: "b58900", 149 + text_color: "859900", 150 + bg_color: "002b36", 151 + }, 152 + "solarized-light": { 153 + title_color: "268bd2", 154 + icon_color: "b58900", 155 + text_color: "859900", 156 + bg_color: "fdf6e3", 157 + }, 158 + "chartreuse-dark": { 159 + title_color: "7fff00", 160 + icon_color: "00AEFF", 161 + text_color: "fff", 162 + bg_color: "000", 163 + }, 164 + nord: { 165 + title_color: "81a1c1", 166 + text_color: "d8dee9", 167 + icon_color: "88c0d0", 168 + bg_color: "2e3440", 169 + }, 170 + gotham: { 171 + title_color: "2aa889", 172 + icon_color: "599cab", 173 + text_color: "99d1ce", 174 + bg_color: "0c1014", 175 + }, 176 + "material-palenight": { 177 + title_color: "c792ea", 178 + icon_color: "89ddff", 179 + text_color: "a6accd", 180 + bg_color: "292d3e", 181 + }, 182 + graywhite: { 183 + title_color: "24292e", 184 + icon_color: "24292e", 185 + text_color: "24292e", 186 + bg_color: "ffffff", 187 + }, 188 + "vision-friendly-dark": { 189 + title_color: "ffb000", 190 + icon_color: "785ef0", 191 + text_color: "ffffff", 192 + bg_color: "000000", 193 + }, 194 + "ayu-mirage": { 195 + title_color: "f4cd7c", 196 + icon_color: "73d0ff", 197 + text_color: "c7c8c2", 198 + bg_color: "1f2430", 199 + }, 200 + "midnight-purple": { 201 + title_color: "9745f5", 202 + icon_color: "9f4bff", 203 + text_color: "ffffff", 204 + bg_color: "000000", 205 + }, 206 + calm: { 207 + title_color: "e07a5f", 208 + icon_color: "edae49", 209 + text_color: "ebcfb2", 210 + bg_color: "373f51", 211 + }, 212 + "flag-india": { 213 + title_color: "ff8f1c", 214 + icon_color: "250E62", 215 + text_color: "509E2F", 216 + bg_color: "ffffff", 217 + }, 218 + omni: { 219 + title_color: "FF79C6", 220 + icon_color: "e7de79", 221 + text_color: "E1E1E6", 222 + bg_color: "191622", 223 + }, 224 + react: { 225 + title_color: "61dafb", 226 + icon_color: "61dafb", 227 + text_color: "ffffff", 228 + bg_color: "20232a", 229 + }, 230 + jolly: { 231 + title_color: "ff64da", 232 + icon_color: "a960ff", 233 + text_color: "ffffff", 234 + bg_color: "291B3E", 235 + }, 236 + maroongold: { 237 + title_color: "F7EF8A", 238 + icon_color: "F7EF8A", 239 + text_color: "E0AA3E", 240 + bg_color: "260000", 241 + }, 242 + yeblu: { 243 + title_color: "ffff00", 244 + icon_color: "ffff00", 245 + text_color: "ffffff", 246 + bg_color: "002046", 247 + }, 248 + blueberry: { 249 + title_color: "82aaff", 250 + icon_color: "89ddff", 251 + text_color: "27e8a7", 252 + bg_color: "242938", 253 + }, 254 + slateorange: { 255 + title_color: "faa627", 256 + icon_color: "faa627", 257 + text_color: "ffffff", 258 + bg_color: "36393f", 259 + }, 260 + kacho_ga: { 261 + title_color: "bf4a3f", 262 + icon_color: "a64833", 263 + text_color: "d9c8a9", 264 + bg_color: "402b23" 265 + }, 266 + outrun:{ 267 + title_color: "ffcc00", 268 + icon_color: "ff1aff", 269 + text_color: "8080ff", 270 + bg_color: "141439", 271 + }, 272 + ocean_dark:{ 273 + title_color: "8957B2", 274 + icon_color: "FFFFFF", 275 + text_color: "92D534", 276 + bg_color: "151A28", 277 + }, 278 + city_lights: { 279 + title_color: "5D8CB3", 280 + icon_color: "4798FF", 281 + text_color: "718CA1", 282 + bg_color: "1D252C", 283 + }, 284 + github_dark: { 285 + title_color: "58A6FF", 286 + icon_color: "1F6FEB", 287 + text_color: "C3D1D9", 288 + bg_color: "0D1117" 289 + } 290 + }; 291 + 292 + module.exports = themes;
+8
vercel.json
··· 1 + { 2 + "redirects": [ 3 + { 4 + "source": "/", 5 + "destination": "https://github.com/anuraghazra/github-readme-stats" 6 + } 7 + ] 8 + }