refactor: fix cards files names by removing duplicating postfix (#4376)

This commit is contained in:
Alexandr Garbuzov
2025-08-24 17:14:18 +03:00
committed by GitHub
parent 09cb2a596e
commit dd7582db8f
23 changed files with 29 additions and 29 deletions
+5 -5
View File
@@ -27,7 +27,7 @@ lang-card:
- changed-files:
- any-glob-to-any-file:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/cards/top-languages.js
- src/fetchers/top-languages.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
@@ -37,7 +37,7 @@ repo-card:
- changed-files:
- any-glob-to-any-file:
- api/pin.js
- src/cards/repo-card.js
- src/cards/repo.js
- src/fetchers/repo.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
@@ -47,7 +47,7 @@ stats-card:
- changed-files:
- any-glob-to-any-file:
- api/index.js
- src/cards/stats-card.js
- src/cards/stats.js
- src/fetchers/stats.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
@@ -57,7 +57,7 @@ wakatime-card:
- changed-files:
- any-glob-to-any-file:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/cards/wakatime.js
- src/fetchers/wakatime.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
@@ -67,7 +67,7 @@ gist-card:
- changed-files:
- any-glob-to-any-file:
- api/gist.js
- src/cards/gist-card.js
- src/cards/gist.js
- src/fetchers/gist.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
+1 -1
View File
@@ -5,7 +5,7 @@ import {
parseBoolean,
} from "../src/common/utils.js";
import { isLocaleAvailable } from "../src/translations.js";
import { renderGistCard } from "../src/cards/gist-card.js";
import { renderGistCard } from "../src/cards/gist.js";
import { fetchGist } from "../src/fetchers/gist.js";
export default async (req, res) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { renderStatsCard } from "../src/cards/stats-card.js";
import { renderStatsCard } from "../src/cards/stats.js";
import { blacklist } from "../src/common/blacklist.js";
import {
clampValue,
+1 -1
View File
@@ -1,4 +1,4 @@
import { renderRepoCard } from "../src/cards/repo-card.js";
import { renderRepoCard } from "../src/cards/repo.js";
import { blacklist } from "../src/common/blacklist.js";
import {
clampValue,
+1 -1
View File
@@ -1,4 +1,4 @@
import { renderTopLanguages } from "../src/cards/top-languages-card.js";
import { renderTopLanguages } from "../src/cards/top-languages.js";
import { blacklist } from "../src/common/blacklist.js";
import {
CONSTANTS,
+1 -1
View File
@@ -1,4 +1,4 @@
import { renderWakatimeCard } from "../src/cards/wakatime-card.js";
import { renderWakatimeCard } from "../src/cards/wakatime.js";
import {
clampValue,
CONSTANTS,
+4 -4
View File
@@ -1,4 +1,4 @@
export { renderRepoCard } from "./repo-card.js";
export { renderStatsCard } from "./stats-card.js";
export { renderTopLanguages } from "./top-languages-card.js";
export { renderWakatimeCard } from "./wakatime-card.js";
export { renderRepoCard } from "./repo.js";
export { renderStatsCard } from "./stats.js";
export { renderTopLanguages } from "./top-languages.js";
export { renderWakatimeCard } from "./wakatime.js";
+1 -1
View File
@@ -3,7 +3,7 @@ import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import api from "../api/index.js";
import { calculateRank } from "../src/calculateRank.js";
import { renderStatsCard } from "../src/cards/stats-card.js";
import { renderStatsCard } from "../src/cards/stats.js";
import { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals";
+5 -5
View File
@@ -5,11 +5,11 @@ import dotenv from "dotenv";
dotenv.config();
import axios from "axios";
import { renderRepoCard } from "../../src/cards/repo-card.js";
import { renderStatsCard } from "../../src/cards/stats-card.js";
import { renderTopLanguages } from "../../src/cards/top-languages-card.js";
import { renderWakatimeCard } from "../../src/cards/wakatime-card.js";
import { renderGistCard } from "../../src/cards/gist-card.js";
import { renderRepoCard } from "../../src/cards/repo.js";
import { renderStatsCard } from "../../src/cards/stats.js";
import { renderTopLanguages } from "../../src/cards/top-languages.js";
import { renderWakatimeCard } from "../../src/cards/wakatime.js";
import { renderGistCard } from "../../src/cards/gist.js";
import { expect, describe, beforeAll, test } from "@jest/globals";
const REPO = "curly-fiesta";
+1 -1
View File
@@ -3,7 +3,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { expect, it, describe, afterEach } from "@jest/globals";
import { renderGistCard } from "../src/cards/gist-card.js";
import { renderGistCard } from "../src/cards/gist.js";
import { CONSTANTS, renderError } from "../src/common/utils.js";
import gist from "../api/gist.js";
+1 -1
View File
@@ -3,7 +3,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import pin from "../api/pin.js";
import { renderRepoCard } from "../src/cards/repo-card.js";
import { renderRepoCard } from "../src/cards/repo.js";
import { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals";
+1 -1
View File
@@ -1,4 +1,4 @@
import { renderGistCard } from "../src/cards/gist-card";
import { renderGistCard } from "../src/cards/gist.js";
import { describe, expect, it } from "@jest/globals";
import { queryByTestId } from "@testing-library/dom";
import { cssToObject } from "@uppercod/css-to-object";
+1 -1
View File
@@ -1,7 +1,7 @@
import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-dom";
import { cssToObject } from "@uppercod/css-to-object";
import { renderRepoCard } from "../src/cards/repo-card.js";
import { renderRepoCard } from "../src/cards/repo.js";
import { expect, it, describe } from "@jest/globals";
import { themes } from "../themes/index.js";
+1 -1
View File
@@ -4,7 +4,7 @@ import {
queryByTestId,
} from "@testing-library/dom";
import { cssToObject } from "@uppercod/css-to-object";
import { renderStatsCard } from "../src/cards/stats-card.js";
import { renderStatsCard } from "../src/cards/stats.js";
import { expect, it, describe } from "@jest/globals";
import { CustomError } from "../src/common/utils.js";
+1 -1
View File
@@ -17,7 +17,7 @@ import {
renderTopLanguages,
MIN_CARD_WIDTH,
getDefaultLanguagesCountByLayout,
} from "../src/cards/top-languages-card.js";
} from "../src/cards/top-languages.js";
import { expect, it, describe } from "@jest/globals";
// adds special assertions like toHaveTextContent
+1 -1
View File
@@ -1,6 +1,6 @@
import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-dom";
import { renderWakatimeCard } from "../src/cards/wakatime-card.js";
import { renderWakatimeCard } from "../src/cards/wakatime.js";
import { getCardColors } from "../src/common/utils.js";
import { wakaTimeData } from "./fetchWakatime.test.js";
import { expect, it, describe } from "@jest/globals";
+1 -1
View File
@@ -3,7 +3,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import topLangs from "../api/top-langs.js";
import { renderTopLanguages } from "../src/cards/top-languages-card.js";
import { renderTopLanguages } from "../src/cards/top-languages.js";
import { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals";
+1 -1
View File
@@ -3,7 +3,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import wakatime from "../api/wakatime.js";
import { renderWakatimeCard } from "../src/cards/wakatime-card.js";
import { renderWakatimeCard } from "../src/cards/wakatime.js";
import { expect, it, describe, afterEach } from "@jest/globals";
const wakaTimeData = {