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

This commit is contained in:
Alexandr Garbuzov authored and GitHub committed 2025-08-24 17:14:18 +03:00
1 parent 09cb2a596e
commit dd7582db8f
23 files changed
+29 -29

No files matched your search

+5 -5
View File
@@ -27,7 +27,7 @@ lang-card:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- api/top-langs.js - api/top-langs.js
- src/cards/top-languages-card.js - src/cards/top-languages.js
- src/fetchers/top-languages.js - src/fetchers/top-languages.js
- tests/fetchTopLanguages.test.js - tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js - tests/renderTopLanguagesCard.test.js
@@ -37,7 +37,7 @@ repo-card:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- api/pin.js - api/pin.js
- src/cards/repo-card.js - src/cards/repo.js
- src/fetchers/repo.js - src/fetchers/repo.js
- tests/fetchRepo.test.js - tests/fetchRepo.test.js
- tests/renderRepoCard.test.js - tests/renderRepoCard.test.js
@@ -47,7 +47,7 @@ stats-card:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- api/index.js - api/index.js
- src/cards/stats-card.js - src/cards/stats.js
- src/fetchers/stats.js - src/fetchers/stats.js
- tests/fetchStats.test.js - tests/fetchStats.test.js
- tests/renderStatsCard.test.js - tests/renderStatsCard.test.js
@@ -57,7 +57,7 @@ wakatime-card:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- api/wakatime.js - api/wakatime.js
- src/cards/wakatime-card.js - src/cards/wakatime.js
- src/fetchers/wakatime.js - src/fetchers/wakatime.js
- tests/fetchWakatime.test.js - tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js - tests/renderWakatimeCard.test.js
@@ -67,7 +67,7 @@ gist-card:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- api/gist.js - api/gist.js
- src/cards/gist-card.js - src/cards/gist.js
- src/fetchers/gist.js - src/fetchers/gist.js
- tests/fetchGist.test.js - tests/fetchGist.test.js
- tests/renderGistCard.test.js - tests/renderGistCard.test.js
+1 -1
View File
@@ -5,7 +5,7 @@ import {
parseBoolean, parseBoolean,
} from "../src/common/utils.js"; } from "../src/common/utils.js";
import { isLocaleAvailable } from "../src/translations.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"; import { fetchGist } from "../src/fetchers/gist.js";
export default async (req, res) => { 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 { blacklist } from "../src/common/blacklist.js";
import { import {
clampValue, 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 { blacklist } from "../src/common/blacklist.js";
import { import {
clampValue, 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 { blacklist } from "../src/common/blacklist.js";
import { import {
CONSTANTS, 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 { import {
clampValue, clampValue,
CONSTANTS, CONSTANTS,
File renamed without changes.
+4 -4
View File
@@ -1,4 +1,4 @@
export { renderRepoCard } from "./repo-card.js"; export { renderRepoCard } from "./repo.js";
export { renderStatsCard } from "./stats-card.js"; export { renderStatsCard } from "./stats.js";
export { renderTopLanguages } from "./top-languages-card.js"; export { renderTopLanguages } from "./top-languages.js";
export { renderWakatimeCard } from "./wakatime-card.js"; export { renderWakatimeCard } from "./wakatime.js";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -3,7 +3,7 @@ import axios from "axios";
import MockAdapter from "axios-mock-adapter"; import MockAdapter from "axios-mock-adapter";
import api from "../api/index.js"; import api from "../api/index.js";
import { calculateRank } from "../src/calculateRank.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 { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals"; import { expect, it, describe, afterEach } from "@jest/globals";
+5 -5
View File
@@ -5,11 +5,11 @@ import dotenv from "dotenv";
dotenv.config(); dotenv.config();
import axios from "axios"; import axios from "axios";
import { renderRepoCard } from "../../src/cards/repo-card.js"; import { renderRepoCard } from "../../src/cards/repo.js";
import { renderStatsCard } from "../../src/cards/stats-card.js"; import { renderStatsCard } from "../../src/cards/stats.js";
import { renderTopLanguages } from "../../src/cards/top-languages-card.js"; import { renderTopLanguages } from "../../src/cards/top-languages.js";
import { renderWakatimeCard } from "../../src/cards/wakatime-card.js"; import { renderWakatimeCard } from "../../src/cards/wakatime.js";
import { renderGistCard } from "../../src/cards/gist-card.js"; import { renderGistCard } from "../../src/cards/gist.js";
import { expect, describe, beforeAll, test } from "@jest/globals"; import { expect, describe, beforeAll, test } from "@jest/globals";
const REPO = "curly-fiesta"; const REPO = "curly-fiesta";
+1 -1
View File
@@ -3,7 +3,7 @@ import "@testing-library/jest-dom";
import axios from "axios"; import axios from "axios";
import MockAdapter from "axios-mock-adapter"; import MockAdapter from "axios-mock-adapter";
import { expect, it, describe, afterEach } from "@jest/globals"; 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 { CONSTANTS, renderError } from "../src/common/utils.js";
import gist from "../api/gist.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 axios from "axios";
import MockAdapter from "axios-mock-adapter"; import MockAdapter from "axios-mock-adapter";
import pin from "../api/pin.js"; 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 { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals"; 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 { describe, expect, it } from "@jest/globals";
import { queryByTestId } from "@testing-library/dom"; import { queryByTestId } from "@testing-library/dom";
import { cssToObject } from "@uppercod/css-to-object"; import { cssToObject } from "@uppercod/css-to-object";
+1 -1
View File
@@ -1,7 +1,7 @@
import { queryByTestId } from "@testing-library/dom"; import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-dom"; import "@testing-library/jest-dom";
import { cssToObject } from "@uppercod/css-to-object"; 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 { expect, it, describe } from "@jest/globals";
import { themes } from "../themes/index.js"; import { themes } from "../themes/index.js";
+1 -1
View File
@@ -4,7 +4,7 @@ import {
queryByTestId, queryByTestId,
} from "@testing-library/dom"; } from "@testing-library/dom";
import { cssToObject } from "@uppercod/css-to-object"; 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 { expect, it, describe } from "@jest/globals";
import { CustomError } from "../src/common/utils.js"; import { CustomError } from "../src/common/utils.js";
+1 -1
View File
@@ -17,7 +17,7 @@ import {
renderTopLanguages, renderTopLanguages,
MIN_CARD_WIDTH, MIN_CARD_WIDTH,
getDefaultLanguagesCountByLayout, getDefaultLanguagesCountByLayout,
} from "../src/cards/top-languages-card.js"; } from "../src/cards/top-languages.js";
import { expect, it, describe } from "@jest/globals"; import { expect, it, describe } from "@jest/globals";
// adds special assertions like toHaveTextContent // adds special assertions like toHaveTextContent
+1 -1
View File
@@ -1,6 +1,6 @@
import { queryByTestId } from "@testing-library/dom"; import { queryByTestId } from "@testing-library/dom";
import "@testing-library/jest-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 { getCardColors } from "../src/common/utils.js";
import { wakaTimeData } from "./fetchWakatime.test.js"; import { wakaTimeData } from "./fetchWakatime.test.js";
import { expect, it, describe } from "@jest/globals"; 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 axios from "axios";
import MockAdapter from "axios-mock-adapter"; import MockAdapter from "axios-mock-adapter";
import topLangs from "../api/top-langs.js"; 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 { CONSTANTS, renderError } from "../src/common/utils.js";
import { expect, it, describe, afterEach } from "@jest/globals"; 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 axios from "axios";
import MockAdapter from "axios-mock-adapter"; import MockAdapter from "axios-mock-adapter";
import wakatime from "../api/wakatime.js"; 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"; import { expect, it, describe, afterEach } from "@jest/globals";
const wakaTimeData = { const wakaTimeData = {