nomadro/src/modules/audience
Eric 9b7ffb24dc Ship social-first admin console, soft trials, and safer join gates.
Rebuild admin.nomadro.com around community ops, add configurable free peeks instead of nav locks, humanize user copy, and harden UGC/liveness admin APIs with backup/self-test scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 23:47:04 +08:00
..
cn Ship social-first admin console, soft trials, and safer join gates. 2026-11-04 23:47:04 +08:00
intl Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
detect.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
index.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
README.md Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
resolve.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
track.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
types-track.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
types.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
use-audience-module.ts Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00

audience — 中文 / 国际横切模块

.com 默认 intl;中文用户走 cn 特殊线。

audience/
  detect.ts          # 微信 UA + is-china-user
  resolve.ts         # resolveAudienceBundle()
  use-audience-module.ts
  cn/                # 支付·登录·关注·文案·VIP·埋点·社群
  intl/
  index.ts           # 唯一公共面
import { resolveAudienceBundle, useAudienceModule } from "~/modules/audience"

const { module, lane, profile } = resolveAudienceBundle()
module.pay.resolve(ua)
module.login.primary
module.follow.defaultChannel
module.copy.vipCtaFallback
module.ebook.showPdfBuy / showCryptoSupport  // 仅 intl
module.vip / .track / .social

小册封面 PDF 购买 / 加密货币 Coffee·Lunch·Sponsor 只给英语读者(intl.ebook);中文轨强制隐藏。

新增能力:同时改 cn/ 与 intl/,并扩 AudienceModule 类型。禁止页面 if (isChina)。