A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
[autofix.ci] apply automated fixes
autofix-ci[bot]d6919e340bd0
diff --git a/src/components/typography/combobox.tsx b/src/components/typography/combobox.tsxindex 5b9ab61e2..8163af171 100644--- a/src/components/typography/combobox.tsx+++ b/src/components/typography/combobox.tsx@@ -1,13 +1,6 @@import { useMemo } from "react";-import {- fontList,- getFont,- getFontDisplayName,- getFontSearchKeywords,- localFontList,- webFontMap,-} from "@/utils/fonts";+import { fontList, getFont, getFontDisplayName, getFontSearchKeywords, localFontList, webFontMap } from "@/utils/fonts";import { cn } from "@/utils/style";import { Combobox, type MultiComboboxProps, type SingleComboboxProps } from "../ui/combobox";diff --git a/src/utils/fonts.test.ts b/src/utils/fonts.test.tsindex 77001569b..5567c3fc2 100644--- a/src/utils/fonts.test.ts+++ b/src/utils/fonts.test.ts@@ -56,13 +56,7 @@ describe("buildResumeFontFamily", () => {it("uses sans-oriented Chinese fallbacks for sans body fonts", () => {const fonts = splitFontStack(buildResumeFontFamily("Inter"));- expect(fonts.slice(0, 5)).toEqual([- "Inter",- "Noto Sans SC",- "PingFang SC",- "Hiragino Sans GB",- "Microsoft YaHei",- ]);+ expect(fonts.slice(0, 5)).toEqual(["Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei"]);expect(fonts.at(-1)).toBe("sans-serif");});});diff --git a/src/utils/fonts.ts b/src/utils/fonts.tsindex 31dd25ef4..c6a930c80 100644--- a/src/utils/fonts.ts+++ b/src/utils/fonts.ts@@ -1,4 +1,5 @@import type { LocalFont, WebFont } from "@/components/typography/types";+import webFontListJSON from "@/components/typography/webfontlist.json";type FontCategory = LocalFont["category"];@@ -172,8 +173,8 @@ export function getLoadableWebFontWeights(family: string, preferredWeights: striif (!font) return [];const availableWeights = new Set<FontWeight>(font.weights);- const matchingWeights = unique(preferredWeights).filter(- (weight): weight is FontWeight => availableWeights.has(weight as FontWeight),+ const matchingWeights = unique(preferredWeights).filter((weight): weight is FontWeight =>+ availableWeights.has(weight as FontWeight),);if (matchingWeights.length > 0) return matchingWeights;