From 2b00202b7fa02e33a52ebda8f05ef3e53de36134 Mon Sep 17 00:00:00 2001 From: caigee-cmd <210803857+caigee-cmd@users.noreply.github.com> Date: Tue, 20 Oct 2026 10:39:46 +0800 Subject: [PATCH 1/8] =?UTF-8?q?feat(console):=20=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9C=AC=E5=9C=B0=E6=89=93=E5=8C=85=E7=9A=84?= =?UTF-8?q?=20Geist=20/=20Geist=20Mono=EF=BC=88=E4=BB=85=20latin=20?= =?UTF-8?q?=E5=AD=90=E9=9B=86=EF=BC=89=EF=BC=8C=E5=8E=BB=E6=8E=89=20Google?= =?UTF-8?q?=20Fonts=20=E5=A4=96=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 3 --- frontend/package-lock.json | 20 ++++++++++++++++++++ frontend/package.json | 2 ++ frontend/src/index.css | 24 ++++++++++++++++++++++-- 4 files changed, 44 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 5cad5483..245f1571 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -19,9 +19,6 @@ - - -
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index a57d8eb8..bf4985ff 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,6 +8,8 @@ "name": "cli2api-frontend", "version": "0.0.0", "dependencies": { + "@fontsource-variable/geist": "^5.3.0", + "@fontsource-variable/geist-mono": "^5.3.0", "@heroui/react": "^3.2.4", "@heroui/styles": "^3.2.4", "@phosphor-icons/react": "^2.1.10", @@ -82,6 +84,24 @@ "node": ">=6.9.0" } }, + "node_modules/@fontsource-variable/geist": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/geist/-/geist-5.3.0.tgz", + "integrity": "sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/geist-mono": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/geist-mono/-/geist-mono-5.3.0.tgz", + "integrity": "sha512-vBbuwDEo9AkrqADMXOrlAR3DFcJi4/JxeuU43FoiQERnNwsfXNnvxvReZG02cQKmyk4DZkZdBZX3oTDvy2zBAw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@formatjs/ecma402-abstract": { "version": "2.3.6", "resolved": "https://registry.npmmirror.com/@formatjs/ecma402-abstract/-/ecma402-abstract-2.3.6.tgz", diff --git a/frontend/package.json b/frontend/package.json index 4ae013e7..48d7cf4b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,8 @@ "sync": "npm run build && node ./scripts/sync-static.mjs" }, "dependencies": { + "@fontsource-variable/geist": "^5.3.0", + "@fontsource-variable/geist-mono": "^5.3.0", "@heroui/react": "^3.2.4", "@heroui/styles": "^3.2.4", "@phosphor-icons/react": "^2.1.10", diff --git a/frontend/src/index.css b/frontend/src/index.css index 643e621b..e5a888da 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,9 +1,29 @@ @import "tailwindcss"; @import "@heroui/styles"; +/* Geist (latin subset only, ~52 KB total) is bundled into the binary so the + console no longer reaches out to Google Fonts; CJK falls back to the OS. */ +@font-face { + font-family: "Geist Variable"; + font-style: normal; + font-display: swap; + font-weight: 100 900; + src: url("@fontsource-variable/geist/files/geist-latin-wght-normal.woff2") format("woff2-variations"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +@font-face { + font-family: "Geist Mono Variable"; + font-style: normal; + font-display: swap; + font-weight: 100 900; + src: url("@fontsource-variable/geist-mono/files/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + @theme { - --font-sans: "Outfit", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif; - --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; + --font-sans: "Geist Variable", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif; + --font-mono: "Geist Mono Variable", "SFMono-Regular", Consolas, monospace; } /* Softer field corners + visible borders: HeroUI inputs / textareas / From 683dbe9d8fa9e2dc36d156f49f431a2471b42a83 Mon Sep 17 00:00:00 2001 From: caigee-cmd <210803857+caigee-cmd@users.noreply.github.com> Date: Tue, 20 Oct 2026 10:43:33 +0800 Subject: [PATCH 2/8] =?UTF-8?q?feat(console):=20Studio=20=E7=81=B0?= =?UTF-8?q?=E9=98=B6=E4=B8=BB=E9=A2=98=20token=20=E4=B8=8E=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=87=A0=E4=BD=95=EF=BC=88=E5=8D=A1=E7=89=87=E7=BB=86?= =?UTF-8?q?=E8=BE=B9=E3=80=81=E7=B4=A7=E5=87=91=E6=8E=A7=E4=BB=B6=E3=80=81?= =?UTF-8?q?=E5=88=86=E6=AE=B5=E8=BD=A8=E9=81=93=E3=80=81=E4=BD=8E=E9=98=B4?= =?UTF-8?q?=E5=BD=B1=EF=BC=8C=E4=BA=AE=E6=9A=97=E5=8F=8C=E5=A5=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ui/FilterToggle.tsx | 4 +- frontend/src/index.css | 287 +++++++++++++++++--- 2 files changed, 245 insertions(+), 46 deletions(-) diff --git a/frontend/src/components/ui/FilterToggle.tsx b/frontend/src/components/ui/FilterToggle.tsx index 30c8bb77..091a3200 100644 --- a/frontend/src/components/ui/FilterToggle.tsx +++ b/frontend/src/components/ui/FilterToggle.tsx @@ -67,11 +67,11 @@ export function FilterToggle({ }, [value, options]) return ( -{desc}
{t('apiPlaygroundHint')}
{t('keysLead')}