refactor(core): consolidate core files under src/core directory
Move breakpoints, fonts, and app_constants into the core directory for better organization: - Move src/lib/breakpoints.ts to src/core/breakpoints.ts - Move src/lib/fonts.ts to src/core/fonts.ts - Move src/core/constants/app_constants.ts to src/core/app_constants.ts and clean up outdated comments
This commit is contained in:
@@ -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";
|
import { getAppEnv } from "@/core/net/config/api_config";
|
||||||
|
|
||||||
export class AppConstants {
|
export class AppConstants {
|
||||||
@@ -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";
|
|
||||||
Reference in New Issue
Block a user