revert all remaining unnecessary changes
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
.vercel/project.json
|
||||
.vercel/README.txt
|
||||
.vercel
|
||||
.env
|
||||
node_modules
|
||||
*.lock
|
||||
|
||||
+2
-2
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -77,7 +77,7 @@ const calculatePrimaryLanguage = (files) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {import('./types.js').GistData} GistData Gist data.
|
||||
* @typedef {import('./types').GistData} GistData Gist data.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -273,7 +273,7 @@ const fetchRepoUserStats = async (
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {import("./types.js").StatsData} StatsData Stats data.
|
||||
* @typedef {import("./types").StatsData} StatsData Stats data.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user