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
+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.
*/
/**