efe48f2068
- 合并 DivinationResultPage 和 HistoryResultPage 为统一结果页 - 重写 HistoryFollowUpPage:API 加载历史消息、SSE 流式追问、配额管理 - 追问免费且限一次,输入框 UI 对齐设计稿(圆角容器+配额徽章+圆形发送按钮) - 结果页追问状态根据线程消息数动态判断 - 历史列表筛选改为 9 类独立类型 - 提取 historyMessageToResultData 为共享函数,新增 enqueueFollowUpRun API - 新增 auto_awesome/search/arrow_upward 图标 - 新增三语言 [id].astro、[id]/followup.astro、divination/result.astro 页面
29 lines
751 B
Plaintext
29 lines
751 B
Plaintext
---
|
|
import AppLayout from '../layouts/App.astro';
|
|
import DashboardApp from './DashboardApp';
|
|
import { t, type Locale } from '../i18n/utils';
|
|
|
|
interface Props {
|
|
locale: Locale;
|
|
}
|
|
|
|
const { locale } = Astro.props;
|
|
const translations = {
|
|
dashboard: t(locale, 'dashboard'),
|
|
store: t(locale, 'store'),
|
|
pricing: t(locale, 'pricing'),
|
|
history: t(locale, 'history'),
|
|
notifications: t(locale, 'notifications'),
|
|
profile: t(locale, 'profile'),
|
|
settings: t(locale, 'settings'),
|
|
divination: t(locale, 'divination'),
|
|
general: t(locale, 'general'),
|
|
feedback: t(locale, 'feedback'),
|
|
result: t(locale, 'result'),
|
|
};
|
|
---
|
|
|
|
<AppLayout locale={locale}>
|
|
<DashboardApp client:only="react" locale={locale} translations={translations} />
|
|
</AppLayout>
|