chore: migrate contexts to stores and refresh barrel exports

- Move state management from `src/contexts` to `src/stores` (zustand-based)
- Update barrelsby config to include new stores directory
- Add bottom-sheet and auth-background components
- Auto-open browser on dev server ready in VS Code launch config
- Refresh generated barrel index files
This commit is contained in:
2026-06-11 09:35:26 +08:00
parent 2bc2e1b691
commit d4cb40a74b
16 changed files with 30 additions and 123 deletions
+4 -9
View File
@@ -1,15 +1,10 @@
/**
* @file Sidebar 公共导出
* Sidebar 状态机公共导出barrel
*
* 状态机重构后:
* - reducer 逻辑已合并到 sidebar-machine.ts
* - 类型由 sidebar-types.ts 重新导出
* - React 入口为 sidebar-context.tsxuseMachine 包装)
* - Context 形状与初始值位于 sidebar-context.ts
* - 事件联合位于 sidebar-events.ts
* 重新导出 Sidebar store 的所有公共 APIstate / events / machine / React Provider + SidebarPage / BottomNavItem)。
*/
export * from "./sidebar-state";
export * from "./sidebar-context";
export * from "./sidebar-events";
export * from "./sidebar-types";
export { sidebarMachine } from "./sidebar-machine";
export * from "./sidebar-machine";