diff --git a/src/core/constants/app_constants.ts b/src/core/app_constants.ts similarity index 67% rename from src/core/constants/app_constants.ts rename to src/core/app_constants.ts index 1254cbbf..4b0374c1 100644 --- a/src/core/constants/app_constants.ts +++ b/src/core/app_constants.ts @@ -1,17 +1,3 @@ -/** - * 应用常量类 - * - * 集中管理应用中使用的常量值 - * 原始 Dart: lib/res/constants.dart - * - * 清理记录:本轮移除 `facebookAppId` / `googleClientId` 字段 —— Next.js 端 - * 不再硬编码 OAuth 凭据,改为由 `@/lib/auth/nextauth.ts` 从 `AUTH_*_ID` / - * `AUTH_*_SECRET` env 读取(Auth.js v5 命名约定)。原硬编码值已废弃。 - * - * `appTitle` / `appUrl` 复用 `core/net/config/api_config.ts` 的 `getAppEnv()`, - * 其底层为 `process.env.NEXT_PUBLIC_APP_ENV`(三态:`development` / `test` / `production`), - * 与 `.env.example` 的约定一致。 - */ import { getAppEnv } from "@/core/net/config/api_config"; export class AppConstants { diff --git a/src/lib/breakpoints.ts b/src/core/breakpoints.ts similarity index 100% rename from src/lib/breakpoints.ts rename to src/core/breakpoints.ts diff --git a/src/lib/fonts.ts b/src/core/fonts.ts similarity index 100% rename from src/lib/fonts.ts rename to src/core/fonts.ts diff --git a/src/lib/index.ts b/src/lib/index.ts deleted file mode 100644 index 8e2e9a92..00000000 --- a/src/lib/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * `src/lib/` 手写 barrel - * - * 注意:故意**不**把 `src/lib/auth/nextauth.ts`(Client-only 类)放进来, - * 避免 Server bundle 误把 React 客户端代码拉进去。 - * 如需导入,请直接 `import { ... } from "@/lib/auth/nextauth"` 或各 class 文件路径。 - * - * 注:路由相关常量已迁移至 `@/router`(`src/router/routes.ts`)。 - * 路由守卫已迁移至 `@/router/proxy`(`src/router/proxy.ts`)。 - */ - -export * from "./breakpoints";