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:
2026-06-16 14:06:31 +08:00
parent 7506dcae3a
commit 9ffa30cc03
33 changed files with 206 additions and 206 deletions
+8 -8
View File
@@ -1,4 +1,4 @@
// /**
// /
// * Next.js 16 Proxy(原 `middleware.ts`
// *
// * 行为(鉴权路由统一在此处理,业务层组件不再做 auth-driven 跳转):
@@ -9,17 +9,17 @@
// * - 其他情况透传(`NextResponse.next()`
// *
// * 重要约束:
// * - **不**做自定义 cookie 持久化:统一用 NextAuth 内置 `next-auth.session-token` /
// * - 做自定义 cookie 持久化:统一用 NextAuth 内置 `next-auth.session-token` /
// * `__Secure-next-auth.session-token`v5 默认 httpOnly + secure)作信号。
// * - 真正的鉴权门在 Client 侧 `useSession()`next-auth/react),用于 UI 状态。
// * - 路由跳转(**唯一**鉴权跳转点)由本 proxy 集中处理。
// * - 路由跳转(唯一鉴权跳转点)由本 proxy 集中处理。
// * - 副作用:邮箱登录用户(不走 NextAuth)不会被本 proxy 识别为已登录。
// * 邮箱登录在后续轮次若要恢复 proxy 行为,需引入 NextAuth EmailProvider 或独立
// * email-session 体系。
// *
// * Next 16 重要变更(参见 `node_modules/next/dist/docs/01-app/03-api-reference/03-file-conventions/proxy.md`):
// * - 文件从 `middleware.ts` 重命名为 `proxy.ts``middleware` 仍可用但已 deprecated。
// * - 默认 Node.js runtime**不**支持 `runtime` 配置(设置会抛错)。
// * - 默认 Node.js runtime支持 `runtime` 配置(设置会抛错)。
// * - 函数导出名建议为 `proxy`(可默认导出)。
// *
// * 用 `src/` 时 proxy 必须放在 `src/` 内(参见 `src-folder.md`)。
@@ -36,13 +36,13 @@
// ROUTES,
// } from "@/router/routes";
// /** NextAuth 内置 session cookie 名(v5 默认 httpOnly */
// / NextAuth 内置 session cookie 名(v5 默认 httpOnly */
// const SESSION_COOKIE_NAMES = [
// "next-auth.session-token",
// "__Secure-next-auth.session-token",
// ];
// /** proxy 入口日志(Node.js runtime 跑,pino 兼容)—— 排查 / 监控路由用 */
// / proxy 入口日志(Node.js runtime 跑,pino 兼容)—— 排查 / 监控路由用 */
// const log = new Logger("Proxy");
// function isAuthOnlyRoute(pathname: string): boolean {
@@ -53,7 +53,7 @@
// return (PROTECTED_ROUTES as readonly string[]).includes(pathname);
// }
// /**
// /
// * Proxy 入口
// */
// export function proxy(request: NextRequest) {
@@ -89,7 +89,7 @@
// return NextResponse.next();
// }
// /**
// /
// * 匹配器:排除 API、Next 静态资源、图标与常见静态文件扩展名。
// * 不排除 `_next/data`,因为 proxy 文档明确说明"即使在排除列表中 proxy 仍会跑"
// * (安全兜底)。