refactor(chat): show images in page overlay

This commit is contained in:
2026-07-09 10:11:25 +08:00
parent cb7791dd8d
commit fc92c3a5d5
23 changed files with 253 additions and 627 deletions
+1 -4
View File
@@ -35,8 +35,6 @@ export type StaticRoute = (typeof ROUTES)[keyof typeof ROUTES];
export const ROUTE_BUILDERS = {
chatDeviceId: (deviceId: string): `/chat/deviceid/${string}` =>
`/chat/deviceid/${encodeURIComponent(deviceId)}` as const,
chatImage: (messageId: string): `/chat/image/${string}` =>
`/chat/image/${encodeURIComponent(messageId)}` as const,
subscription: (
type: "vip" | "topup",
options: { payChannel?: PayChannel; returnTo?: "chat" } = {},
@@ -64,5 +62,4 @@ export const ALL_STATIC_ROUTES: readonly StaticRoute[] = [
/** 联合路由类型,包含静态路由与已知动态路由 */
export type Route =
| StaticRoute
| `/chat/deviceid/${string}`
| `/chat/image/${string}`;
| `/chat/deviceid/${string}`;