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:
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
export * from "./auth-back-button";
|
||||
export * from "./bottom-sheet";
|
||||
export * from "./dialog";
|
||||
export * from "./loading-indicator";
|
||||
export * from "./mobile-shell";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user