feat(digital): 打造星港响应式数字人对话空间

新增角色探索、收藏、世界书和身份资料;接入流式打字、停止重生成、固定记忆、会话分支与导出;适配手机和桌面并保持实验只由后台控制。
This commit is contained in:
湛兮
2026-10-27 10:25:40 +08:00
parent 6b0dd6ea67
commit b7433acba4
37 changed files with 3914 additions and 106 deletions
+20 -10
View File
@@ -1,32 +1,39 @@
/** 站点元信息与视口配置,保留系统缩放以支持可访问性。 */
import type { Metadata, Viewport } from "next";
import { connection } from "next/server";
import { getAppEnvLabel } from "@/lib/environment";
import "./globals.css";
/** 星港品牌与安装元数据。 */
export const metadata: Metadata = {
title: "员工工作台",
description: "门店员工日常任务、排班、公告和个人中心",
title: "星港 · 数字人空间",
description: "与有故事的人相遇,让每一段对话继续生长",
manifest: "/manifest.webmanifest",
icons: {
icon: "/icon.svg",
apple: "/icon.svg"
apple: "/icon.svg",
},
appleWebApp: {
capable: true,
title: "员工工作台",
statusBarStyle: "default"
}
title: "星港 · 数字人空间",
statusBarStyle: "default",
},
};
/** 允许缩放并覆盖安全区,由页面布局补齐系统边距。 */
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 1,
themeColor: "#ffffff"
viewportFit: "cover",
themeColor: "#101010",
};
export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
/** 全站根布局,私有数字人页面自行负责业务鉴权。 */
export default async function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
await connection();
const environmentLabel = getAppEnvLabel();
@@ -34,7 +41,10 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac
return (
<html lang="zh-CN">
<body>
<div className="environment-badge" aria-label={`当前环境:${environmentLabel}`}>
<div
className="environment-badge"
aria-label={`当前环境:${environmentLabel}`}
>
{environmentLabel}
</div>
{children}