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
+1
View File
@@ -3,6 +3,7 @@
*/
export * from "./auth-back-button";
export * from "./bottom-sheet";
export * from "./dialog";
export * from "./loading-indicator";
export * from "./mobile-shell";
+1
View File
@@ -2,6 +2,7 @@
* @file Automatically generated by barrelsby.
*/
export * from "./auth-background";
export * from "./auth-divider";
export * from "./auth-email-panel";
export * from "./auth-error-message";
+1 -1
View File
@@ -22,7 +22,7 @@ import { useEffect, useRef, useState } from "react";
import Image from "next/image";
import { useChatDispatch, useChatState } from "@/stores/chat/chat-context";
import { GuestChatQuota } from "@/stores/chat/chat-types";
import { GuestChatQuota } from "@/stores/chat";
import { MobileShell } from "@/app/_components/core/mobile-shell";
+2 -32
View File
@@ -1,35 +1,5 @@
/**
* Chat 公共组件导出
* @file Automatically generated by barrelsby.
*/
// 屏幕 + 顶层
export { ChatScreen } from "./chat-screen";
// 顶部
export { ChatHeader } from "./chat-header";
// 消息区
export { ChatArea } from "./chat-area";
// 输入栏
export { ChatInputBar } from "./chat-input-bar";
export { ChatInputTextField } from "./chat-input-text-field";
export { ChatSendButton } from "./chat-send-button";
// 消息气泡
export { MessageBubble } from "./message-bubble";
export { MessageContent } from "./message-content";
export { MessageAvatar } from "./message-avatar";
export { TextBubble } from "./text-bubble";
export { ImageBubble } from "./image-bubble";
export { LottieMessageBubble } from "./lottie-message-bubble";
export { DateHeader } from "./date-header";
export { FullscreenImageViewer } from "./fullscreen-image-viewer";
// 弹窗 / 浮层 / 卡片
export { QuotaDialog } from "./quota-dialog";
export { PwaInstallDialog } from "./pwa-install-dialog";
export { PwaInstallOverlay } from "./pwa-install-overlay";
export { BrowserHintOverlay } from "./browser-hint-overlay";
export { AiDisclosureBanner } from "./ai-disclosure-banner";
export { LanguageDialog, DEFAULT_LANGUAGES } from "./language-dialog";
export * from "./index";