style: remove markdown bold syntax from code comments
Remove `**...**` emphasis markers from inline comments and JSDoc blocks across auth and chat components, machine mappers, and quota helpers. These are plain code comments, not rendered markdown, so the bold syntax was noise. Files touched: - src/app/auth/components/auth-screen.tsx - src/app/chat/components/chat-header.tsx - src/app/chat/components/chat-screen.tsx - chat machine mapper / quota helpers No functional or behavioral changes.
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ import localFont from "next/font/local";
|
||||
* subset、inline,浏览器不会向 Google 发送请求,也不会产生 layout shift。
|
||||
* - 产出的 CSS 变量由 `globals.css` 桥接到 Tailwind(如 `font-sans`、`font-athelas`)。
|
||||
*
|
||||
* 注意:本文件**不**通过 `src/lib/index.ts` 桶导出,避免被误打进客户端 bundle。
|
||||
* 注意:本文件不通过 `src/lib/index.ts` 桶导出,避免被误打进客户端 bundle。
|
||||
* 引用方式:`import { geistSans, geistMono, athelas } from "@/lib/fonts";`
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ const geistMono = Geist_Mono({
|
||||
* 原始资源:/Users/chase/Documents/cozsweet/fonts/Athelas-*.ttf
|
||||
* 放置位置:/public/fonts/Athelas-*.ttf
|
||||
*
|
||||
* 路径计算(`next/font/local` 要求相对路径从**调用文件**出发):
|
||||
* 路径计算(`next/font/local` 要求相对路径从调用文件出发):
|
||||
* src/lib/fonts.ts → ../../public/fonts/...
|
||||
*/
|
||||
const athelas = localFont({
|
||||
|
||||
@@ -87,7 +87,7 @@ export const onRequestToken: FetchHook = async (ctx) => {
|
||||
|
||||
const token = await getAuthToken();
|
||||
if (token) {
|
||||
// ofetch 推荐:改 ctx.options.headers(**不**依赖 ctx.request 是 Request 实例 —— 实例类型不稳定)
|
||||
// ofetch 推荐:改 ctx.options.headers(不依赖 ctx.request 是 Request 实例 —— 实例类型不稳定)
|
||||
const headers = new Headers(ctx.options.headers);
|
||||
headers.set("Authorization", `Bearer ${token}`);
|
||||
ctx.options.headers = headers;
|
||||
|
||||
Reference in New Issue
Block a user