nomadro/apps/miniprogram/h5/src/data/socialCatalog.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

245 lines
5.7 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.

import type {
SocialCafe,
SocialChannel,
SocialChatMessage,
SocialEbook,
SocialGig,
SocialMeetup,
SocialTeamKind,
SocialVideo,
} from './socialTypes'
export const SEED_CHANNELS: SocialChannel[] = [
{ id: "general", name: "#general", topic: "游民闲聊 · 报到打卡", members: 128 },
{ id: "chiangmai", name: "#chiangmai", topic: "清迈同城 · cowork / visa", members: 64 },
{ id: "meetup-live", name: "#meetup-live", topic: "线上活动文字房", members: 42 },
{ id: "coffee", name: "#coffeechat", topic: "咖啡馆约见协调", members: 31 },
];
export const SEED_MESSAGES: SocialChatMessage[] = [
{
id: "m1",
channelId: "general",
author: "林远",
text: "欢迎来到游民社区实时聊天室 👋 先报个到:你在哪座城?",
at: "2026-10-28T09:00:00.000Z",
},
{
id: "m2",
channelId: "general",
author: "Mika",
text: "清迈第三周,Nimman 找 cowork,有人一起吗?",
at: "2026-10-28T09:12:00.000Z",
},
{
id: "m3",
channelId: "chiangmai",
author: "Ken",
text: "Graph Table 二楼靠窗位 WiFi 稳,插座够。",
at: "2026-10-29T02:20:00.000Z",
},
{
id: "m4",
channelId: "meetup-live",
author: "Host",
text: "今晚 20:00 开视频见面,文字也可以在这儿继续聊。",
at: "2026-10-30T08:00:00.000Z",
},
];
export const SEED_CAFES: SocialCafe[] = [
{
id: "graph-table",
name: "Graph Table",
city: "清迈",
wifiMbps: 80,
power: "座位大多有插座",
vibe: "安静 · 设计感",
partners: true,
rating: 4.7,
reviews: 18,
},
{
id: "camp",
name: "Camp",
city: "清迈",
wifiMbps: 100,
power: "全覆盖",
vibe: "社区感 · 活动多",
partners: true,
rating: 4.6,
reviews: 24,
},
{
id: "blink",
name: "Blink Cowork",
city: "槟城",
wifiMbps: 120,
power: "全覆盖",
vibe: "海风 · 开放工位",
partners: false,
rating: 4.4,
reviews: 9,
},
{
id: "forest",
name: "Forest Coffee",
city: "大理",
wifiMbps: 40,
power: "靠窗有限",
vibe: "慢节奏 · 适合深谈",
partners: true,
rating: 4.5,
reviews: 11,
},
];
export const SEED_MEETUPS: SocialMeetup[] = [
{
id: "wk-nomad-office",
title: "周三线上办公室",
city: "Online",
date: "2026-11-05",
time: "20:00",
mode: "online",
mirotalkRoom: "nomadro-social-office",
channelId: "meetup-live",
},
{
id: "visa-ama",
title: "签证 AMA · 东南亚",
city: "Online",
date: "2026-11-08",
time: "21:00",
mode: "hybrid",
mirotalkRoom: "nomadro-visa-ama",
channelId: "meetup-live",
},
];
export const SEED_VIDEOS: SocialVideo[] = [
{
id: "cm-morning",
title: "清迈的周二早晨",
city: "清迈",
minutes: 12,
coverEmoji: "🛵",
summary: "咖啡馆办公、时区套利、同城聚餐。",
},
{
id: "penang-walk",
title: "槟城街头访谈",
city: "槟城",
minutes: 8,
coverEmoji: "🎙",
summary: "两位远程设计师聊租金与 cowork。",
},
{
id: "dali-date",
title: "大理 Coffeechat 实录",
city: "大理",
minutes: 15,
coverEmoji: "☕",
summary: "线下约见流程:场地、合照、评价。",
},
];
export const SEED_EBOOKS: SocialEbook[] = [
{
id: "social-playbook",
title: "游民社区怎么玩",
chapters: 6,
minutes: 35,
blurb: "怎么认识人、开视频、约咖啡、一起做事,一篇说清楚。",
},
{
id: "roster-guide",
title: "怎么写好自我介绍",
chapters: 4,
minutes: 20,
blurb: "写几句让同城的人找到你,也不用写得很正式。",
},
];
export const SEED_GIGS: SocialGig[] = [
{
id: "vol-welcome",
title: "欢迎新人的帮手",
role: "帮忙志愿",
pay: "公益积分 / 社群徽章",
remote: true,
kind: "volunteer",
tags: ["带新人", "答疑", "周报"],
},
{
id: "vol-event",
title: "线下见面局帮手",
role: "帮忙志愿",
pay: "活动席位优先",
remote: false,
kind: "volunteer",
tags: ["约咖啡", "合照", "场地协调"],
},
{
id: "ops-assistant",
title: "运营 / 拍摄助理",
role: "大学生兼职",
pay: "按场次结算",
remote: true,
kind: "parttime",
tags: ["拍摄", "剪辑", "活动跟场"],
},
{
id: "community-mod",
title: "社群值班主持人",
role: "线上兼职",
pay: "月度津贴",
remote: true,
kind: "parttime",
tags: ["聊天室", "视频见面主持"],
},
{
id: "content-pt",
title: "内容兼职编辑",
role: "线上兼职",
pay: "按篇结算",
remote: true,
kind: "parttime",
tags: ["小册", "视频字幕", "社媒"],
},
{
id: "ft-community",
title: "社群运营负责人",
role: "全职 · 线上优先",
pay: "面议 · 季度复盘",
remote: true,
kind: "fulltime",
tags: ["增长", "活动", "认识人"],
},
{
id: "ft-fullstack",
title: "全栈工程师",
role: "全职 · 线上",
pay: "面议",
remote: true,
kind: "fulltime",
tags: ["Next.js", "FastAPI", "小程序"],
},
];
export const TEAM_KIND_LABEL: Record<SocialTeamKind, string> = {
volunteer: "帮忙志愿",
parttime: "兼职机会",
fulltime: "全职机会",
};
/**
* 自研 MiroTalk:生产同域 `/join`(nginx → :9300),禁止跳 mirotalk.*。
* H5 在浏览器里用当前 origin;小程序原生厅走 LivePusher,不依赖此 URL。
*/
export const MIROTALK_URL =
typeof window !== 'undefined' &&
/^(www\.)?nomadro\.(cn|com)$/.test(window.location.hostname)
? window.location.origin
: 'https://nomadro.cn'