nomadro/apps/miniprogram/h5/src/data/socialRoster.ts
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

244 lines
7.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** 首页花名册 mock — 在线状态 / 想认识 / 可互动 */
export type SocialRosterMember = {
id: string;
name: string;
title: string;
city: string;
tags: string[];
avatar: string;
bio: string;
vibe: string;
online: boolean;
lookingFor: string;
gender: "f" | "m";
languages?: string[];
availability?: string;
timezone?: string;
/** Extra photos for profile wall (nomads-style) */
gallery?: string[];
};
export const MOCK_ROSTER: SocialRosterMember[] = [
{
id: "m01",
name: "林悦",
title: "独立设计师",
city: "清迈 · Nimman",
tags: ["咖啡局", "设计", "日出"],
avatar: "https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "喜欢把 cowork 聊成真实见面。周末常去 Graph Table,也爱清晨骑车去山上看雾。",
vibe: "温柔 · 有品味",
online: true,
lookingFor: "想认识会拍照的远程伙伴",
gender: "f",
languages: ["中文", "English"],
availability: "本周可 Coffeechat",
timezone: "ICT (UTC+7)",
gallery: [
"https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?w=640&q=80",
"https://images.unsplash.com/photo-1554118811-1e0d58224f24?w=640&q=80",
],
},
{
id: "m02",
name: "Ethan",
title: "全栈 / SaaS",
city: "里斯本",
tags: ["Next.js", "夜跑", "冲浪"],
avatar: "https://images.unsplash.com/photo-1681097561932-36d0df02b379?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "白天写代码,傍晚海边。欢迎 Coffeechat 聊产品与出海。",
vibe: "阳光 · 靠谱",
online: true,
lookingFor: "找联创 / 一起做副业",
gender: "m",
languages: ["English", "Português", "中文"],
availability: "欧洲晚间可视频",
timezone: "WET (UTC+0)",
gallery: [
"https://images.unsplash.com/photo-1555881403-7463c9aea225?w=640&q=80",
],
},
{
id: "m03",
name: "苏晴",
title: "内容创业者",
city: "巴厘岛 · Canggu",
tags: ["Vlog", "瑜伽", "出海"],
avatar: "https://images.unsplash.com/photo-1524548209323-6fb4a0d4a4a3?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "镜头前很活泼,线下更爱深度聊天。常在 Canggu cowork。",
vibe: "活力",
online: false,
lookingFor: "想认识同频创作者",
gender: "f",
languages: ["中文", "English"],
availability: "周末可线下局",
timezone: "WITA (UTC+8)",
},
{
id: "m04",
name: "Ken",
title: "产品经理",
city: "东京 / 远程",
tags: ["B2B", "胶片", "拉面"],
avatar: "https://images.unsplash.com/photo-1540569014015-19a7be504e3a?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "时差玩家。开视频见面时很稳,私下爱胶片机。",
vibe: "干净 · 有梗",
online: true,
lookingFor: "想找一起探索城市的人",
gender: "m",
languages: ["日本語", "English", "中文"],
availability: "常来开视频见面",
timezone: "JST (UTC+9)",
},
{
id: "m05",
name: "Mia",
title: "增长黑客",
city: "曼谷",
tags: ["增长", "夜市", "泰语"],
avatar: "https://images.unsplash.com/photo-1515191627608-9f04cf8dc9d1?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "把增长聊成故事。欢迎约路边摊。",
vibe: "聪明 · 飒",
online: true,
lookingFor: "找一起搞出海的搭档",
gender: "f",
languages: ["中文", "English", "ไทย"],
availability: "今晚可以开视频",
timezone: "ICT (UTC+7)",
},
{
id: "m06",
name: "阿杰",
title: "独立开发者",
city: "成都 → 清迈",
tags: ["Flutter", "火锅", "副业"],
avatar: "https://images.unsplash.com/photo-1672155411493-d36070f0c8f8?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "刚到东南亚第三周,想认识本地局朋友。",
vibe: "真诚 · 幽默",
online: false,
lookingFor: "想找 cowork 搭子",
gender: "m",
languages: ["中文", "English"],
availability: "工作日 cowork",
timezone: "ICT (UTC+7)",
},
{
id: "m07",
name: "Nora",
title: "摄影师",
city: "大城 / 曼谷",
tags: ["旅拍", "胶片", "咖啡"],
avatar: "https://images.unsplash.com/photo-1634552516330-ab1ccc0f605e?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "擅长拍人。可以帮你拍「游民证件照」。",
vibe: "氛围感",
online: true,
lookingFor: "想认识爱旅行的你",
gender: "f",
languages: ["English", "中文"],
availability: "可约旅拍",
timezone: "ICT (UTC+7)",
gallery: [
"https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=640&q=80",
],
},
{
id: "m08",
name: "Ryan",
title: "跨境电商",
city: "槟城",
tags: ["TikTok", "冲浪", "搞钱"],
avatar: "https://images.unsplash.com/photo-1611580839246-23c8de2e04aa?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "白天看数据,傍晚冲浪。社群里最活跃的那几个之一。",
vibe: "热情 · 靠谱",
online: true,
lookingFor: "找一起搞钱也搞生活的人",
gender: "m",
languages: ["中文", "English", "Bahasa"],
availability: "本周可视频",
timezone: "MYT (UTC+8)",
},
{
id: "m09",
name: "Iris",
title: "UX 研究员",
city: "柏林",
tags: ["访谈", "市集", "播客"],
avatar: "https://images.unsplash.com/photo-1549286386-efeff0dde84c?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "欧洲时区,擅长把陌生人聊成朋友。",
vibe: "知性",
online: false,
lookingFor: "想认识认真做产品的人",
gender: "f",
languages: ["Deutsch", "English", "中文"],
availability: "周末可聊",
timezone: "CET (UTC+1)",
},
{
id: "m10",
name: "Leo",
title: "AI 工程师",
city: "首尔 / 远程",
tags: ["Agent", "开源", "咖啡"],
avatar: "https://images.unsplash.com/photo-1557862921-37829c790f19?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "技术宅但不社恐。经常来开视频见面。",
vibe: "稳 · 有趣",
online: true,
lookingFor: "找一起做 AI 副业的人",
gender: "m",
languages: ["한국어", "English"],
availability: "常在视频见面里",
timezone: "KST (UTC+9)",
},
{
id: "m11",
name: "小满",
title: "咖啡馆主理人",
city: "大理",
tags: ["手冲", "音乐会", "徒步"],
avatar: "https://images.unsplash.com/photo-1544168190-79c17527004f?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "店在古城边。来大理一定请你喝手冲。",
vibe: "松弛",
online: true,
lookingFor: "欢迎路过的游民串门",
gender: "f",
languages: ["中文"],
availability: "店里随时欢迎",
timezone: "CST (UTC+8)",
},
{
id: "m12",
name: "Hugo",
title: "游民教练",
city: "里斯本",
tags: ["签证", "地理套利", "跑步"],
avatar: "https://images.unsplash.com/photo-1615109398623-88346a601842?auto=format&fit=crop&w=400&h=400&q=80&crop=faces",
bio: "帮过上百人规划第一站。Coffeechat 从不冷场。",
vibe: "温暖",
online: false,
lookingFor: "想认识想出发的你",
gender: "m",
languages: ["English", "Français", "中文"],
availability: "可预约 1v1",
timezone: "WET (UTC+0)",
},
];
export function findRosterMember(
id: string,
extra: SocialRosterMember[] = [],
): SocialRosterMember | undefined {
return (
extra.find((m) => m.id === id) || MOCK_ROSTER.find((m) => m.id === id)
);
}
/** 仅演示用,禁止当作真实运营数据展示 */
export const SOCIAL_PROOF = {
onlineNow: MOCK_ROSTER.filter((m) => m.online).length,
members: 1280,
meetupsWeek: 6,
cities: 42,
isDemo: true as const,
};