revert all remaining unnecessary changes

This commit is contained in:
martin-mfg
2025-06-24 19:55:33 +02:00
parent 8a3a1bb081
commit 793ceecacf
15 changed files with 24 additions and 25 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
.vercel/project.json
.vercel/README.txt
.vercel
.env
node_modules
*.lock
+2 -2
View File
@@ -1,3 +1,3 @@
npm --prefix .vercel/output/functions/api.func/core-app/ test
npm --prefix .vercel/output/functions/api.func/core-app/ run lint
npm test
npm run lint
npx lint-staged
+1 -1
View File
@@ -51,7 +51,7 @@ We're currently paused addition of new themes to decrease maintenance efforts. A
GitHub Readme Stats supports multiple languages, if we are missing your language, you can contribute it! You can check the currently supported languages [here](./readme.md#available-locales).
To contribute your language you need to edit the [src/translations.js](src/translations.js) file and add new property to each object where the key is the language code in [ISO 639-1 standard](https://www.andiamo.co.uk/resources/iso-language-codes/) and the value is the translated string.
To contribute your language you need to edit the [src/translations.js](./src/translations.js) file and add new property to each object where the key is the language code in [ISO 639-1 standard](https://www.andiamo.co.uk/resources/iso-language-codes/) and the value is the translated string.
## Any contributions you make will be under the MIT Software License
+2 -2
View File
@@ -30,8 +30,8 @@ const CARD_DEFAULT_WIDTH = 400;
const HEADER_MAX_LENGTH = 35;
/**
* @typedef {import('./types.js').GistCardOptions} GistCardOptions Gist card options.
* @typedef {import('../fetchers/types.js').GistData} GistData Gist data.
* @typedef {import('./types').GistCardOptions} GistCardOptions Gist card options.
* @typedef {import('../fetchers/types').GistData} GistData Gist data.
*/
/**
+2 -2
View File
@@ -45,8 +45,8 @@ const getBadgeSVG = (label, textColor, xOffset = 0) => `
`;
/**
* @typedef {import("../fetchers/types.js").RepositoryData} RepositoryData Repository data.
* @typedef {import("./types.js").RepoCardOptions} RepoCardOptions Repo card options.
* @typedef {import("../fetchers/types").RepositoryData} RepositoryData Repository data.
* @typedef {import("./types").RepoCardOptions} RepoCardOptions Repo card options.
*/
/**
+2 -2
View File
@@ -199,8 +199,8 @@ const getStyles = ({
};
/**
* @typedef {import('../fetchers/types.js').StatsData} StatsData
* @typedef {import('./types.js').StatCardOptions} StatCardOptions
* @typedef {import('../fetchers/types').StatsData} StatsData
* @typedef {import('./types').StatCardOptions} StatCardOptions
*/
/**
+3 -3
View File
@@ -26,7 +26,7 @@ const PIE_LAYOUT_DEFAULT_LANGS_COUNT = 6;
const DONUT_VERTICAL_LAYOUT_DEFAULT_LANGS_COUNT = 6;
/**
* @typedef {import("../fetchers/types.js").Lang} Lang
* @typedef {import("../fetchers/types").Lang} Lang
*/
/**
@@ -666,7 +666,7 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
};
/**
* @typedef {import("./types.js").TopLangOptions} TopLangOptions
* @typedef {import("./types").TopLangOptions} TopLangOptions
* @typedef {TopLangOptions["layout"]} Layout
*/
@@ -710,7 +710,7 @@ const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
};
/**
* @typedef {import('../fetchers/types.js').TopLangData} TopLangData
* @typedef {import('../fetchers/types').TopLangData} TopLangData
*/
/**
+1 -1
View File
@@ -1,4 +1,4 @@
type ThemeNames = keyof typeof import("../../themes");
type ThemeNames = keyof typeof import("../../themes/index.js");
type RankIcon = "default" | "github" | "percentile";
export type CommonOptions = {
+3 -3
View File
@@ -36,7 +36,7 @@ const noCodingActivityNode = ({ color, text }) => {
};
/**
* @typedef {import('../fetchers/types.js').WakaTimeLang} WakaTimeLang
* @typedef {import('../fetchers/types').WakaTimeLang} WakaTimeLang
*/
/**
@@ -207,8 +207,8 @@ const getStyles = ({
};
/**
* @typedef {import('../fetchers/types.js').WakaTimeData} WakaTimeData
* @typedef {import('./types.js').WakaTimeOptions} WakaTimeOptions
* @typedef {import('../fetchers/types').WakaTimeData} WakaTimeData
* @typedef {import('./types').WakaTimeOptions} WakaTimeOptions
*/
/**
+1 -1
View File
@@ -77,7 +77,7 @@ const calculatePrimaryLanguage = (files) => {
};
/**
* @typedef {import('./types.js').GistData} GistData Gist data.
* @typedef {import('./types').GistData} GistData Gist data.
*/
/**
+1 -1
View File
@@ -60,7 +60,7 @@ const fetcher = (variables, token) => {
const urlExample = "/api/pin?username=USERNAME&repo=REPO_NAME";
/**
* @typedef {import("./types.js").RepositoryData} RepositoryData Repository data.
* @typedef {import("./types").RepositoryData} RepositoryData Repository data.
*/
/**
+1 -1
View File
@@ -273,7 +273,7 @@ const fetchRepoUserStats = async (
};
/**
* @typedef {import("./types.js").StatsData} StatsData Stats data.
* @typedef {import("./types").StatsData} StatsData Stats data.
*/
/**
+1 -1
View File
@@ -53,7 +53,7 @@ const fetcher = (variables, token) => {
};
/**
* @typedef {import("./types.js").TopLangData} TopLangData Top languages data.
* @typedef {import("./types").TopLangData} TopLangData Top languages data.
*/
/**
+1 -1
View File
@@ -86,7 +86,7 @@ const REPOSITORY_DATA = {
};
/**
* @typedef {import("../../src/fetchers/types.js").GistData} GistData Gist data type.
* @typedef {import("../../src/fetchers/types").GistData} GistData Gist data type.
*/
/**
+2 -2
View File
@@ -1,4 +1,4 @@
import { renderGistCard } from "../src/cards/gist-card.js";
import { renderGistCard } from "../src/cards/gist-card";
import { describe, expect, it } from "@jest/globals";
import { queryByTestId } from "@testing-library/dom";
import { cssToObject } from "@uppercod/css-to-object";
@@ -6,7 +6,7 @@ import { themes } from "../themes/index.js";
import "@testing-library/jest-dom";
/**
* @type {import("../src/fetchers/gist-fetcher.js").GistData}
* @type {import("../src/fetchers/gist-fetcher").GistData}
*/
const data = {
name: "test",