Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ad0f4ee8 | ||
|
|
26a8a23421 | ||
|
|
ba7c2f8b55 | ||
|
|
888663a477 | ||
|
|
112000667c |
@@ -0,0 +1,44 @@
|
||||
name: Update supported languages
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 */30 * *"
|
||||
|
||||
jobs:
|
||||
updateLanguages:
|
||||
if: github.repository == 'anuraghazra/github-readme-stats'
|
||||
name: Update supported languages
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Run update-languages-json.js script
|
||||
run: npm run generate-langs-json
|
||||
|
||||
- name: Create Pull Request if upstream language file is changed
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
commit-message: "refactor: update languages JSON"
|
||||
branch: "update_langs/patch"
|
||||
delete-branch: true
|
||||
title: Update languages JSON
|
||||
body:
|
||||
"The
|
||||
[update-langs](https://github.com/anuraghazra/github-readme-stats/actions/workflows/update-langs.yaml)
|
||||
action found new/updated languages in the [upstream languages JSON
|
||||
file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml)."
|
||||
labels: "ci, lang-card"
|
||||
@@ -30,6 +30,7 @@ export default async (req, res) => {
|
||||
border_radius,
|
||||
border_color,
|
||||
disable_animations,
|
||||
hide_progress,
|
||||
} = req.query;
|
||||
res.setHeader("Content-Type", "image/svg+xml");
|
||||
|
||||
@@ -77,6 +78,7 @@ export default async (req, res) => {
|
||||
border_color,
|
||||
locale: locale ? locale.toLowerCase() : null,
|
||||
disable_animations: parseBoolean(disable_animations),
|
||||
hide_progress: parseBoolean(hide_progress),
|
||||
}),
|
||||
);
|
||||
} catch (err) {
|
||||
|
||||
@@ -45,12 +45,11 @@
|
||||
"husky": "^8.0.0",
|
||||
"jest": "^29.0.3",
|
||||
"jest-environment-jsdom": "^29.0.3",
|
||||
"jest-svg-snapshot": "^0.1.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"lint-staged": "^13.0.3",
|
||||
"lodash.snakecase": "^4.1.1",
|
||||
"parse-diff": "^0.7.0",
|
||||
"prettier": "^2.8.3"
|
||||
"prettier": "^2.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.24.0",
|
||||
|
||||
@@ -80,6 +80,9 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel
|
||||
|
||||
# Features
|
||||
|
||||
- [Getting Started](#getting-started)
|
||||
- [GitHub Actions](#github-actions-recommended)
|
||||
- [Community Deployment](#community-deployment)
|
||||
- [GitHub Stats Card](#github-stats-card)
|
||||
- [GitHub Extra Pins](#github-extra-pins)
|
||||
- [Top Languages Card](#top-languages-card)
|
||||
@@ -94,17 +97,141 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel
|
||||
- [Wakatime Card Exclusive Option](#wakatime-card-exclusive-options)
|
||||
- [Deploy Yourself](#deploy-on-your-own-vercel-instance)
|
||||
- [Keep your fork up to date](#keep-your-fork-up-to-date)
|
||||
|
||||
# Getting Started
|
||||
|
||||
# GitHub Stats Card
|
||||
## GitHub Actions (Recommended)
|
||||
|
||||
Copy-paste this into your markdown content, and that is it. Simple!
|
||||
Using GitHub Actions over the community deployment is recommended because it provides more accurate stats and 100% uptime. Simply copy-paste the following into the `/.github/workflows/grs.yml` file in your README repo (`USERNAME/USERNAME`).
|
||||
|
||||
Change the `?username=` value to your GitHub username.
|
||||
```yml
|
||||
name: GitHub Readme Stats
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 0 * * * *
|
||||
|
||||
jobs:
|
||||
grs:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
name: Generate Stats
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate Stats
|
||||
uses: Zo-Bro-23/grs-action@v1
|
||||
id: generate
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
options: 'username=${{ github.repository_owner }}'
|
||||
- name: Push
|
||||
uses: crazy-max/ghaction-github-pages@v3
|
||||
with:
|
||||
target_branch: grs
|
||||
build_dir: grs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
If you want to generate multiple stats, such as top languages, wakatime, etc, you can use the following code.
|
||||
|
||||
```yml
|
||||
name: GitHub Readme Stats
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 0 * * * *
|
||||
|
||||
jobs:
|
||||
stats:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
name: Stats Card
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate Stats
|
||||
uses: Zo-Bro-23/grs-action@v1
|
||||
id: generate
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
options: 'username=${{ github.repository_owner }}'
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: stats
|
||||
path: grs
|
||||
top-langs:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
name: Top Languages Card
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate Top Languages
|
||||
uses: Zo-Bro-23/grs-action@v1
|
||||
id: generate
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
options: 'username=${{ github.repository_owner }}'
|
||||
card: 'top-langs'
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: top-langs
|
||||
path: grs
|
||||
push:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
name: Push
|
||||
needs: [stats, top-langs]
|
||||
steps:
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: stats
|
||||
path: grs
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: top-langs
|
||||
path: grs
|
||||
- name: Push
|
||||
uses: crazy-max/ghaction-github-pages@v3
|
||||
with:
|
||||
target_branch: grs
|
||||
build_dir: grs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
You can now include the stats in your README by using the following markdown code (replace `USERNAME` with your GitHub username).
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
```
|
||||
|
||||
You can also enable GitHub Pages on the `grs` branch (root) and use that URL (replace `GH_PAGES_URL` with your GitHub Pages URL).
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
```
|
||||
|
||||
The GitHub Action accepts the following inputs:
|
||||
- `token` - `REQUIRED` - Your GitHub Personal Access Token (PAT), or any other token that GitHub accepts.
|
||||
- `options` - `REQUIRED` - Any customization options. More below. (This is the same as the query string you would pass to the API if using the community deployment)
|
||||
- `card` - The type of card to generate. `repo`, `top-langs`, or `wakatime` (leave empty for stats card).
|
||||
- `path` - Output path for SVG file. Relative path; include filename with `.svg`.
|
||||
- `fetch_multipage` - Experimental feature that gives more accurate stats if you have >100 repos.
|
||||
|
||||
## Community Deployment
|
||||
Copy-paste the following markdown code. Change the `?username=` value to your GitHub username.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
```
|
||||
|
||||
Other cards can be included by using `/api/top-langs`, `/api/pin`, or `/api/wakatime`. More customization options can be added by using query parameters (`&option1=value1&option2=value2&...`).
|
||||
|
||||
# GitHub Stats Card
|
||||
|
||||
> **Note**
|
||||
> Available ranks are S+ (top 1%), S (top 25%), A++ (top 45%), A+ (top 60%), and B+ (everyone). 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. The implementation can be investigated at [src/calculateRank.js](./src/calculateRank.js).
|
||||
|
||||
@@ -115,7 +242,7 @@ You can pass a query parameter `&hide=` to hide any specific stats with comma-se
|
||||
> Options: `&hide=stars,commits,prs,issues,contribs`
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&hide=contribs,prs
|
||||
```
|
||||
|
||||
### Adding private contributions count to total commits count
|
||||
@@ -128,7 +255,7 @@ You can add the count of all your private contributions to the total commits cou
|
||||
> Options: `&count_private=true`
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&count_private=true
|
||||
```
|
||||
|
||||
### Showing icons
|
||||
@@ -136,7 +263,7 @@ You can add the count of all your private contributions to the total commits cou
|
||||
To enable icons, you can pass `show_icons=true` in the query param, like so:
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&show_icons=true
|
||||
```
|
||||
|
||||
### Themes
|
||||
@@ -146,7 +273,7 @@ With inbuilt themes, you can customize the look of the card without doing any [m
|
||||
Use `&theme=THEME_NAME` parameter like so :
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&show_icons=true&theme=radical
|
||||
```
|
||||
|
||||
#### All inbuilt themes
|
||||
@@ -169,7 +296,7 @@ Since GitHub will re-upload the cards and serve them from their [CDN](https://do
|
||||
We have included a `transparent` theme that has a transparent background. This theme is optimized to look good on GitHub's dark and light default themes. You can enable this theme using the `&theme=transparent` parameter like so:
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&show_icons=true&theme=transparent
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -184,7 +311,7 @@ We have included a `transparent` theme that has a transparent background. This t
|
||||
You can use the `bg_color` parameter to make any of [the available themes](./themes/README.md) transparent. This is done by setting the `bg_color` to a colour with a transparent alpha channel (i.e. `bg_color=00000000`):
|
||||
|
||||
```md
|
||||

|
||||
?username=anuraghazra&show_icons=true&bg_color=00000000
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -199,8 +326,8 @@ You can use the `bg_color` parameter to make any of [the available themes](./the
|
||||
You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/) tags to switch the theme based on the user GitHub theme automatically. This is done by appending `#gh-dark-mode-only` or `#gh-light-mode-only` to the end of an image URL. This tag will define whether the image specified in the markdown is only shown to viewers using a light or a dark GitHub theme:
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats#gh-dark-mode-only)
|
||||
[](https://github.com/anuraghazra/github-readme-stats#gh-light-mode-only)
|
||||
[](https://github.com/anuraghazra/github-readme-stats#gh-dark-mode-only)
|
||||
[](https://github.com/anuraghazra/github-readme-stats#gh-light-mode-only)
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -218,14 +345,14 @@ You can use [GitHub's new media feature](https://github.blog/changelog/2022-05-1
|
||||
```html
|
||||
<picture>
|
||||
<source
|
||||
srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=dark"
|
||||
srcset="https://DARK_SVG_URL/"
|
||||
media="(prefers-color-scheme: dark)"
|
||||
/>
|
||||
<source
|
||||
srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true"
|
||||
srcset="https://LIGHT_SVG_URL/"
|
||||
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
|
||||
/>
|
||||
<img src="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true" />
|
||||
<img src="https://DEFAULT_SVG_URL/" />
|
||||
</picture>
|
||||
```
|
||||
|
||||
@@ -248,7 +375,7 @@ You can use [GitHub's new media feature](https://github.blog/changelog/2022-05-1
|
||||
|
||||
### Customization
|
||||
|
||||
You can customize the appearance of your `Stats Card` or `Repo Card` however you wish with URL parameters.
|
||||
You can customize the appearance of your cards however you wish with these parameters.
|
||||
|
||||
#### Common Options
|
||||
|
||||
@@ -264,7 +391,7 @@ You can customize the appearance of your `Stats Card` or `Repo Card` however you
|
||||
- `border_radius` - Corner rounding on the card. Default: `4.5`.
|
||||
|
||||
> **Warning**
|
||||
> We use caching to decrease the load on our servers (see <https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1271551425>). Our cards have a default cache of 4 hours (14400 seconds). Also, note that the cache is clamped to a minimum of 4 hours and a maximum of 24 hours.
|
||||
> We use caching to decrease the load on our servers (see <https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1271551425>). Our cards have a default cache of 4 hours (14400 seconds). Also, note that the cache is clamped to a minimum of 4 hours and a maximum of 24 hours. This is why we recommend using our GitHub Action :)
|
||||
|
||||
##### Gradient in bg_color
|
||||
|
||||
@@ -305,6 +432,7 @@ You can provide multiple comma-separated values in the bg_color option to render
|
||||
- `exclude_repo` - Exclude specified repositories _(Comma-separated values)_. Default: `[] (blank array)`.
|
||||
- `custom_title` - Sets a custom title for the card _(string)_. Default `Most Used Languages`.
|
||||
- `disable_animations` - Disables all animations in the card _(boolean)_. Default: `false`.
|
||||
- `hide_progress` - It uses the compact layout option, hides percentages, and removes the bars. Default: `false`.
|
||||
|
||||
> **Warning**
|
||||
> Language names should be URI-escaped, as specified in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding)
|
||||
@@ -333,13 +461,7 @@ Yay! You are no longer limited to 6 pinned repositories.
|
||||
|
||||
### Usage
|
||||
|
||||
Copy-paste this code into your readme and change the links.
|
||||
|
||||
Endpoint: `api/pin?username=anuraghazra&repo=github-readme-stats`
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
```
|
||||
Use the `api/pin` endpoint with the API or the `card: 'repo'` option with the GitHub Action.
|
||||
|
||||
### Demo
|
||||
|
||||
@@ -354,24 +476,18 @@ Use [show_owner](#customization) variable to include the repo's owner username
|
||||
The top languages card shows a GitHub user's most frequently used top language.
|
||||
|
||||
> **Note**
|
||||
> Top Languages does not indicate my skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.
|
||||
> Top Languages does not indicate skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub.
|
||||
|
||||
### Usage
|
||||
|
||||
Copy-paste this code into your readme and change the links.
|
||||
|
||||
Endpoint: `api/top-langs?username=anuraghazra`
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
```
|
||||
Use the `api/top-langs` endpoint with the API or the `card: 'top-langs'` option with the GitHub Action.
|
||||
|
||||
### Exclude individual repositories
|
||||
|
||||
You can use the `&exclude_repo=repo1,repo2` parameter to exclude individual repositories.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
?username=anuraghazra&exclude_repo=github-readme-stats,anuraghazra.github.io
|
||||
```
|
||||
|
||||
### Hide individual languages
|
||||
@@ -379,7 +495,7 @@ You can use the `&exclude_repo=repo1,repo2` parameter to exclude individual repo
|
||||
You can use `&hide=language1,language2` parameter to hide individual languages.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
?username=anuraghazra&hide=javascript,html
|
||||
```
|
||||
|
||||
### Show more languages
|
||||
@@ -387,7 +503,7 @@ You can use `&hide=language1,language2` parameter to hide individual languages.
|
||||
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.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
?username=anuraghazra&langs_count=8
|
||||
```
|
||||
|
||||
### Compact Language Card Layout
|
||||
@@ -395,7 +511,15 @@ You can use the `&langs_count=` option to increase or decrease the number of lan
|
||||
You can use the `&layout=compact` option to change the card design.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
?username=anuraghazra&layout=compact
|
||||
```
|
||||
|
||||
### Hide Progress Bars
|
||||
|
||||
You can use the `&hide_progress=true` option to hide the percentages and the progress bars (layout will be automatically set to `compact`).
|
||||
|
||||
```md
|
||||
?username=anuraghazra&hide_progress=true
|
||||
```
|
||||
|
||||
### Demo
|
||||
@@ -406,17 +530,33 @@ You can use the `&layout=compact` option to change the card design.
|
||||
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
|
||||
- Hidden progress bars
|
||||
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
|
||||
# Wakatime Week Stats
|
||||
|
||||
### Usage
|
||||
|
||||
Use the `api/wkatime` endpoint with the API or the `card: 'wakatime'` option with the GitHub Action.
|
||||
|
||||
Change the `?username=` value to your [Wakatime](https://wakatime.com) username.
|
||||
|
||||
```md
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
?username=willianrod
|
||||
```
|
||||
|
||||
> **Note**:
|
||||
> Please be aware that we currently only show data from Wakatime profiles that are public.
|
||||
|
||||
### Compact Wakatime Card Layout
|
||||
|
||||
You can use the `&layout=compact` option to change the card design.
|
||||
|
||||
```md
|
||||
?username=willianrod&layout=compact
|
||||
```
|
||||
|
||||
### Demo
|
||||
|
||||
[](https://github.com/anuraghazra/github-readme-stats)
|
||||
@@ -489,14 +629,14 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
|
||||
|
||||
```html
|
||||
<a href="https://github.com/anuraghazra/github-readme-stats">
|
||||
<img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" />
|
||||
<img align="center" src="https://SVG_URL/" />
|
||||
</a>
|
||||
<a href="https://github.com/anuraghazra/convoychat">
|
||||
<img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" />
|
||||
<img align="center" src="https://SVG_URL/" />
|
||||
</a>
|
||||
```
|
||||
|
||||
## Deploy on your own Vercel instance
|
||||
## Deploy your own Vercel instance
|
||||
|
||||
#### :film_projector: [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
|
||||
|
||||
@@ -535,7 +675,7 @@ Since the GitHub API only allows 5k requests per hour, my `https://github-readme
|
||||
|
||||
### Keep your fork up to date
|
||||
|
||||
You can keep your fork, and thus your private Vercel instance up to date with the upstream using GitHubs' [Sync Fork button](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork). You can also use the [pull](https://github.com/wei/pull) package created by [@wei](https://github.com/wei) to automate this process.
|
||||
You can keep your fork, and thus your private Vercel instance up to date with the upstream using GitHub's [Sync Fork button](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork). You can also use the [pull](https://github.com/wei/pull) package created by [@wei](https://github.com/wei) to automate this process.
|
||||
|
||||
## :sparkling_heart: Support the project
|
||||
|
||||
|
||||
@@ -76,10 +76,11 @@ const createProgressTextNode = ({ width, color, name, progress, index }) => {
|
||||
* @param {object} props Function properties.
|
||||
* @param {Lang} props.lang Programming language object.
|
||||
* @param {number} props.totalSize Total size of all languages.
|
||||
* @param {boolean} props.hideProgress Whether to hide percentage.
|
||||
* @param {number} props.index Index of the programming language.
|
||||
* @returns {string} Compact layout programming language SVG node.
|
||||
*/
|
||||
const createCompactLangNode = ({ lang, totalSize, index }) => {
|
||||
const createCompactLangNode = ({ lang, totalSize, hideProgress, index }) => {
|
||||
const percentage = ((lang.size / totalSize) * 100).toFixed(2);
|
||||
const staggerDelay = (index + 3) * 150;
|
||||
const color = lang.color || "#858585";
|
||||
@@ -88,7 +89,7 @@ const createCompactLangNode = ({ lang, totalSize, index }) => {
|
||||
<g class="stagger" style="animation-delay: ${staggerDelay}ms">
|
||||
<circle cx="5" cy="6" r="5" fill="${color}" />
|
||||
<text data-testid="lang-name" x="15" y="10" class='lang-name'>
|
||||
${lang.name} ${percentage}%
|
||||
${lang.name} ${hideProgress ? "" : percentage + "%"}
|
||||
</text>
|
||||
</g>
|
||||
`;
|
||||
@@ -100,9 +101,10 @@ const createCompactLangNode = ({ lang, totalSize, index }) => {
|
||||
* @param {object[]} props Function properties.
|
||||
* @param {Lang[]} props.langs Array of programming languages.
|
||||
* @param {number} props.totalSize Total size of all languages.
|
||||
* @param {boolean} props.hideProgress Whether to hide percentage.
|
||||
* @returns {string} Programming languages SVG node.
|
||||
*/
|
||||
const createLanguageTextNode = ({ langs, totalSize }) => {
|
||||
const createLanguageTextNode = ({ langs, totalSize, hideProgress }) => {
|
||||
const longestLang = getLongestLang(langs);
|
||||
const chunked = chunkArray(langs, langs.length / 2);
|
||||
const layouts = chunked.map((array) => {
|
||||
@@ -111,6 +113,7 @@ const createLanguageTextNode = ({ langs, totalSize }) => {
|
||||
createCompactLangNode({
|
||||
lang,
|
||||
totalSize,
|
||||
hideProgress,
|
||||
index,
|
||||
}),
|
||||
);
|
||||
@@ -160,9 +163,10 @@ const renderNormalLayout = (langs, width, totalLanguageSize) => {
|
||||
* @param {Lang[]} langs Array of programming languages.
|
||||
* @param {number} width Card width.
|
||||
* @param {number} totalLanguageSize Total size of all languages.
|
||||
* @param {boolean} hideProgress Whether to hide progress bar.
|
||||
* @returns {string} Compact layout card SVG object.
|
||||
*/
|
||||
const renderCompactLayout = (langs, width, totalLanguageSize) => {
|
||||
const renderCompactLayout = (langs, width, totalLanguageSize, hideProgress) => {
|
||||
const paddingRight = 50;
|
||||
const offsetWidth = width - paddingRight;
|
||||
// progressOffset holds the previous language's width and used to offset the next language
|
||||
@@ -193,15 +197,21 @@ const renderCompactLayout = (langs, width, totalLanguageSize) => {
|
||||
.join("");
|
||||
|
||||
return `
|
||||
<mask id="rect-mask">
|
||||
${
|
||||
!hideProgress
|
||||
? `
|
||||
<mask id="rect-mask">
|
||||
<rect x="0" y="0" width="${offsetWidth}" height="8" fill="white" rx="5"/>
|
||||
</mask>
|
||||
${compactProgressBar}
|
||||
|
||||
<g transform="translate(0, 25)">
|
||||
`
|
||||
: ""
|
||||
}
|
||||
<g transform="translate(0, ${hideProgress ? "0" : "25"})">
|
||||
${createLanguageTextNode({
|
||||
langs,
|
||||
totalSize: totalLanguageSize,
|
||||
hideProgress: hideProgress,
|
||||
})}
|
||||
</g>
|
||||
`;
|
||||
@@ -276,6 +286,7 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
text_color,
|
||||
bg_color,
|
||||
hide,
|
||||
hide_progress,
|
||||
theme,
|
||||
layout,
|
||||
custom_title,
|
||||
@@ -305,11 +316,17 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
let height = calculateNormalLayoutHeight(langs.length);
|
||||
|
||||
let finalLayout = "";
|
||||
if (layout === "compact") {
|
||||
if (layout === "compact" || hide_progress == true) {
|
||||
width = width + 50; // padding
|
||||
height = calculateCompactLayoutHeight(langs.length);
|
||||
height =
|
||||
calculateCompactLayoutHeight(langs.length) + (hide_progress ? -25 : 0);
|
||||
|
||||
finalLayout = renderCompactLayout(langs, width, totalLanguageSize);
|
||||
finalLayout = renderCompactLayout(
|
||||
langs,
|
||||
width,
|
||||
totalLanguageSize,
|
||||
hide_progress,
|
||||
);
|
||||
} else {
|
||||
finalLayout = renderNormalLayout(langs, width, totalLanguageSize);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ export type TopLangOptions = CommonOptions & {
|
||||
custom_title: string;
|
||||
langs_count: number;
|
||||
disable_animations: boolean;
|
||||
hide_progress: boolean;
|
||||
};
|
||||
|
||||
type WakaTimeOptions = CommonOptions & {
|
||||
|
||||
@@ -177,11 +177,7 @@ class Card {
|
||||
}
|
||||
${this.css}
|
||||
|
||||
${
|
||||
process.env.NODE_ENV === "test" || this.animations === false
|
||||
? ""
|
||||
: getAnimations()
|
||||
}
|
||||
${process.env.NODE_ENV === "test" ? "" : getAnimations()}
|
||||
${
|
||||
this.animations === false
|
||||
? `* { animation-duration: 0s !important; animation-delay: 0s !important; }`
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
"Csound Score": "#1a1a1a",
|
||||
"Cuda": "#3A4E3A",
|
||||
"Curry": "#531242",
|
||||
"Cypher": "#34c0eb",
|
||||
"Cython": "#fedf5b",
|
||||
"D": "#ba595e",
|
||||
"DM": "#447265",
|
||||
@@ -124,6 +125,7 @@
|
||||
"Earthly": "#2af0ff",
|
||||
"Easybuild": "#069406",
|
||||
"Ecere Projects": "#913960",
|
||||
"Ecmarkup": "#eb8131",
|
||||
"EditorConfig": "#fff1f2",
|
||||
"Eiffel": "#4d6977",
|
||||
"Elixir": "#6e4a7e",
|
||||
@@ -215,6 +217,7 @@
|
||||
"Idris": "#b30000",
|
||||
"Ignore List": "#000000",
|
||||
"ImageJ Macro": "#99AAFF",
|
||||
"Imba": "#16cec6",
|
||||
"Inno Setup": "#264b99",
|
||||
"Io": "#a9188d",
|
||||
"Ioke": "#078193",
|
||||
@@ -286,6 +289,7 @@
|
||||
"Mathematica": "#dd1100",
|
||||
"Max": "#c4a79c",
|
||||
"Mercury": "#ff2b2b",
|
||||
"Mermaid": "#ff3670",
|
||||
"Meson": "#007800",
|
||||
"Metal": "#8f14e9",
|
||||
"MiniYAML": "#ff1111",
|
||||
@@ -318,6 +322,10 @@
|
||||
"Nu": "#c9df40",
|
||||
"NumPy": "#9C8AF9",
|
||||
"Nunjucks": "#3d8137",
|
||||
"OASv2-json": "#85ea2d",
|
||||
"OASv2-yaml": "#85ea2d",
|
||||
"OASv3-json": "#85ea2d",
|
||||
"OASv3-yaml": "#85ea2d",
|
||||
"OCaml": "#3be133",
|
||||
"ObjectScript": "#424893",
|
||||
"Objective-C": "#438eff",
|
||||
@@ -327,14 +335,18 @@
|
||||
"Omgrofl": "#cabbff",
|
||||
"Opal": "#f7ede0",
|
||||
"Open Policy Agent": "#7d9199",
|
||||
"OpenAPI Specification v2": "#85ea2d",
|
||||
"OpenAPI Specification v3": "#85ea2d",
|
||||
"OpenCL": "#ed2e2d",
|
||||
"OpenEdge ABL": "#5ce600",
|
||||
"OpenQASM": "#AA70FF",
|
||||
"OpenSCAD": "#e5cd45",
|
||||
"Option List": "#476732",
|
||||
"Org": "#77aa99",
|
||||
"Oxygene": "#cdd0e3",
|
||||
"Oz": "#fab738",
|
||||
"P4": "#7055b5",
|
||||
"PDDL": "#0d00ff",
|
||||
"PEG.js": "#234d6b",
|
||||
"PHP": "#4F5D95",
|
||||
"PLSQL": "#dad8d8",
|
||||
@@ -351,6 +363,7 @@
|
||||
"PigLatin": "#fcd7de",
|
||||
"Pike": "#005390",
|
||||
"PogoScript": "#d80074",
|
||||
"Polar": "#ae81ff",
|
||||
"Portugol": "#f8bd00",
|
||||
"PostCSS": "#dc3a0c",
|
||||
"PostScript": "#da291c",
|
||||
@@ -414,6 +427,7 @@
|
||||
"Sass": "#a53b70",
|
||||
"Scala": "#c22d40",
|
||||
"Scaml": "#bd181a",
|
||||
"Scenic": "#fdc700",
|
||||
"Scheme": "#1e4aec",
|
||||
"Scilab": "#ca0f21",
|
||||
"Self": "#0579aa",
|
||||
@@ -421,6 +435,7 @@
|
||||
"Shell": "#89e051",
|
||||
"ShellCheck Config": "#cecfcb",
|
||||
"Shen": "#120F14",
|
||||
"Simple File Verification": "#C9BFED",
|
||||
"Singularity": "#64E6AD",
|
||||
"Slash": "#007eff",
|
||||
"Slice": "#003fa2",
|
||||
@@ -428,6 +443,7 @@
|
||||
"SmPL": "#c94949",
|
||||
"Smalltalk": "#596706",
|
||||
"Smarty": "#f0c040",
|
||||
"Smithy": "#c44536",
|
||||
"Solidity": "#AA6746",
|
||||
"SourcePawn": "#f69e1d",
|
||||
"Squirrel": "#800000",
|
||||
@@ -478,6 +494,7 @@
|
||||
"Vim Script": "#199f4b",
|
||||
"Vim Snippet": "#199f4b",
|
||||
"Visual Basic .NET": "#945db7",
|
||||
"Visual Basic 6.0": "#2c6353",
|
||||
"Volt": "#1F1F1F",
|
||||
"Vue": "#41b883",
|
||||
"Vyper": "#2980b9",
|
||||
@@ -514,6 +531,7 @@
|
||||
"fish": "#4aae47",
|
||||
"hoon": "#00b171",
|
||||
"jq": "#c7254e",
|
||||
"just": "#384d54",
|
||||
"kvlang": "#1da6e0",
|
||||
"mIRC Script": "#3d57c3",
|
||||
"mcfunction": "#E22837",
|
||||
|
||||
@@ -43,11 +43,6 @@ const getProgressAnimation = ({ progress }) => {
|
||||
const getAnimations = () => {
|
||||
return `
|
||||
/* Animations */
|
||||
.stagger {
|
||||
opacity: 0;
|
||||
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
@keyframes scaleInAnimation {
|
||||
from {
|
||||
transform: translate(-5px, 5px) scale(0);
|
||||
@@ -94,7 +89,10 @@ const getStyles = ({
|
||||
/* Selector detects Firefox */
|
||||
.stat { font-size:12px; }
|
||||
}
|
||||
|
||||
.stagger {
|
||||
opacity: 0;
|
||||
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
.rank-text {
|
||||
font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor};
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
|
||||
@@ -34,7 +34,10 @@ exports[`Test Render Wakatime Card should render correctly with compact layout 1
|
||||
/* Selector detects Firefox */
|
||||
.stat { font-size:12px; }
|
||||
}
|
||||
|
||||
.stagger {
|
||||
opacity: 0;
|
||||
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
.rank-text {
|
||||
font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
@@ -189,7 +192,10 @@ exports[`Test Render Wakatime Card should render correctly with compact layout w
|
||||
/* Selector detects Firefox */
|
||||
.stat { font-size:12px; }
|
||||
}
|
||||
|
||||
.stagger {
|
||||
opacity: 0;
|
||||
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
.rank-text {
|
||||
font: 800 24px 'Segoe UI', Ubuntu, Sans-Serif; fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
|
||||
@@ -1,177 +0,0 @@
|
||||
<svg
|
||||
width="800"
|
||||
height="195"
|
||||
viewBox="0 0 800 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="799"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(715, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,249 +0,0 @@
|
||||
<svg
|
||||
width="467"
|
||||
height="195"
|
||||
viewBox="0 0 467 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #abd200;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #68b587;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #68b587;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #b7d364;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #abd200;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #abd200;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#0044ff"
|
||||
width="466"
|
||||
fill="#0a0f0b"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(390.5, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">
|
||||
Contributed to (last year):
|
||||
</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 7.5 KiB |
@@ -1,179 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="195"
|
||||
viewBox="0 0 450 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">
|
||||
Hello world, this is a very very very very very long title, Rank: A+
|
||||
</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Hello world, this is a very very very very very long title
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,164 +0,0 @@
|
||||
<svg
|
||||
width="524.375"
|
||||
height="195"
|
||||
viewBox="0 0 524.375 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">
|
||||
Hello world, this is a very very very very very long title, Rank: A+
|
||||
</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="523.375"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Hello world, this is a very very very very very long title
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,164 +0,0 @@
|
||||
<svg
|
||||
width="524.375"
|
||||
height="195"
|
||||
viewBox="0 0 524.375 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">
|
||||
Hello world, this is a very very very very very long title, Rank: A+
|
||||
</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="523.375"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Hello world, this is a very very very very very long title
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,152 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="150"
|
||||
viewBox="0 0 450 150"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total PRs: 1, Total Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 25)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,177 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="195"
|
||||
viewBox="0 0 450 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="0"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,162 +0,0 @@
|
||||
<svg
|
||||
width="370.1875000000001"
|
||||
height="195"
|
||||
viewBox="0 0 370.1875000000001 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="369.1875000000001"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,169 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="165"
|
||||
viewBox="0 0 450 165"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 25)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,249 +0,0 @@
|
||||
<svg
|
||||
width="467"
|
||||
height="645"
|
||||
viewBox="0 0 467 645"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="466"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(390.5, 272.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 200)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 300)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 400)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<svg
|
||||
data-testid="icon"
|
||||
class="icon"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
width="16"
|
||||
height="16"
|
||||
>
|
||||
<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"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<text class="stat bold" x="25" y="12.5">
|
||||
Contributed to (last year):
|
||||
</text>
|
||||
<text class="stat bold" x="219.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 7.5 KiB |
@@ -1,185 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="195"
|
||||
viewBox="0 0 450 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">
|
||||
Статистика
|
||||
GitHub
|
||||
пользователя
|
||||
Cateline Mnemosyne, Rank: A+
|
||||
</title>
|
||||
<desc id="descId">
|
||||
Всего звезд: 1, Всего коммитов in 2023 : 1, Всего pull request`ов: 1, Всего
|
||||
issue: 1, Внёс вклад в (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Статистика
|
||||
GitHub
|
||||
пользователя
|
||||
Cateline Mnemosyne
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Всего звезд:</text>
|
||||
<text class="stat bold" x="249.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Всего коммитов (2023):</text>
|
||||
<text class="stat bold" x="249.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Всего pull request`ов:</text>
|
||||
<text class="stat bold" x="249.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Всего issue:</text>
|
||||
<text class="stat bold" x="249.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Внёс вклад в (last year):</text>
|
||||
<text class="stat bold" x="249.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,177 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="195"
|
||||
viewBox="0 0 450 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #fe428e;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #a9fef7;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #a9fef7;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #f8d847;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #fe428e;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #fe428e;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#141321"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,177 +0,0 @@
|
||||
<svg
|
||||
width="450"
|
||||
height="195"
|
||||
viewBox="0 0 450 195"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-labelledby="descId"
|
||||
>
|
||||
<title id="titleId">Cateline Mnemosyne's GitHub Stats, Rank: A+</title>
|
||||
<desc id="descId">
|
||||
Total Stars Earned: 1, Total Commits in 2023 : 1, Total PRs: 1, Total
|
||||
Issues: 1, Contributed to (last year): 1
|
||||
</desc>
|
||||
<style>
|
||||
.header {
|
||||
font: 600 18px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #2f80ed;
|
||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.header {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
font: 600 14px "Segoe UI", Ubuntu, "Helvetica Neue", Sans-Serif;
|
||||
fill: #434d58;
|
||||
}
|
||||
@supports (-moz-appearance: auto) {
|
||||
/* Selector detects Firefox */
|
||||
.stat {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.rank-text {
|
||||
font: 800 24px "Segoe UI", Ubuntu, Sans-Serif;
|
||||
fill: #434d58;
|
||||
animation: scaleInAnimation 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.not_bold {
|
||||
font-weight: 400;
|
||||
}
|
||||
.bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
.icon {
|
||||
fill: #4c71f2;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rank-circle-rim {
|
||||
stroke: #2f80ed;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
opacity: 0.2;
|
||||
}
|
||||
.rank-circle {
|
||||
stroke: #2f80ed;
|
||||
stroke-dasharray: 250;
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
opacity: 0.8;
|
||||
transform-origin: -10px 8px;
|
||||
transform: rotate(-90deg);
|
||||
animation: rankAnimation 1s forwards ease-in-out;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-duration: 0s !important;
|
||||
animation-delay: 0s !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#e4e2e2"
|
||||
width="449"
|
||||
fill="#fffefe"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
|
||||
<g data-testid="card-title" transform="translate(25, 35)">
|
||||
<g transform="translate(0, 0)">
|
||||
<text x="0" y="0" class="header" data-testid="header">
|
||||
Cateline Mnemosyne's GitHub Stats
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
||||
<g data-testid="rank-circle" transform="translate(365, 47.5)">
|
||||
<circle class="rank-circle-rim" cx="-10" cy="8" r="40" />
|
||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||
<g class="rank-text">
|
||||
<text
|
||||
x="-5"
|
||||
y="3"
|
||||
alignment-baseline="central"
|
||||
dominant-baseline="central"
|
||||
text-anchor="middle"
|
||||
>
|
||||
A+
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<svg x="0" y="0">
|
||||
<g transform="translate(0, 0)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 450ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Stars Earned:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="stars">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 25)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 600ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Commits (2023):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="commits">
|
||||
7
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 50)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 750ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total PRs:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="prs">1</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 75)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 900ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Total Issues:</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="issues">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
<g transform="translate(0, 100)">
|
||||
<g
|
||||
class="stagger"
|
||||
style="animation-delay: 1050ms"
|
||||
transform="translate(25, 0)"
|
||||
>
|
||||
<text class="stat bold" y="12.5">Contributed to (last year):</text>
|
||||
<text class="stat bold" x="199.01" y="12.5" data-testid="contribs">
|
||||
1
|
||||
</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,152 +0,0 @@
|
||||
import "jest-svg-snapshot";
|
||||
import "@testing-library/jest-dom";
|
||||
import renderStatsCard from "../../src/cards/stats-card";
|
||||
import prettier from "prettier";
|
||||
|
||||
const STATS_DATA = {
|
||||
name: "Cateline Mnemosyne",
|
||||
totalPRs: 1,
|
||||
totalCommits: 7,
|
||||
totalIssues: 1,
|
||||
totalStars: 1,
|
||||
contributedTo: 1,
|
||||
rank: {
|
||||
level: "A+",
|
||||
score: 50.893750297869225,
|
||||
},
|
||||
};
|
||||
|
||||
const format = (svg) => prettier.format(svg, { parser: "html" });
|
||||
|
||||
describe("statsCard", () => {
|
||||
it("should match default stat card", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, { disable_animations: true }),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option hide", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
hide: ["commits", "stars"],
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option hide_border", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
hide_border: true,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option hide_title", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
hide_title: true,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option hide_rank", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
hide_rank: true,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option theme", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
theme: "radical",
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option card_width", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
card_width: 800,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option custom_title", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
custom_title:
|
||||
"Hello world, this is a very very very very very long title",
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
it("option custom_title hideRank", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
hide_rank: true,
|
||||
custom_title:
|
||||
"Hello world, this is a very very very very very long title",
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
|
||||
it("option custom_title hideRank card_width", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
card_width: 300,
|
||||
hide_rank: true,
|
||||
custom_title:
|
||||
"Hello world, this is a very very very very very long title",
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
|
||||
it("option line_height show_icons", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
line_height: 100,
|
||||
show_icons: true,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
|
||||
it("option locale", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
locale: "ru",
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
|
||||
it("option colors", () => {
|
||||
const svg = format(
|
||||
renderStatsCard(STATS_DATA, {
|
||||
disable_animations: true,
|
||||
border_color: "0044ff",
|
||||
title_color: "abd200",
|
||||
icon_color: "b7d364",
|
||||
text_color: "68b587",
|
||||
bg_color: "0a0f0b",
|
||||
show_icons: true,
|
||||
}),
|
||||
);
|
||||
expect(svg).toMatchSVGSnapshot();
|
||||
});
|
||||
});
|
||||
@@ -374,6 +374,13 @@ export const themes = {
|
||||
border_color: "170F0C",
|
||||
bg_color: "170F0C",
|
||||
},
|
||||
rose: {
|
||||
title_color: "8d192b",
|
||||
text_color: "862931",
|
||||
icon_color: "B71F36",
|
||||
border_color: "e9d8d4",
|
||||
bg_color: "e9d8d4",
|
||||
},
|
||||
};
|
||||
|
||||
export default themes;
|
||||
|
||||