Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from anuraghazra:master #16

Merged
merged 45 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e5b5da8
tests: add basic wakatime endpoint test (#3454)
qwerty541 Nov 6, 2023
79cee30
infra: enable constructor-super eslint rule (#3457)
qwerty541 Nov 7, 2023
bc7ea33
build(deps): Bump rickstaa/empty-issues-closer-action (#3460)
dependabot[bot] Nov 7, 2023
a99abe8
build(deps): Bump rickstaa/top-issues-action from 1.3.64 to 1.3.65 (#…
dependabot[bot] Nov 7, 2023
843b15e
build(deps-dev): Bump eslint from 8.52.0 to 8.53.0 (#3459)
dependabot[bot] Nov 7, 2023
8d7e9df
themes: add ambient_gradient theme for test (#3399)
qwerty541 Nov 7, 2023
dda9647
fix(express deploy): fix situations when env variables doesn't load b…
wolfcomp Nov 7, 2023
aa90efc
docs(theme): auto update theme readme (#3462)
qwerty541 Nov 7, 2023
edf9f74
infra: enable keyword-spacing eslint rule and remove decrecated space…
qwerty541 Nov 10, 2023
5ea6595
infra: enable no-delete-var eslint rule (#3465)
qwerty541 Nov 10, 2023
51eefa2
infra: enable no-caller eslint rule (#3473)
qwerty541 Nov 13, 2023
d654fe5
infra: enable no-alert eslint rule (#3472)
qwerty541 Nov 13, 2023
034ee06
build(deps-dev): Bump lint-staged from 15.0.2 to 15.1.0 (#3477)
dependabot[bot] Nov 13, 2023
36bbea2
build(deps): Bump axios from 1.6.0 to 1.6.1 (#3478)
dependabot[bot] Nov 13, 2023
e04e139
build(deps-dev): Bump prettier from 3.0.3 to 3.1.0 (#3476)
dependabot[bot] Nov 13, 2023
e50a9b4
build(deps): Bump rickstaa/top-issues-action from 1.3.65 to 1.3.69 (#…
dependabot[bot] Nov 13, 2023
4997308
build(deps): Bump rickstaa/empty-issues-closer-action (#3480)
dependabot[bot] Nov 13, 2023
3a15963
ci: add wakatime endpoint test file into pull requests labeler (#3482)
qwerty541 Nov 15, 2023
f26b83d
tests: fix typo inside card class proper height/width test (#3489)
qwerty541 Nov 20, 2023
d4f1a5d
docs: grammar/Clarity Fixes. (#3463)
krple Nov 20, 2023
ddcc30d
feat(repo card): add description lines count query parameter (#3453)
qwerty541 Nov 20, 2023
68c49dd
build(deps): Bump rickstaa/empty-issues-closer-action (#3490)
dependabot[bot] Nov 20, 2023
723cdd7
build(deps): Bump rickstaa/top-issues-action from 1.3.69 to 1.3.71 (#…
dependabot[bot] Nov 20, 2023
ffe2862
build(deps): Bump axios from 1.6.1 to 1.6.2 (#3492)
dependabot[bot] Nov 20, 2023
afcb773
build(deps-dev): Bump eslint from 8.53.0 to 8.54.0 (#3493)
dependabot[bot] Nov 20, 2023
a8663a8
feat(wakatime card): add disable animations query option (#3496)
qwerty541 Nov 23, 2023
b8983dd
feat: show wakatime stats in percentage (resolves #3016) (#3326)
ritik48 Nov 23, 2023
1262002
fix(wakatime card): add percent display format for compact layout (re…
qwerty541 Nov 25, 2023
c6c4a88
docs: improve query options appereance using tables (#3484)
qwerty541 Nov 25, 2023
4793de4
build(deps): Bump rickstaa/top-issues-action from 1.3.71 to 1.3.75 (#…
dependabot[bot] Nov 27, 2023
7595456
build(deps): Bump rickstaa/empty-issues-closer-action (#3507)
dependabot[bot] Nov 27, 2023
0616df3
tests: add gist card performance test (#3372)
qwerty541 Nov 28, 2023
1656ec6
tests: add pin card performance test (#3374)
qwerty541 Nov 28, 2023
80b2d23
build(deps-dev): Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#3516)
dependabot[bot] Dec 1, 2023
1cba9c1
build(deps-dev): Bump eslint from 8.54.0 to 8.55.0 (#3522)
dependabot[bot] Dec 4, 2023
105e136
build(deps-dev): Bump lint-staged from 15.1.0 to 15.2.0 (#3524)
dependabot[bot] Dec 4, 2023
91889a3
build(deps-dev): Bump eslint-config-prettier from 9.0.0 to 9.1.0 (#3523)
dependabot[bot] Dec 4, 2023
4412af8
build(deps-dev): Bump @testing-library/jest-dom from 6.1.4 to 6.1.5 (…
dependabot[bot] Dec 4, 2023
34c67ff
build(deps): Bump rickstaa/top-issues-action from 1.3.75 to 1.3.77 (#…
dependabot[bot] Dec 4, 2023
6633d68
build(deps): Bump rickstaa/empty-issues-closer-action (#3527)
dependabot[bot] Dec 4, 2023
23472f4
build(deps): Bump actions/labeler from 4.3.0 to 5.0.0 (#3526)
dependabot[bot] Dec 4, 2023
c31f3e8
ci: update labeler config to match latest action version (#3533)
qwerty541 Dec 11, 2023
2259870
docs: fix wakatime card api_domain option default value (#3532)
qwerty541 Dec 11, 2023
c402a23
refactor: add missing export for wakatime options type (#3531)
qwerty541 Dec 11, 2023
f831dad
build(deps-dev): Bump prettier from 3.1.0 to 3.1.1 (#3540)
dependabot[bot] Dec 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
// "dot-notation": "warn",
// "eqeqeq": [ "error", "smart" ],
// "guard-for-in": "warn",
// "no-alert": "error",
// "no-caller": "error",
"no-alert": "error",
"no-caller": "error",
// "no-case-declarations": "warn",
// "no-div-regex": "warn",
// "no-else-return": "warn",
Expand Down Expand Up @@ -113,7 +113,7 @@

// "init-declarations": [ "error", "always" ],
// "no-catch-shadow": "warn",
// "no-delete-var": "error",
"no-delete-var": "error",
// "no-label-var": "error",
// "no-shadow-restricted-names": "error",
// "no-shadow": "warn",
Expand Down Expand Up @@ -150,7 +150,7 @@
// "arrow-body-style": [ "error", "always" ],
// "arrow-parens": [ "error", "always" ],
// "arrow-spacing": [ "error", { "before": true, "after": true }],
// "constructor-super": "error",
"constructor-super": "error",
// "generator-star-spacing": [ "error", "before" ],
// "no-arrow-condition": "error",
"no-class-assign": "error",
Expand Down Expand Up @@ -217,14 +217,13 @@
"MethodDefinition": true,
"ClassDeclaration": false
}
}]
}],
// "semi-spacing": [ "warn", { "before": false, "after": true }],
// "semi": [ "error", "always" ],
// "sort-vars": "off",
// "space-after-keywords": [ "warn", "always" ],
"keyword-spacing": ["error", { "before": true, "after": true }]
// "space-before-blocks": [ "warn", "always" ],
// "space-before-function-paren": [ "warn", "never" ],
// "space-before-keywords": [ "warn", "always" ],
// "space-in-parens": [ "warn", "never" ],
// "space-infix-ops": [ "warn", { "int32Hint": true } ],
// "space-return-throw-case": "error",
Expand Down
129 changes: 86 additions & 43 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,95 @@
themes: themes/index.js
doc-translation: docs/*
themes:
- changed-files:
- any-glob-to-any-file:
- themes/index.js

doc-translation:
- changed-files:
- any-glob-to-any-file:
- docs/*

card-i18n:
- src/translations.js
- src/common/I18n.js
- changed-files:
- any-glob-to-any-file:
- src/translations.js
- src/common/I18n.js

documentation:
- readme.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md
- changed-files:
- any-glob-to-any-file:
- readme.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md

dependencies:
- package.json
- package-lock.json
- changed-files:
- any-glob-to-any-file:
- package.json
- package-lock.json

lang-card:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/fetchers/top-languages-fetcher.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
- tests/top-langs.test.js
- changed-files:
- any-glob-to-any-file:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/fetchers/top-languages-fetcher.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
- tests/top-langs.test.js

repo-card:
- api/pin.js
- src/cards/repo-card.js
- src/fetchers/repo-fetcher.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
- tests/pin.test.js
- changed-files:
- any-glob-to-any-file:
- api/pin.js
- src/cards/repo-card.js
- src/fetchers/repo-fetcher.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
- tests/pin.test.js

stats-card:
- api/index.js
- src/cards/stats-card.js
- src/fetchers/stats-fetcher.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
- tests/api.test.js
- changed-files:
- any-glob-to-any-file:
- api/index.js
- src/cards/stats-card.js
- src/fetchers/stats-fetcher.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
- tests/api.test.js

wakatime-card:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/fetchers/wakatime-fetcher.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
- changed-files:
- any-glob-to-any-file:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/fetchers/wakatime-fetcher.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
- tests/wakatime.test.js

gist-card:
- api/gist.js
- src/cards/gist-card.js
- src/fetchers/gist-fetcher.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
- tests/gist.test.js
ranks: src/calculateRank.js
- changed-files:
- any-glob-to-any-file:
- api/gist.js
- src/cards/gist-card.js
- src/fetchers/gist-fetcher.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
- tests/gist.test.js

ranks:
- changed-files:
- any-glob-to-any-file:
- src/calculateRank.js

ci:
- .github/workflows/*
- scripts/*
infrastructure: .eslintrc.json
- changed-files:
- any-glob-to-any-file:
- .github/workflows/*
- scripts/*

infrastructure:
- changed-files:
- any-glob-to-any-file:
- .eslintrc.json
2 changes: 1 addition & 1 deletion .github/workflows/empty-issues-closer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Run empty issues closer action
uses: rickstaa/empty-issues-closer-action@2ee9f86f16acb1d888a480f2080407d84248f475 # v1.1.39
uses: rickstaa/empty-issues-closer-action@c7b2e1cec1e662f56516d8f2842ca45379ac4430 # v1.1.52
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
if: github.repository == 'anuraghazra/github-readme-stats'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
2 changes: 1 addition & 1 deletion .github/workflows/top-issues-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run top issues action
uses: rickstaa/top-issues-action@f72e408e2ca430a9d79620f27183d7fd85c7494a # v1.3.64
uses: rickstaa/top-issues-action@8c70898862d1e7808bd5ce009405ac44f461044d # v1.3.77
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 2 additions & 0 deletions api/pin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default async (req, res) => {
locale,
border_radius,
border_color,
description_lines_count,
} = req.query;

res.setHeader("Content-Type", "image/svg+xml");
Expand Down Expand Up @@ -96,6 +97,7 @@ export default async (req, res) => {
border_color,
show_owner: parseBoolean(show_owner),
locale: locale ? locale.toLowerCase() : null,
description_lines_count,
}),
);
} catch (err) {
Expand Down
4 changes: 4 additions & 0 deletions api/wakatime.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default async (req, res) => {
api_domain,
border_radius,
border_color,
display_format,
disable_animations,
} = req.query;

res.setHeader("Content-Type", "image/svg+xml");
Expand Down Expand Up @@ -83,6 +85,8 @@ export default async (req, res) => {
locale: locale ? locale.toLowerCase() : null,
layout,
langs_count,
display_format,
disable_animations: parseBoolean(disable_animations),
}),
);
} catch (err) {
Expand Down
3 changes: 1 addition & 2 deletions express.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import "dotenv/config";
import statsCard from "./api/index.js";
import repoCard from "./api/pin.js";
import langCard from "./api/top-langs.js";
import wakatimeCard from "./api/wakatime.js";
import gistCard from "./api/gist.js";
import express from "express";
import dotenv from "dotenv";

dotenv.config();
const app = express();
app.listen(process.env.port || 9000);

Expand Down
Loading
Loading