refactor: remove obsolete config and cross-layer exports
Drop the temporary static-generation retry override and stale hydration suppression. Refresh outdated Next.js and migration comments, and stop re-exporting Result through the storage layer.
This commit is contained in:
@@ -3,12 +3,7 @@
|
||||
/**
|
||||
* IChatRepository 接口
|
||||
*
|
||||
* 对齐 Dart 端 `ChatRepository` 抽象(lib/data/repositories/chat_repository.dart):
|
||||
* - 远程:发送消息、获取历史
|
||||
* - 本地:写入 / 批量覆盖 / 读取 / 清空 / 计数
|
||||
*
|
||||
* 私有助手(`_chatToLocal` / `_localToChat` / `_mapLocalStorageResult`)不暴露。
|
||||
*
|
||||
* 聚合聊天远程操作、身份隔离的本地历史,以及媒体缓存能力。
|
||||
*/
|
||||
|
||||
import type { Result } from "@/utils";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
/**
|
||||
* LocalChatStorage 完整实现(示范 2:IndexedDB via Dexie)
|
||||
* IndexedDB-backed chat message storage.
|
||||
*
|
||||
* Dexie 实例可注入,便于测试用 fake-indexeddb 跑真 Dexie。
|
||||
*
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
/**
|
||||
* @file Storage 公共导出
|
||||
*
|
||||
* unstorage 重构后:
|
||||
* - 删除 `./local_storage`(原自定义 LocalStorage class 已被 unstorage 取代)
|
||||
* - 业务层(AuthStorage / ChatStorage / UserStorage / AppStorage)继续走原接口
|
||||
* @file Storage public exports.
|
||||
*/
|
||||
export * from "@/utils/result";
|
||||
export * from "./storage_keys";
|
||||
export * from "./storage_migration";
|
||||
export * from "./app/app_storage";
|
||||
// NOTE: top-level `auth_storage.ts` is intentionally not re-exported here —
|
||||
// it conflicts with `auth/auth_storage.ts` (both define `AuthStorage`).
|
||||
// Import directly via `@/data/storage/auth/auth_storage` instead.
|
||||
export * from "./auth/auth_storage";
|
||||
export * from "./auth/iauth_storage";
|
||||
export * from "./chat/chat_storage";
|
||||
|
||||
Reference in New Issue
Block a user