diff --git a/src/modules/social/app/community.css b/src/modules/social/app/community.css
new file mode 100644
index 0000000..e014c9c
--- /dev/null
+++ b/src/modules/social/app/community.css
@@ -0,0 +1,469 @@
+/* Social experience: one visual system for discovery, connection and collaboration. */
+.social-skin {
+ --community-bg: #0b1115;
+ --community-surface: #111b20;
+ --community-raised: #172329;
+ --community-line: rgba(181, 208, 211, .13);
+ --community-ink: #eef5f3;
+ --community-muted: #9aaeb3;
+ --community-mint: #79ded0;
+ --community-coral: #ff9a82;
+ --community-amber: #eed599;
+}
+[data-theme="light"] .social-skin {
+ --community-bg: #f4f7f6;
+ --community-surface: #fff;
+ --community-raised: #eaf0ed;
+ --community-line: rgba(24, 55, 55, .15);
+ --community-ink: #172e31;
+ --community-muted: #53696b;
+ --community-mint: #197669;
+ --community-coral: #ad4c31;
+ --community-amber: #8b681b;
+}
+.social-skin .community-home { background: var(--community-bg); color: var(--community-ink); }
+.social-skin :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--community-mint); outline-offset: 4px; }
+.social-skin :is(input, select, textarea) { scroll-margin-top: 110px; }
+.social-skin :is(.community-section, #discover, .community-faq) { scroll-margin-top: 105px; }
+.social-skin .container { max-width: 1200px; padding-inline: 28px; }
+.social-skin .community-home .navbar, .social-skin .social-workspace .navbar { z-index: 1000; height: 76px; padding: 0; background: color-mix(in srgb, var(--community-bg) 90%, transparent); backdrop-filter: blur(20px); border-bottom: 1px solid var(--community-line); }
+.social-skin :is(.community-home, .social-workspace) .nav-container { max-width: 1200px; width: 100%; height: 76px; border: 0; border-radius: 0; padding: 0 28px; background: transparent; box-shadow: none; gap: 24px; }
+.social-skin .nav-links { gap: 6px; }
+.social-skin .nav-group-btn { min-height: 44px; padding: 10px 14px; color: var(--community-muted); font-size: 13px; gap: 7px; }
+.social-skin .nav-group-caret { width: 13px; height: 13px; transition: transform .2s; }
+.social-skin .nav-group.open .nav-group-caret { transform: rotate(180deg); }
+.social-skin .nav-group.open .nav-group-btn, .social-skin .nav-group.is-active .nav-group-btn { color: var(--community-ink); background: var(--community-raised); }
+.social-skin .nav-group-panel { top: calc(100% + 15px); left: 50%; transform: translateX(-50%); width: 440px; padding: 12px; border-radius: 18px; background: var(--community-surface); border: 1px solid var(--community-line); box-shadow: 0 22px 70px #0005; }
+.social-skin .nav-group-panel::before { content: ""; position: absolute; height: 20px; inset: -20px 0 auto; }
+.social-skin .nav-group:last-child .nav-group-panel { width: 580px; }
+.social-skin .nav-panel-heading { padding: 10px 12px 16px; border-bottom: 1px solid var(--community-line); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
+.social-skin .nav-panel-heading > span { font-size: 13px; font-weight: 600; color: var(--community-ink); }
+.social-skin .nav-panel-heading small { font-size: 10px; color: var(--community-muted); }
+.social-skin .nav-panel-entries { display: grid; gap: 4px; }
+.social-skin .nav-group:last-child .nav-panel-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+.social-skin .nav-panel-entries a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 76px; white-space: normal; border: 1px solid transparent; border-radius: 10px; color: var(--community-ink); font-weight: 400; }
+.social-skin .nav-panel-entries a:hover, .social-skin .nav-panel-entries a[aria-current="page"] { background: var(--community-raised); border-color: var(--community-line); color: var(--community-mint); }
+.nav-entry-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--community-mint) 9%, transparent); color: var(--community-mint); }
+.nav-entry-copy { flex: 1; min-width: 0; }
+.nav-entry-copy strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
+.nav-entry-copy small { display: block; color: var(--community-muted); line-height: 1.55; font-size: 11px; }
+.nav-entry-arrow { flex-shrink: 0; opacity: .4; }
+.social-skin .nav-actions { gap: 5px; }
+.social-skin .nav-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 36px; border: 0; color: var(--community-muted); background: transparent; border-radius: 10px; cursor: pointer; }
+.social-skin .nav-icon-btn:hover { background: var(--community-raised); color: var(--community-ink); }
+.social-skin .nav-icon-btn > span { font-size: 10px; }
+.social-skin .social-search-trigger kbd { display: none; }
+.social-skin .social-nav-login { background: transparent; border: 0; min-width: 44px; box-shadow: none; color: var(--community-muted); }
+.social-skin .social-nav-join { background: var(--community-mint); color: var(--community-bg); border: 0; border-radius: 10px; box-shadow: none; font-size: 12px; }
+.social-skin .social-journey-nav { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--community-line); min-width: 0; }
+.social-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--community-muted); white-space: nowrap; }
+.social-breadcrumb > a { display: grid; place-items: center; width: 32px; height: 44px; }
+.social-journey-links { display: flex; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
+.social-journey-links > a { display: inline-flex; align-items: center; flex-shrink: 0; gap: 7px; padding: 9px 12px; min-height: 44px; color: var(--community-muted); font-size: 11px; border-radius: 9px; }
+.social-journey-links > a[aria-current="page"] { color: var(--community-mint); background: color-mix(in srgb, var(--community-mint) 9%, transparent); }
+.social-skin .social-workspace-grid { padding-top: 110px; }
+.social-skin .social-workspace .social-page-head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--community-line); }
+.social-skin .social-page-head h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
+.social-skin .social-page-head-mark { display: none; }
+.social-skin .social-page-head-accent { color: var(--community-mint); }
+.social-skin .social-page-head-eyebrow { font-size: 11px; letter-spacing: .08em; color: var(--community-mint); }
+.social-skin .social-page-head-desc { max-width: 680px; font-size: 13px; line-height: 1.9; }
+.social-skin .social-demo-badge { font-size: 11px; }
+.social-skin .social-workspace-footer { border-top: 1px solid var(--community-line); margin-top: 48px; padding: 30px 0; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 11px; color: var(--community-muted); }
+.social-skin .social-workspace-footer > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
+.social-skin .social-workspace-footer :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
+.community-home > .social-workspace-footer { max-width: 1144px; margin: 0 auto; }
+.community-announcement { position: relative; margin-top: 76px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 24px; color: var(--community-mint); background: color-mix(in srgb, var(--community-mint) 8%, transparent); font-size: 12px; }
+.community-hero { position: relative; padding: 156px 0 0; overflow: clip; }
+.community-announcement + .community-hero { padding-top: 65px; }
+.community-hero::before { content: ""; pointer-events: none; position: absolute; width: 750px; height: 650px; top: -70px; right: -180px; background: radial-gradient(ellipse, color-mix(in srgb, var(--community-mint) 6%, transparent), transparent 68%); }
+.community-hero-layout { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: 60px; }
+.community-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--community-mint); }
+.community-signal { display: inline-block; width: 7px; height: 7px; background: var(--community-mint); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--community-mint) 9%, transparent); }
+.community-hero h1 { margin: 0; font-size: clamp(38px, 4.6vw, 66px); letter-spacing: -.055em; line-height: 1.25; font-weight: 600; color: var(--community-ink); text-wrap: balance; }
+.community-hero h1 > span { color: var(--community-mint); }
+.community-hero-lead { margin: 24px 0 26px; max-width: 470px; color: var(--community-muted); line-height: 1.95; font-size: 14px; }
+.community-hero-search { display: flex; gap: 12px; align-items: center; border: 1px solid var(--community-line); border-radius: 12px; max-width: 480px; padding: 6px 6px 6px 16px; background: var(--community-surface); color: var(--community-muted); }
+.community-hero-search:focus-within { border-color: var(--community-mint); }
+.community-hero-search input { flex: 1; width: 100%; min-width: 0; outline: none; background: transparent; border: 0; color: var(--community-ink); padding: 10px 0; font: inherit; font-size: 12px; }
+.community-hero-search button { width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--community-mint); color: var(--community-bg); cursor: pointer; }
+.community-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
+.social-skin .community-home .social-btn.primary { background: var(--community-mint); color: var(--community-bg); box-shadow: none; border: 1px solid transparent; border-radius: 10px; padding: 13px 20px; min-height: 48px; font-size: 12px; }
+.community-text-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; color: var(--community-ink); font-size: 12px; }
+.community-text-link:hover { color: var(--community-mint); }
+.community-hero-note { display: flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--community-muted); font-size: 10px; line-height: 1.6; }
+.community-mini-avatars { display: flex; padding-left: 6px; flex-shrink: 0; }
+.community-mini-avatars > * { margin-left: -6px; border: 2px solid var(--community-bg); border-radius: 50%; }
+.community-world { position: relative; isolation: isolate; min-height: 440px; border: 1px solid var(--community-line); border-radius: 24px; background: radial-gradient(ellipse at 55% 35%, color-mix(in srgb, var(--community-mint) 5%, transparent), transparent 65%), var(--community-surface); }
+.community-world-grid { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(var(--community-line) 1px, transparent 1px), linear-gradient(90deg, var(--community-line) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse, #0008, transparent 75%); }
+.community-world-orbit { position: absolute; top: 42%; left: 50%; width: 255px; height: 255px; transform: translate(-50%, -50%); border: 1px solid color-mix(in srgb, var(--community-mint) 13%, transparent); border-radius: 50%; }
+.community-world-orbit.orbit-two { width: 340px; height: 340px; border-style: dashed; opacity: .7; }
+.community-world-orbit.orbit-three { width: 160px; height: 160px; }
+.community-world-orbit.orbit-two::after { content: ""; position: absolute; height: 8px; width: 8px; background: var(--community-coral); border-radius: 50%; top: 22%; right: 5%; box-shadow: 0 0 20px color-mix(in srgb, var(--community-coral) 30%, transparent); }
+.community-world-center { position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; flex-direction: column; gap: 12px; color: var(--community-mint); }
+.community-world-center > span { font-size: 12px; white-space: nowrap; letter-spacing: -.03em; }
+.community-world-center > small { font-size: 6px; letter-spacing: .22em; color: var(--community-muted); }
+.community-world-person { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--community-line); border-radius: 13px; background: var(--community-surface); box-shadow: 0 12px 30px #0002; transition: translate .2s, border-color .2s; }
+.community-world-person:hover { translate: 0 -4px; border-color: var(--community-mint); }
+.community-world-person strong { display: block; font-size: 12px; margin-bottom: 6px; color: var(--community-ink); }
+.community-world-person small { display: flex; gap: 4px; align-items: center; color: var(--community-muted); font-size: 9px; }
+.community-world-person > svg { color: var(--community-muted); margin-left: 4px; }
+.community-world-person.person-0 { top: 40px; left: -22px; rotate: -5deg; }
+.community-world-person.person-1 { top: 110px; right: -18px; rotate: 5deg; }
+.community-world-person.person-2 { top: 235px; left: 10px; rotate: -3deg; }
+.community-world-coffee { position: absolute; bottom: 52px; right: -12px; display: flex; align-items: center; gap: 12px; background: var(--community-raised); border: 1px solid var(--community-line); border-radius: 12px; padding: 16px; }
+.community-world-coffee > span { color: var(--community-coral); }
+.community-world-coffee strong { display: block; font-size: 11px; margin-bottom: 6px; }
+.community-world-coffee small { font-size: 9px; color: var(--community-muted); }
+.community-world-coffee > svg { color: var(--community-muted); }
+.community-world-caption { position: absolute; display: flex; justify-content: space-between; gap: 12px; bottom: 0; left: 20px; right: 20px; padding: 15px 0; border-top: 1px solid var(--community-line); color: var(--community-muted); font-size: 8px; letter-spacing: .03em; }
+.community-world-caption > span:first-child { display: flex; align-items: center; gap: 6px; }
+.community-hero-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 44px; padding-bottom: 28px; margin-top: 35px; border-bottom: 1px solid var(--community-line); font-size: 9px; color: var(--community-muted); letter-spacing: .06em; }
+.community-hero-foot > a { display: flex; align-items: center; gap: 9px; min-height: 44px; }
+.social-skin .community-home .social-intent-guide { margin-top: 38px; margin-bottom: 20px; }
+.social-skin .community-home .intent-heading { display: none; }
+.social-skin .community-home .intent-options button { min-height: 56px; border-radius: 10px; font-size: 12px; background: transparent; border-color: var(--community-line); }
+.social-skin .community-home .intent-options button[aria-pressed="true"] { color: var(--community-mint); border-color: color-mix(in srgb, var(--community-mint) 50%, transparent); background: color-mix(in srgb, var(--community-mint) 6%, transparent); }
+.social-skin .community-home .intent-panel { background: var(--community-surface); border: 1px solid var(--community-line); border-radius: 14px; padding: 24px; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 24px; }
+.social-skin .community-home .intent-art { width: 66px; height: 66px; }
+.social-skin .community-home .intent-art > svg { width: 27px; }
+.social-skin .community-home .intent-panel-copy h3 { font-size: 19px; }
+.social-skin .community-home .intent-panel-copy > p:last-child { font-size: 12px; }
+.social-skin .community-home .intent-step { font-size: 9px; }
+.community-section { padding-top: 78px; padding-bottom: 20px; }
+.community-section-head { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 26px; }
+.community-section-head .community-kicker { margin-bottom: 15px; }
+.community-kicker > span:not(.community-signal) { font-size: 9px; color: var(--community-muted); padding-right: 10px; border-right: 1px solid var(--community-line); }
+.community-section-head h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1.4; }
+.community-section-head > div > p:last-child { margin: 0; max-width: 620px; color: var(--community-muted); font-size: 12px; line-height: 1.8; }
+.community-section-head > a { flex-shrink: 0; }
+.community-city-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
+.community-city-filters button { border: 1px solid var(--community-line); border-radius: 8px; padding: 10px 14px; min-height: 44px; background: transparent; color: var(--community-muted); font-size: 11px; cursor: pointer; }
+.community-city-filters button[aria-pressed="true"] { background: var(--community-raised); color: var(--community-mint); }
+.community-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
+.community-person-card { background: var(--community-surface); border: 1px solid var(--community-line); border-radius: 15px; padding: 22px; transition: border-color .2s, translate .2s; min-width: 0; }
+.community-person-card:hover { border-color: color-mix(in srgb, var(--community-mint) 45%, transparent); translate: 0 -3px; }
+.community-person-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
+.community-follow { width: 44px; height: 44px; border: 1px solid var(--community-line); border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--community-muted); cursor: pointer; }
+.community-follow[aria-pressed="true"] { color: var(--community-mint); background: color-mix(in srgb, var(--community-mint) 10%, transparent); border-color: var(--community-mint); }
+.community-person-card > a { display: block; }
+.community-person-card h3 { font-size: 18px; font-weight: 500; margin: 0 0 7px; }
+.community-person-title { font-size: 11px; color: var(--community-muted); margin: 0 0 9px; }
+.community-person-city { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--community-muted); }
+.community-person-want { font-size: 12px; color: var(--community-ink); margin: 20px 0 14px; min-height: 40px; line-height: 1.75; }
+.community-person-tags { display: flex; flex-wrap: wrap; gap: 5px; }
+.community-person-tags > span { font-size: 9px; padding: 5px 8px; border-radius: 5px; background: var(--community-raised); color: var(--community-muted); }
+.community-person-link { border-top: 1px solid var(--community-line); padding-top: 16px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--community-mint); }
+.community-data-note { font-size: 10px; line-height: 1.9; color: var(--community-muted); margin: 16px 0 0; }
+.community-data-note > a { color: var(--community-mint); display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-left: 4px; }
+.community-cities-section { margin-top: 50px; padding-bottom: 32px; border-block: 1px solid var(--community-line); background: color-mix(in srgb, var(--community-surface) 40%, transparent); }
+.community-cities-section .community-section { padding-top: 52px; }
+.community-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
+.community-city-card { border-radius: 14px; overflow: hidden; background: var(--community-surface); border: 1px solid var(--community-line); }
+.community-city-image { aspect-ratio: 1.4; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; color: #fff; background-color: #173636; }
+.community-city-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #06171ac4); }
+.community-city-image > * { position: relative; z-index: 1; }
+.community-city-image > span { font-size: 10px; }
+.community-city-card > div:last-child { padding: 18px; }
+.community-city-card h3 { font-size: 19px; font-weight: 500; margin: 0 0 9px; }
+.community-city-card p { color: var(--community-muted); font-size: 10px; margin: 0; line-height: 1.8; }
+.community-coffee-band { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--community-line); padding-top: 28px; margin-top: 30px; }
+.community-band-icon { color: var(--community-coral); display: grid; place-items: center; width: 50px; height: 55px; flex-shrink: 0; }
+.community-coffee-band h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
+.community-coffee-band p { font-size: 11px; color: var(--community-muted); line-height: 1.8; margin: 0; }
+.community-coffee-band > a { margin-left: auto; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--community-line); background: transparent; color: var(--community-ink); }
+.community-conversation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
+.community-chat-feature { position: relative; border: 1px solid var(--community-line); background: var(--community-surface); border-radius: 18px; padding: 30px; overflow: hidden; }
+.community-feature-mark { color: var(--community-mint); position: absolute; right: 28px; top: 26px; }
+.community-chat-feature .community-kicker { font-size: 8px; }
+.community-chat-feature h3 { font-size: 25px; font-weight: 500; max-width: 320px; line-height: 1.5; letter-spacing: -.035em; margin: 0 0 14px; }
+.community-chat-feature > p:not(.community-kicker) { color: var(--community-muted); font-size: 12px; line-height: 1.9; max-width: 350px; }
+.community-feature-link { display: flex; gap: 10px; align-items: center; color: var(--community-mint); font-size: 12px; margin-top: 24px; min-height: 44px; }
+.community-chat-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
+.community-chat-bubbles > span { padding: 10px 16px; border-radius: 12px 12px 12px 3px; background: var(--community-raised); color: var(--community-muted); font-size: 10px; }
+.community-chat-bubbles > span:last-child { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: color-mix(in srgb, var(--community-mint) 9%, transparent); color: var(--community-mint); }
+.community-lounge-list { display: flex; flex-direction: column; justify-content: center; }
+.community-lounge-list > a { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--community-line); padding: 23px 0; }
+.community-lounge-icon { display: grid; place-items: center; width: 48px; height: 55px; border-radius: 12px; background: var(--community-raised); color: var(--community-mint); flex-shrink: 0; }
+.community-lounge-list > a > div { flex: 1; min-width: 0; }
+.community-lounge-list small { font-size: 8px; color: var(--community-muted); letter-spacing: .08em; }
+.community-lounge-list h3 { font-size: 16px; font-weight: 500; margin: 8px 0; }
+.community-lounge-list > a p { color: var(--community-muted); font-size: 10px; margin: 0; }
+.community-lounge-list > a > svg { color: var(--community-muted); flex-shrink: 0; }
+.community-build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
+.community-build-card { --build-color: var(--community-mint); display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--community-line); border-radius: 16px; background: var(--community-surface); transition: border-color .2s; }
+.community-build-card.coral { --build-color: var(--community-coral); }
+.community-build-card.amber { --build-color: var(--community-amber); }
+.community-build-card:hover { border-color: var(--build-color); }
+.community-build-card > svg:first-child { color: var(--build-color); margin-bottom: 25px; }
+.community-build-card > span { font-size: 10px; color: var(--build-color); margin-bottom: 12px; }
+.community-build-card h3 { font-size: 22px; font-weight: 500; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.035em; }
+.community-build-card p { color: var(--community-muted); font-size: 11px; line-height: 1.9; margin: 0 0 20px; }
+.community-build-card > svg:last-child { color: var(--build-color); margin-top: auto; align-self: flex-end; }
+.community-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding-top: 90px; padding-bottom: 65px; }
+.community-faq h2 { font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1.5; margin: 0 0 24px; }
+.community-faq details { border-bottom: 1px solid var(--community-line); }
+.community-faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 13px; line-height: 1.75; padding: 20px 0; list-style: none; }
+.community-faq summary::-webkit-details-marker { display: none; }
+.community-faq summary > span { color: var(--community-mint); font-size: 19px; font-weight: 300; transition: rotate .2s; }
+.community-faq details[open] summary > span { rotate: 45deg; }
+.community-faq details p { font-size: 12px; line-height: 1.95; margin: 0 30px 20px 0; color: var(--community-muted); }
+.community-invite { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; border-radius: 20px; border: 1px solid var(--community-line); background: var(--community-surface); margin-top: 25px; margin-bottom: 65px; width: calc(100% - 56px); max-width: 1144px !important; }
+.community-invite h2 { font-size: clamp(27px, 3.3vw, 38px); font-weight: 500; letter-spacing: -.04em; margin: 0 0 14px; }
+.community-invite p { color: var(--community-muted); line-height: 1.9; font-size: 12px; max-width: 550px; margin: 0; }
+.community-invite .community-kicker { margin-bottom: 18px; font-size: 9px; }
+.community-invite > button { flex-shrink: 0; }
+.community-invite-compass { position: absolute; right: 70px; top: -28px; z-index: -1; color: var(--community-mint); opacity: .08; rotate: 20deg; }
+.social-command-search { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--community-line); border-radius: 10px; color: var(--community-mint); background: var(--community-bg); }
+.social-command-search input { width: 100%; min-height: 42px; background: transparent; color: var(--community-ink); border: 0; outline: none; font: inherit; font-size: 16px; min-width: 0; }
+.social-command-results { margin-top: 12px; max-height: min(55dvh, 460px); overflow-y: auto; }
+.social-command-results > a { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 12px 10px; border-radius: 10px; }
+.social-command-results > a:hover, .social-command-results > a:focus-visible { background: var(--community-raised); }
+.social-command-results > a > span:nth-child(2) { flex: 1; min-width: 0; }
+.social-command-results strong { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
+.social-command-results strong small { font-size: 9px; color: var(--community-muted); }
+.social-command-results em { display: block; font-size: 11px; color: var(--community-muted); font-style: normal; line-height: 1.7; margin-top: 4px; }
+.social-command-hint, .social-command-empty { font-size: 11px; color: var(--community-muted); text-align: center; padding-top: 15px; }
+.social-skin .social-dialog-sheet { background: var(--community-surface); color: var(--community-ink); border-color: var(--community-line); }
+.social-skin .social-dialog-sheet > header { background: var(--community-surface); color: var(--community-ink); border-bottom: 1px solid var(--community-line); }
+.social-skin .social-dialog-sheet > header button { min-width: 44px; min-height: 44px; color: var(--community-muted); }
+.social-skin .people-connection-card { background: var(--community-surface); border-color: var(--community-line); }
+.social-skin .people-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+.social-skin .people-toolbar { background: var(--community-surface); border: 1px solid var(--community-line); }
+.social-skin .people-refinements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+.people-card-example { font-size: 9px; color: var(--community-muted); font-weight: 400; margin-left: 8px; }
+.social-skin .people-card-top { align-items: flex-start; }
+.social-skin .people-card-top h2 { display: block; margin-top: 3px; }
+.social-skin .people-card-bottom { gap: 10px; }
+.people-card-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--community-mint); margin-top: 12px; }
+.social-skin .people-connection-card .people-card-tags button { min-height: 36px; }
+.social-skin .social-resource-kind-nav { display: flex; flex-wrap: wrap; gap: 8px; }
+.social-skin .social-role-card, .social-skin .social-event-card, .social-skin .social-library-card { border-color: var(--community-line); }
+.social-skin .social-role-card h2, .social-skin .social-library-card h2 { line-height: 1.5; }
+.social-skin .social-inline-notice { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border: 1px solid var(--community-line); background: var(--community-surface); border-radius: 12px; font-size: 12px; line-height: 1.8; color: var(--community-muted); }
+.community-person-top > img, .community-world-person > img, .community-mini-avatars img, .people-card-top > a > img { border-radius: 50%; object-fit: cover; }
+.cf-host-search { display: flex; flex-direction: column; gap: 9px; font-size: 11px; color: var(--community-muted); margin: 24px 0; max-width: 520px; }
+.cf-host-search input { background: var(--community-surface); color: var(--community-ink); border: 1px solid var(--community-line); border-radius: 10px; min-height: 48px; padding: 12px 16px; font-size: 16px; width: 100%; }
+.community-skill-swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 24px 0; }
+.community-skill-swap small { color: var(--community-muted); font-size: 10px; }
+.community-skill-swap :is(h2, h3) { font-size: 17px; font-weight: 500; line-height: 1.6; margin: 8px 0 0; }
+.community-skill-swap > svg { color: var(--community-mint); }
+.social-skin .social-skills-card { background: var(--community-surface); border: 1px solid var(--community-line); border-radius: 15px; }
+.social-skin .social-inline-notice .social-save { margin-left: auto; flex-shrink: 0; }
+.social-skin .sm-discover.is-h5 .sm-discover-topbar { display: flex; align-items: center; gap: 8px; padding: 0 14px; pointer-events: auto; }
+.social-skin .sm-discover.is-h5 .sm-discover-search { min-width: 0; flex: 1; width: auto; }
+.social-skin .sm-discover.is-h5 .sm-discover-search input { min-width: 0; font-size: 16px; }
+.social-skin .sm-discover.is-h5 .sm-mode-switch { flex-shrink: 0; }
+.social-skin .sm-discover.is-h5 .sm-mode-switch button { min-height: 44px; padding: 10px; }
+@media (min-width: 901px) {
+ .social-skin .nav-group:last-child .nav-group-panel { left: auto; right: -130px; transform: none; }
+}
+@media (max-width: 1100px) and (min-width: 901px) {
+ .social-skin .nav-container { gap: 12px !important; }
+ .social-skin .nav-group-btn { padding-inline: 8px; }
+ .social-skin .social-nav-login { display: none; }
+ .community-hero-layout { gap: 40px; }
+}
+@media (max-width: 900px) {
+ .social-skin .container { padding-inline: 22px; }
+ .social-skin :is(.community-home, .social-workspace) .nav-container { height: 68px; padding-inline: 16px; gap: 8px; }
+ .social-skin .community-home .navbar, .social-skin .social-workspace .navbar { height: 68px; }
+ .social-skin .social-nav-login { display: none; }
+ .social-skin .nav-actions { margin-left: auto; }
+ .social-skin .social-language-toggle > span { display: none; }
+ .social-skin .nav-links.open { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - 68px); overflow-y: auto; padding: 16px 20px calc(90px + env(safe-area-inset-bottom)); background: var(--community-bg); border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 8px; }
+ .social-skin .nav-group { width: 100%; border-bottom: 1px solid var(--community-line); }
+ .social-skin .nav-group-btn { width: 100%; justify-content: space-between; min-height: 50px; font-size: 15px; padding-inline: 12px; }
+ .social-skin .nav-group-panel, .social-skin .nav-group:last-child .nav-group-panel { position: static; width: 100%; transform: none; background: transparent; border: 0; box-shadow: none; padding: 5px 0 12px; border-radius: 0; }
+ .social-skin .nav-group-panel::before { display: none; }
+ .social-skin .nav-panel-heading { display: none; }
+ .social-skin .nav-group:last-child .nav-panel-entries { grid-template-columns: 1fr; }
+ .social-skin .nav-panel-entries a { min-height: 76px; padding-inline: 10px; }
+ .social-skin .nav-entry-copy strong { font-size: 14px; }
+ .social-skin .nav-entry-copy small { font-size: 12px; }
+ .social-skin .nav-mobile-extras { display: flex; gap: 12px; margin-top: 15px; }
+ .social-skin .nav-mobile-extras .social-nav-login { display: inline-flex; }
+ .social-skin .social-workspace.social-workspace-dense .social-workspace-grid { padding-top: 88px; }
+ .social-skin .social-journey-nav { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 24px; padding-bottom: 12px; }
+ .social-journey-links { width: 100%; margin-left: 0; }
+ .community-hero { padding-top: 118px; }
+ .community-hero-layout { gap: 36px; }
+ .community-hero h1 { font-size: clamp(35px, 4.8vw, 50px); }
+ .community-hero-lead { font-size: 12px; }
+ .community-world { min-height: 375px; }
+ .community-world-orbit.orbit-two { width: 275px; height: 275px; }
+ .community-world-person { padding: 9px; gap: 7px; }
+ .community-world-person.person-1 { right: -10px; }
+ .community-world-person.person-0 { left: -14px; }
+ .community-world-coffee { right: -5px; padding: 12px; max-width: 290px; }
+ .community-world-coffee strong { font-size: 10px; }
+ .community-people-grid, .community-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .community-build-card { padding: 22px; }
+ .community-build-card h3 { font-size: 19px; }
+ .community-invite { margin-inline: 22px; width: calc(100% - 44px); padding: 30px !important; }
+ .community-home > .social-workspace-footer { margin-inline: 22px; padding-bottom: 100px; }
+ .community-faq { gap: 36px; }
+ .social-skin .people-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+}
+@media (max-width: 600px) {
+ .social-skin .container { padding-inline: 20px; }
+ .community-hero { padding-top: 112px; }
+ .community-hero-layout { grid-template-columns: 1fr; gap: 42px; }
+ .community-hero .community-kicker { font-size: 9px; margin-bottom: 21px; }
+ .community-hero h1 { font-size: clamp(37px, 10vw, 56px); line-height: 1.28; letter-spacing: -.06em; }
+ .community-hero-lead { font-size: 13px; margin-top: 22px; line-height: 1.9; }
+ .community-hero-search input { font-size: 16px; }
+ .community-hero-search input::placeholder { font-size: 11px; }
+ .community-hero-actions { gap: 20px; margin-top: 18px; }
+ .community-hero-note { font-size: 10px; margin-top: 25px; }
+ .community-world { min-height: 330px; margin-inline: 8px; }
+ .community-world-orbit { width: 200px; height: 200px; }
+ .community-world-orbit.orbit-two { width: 265px; height: 265px; }
+ .community-world-orbit.orbit-three { width: 125px; height: 125px; }
+ .community-world-person.person-0 { top: 23px; left: -14px; }
+ .community-world-person.person-1 { top: 90px; right: -14px; }
+ .community-world-person.person-2 { top: 170px; left: -8px; }
+ .community-world-person > .social-avatar { width: 36px !important; height: 36px !important; }
+ .community-world-center > svg { width: 60px; height: 60px; }
+ .community-world-coffee { bottom: 47px; right: -8px; padding: 12px; }
+ .community-world-caption { left: 12px; right: 12px; font-size: 7px; }
+ .community-hero-foot { margin-top: 26px; padding-top: 12px; padding-bottom: 10px; }
+ .community-hero-foot > span { display: none; }
+ .social-skin .community-home .social-intent-guide { margin-top: 24px; }
+ .social-skin .community-home .intent-options { gap: 8px; }
+ .social-skin .community-home .intent-options button { font-size: 11px; min-height: 48px; gap: 7px; }
+ .social-skin .community-home .intent-panel { display: flex; flex-direction: column; align-items: stretch; padding: 21px; gap: 14px; }
+ .social-skin .community-home .intent-art { display: none; }
+ .social-skin .community-home .intent-panel-actions { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
+ .social-skin .community-home .intent-panel-actions > a { justify-content: center; }
+ .community-section { padding-top: 50px; }
+ .community-section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
+ .community-section-head h2 { font-size: 26px; margin-bottom: 13px; }
+ .community-section-head > div > p:last-child { font-size: 12px; }
+ .community-section-head > a { font-size: 11px; }
+ .community-city-filters { gap: 6px; }
+ .community-city-filters button { padding-inline: 12px; font-size: 10px; }
+ .community-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
+ .community-person-card { padding: 15px; border-radius: 12px; }
+ .community-person-top > .social-avatar { width: 44px !important; height: 44px !important; }
+ .community-follow { width: 44px; height: 44px; }
+ .community-person-card h3 { font-size: 17px; }
+ .community-person-title { line-height: 1.7; font-size: 10px; min-height: 34px; }
+ .community-person-want { font-size: 11px; min-height: 57px; }
+ .community-person-city { font-size: 9px; line-height: 1.6; }
+ .community-person-tags > span { font-size: 8px; padding-inline: 6px; }
+ .community-data-note { font-size: 9px; }
+ .community-cities-section { margin-top: 25px; padding-bottom: 14px; }
+ .community-cities-section .community-section { padding-top: 38px; }
+ .community-city-grid { gap: 10px; }
+ .community-city-image { aspect-ratio: 1.1; padding: 12px; }
+ .community-city-card > div:last-child { padding: 14px; }
+ .community-city-card h3 { font-size: 18px; }
+ .community-city-card p { font-size: 10px; }
+ .community-coffee-band { flex-wrap: wrap; gap: 15px; padding-top: 22px; }
+ .community-band-icon { display: none; }
+ .community-coffee-band h3 { font-size: 18px; line-height: 1.6; }
+ .community-coffee-band > a { margin-left: 0; width: 100%; }
+ .community-conversation-grid { grid-template-columns: 1fr; gap: 8px; }
+ .community-chat-feature { padding: 25px; }
+ .community-chat-feature h3 { font-size: 24px; }
+ .community-lounge-list > a { gap: 14px; padding: 20px 0; }
+ .community-lounge-list h3 { font-size: 15px; }
+ .community-build-grid { grid-template-columns: 1fr; gap: 12px; }
+ .community-build-card { position: relative; padding: 23px 25px 23px 76px; }
+ .community-build-card > svg:first-child { position: absolute; top: 26px; left: 24px; }
+ .community-build-card h3 { font-size: 20px; }
+ .community-build-card p { margin-bottom: 12px; }
+ .community-build-card > span { font-size: 10px; }
+ .community-build-card > svg:last-child { position: absolute; bottom: 22px; right: 20px; width: 16px; }
+ .community-faq { grid-template-columns: 1fr; gap: 14px; padding-top: 52px; padding-bottom: 25px; }
+ .community-faq h2 { font-size: 25px; margin-bottom: 10px; }
+ .community-faq .community-kicker { font-size: 8px; margin-bottom: 14px; }
+ .community-faq summary { font-size: 12px; }
+ .community-invite { flex-direction: column; align-items: flex-start; margin: 26px 20px 40px; width: calc(100% - 40px); padding: 28px 24px !important; }
+ .community-invite h2 { font-size: 28px; line-height: 1.5; }
+ .community-invite > button { width: 100%; }
+ .social-skin .people-card-grid { grid-template-columns: 1fr; }
+ .social-skin .people-refinements { grid-template-columns: 1fr; }
+ .social-skin .social-search-trigger, .social-skin .social-theme-toggle, .social-skin .social-language-toggle { min-width: 32px; }
+ .social-skin .social-brand-logo { gap: 6px; }
+ .social-skin .social-brand-word { font-size: 15px; }
+ .social-skin .social-workspace-footer { margin-top: 30px; }
+ .social-skin .social-workspace-footer > div { gap: 0 16px; }
+}
+@media (prefers-reduced-motion: no-preference) and (hover: hover) {
+ .community-world-center > svg { animation: community-breathe 7s ease-in-out infinite; }
+ @keyframes community-breathe { 50% { opacity: .55; transform: scale(.96); } }
+}
+@media (prefers-reduced-motion: reduce) {
+ .social-skin *, .social-skin *::before, .social-skin *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
+}
+
+/* Profiles use the same information hierarchy at every screen size. */
+.community-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
+.community-map-toolbar .social-search { flex: 1; max-width: 520px; }
+.community-map-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--community-line); border-radius: 11px; background: var(--community-surface); }
+.community-map-modes button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--community-muted); cursor: pointer; font-size: 12px; }
+.community-map-modes button[aria-pressed="true"] { color: var(--community-mint); background: var(--community-raised); }
+.community-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--community-line); border-radius: 18px; overflow: hidden; }
+.community-map-stage { position: relative; min-width: 0; height: 580px; overflow: hidden; background: var(--community-surface); }
+.social-skin .community-map-stage :is(.social-map-canvas-wrap, .social-map-canvas, .sm-globe, .sm-globe--skeleton, .social-map-canvas--skeleton) { height: 100%; min-height: 0; }
+.community-map-directory { height: 580px; overflow-y: auto; background: var(--community-surface); border-left: 1px solid var(--community-line); padding: 16px; }
+.community-map-directory-head { padding: 10px 4px 18px; border-bottom: 1px solid var(--community-line); margin-bottom: 10px; }
+.community-map-directory-head h2 { margin: 0 0 8px; font-size: 17px; }
+.community-map-directory-head > span { color: var(--community-muted); font-size: 12px; }
+.community-map-directory > button { display: flex; align-items: center; text-align: left; gap: 12px; width: 100%; min-height: 72px; padding: 12px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--community-ink); cursor: pointer; }
+.community-map-directory > button:hover, .community-map-directory > button[aria-pressed="true"] { background: var(--community-raised); border-color: var(--community-line); }
+.community-map-city-emoji { font-size: 24px; }
+.community-map-directory > button > span:nth-child(2) { flex: 1; }
+.community-map-directory strong { display: block; font-size: 14px; margin-bottom: 5px; }
+.community-map-directory small { font-size: 12px; color: var(--community-muted); }
+.community-map-directory > button > svg { color: var(--community-mint); }
+.community-map-selection { position: absolute; z-index: 40; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; gap: 13px; padding: 18px; background: var(--community-surface); color: var(--community-ink); border: 1px solid var(--community-line); border-radius: 14px; box-shadow: 0 12px 36px #0003; }
+.community-map-selection > button { position: absolute; right: 6px; top: -48px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--community-line); border-radius: 50%; background: var(--community-surface); color: var(--community-ink); cursor: pointer; }
+.community-map-selection > span { font-size: 28px; }
+.community-map-selection h2 { font-size: 19px; margin: 0 0 6px; }
+.community-map-selection p { font-size: 12px; color: var(--community-muted); margin: 0; }
+.community-map-selection > a { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--community-mint); font-size: 13px; min-height: 44px; }
+@media (max-width: 800px) {
+ .community-map-layout { grid-template-columns: 1fr; }
+ .community-map-stage { height: 430px; }
+ .community-map-directory { height: 320px; border-left: 0; border-top: 1px solid var(--community-line); }
+ .community-map-toolbar { flex-wrap: wrap; }
+ .community-map-toolbar .social-search { flex-basis: 100%; max-width: none; }
+}
+.social-skin .people-card-top { display: flex; gap: 13px; margin-bottom: 18px; }
+.social-skin .people-card-top > a { flex-shrink: 0; }
+.social-skin .people-card-top > div { flex: 1; min-width: 0; }
+.social-skin .people-card-top h2 { margin: 2px 0 7px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
+.social-skin .people-card-top p { margin: 0 0 8px; font-size: 13px; color: var(--community-muted); }
+.social-skin .people-card-top > div > span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--community-muted); }
+.social-skin .people-follow-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--community-line); border-radius: 50%; background: transparent; color: var(--community-muted); cursor: pointer; }
+.social-skin .people-follow-button[aria-pressed="true"] { color: var(--community-mint); background: color-mix(in srgb, var(--community-mint) 12%, transparent); border-color: var(--community-mint); }
+.social-skin .people-card-bio { font-size: 14px; line-height: 1.85; color: var(--community-ink); margin: 0 0 14px; overflow-wrap: anywhere; }
+.social-skin .people-card-looking { display: flex; align-items: baseline; gap: 7px; color: var(--community-muted); margin: 0 0 18px; font-size: 13px; }
+.social-skin .people-card-looking svg { flex-shrink: 0; }
+.social-skin .people-card-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--community-line); margin-top: 20px; padding-top: 14px; font-size: 11px; color: var(--community-muted); }
+.social-skin .people-card-bottom > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--community-mint); font-size: 12px; }
+.social-skin .people-sort { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--community-muted); }
+.social-skin .people-sort select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--community-line); border-radius: 9px; background: var(--community-surface); color: var(--community-ink); font: inherit; }
+.social-skin .people-results-bar > p { font-size: 13px; }
+.social-skin .people-card-example { display: inline-block; border: 1px solid var(--community-line); border-radius: 4px; padding: 1px 4px; vertical-align: middle; font-size: 10px; line-height: 1.5; }
+.social-skin .social-skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
+.social-skin .social-skills-card { padding: 24px; }
+.social-skin .social-skills-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
+.social-skin .social-skills-card header > span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--community-muted); }
+.social-skin .social-fieldset { display: grid; gap: 18px; padding: 0; margin: 0; border: 0; min-width: 0; }
+.social-skin .community-section-head > div > p:last-child, .social-skin .community-person-want { font-size: 14px; }
+.social-skin .community-person-title, .social-skin .community-person-city, .social-skin .community-person-link { font-size: 12px; }
+.social-skin .community-data-note { font-size: 12px; }
+.social-skin .nav-entry-copy small { font-size: 12px; }
+.social-skin .community-person-tags > span { font-size: 11px; }
+@media (max-width: 600px) {
+ .social-skin .social-skills-grid { grid-template-columns: 1fr; }
+ .social-skin .people-card-top { gap: 10px; }
+ .social-skin .people-card-top h2 { font-size: 17px; }
+ .social-skin .community-person-want { font-size: 13px; }
+ .social-skin .community-person-title { font-size: 11px; }
+ .social-skin .people-card-tags button { min-height: 44px; }
+}
diff --git a/src/modules/social/components/DateClient.tsx b/src/modules/social/components/DateClient.tsx
index b6e717d..55932ac 100644
--- a/src/modules/social/components/DateClient.tsx
+++ b/src/modules/social/components/DateClient.tsx
@@ -633,7 +633,7 @@ function DateCardFace({ member }: { member: SocialRosterMember }) {
/>
>
) : null}
- {member.online ? (
+ {member.online && !member.example ? (
{socialTx("现在在线")}
) : null}
@@ -642,7 +642,7 @@ function DateCardFace({ member }: { member: SocialRosterMember }) {
{member.gender === "f" ? "👩" : member.gender === "m" ? "👨" : "🙂"}
{" "}
- {member.name}
+ {member.name}{member.example &&
{socialTx("示例", "Example")} }
{member.gender === "f"
diff --git a/src/modules/social/components/EventDirectory.tsx b/src/modules/social/components/EventDirectory.tsx
index c975b63..f558f33 100644
--- a/src/modules/social/components/EventDirectory.tsx
+++ b/src/modules/social/components/EventDirectory.tsx
@@ -27,9 +27,11 @@ import { resolveSocialCatalog } from "@social/lib/resolveCatalog";
import { useSocialConfig } from "./SocialExperience";
import { useAudienceRoster } from "@social/lib/useAudienceRoster";
import { socialTx } from "@social/lib/socialTx";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
export default function EventDirectory() {
const config = useSocialConfig();
+ const { tx } = useSocialI18n();
const roster = useAudienceRoster();
const catalog = useMemo(
() => resolveSocialCatalog(config.copy.socialCatalogs),
@@ -53,7 +55,7 @@ export default function EventDirectory() {
- {socialTx("点进场次即开麦开摄像头,比只打字更近一点。")}
+ {tx("先选一个感兴趣的话题,进入后再决定怎样参与。", "Pick a conversation that interests you, then choose how you’d like to join.")}
- {event.mode === "hybrid" ? "可线下" : "语音厅"}
+ {event.mode === "hybrid" ? tx("可线下", "Hybrid") : event.mode === "offline" ? tx("线下见面", "In person") : tx("语音厅", "Voice lounge")}
@@ -135,13 +137,13 @@ export default function EventDirectory() {
/>
))}
- {event.title}
+ {tx(event.title)}
- {scheduled ? `${event.date} · ${event.time} ${zone === "Asia/Shanghai" ? "北京时间" : zone}` : "时间待确认"}
+ {scheduled ? `${event.date} · ${event.time} ${zone === "Asia/Shanghai" ? tx("北京时间", "China time") : zone}` : tx("时间待确认", "Schedule to follow")}
- {scheduled ? `你那边大约是:${start.toLocaleString([], {
+ {scheduled ? `${tx("你那边大约是:", "Your time: ")}${start.toLocaleString([], {
month: "short",
day: "numeric",
hour: "2-digit",
diff --git a/src/modules/social/components/HomeActionRail.tsx b/src/modules/social/components/HomeActionRail.tsx
index 7a22d52..89fdc36 100644
--- a/src/modules/social/components/HomeActionRail.tsx
+++ b/src/modules/social/components/HomeActionRail.tsx
@@ -6,6 +6,7 @@ import { ArrowUpRight, Coffee, Compass, Heart, Users } from "lucide-react";
import { socialPath } from "@social/lib/socialPath";
import { useSocialI18n } from "@social/lib/useSocialI18n";
import { useSocialConfig } from "./SocialExperience";
+import { navigationVisible } from "@social/lib/experience";
export default function HomeActionRail() {
const { tx } = useSocialI18n();
@@ -31,7 +32,9 @@ export default function HomeActionRail() {
description: tx("从技能互助到远程协作,找到可以一起行动的人和机会。", "From skill exchanges to remote collaboration, discover people and opportunities to build with."),
href: "/skills", cta: tx("探索技能互助", "Explore skill exchanges"), secondary: "/team", secondaryLabel: tx("看看共创机会", "Find collaborators"), step: tx("发现技能 → 交流想法 → 一起行动", "Discover skills → Exchange ideas → Build together") },
];
- const selected = journeys.find(journey => journey.id === intent) || journeys[0];
+ const available = journeys.filter(journey => navigationVisible(config, journey.href));
+ const selected = available.find(journey => journey.id === intent) || available[0];
+ if (!selected) return null;
const selectedCopy = config.copy.socialPages?.[`discovery-${selected.id}`];
const Icon = selected.icon;
return (
@@ -40,7 +43,7 @@ export default function HomeActionRail() {
{copy?.title || tx("今天,想从哪里开始?", "Where would you like to start?")}
- {journeys.map(journey => { const Mark = journey.icon; return setIntent(journey.id)}> {journey.label} ; })}
+ {available.map(journey => { const Mark = journey.icon; return setIntent(journey.id)}> {journey.label} ; })}
diff --git a/src/modules/social/components/HomeClient.tsx b/src/modules/social/components/HomeClient.tsx
index a1b709e..578e18a 100644
--- a/src/modules/social/components/HomeClient.tsx
+++ b/src/modules/social/components/HomeClient.tsx
@@ -1,707 +1,112 @@
"use client";
-import {
- useEffect,
- useMemo,
- useState,
- useSyncExternalStore,
- type PointerEvent,
-} from "react";
+import { useMemo, useState } from "react";
import Link from "next/link";
+import { useRouter } from "next/navigation";
+import { ArrowDown, ArrowRight, ArrowUpRight, BookOpen, Check, Coffee, Compass, Globe2, HeartHandshake, MapPin, MessageCircle, Radio, Search, Sparkles, Users, Waves } from "lucide-react";
import SiteShell from "./SiteShell";
-import AttractiveRoster from "./AttractiveRoster";
-import ConnectionHero, { ConnectionWays } from "./ConnectionHero";
-import { useHomeLivenessGate } from "./HomeStatusStrip";
-import { openSocialJoinModal } from "@social/lib/joinModal";
-import FxBelt from "./FxBelt";
-import SectionSpark from "./SectionSpark";
-import CityDirectory from "./CityDirectory";
-import HomeCoffeeEntry from "./HomeCoffeeEntry";
-import SocialBrandLogo from "./SocialBrandLogo";
import SocialAvatar from "./SocialAvatar";
-import {
- ArrowUpRight,
- BookOpen,
- Heart,
- Radio,
- Sparkles,
-} from "lucide-react";
-import { TEAM_KIND_LABEL, SEED_EBOOKS, SEED_VIDEOS } from "@social/lib/seed";
-import { resolveSocialCatalog } from "@social/lib/resolveCatalog";
-import { socialPath } from "@social/lib/socialPath";
-import { resolveSocialLandingCopy } from "@social/lib/landing";
+import HomeActionRail from "./HomeActionRail";
+import { SocialFooter } from "./SocialNavigation";
+import { useSocialConfig } from "./SocialExperience";
import { useSocialI18n } from "@social/lib/useSocialI18n";
import { useDiscoveryRoster } from "@social/lib/discoveryRoster";
-import { useSocialConfig } from "./SocialExperience";
-import { socialTx } from "@social/lib/socialTx";
-import {
- getSocialSession,
- subscribeSocialSession,
-} from "@social/lib/socialSession";
-import {
- DEFAULT_X_HANDLE,
- formatXHandle,
- xProfileUrl,
-} from "~/components/social-follow";
-import { trackFollow } from "~/lib/analytics/track";
-import { useAudienceModule } from "~/modules/audience";
-
-const DEFAULT_PROMO =
- "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4";
-
-const ROLE_EMOJI: Record
= {
- volunteer: "🙋",
- parttime: "📝",
- fulltime: "💼",
-};
+import { resolveSocialCatalog } from "@social/lib/resolveCatalog";
+import { resolveSocialLandingCopy } from "@social/lib/landing";
+import { experiencePage, homeSectionVisible, navigationVisible, safeCommunityHref } from "@social/lib/experience";
+import { SOCIAL_CITIES } from "@social/lib/cities";
+import { socialPath } from "@social/lib/socialPath";
+import { openSocialJoinModal } from "@social/lib/joinModal";
+import { setRosterLike, useRosterLikes } from "@social/lib/useRosterLikes";
export default function HomeClient() {
const config = useSocialConfig();
- const { locale, t } = useSocialI18n();
- const { followChannel } = useAudienceModule();
- const showXFollow = followChannel === "x";
+ const { t, tx, locale } = useSocialI18n();
+ const router = useRouter();
const roster = useDiscoveryRoster();
- // Dating strip: same face gate as /date — no face → never preview
- const datingRoster = useDiscoveryRoster({ requireFace: true });
- const { liveOk } = useHomeLivenessGate();
- const [activeSection, setActiveSection] = useState("people");
+ const likes = useRosterLikes();
+ const [query, setQuery] = useState("");
+ const [city, setCity] = useState("");
+ const landing = resolveSocialLandingCopy(config.copy, locale);
+ const copy = experiencePage(config, locale, "home");
+ const catalog = useMemo(() => resolveSocialCatalog(config.copy.socialCatalogs), [config.copy.socialCatalogs]);
+ const announcement = config.copy.socialExperience?.announcement;
+ const announceText = announcement?.[locale];
+ const visible = (key: string) => homeSectionVisible(config, key);
+ const cities = useMemo(() => {
+ const ids = config.copy.socialExperience?.featuredCityIds;
+ return (ids?.length ? ids.map(id => SOCIAL_CITIES.find(c => c.id === id)).filter(c => c != null) : SOCIAL_CITIES.filter(c => ["chiangmai", "dali", "bali", "lisbon"].includes(c.id))).slice(0, 4);
+ }, [config.copy.socialExperience?.featuredCityIds]);
+ const people = roster.filter(p => !city || p.city.includes(city)).slice(0, 4);
const openJoin = () => openSocialJoinModal({ reason: "cta" });
- const sessionSnap = useSyncExternalStore(
- subscribeSocialSession,
- () => JSON.stringify(getSocialSession()),
- () => "null",
- );
- const loggedIn = Boolean(
- (JSON.parse(sessionSnap) as ReturnType)?.email,
- );
- const promoUrl =
- config.copy.socialPromoUrl?.trim() ||
- (
- config.modules?.social as { promoVideoUrl?: string } | undefined
- )?.promoVideoUrl?.trim() ||
- DEFAULT_PROMO;
- const landingCopy = resolveSocialLandingCopy(config.copy, locale);
- const PATH = t.homePath;
- const catalog = useMemo(
- () => resolveSocialCatalog(config.copy.socialCatalogs),
- [config.copy.socialCatalogs],
- );
- const meetups = catalog.meetups;
- const gigs = catalog.gigs;
- // Face-ok only; soft bias women for cover strip
- const datePreview = useMemo(() => {
- const pool = datingRoster.filter(
- (m) => m.faceOk === true && Boolean((m.avatar || "").trim()),
- );
- const women = pool.filter((m) => m.gender === "f");
- const rest = pool.filter((m) => m.gender !== "f");
- return [...women, ...rest].slice(0, 3);
- }, [datingRoster]);
+ const sectionHead = (number: string, eyebrow: string, title: string, description: string, href: string, label: string) => {number} {eyebrow}
{title} {description}
{label}
;
- useEffect(() => {
- const root = document.querySelector(".social-home");
- if (!root) return;
- const reveal = new IntersectionObserver(
- (entries) =>
- entries.forEach((e) => {
- if (e.isIntersecting) {
- e.target.classList.add("visible");
- reveal.unobserve(e.target);
- }
- }),
- { threshold: 0.06, rootMargin: "0px 0px -24px 0px" },
- );
- const scan = () => {
- root
- .querySelectorAll(".reveal:not(.visible)")
- .forEach((el) => reveal.observe(el));
- };
- scan();
- root.setAttribute("data-home-motion", "ready");
- const t = window.setTimeout(scan, 400);
-
- const observer = new IntersectionObserver(
- (entries) => {
- entries.forEach((entry) => {
- if (entry.isIntersecting) setActiveSection(entry.target.id);
- });
- },
- { rootMargin: "-25% 0px -55% 0px", threshold: 0 },
- );
- root
- .querySelectorAll("section[id]:not(#hero)")
- .forEach((section) => observer.observe(section));
- return () => {
- window.clearTimeout(t);
- reveal.disconnect();
- observer.disconnect();
- root.removeAttribute("data-home-motion");
- };
- }, []);
-
- const onPanelPointerMove = (event: PointerEvent) => {
- if (event.pointerType !== "mouse") return;
- const panel = (event.target as Element).closest(
- ".social-panel",
- );
- if (!panel) return;
- const rect = panel.getBoundingClientRect();
- panel.style.setProperty("--spot-x", `${event.clientX - rect.left}px`);
- panel.style.setProperty("--spot-y", `${event.clientY - rect.top}px`);
- };
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {PATH.map((p) => {
- const external = "external" in p && p.external;
- const href = external ? socialPath(p.href) : p.href;
- if (external) {
- return (
-
-
- {p.emoji}
-
- {p.label}
-
- );
- }
- return (
-
-
- {p.emoji}
-
- {p.label}
-
- );
- })}
-
+ return
+
+
+ {announcement?.enabled && announceText && {announceText} }
+
+
+
+
{copy.eyebrow || landing.socialEyebrow}
+
+
{copy.description || tx("换一座城市,不必重新孤独。从一句你好、一杯咖啡开始,找到一起探索、一起创造的人。", "A new city doesn’t have to mean starting over alone. Find your people through a hello, a coffee, or something you build together.")}
+
+
{tx("认识同频的人", "Find your people")}
{tx("先打个招呼", "Just say hello")}
+
{roster.slice(0, 4).map(person => )} {tx("自由职业者、远程工作者和路上的你", "For freelancers, remote workers and the curious")}
-
-
-
-
-
-
-
-
-
- {socialTx("认识一下")}
- {socialTx("左右滑")}
-
-
-
- 💕
-
- {socialTx("一张一张认识新朋友")}
-
-
- {socialTx(
- "像翻相册一样:不感兴趣就跳过,想认识就留下。之后再决定要不要打招呼。",
- )}
-
-
-
- ← {socialTx("跳过")}
-
-
- → {socialTx("想认识")}
-
-
- ♥ {socialTx("稍后打招呼")}
-
-
-
-
- {socialTx("开始认识")}
-
-
-
- {socialTx("先浏览大家")}
-
-
-
-
- {datePreview.map((m, i) => (
-
- {m.online ? (
-
{socialTx("在线")}
- ) : null}
-
-
- {m.name}
- {m.title}
-
-
{m.city.split("·")[0].trim()}
-
{m.lookingFor}
-
- {m.tags.slice(0, 2).map((t) => (
- {t}
- ))}
-
-
-
- ))}
-
- {socialTx("点这里开始滑")}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {socialTx("聊天群组")}
- {socialTx("语音 · 视频")}
-
-
-
- 📡
-
- {landingCopy.socialOnlineTitle}
-
-
- {socialTx("进语音厅直接开麦开摄像头,和大家面对面聊聊。")}
-
-
-
- {meetups.map((m, i) => (
-
-
-
- 0{i + 1}
-
-
- {Array.from({ length: 14 }, (_, n) => (
-
- ))}
-
-
- {roster.slice(i, i + 4).map((p) => (
-
-
-
- ))}
-
-
-
-
-
- {m.city === "Online" ? "语音厅" : m.city}
-
-
- {m.date} · {m.time}
-
-
-
- {roster.slice(i + 1, i + 5).map((p) => (
-
- ))}
-
- {m.title}
- {socialTx("开麦 / 开视频 · 认识新朋友")}
-
- {socialTx("进入语音厅")}
-
-
-
- ))}
-
-
-
- {socialTx("看看全部")}
-
-
- {socialTx("文字群聊")}
-
-
- {t.joinCommunity}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{socialTx("地图摘要")}
-
{socialTx("热门城市聚合 · 不暴露精确位置")}
-
- {[
- socialTx("清迈"),
- socialTx("巴厘岛"),
- socialTx("大理"),
- socialTx("里斯本"),
- socialTx("成都"),
- ].map((name) => (
- {name}
- ))}
-
-
- {liveOk ? (
-
- {socialTx("打开地图")}
-
-
- ) : (
-
- {socialTx("去完善")}
-
-
- )}
-
-
-
-
- {socialTx("线下咖啡聊")}
-
-
- {socialTx("逛城市")}
-
-
- {socialTx("咖啡馆见面")}
-
-
-
-
-
-
-
-
-
-
-
-
- {socialTx("找搭子")}
- {socialTx("共创")}
-
-
-
- 🚀
-
- {landingCopy.socialTeamTitle}
-
-
- {socialTx(
- "有人在找帮手;也有人一起写小册、拍视频做共创。点卡片看看详情,合适再表达兴趣。",
- )}
-
-
-
-
-
- {socialTx("找搭子")}
-
-
- {socialTx("共创")}
-
-
-
-
- {gigs.slice(0, 3).map((g, i) => (
-
-
- {ROLE_EMOJI[g.kind || "parttime"] || "📝"}
-
-
- {TEAM_KIND_LABEL[g.kind || "parttime"]}
- {g.remote ? "线上也能做" : "可以见面做"}
-
-
{g.title}
-
{g.pay}
-
- {(g.tags || []).slice(0, 3).map((t) => (
- {t}
- ))}
-
-
- ))}
-
-
-
- {SEED_EBOOKS.slice(0, 2).map((book) => (
-
-
-
-
-
-
{socialTx("共创 · 小册")}
-
{book.title}
-
{book.blurb}
-
-
-
- ))}
- {SEED_VIDEOS.slice(0, 2).map((vid) => (
-
-
- {vid.coverEmoji}
-
-
-
{socialTx("共创 · 视频")}
-
{vid.title}
-
- {vid.city} · {vid.minutes} 分钟
-
-
-
-
- ))}
-
-
-
-
- {socialTx("更多机会")}
-
-
- {socialTx("逛共创")}
-
-
- {t.joinCommunity}
-
-
-
-
-
- {!loggedIn ? (
-
-
-
-
-
-
-
-
{t.joinCommunity}
-
{landingCopy.socialInviteTitle}
-
{landingCopy.socialInviteLead}
-
-
- {socialTx("加入游民社区")}
-
-
- ) : null}
-
-
-
-
-
-
-
-
{socialTx("认识同频的人 · 开视频聊聊 · 出来见一面 · 一起做点事")}
-
-
-
{socialTx("认识人")}
-
- {t.joinCommunity}
-
- {socialTx("想见的人")}
- {socialTx("约会")}
- {socialTx("语音厅")}
- {socialTx("大家聊天")}
-
-
-
{socialTx("见面 · 做事")}
- {socialTx("城市")}
- {socialTx("找搭子")}
- {socialTx("共创")}
- {socialTx("说说想法")}
-
-
-
{socialTx("更多")}
- {socialTx("技能交换")}
-
- {socialTx("线下咖啡聊")}
-
- {socialTx("年度回顾")}
- {socialTx("门户首页")}
- {socialTx("出海导航")}
- {socialTx("旅居社群")}
- {socialTx("数字游民小册")}
- {socialTx("博客")}
-
-
-
-
{socialTx("回看这一年的足迹与遇见")}
-
- {socialTx("年度回顾")}
-
-
-
-
- © {new Date().getFullYear()} nomadro · {socialTx("游民社区")}
-
-
+
+
+
+
same wavelength. DIFFERENT COORDINATES
+ {roster.slice(0, 3).map((person, index) =>
{person.name}{person.example && {tx("示例", "Example")} } {person.city.split("·")[0].trim()})}
+
{tx("下一杯咖啡,和新朋友。", "Your next coffee. A new friend.")} {tx("给真实的相遇留点时间", "Make a little room for connection")}
+
{tx("连接,不受坐标限制", "Connection goes beyond coordinates")}01 — 03
-
-
-
- );
+
+
+
+ {visible("discover") &&
}
+
+ {visible("people") && navigationVisible(config, "/people") &&
+ {sectionHead("01", tx("认识人", "FIND YOUR PEOPLE"), tx("下一句你好,从这里开始。", "Your next hello starts here."), tx("先看看介绍,发现共同兴趣。认识一个人,可以慢慢来。", "A shared interest, a familiar city. Good conversations begin with a little curiosity."), "/people", tx("认识更多朋友", "Explore people"))}
+ {["", ...Array.from(new Set(roster.map(p => p.city.split("·")[0].trim()))).slice(0, 5)].map(name => setCity(name)}>{name ? tx(name) : tx("所有城市", "Everywhere")} )}
+ {people.map(person =>
setRosterLike(person.id, !likes[person.id])}>{likes[person.id] ? : }
{person.name}{person.example && {tx("示例", "Example")} } {tx(person.title)}
{tx(person.city)}{tx(person.lookingFor)}
{person.tags.slice(0, 2).map(tag => {tx(tag)} )} {tx("看看介绍", "Get to know them")} )}
+ {tx("标注「示例」的资料用于体验浏览;真实成员以公开资料为准。关注保存在当前设备。", "Profiles marked “Example” let you explore the experience. Real members appear with their published details. Follows stay on this device.")} {tx("写下我的介绍", "Add your introduction")}
+ }
+
+ {visible("cities") && navigationVisible(config, "/places") &&
+ {sectionHead("02", tx("见一面", "TAKE IT OFFLINE"), tx("让陌生的城市,变熟悉。", "New city. Familiar feeling."), tx("找一家好咖啡馆,约一段有空的时间,把线上认识变成真实相遇。", "Discover a city, find your coffee spot, and make time to meet someone new."), "/places", tx("探索所有城市", "Explore cities"))}
+
{cities.map(item =>
{item.emoji} {tx(item.country)} {tx(item.name)} {tx(item.vibe)}
)}
+
{tx("一杯咖啡的时间,刚刚好。", "A coffee’s worth of time. A world of possibility.")} {tx("看看主理人的话题和可预约时间,找到聊得来的那个人。", "Find a host, pick a topic, and choose a time that works for you.")}
{tx("约杯咖啡", "Find a coffee chat")}
+
}
+
+ {visible("meetup") && navigationVisible(config, "/meetup") &&
+ {sectionHead("03", tx("聊得来", "BETTER CONVERSATIONS"), tx("隔着屏幕,也能聊得很近。", "Different places. Same conversation."), tx("文字、声音或视频,选择让你舒服的方式。", "A message, a voice, a face. Connect in a way that feels like you."), "/meetup", tx("探索语音厅", "Explore lounges"))}
+ OPEN CONVERSATION
{tx("在路上,也有个地方聊聊。", "A place to talk, wherever you are.")} {tx("聊城市、聊近况、问个小问题。从公开聊天开始认识彼此。", "Talk cities, share a little of your day, ask a question. Start in the community chat.")}
{tx("进入聊天群", "Join the conversation")} {tx("大家最近在哪座城?", "Where’s everyone these days?")} {tx("下一站,想去看看海。", "Somewhere by the sea next.")} 🌊
+
{catalog.meetups.slice(0, 3).map((event, index) =>
{tx("语音 · 视频", "VOICE · VIDEO")} / 0{index + 1} {tx(event.title)} {event.city === "Online" ? tx("线上相聚", "Meet online") : tx(event.city)} · {event.date || tx("时间待确认", "Schedule to follow")}
)}
{tx("进入后可自行选择麦克风与摄像头。", "Choose your microphone and camera settings when you join.")}
+
+ }
+
+ {visible("collaborate") &&
+ {sectionHead("04", tx("一起做事", "MAKE SOMETHING TOGETHER"), tx("有些想法,适合一起实现。", "Some ideas are better together."), tx("从互换一项技能,到一起完成一个项目。把同频变成同行。", "Exchange a skill. Find a collaborator. Turn a shared spark into something real."), "/team", tx("发现共创机会", "Find collaborators"))}
+ {[
+ { href: "/skills", Icon: HeartHandshake, title: tx("你擅长的,刚好是我需要的。", "Your strength. Someone’s next step."), text: tx("技能交换", "Skill exchange"), description: tx("提供你的擅长,也找到愿意分享的人。", "Share what you do well. Learn from someone new."), tone: "mint" },
+ { href: "/work", Icon: Sparkles, title: tx("把「有空一起」变成进行中。", "Make “someday” a work in progress."), text: tx("远程协作", "Work together"), description: tx("用看板梳理任务,用文档记录共同的想法。", "Find momentum with boards and shared notes."), tone: "coral" },
+ { href: "/ebook", Icon: BookOpen, title: tx("走过的路,也能照亮别人。", "A story worth passing on."), text: tx("社区共创", "Community creations"), description: tx("读一份经验小册,分享一个属于你的故事。", "Explore guides, share stories and create together."), tone: "amber" },
+ ].filter(item => navigationVisible(config, item.href)).map(item =>
{item.text} {item.title} {item.description}
)}
+ }
+
+ {visible("faq") && A LITTLE GOOD TO KNOW
{tx("来之前,你可能想知道。", "A few things you might be wondering.")} {tx("还有问题?聊聊想法", "Something else on your mind?")}
{[
+ [tx("还不是数字游民,也可以加入吗?", "Can I join if I’m not a digital nomad?"), tx("当然。正在远程工作、自由职业、计划出发,或只是对这种生活好奇,都可以先浏览社区,找到感兴趣的话题和朋友。", "Absolutely. Whether you work remotely, freelance, are planning a change, or are simply curious, explore the community and find a conversation that interests you.")],
+ [tx("第一次来,怎么开始认识人?", "Where should I start?"), tx("先写一段介绍,再按城市和兴趣看看大家。可以在公开聊天群打招呼,也可以选择一个咖啡聊主理人,查看时间后再预约。", "Add a short introduction, then browse people by city or interest. Say hello in the community chat, or explore coffee hosts and their available times.")],
+ [tx("我的位置和联系方式会公开吗?", "Will my location and contact details be public?"), tx("地图以城市为单位展示,不需要公开精确位置。发布介绍前请检查内容,只分享你愿意公开的信息。线下见面优先选择公共场所。", "The map works at city level. You don’t need to share an exact location. Review your introduction before publishing and only share what you’re comfortable making public. Choose public places for a first meeting.")],
+ ].map(([question, answer]) =>
{question}+ {answer}
)}
}
+
+ YOUR NEXT CHAPTER {landing.socialInviteTitle} {landing.socialInviteLead}
{t.joinCommunity}
+
+
+
+ ;
}
diff --git a/src/modules/social/components/MapClient.tsx b/src/modules/social/components/MapClient.tsx
index 0087ee1..ac4da61 100644
--- a/src/modules/social/components/MapClient.tsx
+++ b/src/modules/social/components/MapClient.tsx
@@ -1,511 +1,71 @@
-"use client";
+"use client";
-import {
- Suspense,
- useEffect,
- useMemo,
- useState,
- useSyncExternalStore,
-} from "react";
+import { Suspense, useEffect, useMemo, useState } from "react";
import dynamic from "next/dynamic";
import Link from "next/link";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
-import {
- ArrowUpRight,
- Box,
- Map as MapIcon,
- MapPin,
- Radio,
- Search,
- Users,
- X,
-} from "lucide-react";
+import { ArrowUpRight, Box, Map as MapIcon, MapPin, X } from "lucide-react";
import SiteShell from "./SiteShell";
-import SocialAvatar from "./SocialAvatar";
+import { EmptyState, PageIntro, SearchField } from "./SocialUI";
+import { useSocialConfig } from "./SocialExperience";
import { socialApi } from "@social/lib/api";
import { SOCIAL_CITIES } from "@social/lib/cities";
import type { SocialMapCity } from "@social/lib/geoTypes";
-import { buildMapPersonPins, type MapPersonPin } from "@social/lib/mapPins";
+import { buildMapPersonPins } from "@social/lib/mapPins";
import { socialPath } from "@social/lib/socialPath";
-import { socialTx } from "@social/lib/socialTx";
-import { getSocialLive } from "@social/lib/socialLive";
import { useDiscoveryRoster } from "@social/lib/discoveryRoster";
-import { useSocialConfig } from "./SocialExperience";
-
-const SocialMapCanvas = dynamic(() => import("./SocialMapCanvas"), {
- ssr: false,
- loading: () =>
,
-});
-const SocialGlobe3D = dynamic(() => import("./SocialGlobe3D"), {
- ssr: false,
- loading: () =>
,
-});
+import { useSocialI18n } from "@social/lib/useSocialI18n";
+import { getSocialLive } from "@social/lib/socialLive";
+const SocialMapCanvas = dynamic(() => import("./SocialMapCanvas"), { ssr: false, loading: () => Loading map…
});
+const SocialGlobe3D = dynamic(() => import("./SocialGlobe3D"), { ssr: false, loading: () => Loading globe…
});
type Mode = "globe" | "flat";
-
-const H5_MQ = "(max-width: 959px)";
-
-function useIsH5(): boolean {
- return useSyncExternalStore(
- (onChange) => {
- if (typeof window === "undefined") return () => {};
- const mq = window.matchMedia(H5_MQ);
- mq.addEventListener("change", onChange);
- return () => mq.removeEventListener("change", onChange);
- },
- () =>
- typeof window !== "undefined" ? window.matchMedia(H5_MQ).matches : false,
- () => false,
- );
-}
-
-function seedCities(): SocialMapCity[] {
- return SOCIAL_CITIES.map((c) => ({
- id: c.id,
- name: c.name,
- country: c.country,
- emoji: c.emoji,
- vibe: c.vibe,
- lat: c.lat,
- lng: c.lng,
- memberCount: c.members,
- meetupCount: c.meetupCount || 0,
- hot: c.hot,
- tags: c.tags,
- costHint: c.costHint,
- }));
-}
+const seedCities = (): SocialMapCity[] => SOCIAL_CITIES.map(city => ({ ...city, memberCount: city.members, meetupCount: city.meetupCount || 0 }));
function MapClientInner() {
const params = useSearchParams();
const router = useRouter();
const pathname = usePathname();
- const isH5 = useIsH5();
+ const { tx } = useSocialI18n();
const config = useSocialConfig();
- const cityParam = params.get("city");
- const modeParam = params.get("mode") === "globe" ? "globe" : "flat";
- const [mode, setMode] = useState(modeParam);
- // H5:强制沉浸立体,不要平面 / 城市目录
- const effectiveMode: Mode = isH5 ? "globe" : mode;
-
- const switchMode = (next: Mode) => {
- if (isH5) return;
- setMode(next);
- const sp = new URLSearchParams(params.toString());
- if (next === "globe") sp.set("mode", "globe");
- else sp.delete("mode");
- const q = sp.toString();
- router.replace(q ? `${pathname}?${q}` : pathname, { scroll: false });
- };
-
+ const mode: Mode = params.get("mode") === "globe" ? "globe" : "flat";
+ const selectedId = params.get("city");
const [cities, setCities] = useState(seedCities);
- const [selectedId, setSelectedId] = useState(cityParam);
- const [selectedPersonId, setSelectedPersonId] = useState(null);
- const [offline, setOffline] = useState(false);
+ const [example, setExample] = useState(true);
const [query, setQuery] = useState("");
- const live = getSocialLive(config);
- // mapLivePins on → discovery auto-refresh feeds live pins; off → seed only
+ const [offline, setOffline] = useState(false);
const discovery = useDiscoveryRoster();
- const people = useMemo(
- () =>
- buildMapPersonPins(
- live.mapLivePins && discovery.length ? discovery : undefined,
- ),
- [live.mapLivePins, discovery],
- );
-
- useEffect(() => {
- if (cityParam) setSelectedId(cityParam);
- }, [cityParam]);
-
- useEffect(() => {
- if (!isH5) return;
- // 清掉 URL 里的 mode=flat,避免刷新又切平面
- if (params.get("mode") && params.get("mode") !== "globe") {
- const sp = new URLSearchParams(params.toString());
- sp.delete("mode");
- const q = sp.toString();
- router.replace(q ? `${pathname}?${q}` : pathname, { scroll: false });
- }
- }, [isH5, params, pathname, router]);
-
+ const live = getSocialLive(config);
+ const people = useMemo(() => buildMapPersonPins(live.mapLivePins && discovery.length ? discovery : undefined), [live.mapLivePins, discovery]);
+ const update = (key: string, value: string) => {
+ const next = new URLSearchParams(params.toString());
+ if (value) next.set(key, value); else next.delete(key);
+ router.replace(`${pathname}${next.size ? `?${next}` : ""}`, { scroll: false });
+ };
useEffect(() => {
let alive = true;
- void socialApi
- .mapCities()
- .then((res) => {
- if (!alive || !res.items?.length) return;
- setCities(res.items);
- setOffline(false);
- })
- .catch(() => {
- if (alive) setOffline(true);
- });
- return () => {
- alive = false;
- };
+ void socialApi.mapCities().then(response => {
+ if (!alive) return;
+ const valid = response.items?.filter(city => typeof city.id === "string" && typeof city.name === "string" && Number.isFinite(city.lng) && Number.isFinite(city.lat));
+ if (valid?.length) { setCities(valid); setExample(false); }
+ }).catch(() => { if (alive) setOffline(true); });
+ return () => { alive = false; };
}, []);
-
- const selected = useMemo(
- () => cities.find((c) => c.id === selectedId) || null,
- [cities, selectedId],
- );
- const selectedPerson = useMemo(
- () => people.find((p) => p.id === selectedPersonId) || null,
- [people, selectedPersonId],
- );
- const cityPeople = useMemo(() => {
- if (!selectedId) return people.slice(0, 8);
- return people.filter((p) => p.cityId === selectedId);
- }, [people, selectedId]);
-
- const filteredCities = useMemo(() => {
+ const selected = cities.find(city => city.id === selectedId);
+ const filtered = useMemo(() => {
const q = query.trim().toLowerCase();
- const sorted = [...cities].sort((a, b) => b.memberCount - a.memberCount);
- if (!q) return sorted.slice(0, 8);
- return sorted
- .filter((c) =>
- `${c.name} ${c.country} ${c.vibe || ""}`.toLowerCase().includes(q),
- )
- .slice(0, 8);
- }, [cities, query]);
+ return [...cities].filter(city => !q || `${city.name} ${tx(city.name)} ${city.country} ${tx(city.country)} ${city.id} ${city.vibe}`.toLowerCase().includes(q)).sort((a, b) => b.memberCount - a.memberCount);
+ }, [cities, query, tx]);
+ const mapProps = { cities, people, selectedId, onSelectCity: (city: SocialMapCity) => update("city", city.id) };
- const onSelectPerson = (pin: MapPersonPin) => {
- setSelectedPersonId(pin.id);
- setSelectedId(pin.cityId);
- };
-
- const showRail = !isH5;
-
- return (
-
-
-
- {effectiveMode === "globe" ? (
-
{
- setSelectedId(c.id);
- setSelectedPersonId(null);
- }}
- onSelectPerson={onSelectPerson}
- />
- ) : (
- {
- setSelectedId(c.id);
- setSelectedPersonId(null);
- }}
- onSelectPerson={onSelectPerson}
- />
- )}
-
-
- {effectiveMode === "flat" && !isH5 ? (
-
-
- {offline ? "离线种子 · 模糊位置" : "同频游民 · 全球发现"}
-
-
- NomadroMap
-
-
深色底图 · 点脉冲飞到城市
-
- ) : null}
-
-
- {isH5 ? null : effectiveMode === "flat" ? (
-
-
- setQuery(e.target.value)}
- placeholder="搜城市 / 国家"
- aria-label="搜索城市"
- />
-
- ) : (
-
- NomadroGlobe
-
- )}
- {!isH5 ? (
-
- switchMode("flat")}
- >
-
- 平面
-
- switchMode("globe")}
- >
-
- 立体
-
-
- ) : null}
-
-
-
- {/* H5:点中城市时浮层卡片,不占目录底栏 */}
- {isH5 && (selected || selectedPerson) ? (
-
- {selectedPerson ? (
-
- setSelectedPersonId(null)}
- >
-
-
-
-
-
-
{selectedPerson.name}
-
{selectedPerson.title}
-
-
-
-
- ) : selected ? (
-
- {
- setSelectedId(null);
- setSelectedPersonId(null);
- }}
- >
-
-
-
- {selected.emoji} {selected.name}
- {selected.country}
-
-
-
- 想见的人
-
-
- 详情
-
-
-
- ) : null}
-
- ) : null}
-
-
- {showRail ? (
-
- {selectedPerson ? (
-
- setSelectedPersonId(null)}
- >
-
-
-
-
-
-
- {selectedPerson.name}
- {selectedPerson.verified ? ✓ : null}
-
-
{selectedPerson.title}
-
{selectedPerson.routeLabel}
-
-
-
-
- {selectedPerson.cityName} · 近似位置
-
-
-
- 看看介绍
-
-
switchMode("flat")}
- >
- 平面定位
-
-
-
- ) : null}
-
- {selected ? (
-
- {
- setSelectedId(null);
- setSelectedPersonId(null);
- }}
- >
-
-
- {selected.emoji}
-
- {selected.name}
- {selected.country}
-
- {selected.vibe ? {selected.vibe}
: null}
-
-
- {selected.memberCount}
-
-
- {selected.meetupCount || 0} 局
-
-
-
- {cityPeople.slice(0, 6).map((p) => (
- onSelectPerson(p)}
- title={p.name}
- >
-
-
- ))}
- {!cityPeople.length ? (
- 这座城还没有示例头像点
- ) : null}
-
-
- {effectiveMode === "globe" ? (
- {
- setSelectedId(selected.id);
- switchMode("flat");
- }}
- >
- 平面放大看人
-
- ) : (
-
- 想见的人
-
- )}
-
- 城市详情
-
-
-
- ) : (
-
- 热门城市
-
- {effectiveMode === "globe"
- ? "拖动旋转 · 点头像选城"
- : "点脉冲圈飞过去"}
-
-
- {filteredCities.map((c) => (
-
- {
- setSelectedId(c.id);
- if (effectiveMode === "globe") switchMode("flat");
- }}
- >
-
- {c.emoji} {c.name}
-
- {c.memberCount}
-
-
- ))}
-
-
- 全部城市目录
-
-
- )}
-
- 头像点城市级抖动 · 不展示精确 GPS
-
- ) : null}
-
-
- );
+ return
+ {tx("城市目录", "City guide")}
+ update("mode", "")}> {tx("平面", "Map")} update("mode", "globe")}> {tx("立体", "Globe")}
+ {mode === "globe" ?
update("city", pin.cityId)} /> : router.push(socialPath(`/people/${pin.id}`))} />}
+ {selected && update("city", "")}> {selected.emoji} {tx(selected.name)} {tx(selected.country)}
{tx("探索", "Explore")} }
+
{query ? tx("搜索结果", "Search results") : tx("从这里出发", "Find your next stop")} {filtered.length} {tx("座城市", "cities")} {filtered.map(city => update("city", city.id)}>{city.emoji} {tx(city.name)} {tx(city.country)} )}{!filtered.length && setQuery("")}>{tx("清空搜索", "Clear search")} }
+ {offline ? tx("底图或城市数据暂不可用,目录使用内置内容,仍可继续探索。", "Some map services are unavailable. The built-in city guide remains available.") : example ? tx("当前展示城市与成员示例。", "Showing example cities and member locations.") : tx("成员位置以城市为单位呈现。", "Member locations are shown at city level.")} {tx("不展示精确 GPS,也不以在线状态推断行程。", "Exact GPS is never displayed. Online presence does not imply a travel plan.")}
+ ;
}
-export default function MapClient() {
- return (
- 加载地图… }>
-
-
- );
-}
+export default function MapClient() { return
Loading map… }> ; }
diff --git a/src/modules/social/components/PeopleClient.tsx b/src/modules/social/components/PeopleClient.tsx
index e3ed31e..1ee0eb8 100644
--- a/src/modules/social/components/PeopleClient.tsx
+++ b/src/modules/social/components/PeopleClient.tsx
@@ -1,285 +1,97 @@
"use client";
-import { useMemo, useState } from "react";
+import { useEffect, useMemo, useState } from "react";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
-import { Sparkles } from "lucide-react";
+import { ArrowUpRight, Check, MapPin, SlidersHorizontal, Sparkles, Users, X } from "lucide-react";
import SiteShell from "./SiteShell";
import SocialAvatar from "./SocialAvatar";
-import {
- DemoBadge,
- EmptyState,
- PageIntro,
- SearchField,
- ResultSummary,
-} from "./SocialUI";
-import { SELF_MEMBER_ID, useDiscoveryRoster } from "@social/lib/discoveryRoster";
-import { SOCIAL_CITIES } from "@social/lib/cities";
+import { EmptyState, PageIntro, SearchField } from "./SocialUI";
+import { useDiscoveryRoster } from "@social/lib/discoveryRoster";
import { socialPath } from "@social/lib/socialPath";
-import { useRosterLikes } from "@social/lib/useRosterLikes";
-import { socialTx } from "@social/lib/socialTx";
+import { setRosterLike, useRosterLikes } from "@social/lib/useRosterLikes";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
-const PROFESSION_HINTS = ["设计", "开发", "内容", "产品", "摄影", "全栈"];
-const INTEREST_HINTS = ["咖啡局", "冲浪", "瑜伽", "夜跑", "出海", "开源"];
-const LANG_HINTS = ["中文", "English", "日本語", "Português"];
+type Filters = { q: string; city: string; interest: string; language: string; status: string; view: string; sort: string };
+const EMPTY: Filters = { q: "", city: "", interest: "", language: "", status: "", view: "all", sort: "recommended" };
+const isHere = (status?: string) => ["here", "currently_here", "in_city"].includes(status || "");
+const isSoon = (status?: string) => ["arriving", "soon", "arriving_soon"].includes(status || "");
+function readFilters(search: URLSearchParams): Filters {
+ return {
+ q: search.get("q") || "", city: search.get("city") || "", interest: search.get("interest") || "", language: search.get("language") || "",
+ status: search.get("status") || (search.get("here") === "1" ? "here" : search.get("soon") === "1" ? "soon" : ""),
+ view: search.get("view") === "saved" || search.get("view") === "online" ? search.get("view")! : "all",
+ sort: ["name", "online"].includes(search.get("sort") || "") ? search.get("sort")! : "recommended",
+ };
+}
export default function PeopleClient() {
const params = useSearchParams();
- const initialQuery = params.get("city") || "";
- const initialHere = params.get("here") === "1";
- const initialSoon = params.get("soon") === "1";
- return (
-
- );
-}
-
-function PeopleDirectory({
- initialQuery,
- initialHere,
- initialSoon,
-}: {
- initialQuery: string;
- initialHere: boolean;
- initialSoon: boolean;
-}) {
+ const { tx, locale } = useSocialI18n();
const roster = useDiscoveryRoster();
- const [query, setQuery] = useState(initialQuery);
- const [filter, setFilter] = useState("all");
- const [profession, setProfession] = useState("");
- const [interest, setInterest] = useState("");
- const [language, setLanguage] = useState("");
- const [currentlyHere, setCurrentlyHere] = useState(initialHere);
- const [arrivingSoon, setArrivingSoon] = useState(initialSoon);
const likes = useRosterLikes();
+ const [filters, setFilters] = useState(() => readFilters(new URLSearchParams(params.toString())));
+ const [expanded, setExpanded] = useState(false);
+ const update = (key: keyof Filters, value: string) => setFilters(previous => ({ ...previous, [key]: value }));
+ useEffect(() => {
+ const sync = () => setFilters(readFilters(new URLSearchParams(location.search)));
+ window.addEventListener("popstate", sync);
+ return () => window.removeEventListener("popstate", sync);
+ }, []);
+ useEffect(() => {
+ const url = new URL(location.href);
+ for (const key of Object.keys(EMPTY) as (keyof Filters)[]) {
+ if (filters[key] !== EMPTY[key]) url.searchParams.set(key, filters[key]);
+ else url.searchParams.delete(key);
+ }
+ url.searchParams.delete("here"); url.searchParams.delete("soon");
+ if (url.href !== location.href) window.history.replaceState(window.history.state, "", url);
+ }, [filters]);
+ const cities = useMemo(() => Array.from(new Set(roster.map(p => p.city.split("·")[0].trim()))).sort((a, b) => a.localeCompare(b, locale)), [roster, locale]);
+ const interests = useMemo(() => Array.from(new Set(roster.flatMap(p => p.tags))).sort((a, b) => a.localeCompare(b, locale)), [roster, locale]);
+ const languages = useMemo(() => Array.from(new Set(roster.flatMap(p => p.languages || []))).sort(), [roster]);
+ const list = useMemo(() => {
+ const q = filters.q.trim().toLowerCase();
+ const result = roster.filter(person => {
+ const haystack = `${person.name} ${person.city} ${tx(person.city)} ${person.title} ${tx(person.title)} ${person.tags.join(" ")} ${person.tags.map(tag => tx(tag)).join(" ")} ${person.lookingFor} ${person.bio} ${(person.languages || []).join(" ")}`.toLowerCase();
+ return (!q || haystack.includes(q)) && (!filters.city || person.city.toLowerCase().includes(filters.city.toLowerCase()))
+ && (filters.view !== "saved" || likes[person.id]) && (filters.view !== "online" || person.online)
+ && (!filters.interest || person.tags.includes(filters.interest)) && (!filters.language || person.languages?.includes(filters.language))
+ && (filters.status !== "here" || isHere(person.status)) && (filters.status !== "soon" || isSoon(person.status));
+ });
+ if (filters.sort === "name") result.sort((a, b) => a.name.localeCompare(b.name, locale));
+ if (filters.sort === "online") result.sort((a, b) => Number(b.online) - Number(a.online));
+ return result;
+ }, [roster, filters, likes, locale, tx]);
+ const active = (Object.keys(EMPTY) as (keyof Filters)[]).filter(key => key !== "sort" && filters[key] !== EMPTY[key]);
+ const chipLabels: Partial> = { view: filters.view === "saved" ? tx("我关注的", "Following") : tx("在线", "Online"), status: filters.status === "here" ? tx("正在这里", "Currently here") : tx("即将到达", "Arriving soon") };
- const list = useMemo(
- () =>
- roster.filter((person) => {
- const haystack =
- `${person.name} ${person.city} ${person.title} ${person.tags.join(" ")} ${person.lookingFor} ${(person.languages || []).join(" ")}`.toLowerCase();
- const q = query.toLowerCase().trim();
- if (q && !haystack.includes(q)) return false;
- if (filter === "saved" && !likes[person.id]) return false;
- if (filter === "online" && !person.online) return false;
- if (profession && !person.title.toLowerCase().includes(profession.toLowerCase()))
- return false;
- if (
- interest &&
- !`${person.tags.join(" ")} ${person.lookingFor}`.toLowerCase().includes(interest.toLowerCase())
- )
- return false;
- if (
- language &&
- !(person.languages || []).some((l) =>
- l.toLowerCase().includes(language.toLowerCase()),
- )
- )
- return false;
- // Seed roster has no live trip status — treat online as "here" proxy for demo
- if (currentlyHere && !person.online) return false;
- if (arrivingSoon && person.online) return false;
- return true;
- }),
- [
- query,
- filter,
- likes,
- roster,
- profession,
- interest,
- language,
- currentlyHere,
- arrivingSoon,
- ],
- );
-
- const reset = () => {
- setQuery("");
- setFilter("all");
- setProfession("");
- setInterest("");
- setLanguage("");
- setCurrentlyHere(false);
- setArrivingSoon(false);
- };
-
- const filtered =
- Boolean(query) ||
- filter !== "all" ||
- Boolean(profession) ||
- Boolean(interest) ||
- Boolean(language) ||
- currentlyHere ||
- arrivingSoon;
-
- return (
-
-
-
- {list.length} 位
-
- 地图
-
-
-
-
-
-
- {[
- { id: "all", title: "全部" },
- { id: "online", title: "示例在线" },
- { id: "saved", title: "我关注的" },
- ].map((f) => (
- setFilter(f.id)}
- >
- {f.title}
-
- ))}
-
-
-
- 城市
- c.name === query) ? query : ""}
- onChange={(e) => setQuery(e.target.value)}
- >
- 全部城市
- {SOCIAL_CITIES.map((c) => (
-
- {c.emoji} {c.name}
-
- ))}
-
-
-
- 职业
- setProfession(e.target.value)}>
- 不限
- {PROFESSION_HINTS.map((p) => (
-
- {p}
-
- ))}
-
-
-
- 兴趣
- setInterest(e.target.value)}>
- 不限
- {INTEREST_HINTS.map((p) => (
-
- {p}
-
- ))}
-
-
-
- 语言
- setLanguage(e.target.value)}>
- 不限
- {LANG_HINTS.map((p) => (
-
- {p}
-
- ))}
-
-
- {
- setCurrentlyHere((v) => !v);
- if (!currentlyHere) setArrivingSoon(false);
- }}
- >
- Currently Here
-
- {
- setArrivingSoon((v) => !v);
- if (!arrivingSoon) setCurrentlyHere(false);
- }}
- >
- Arriving Soon
-
-
+ return
+
+ {tx("写我的介绍", "Add my introduction")}
+
+
+
update("q", value)} label={tx("搜索朋友", "Search people")} placeholder={tx("名字、城市、技能或兴趣", "Name, city, skill or interest")} />
+ {tx("城市", "City")} update("city", event.target.value)}>{tx("所有城市", "All cities")} {filters.city && !cities.includes(filters.city) && {filters.city} }{cities.map(city => {tx(city)} )}
+ setExpanded(!expanded)}> {tx("更多筛选", "Refine")}
-
-
- {list.map((person, index) => (
-
-
-
- {person.online ? : null}
-
-
- {person.name}
- {person.id === SELF_MEMBER_ID ? " · 我" : ""}
-
-
- {person.title}
- {person.vibe ? ` · ${person.vibe.split("·")[0].trim()}` : ""}
-
-
- {person.city.split("·")[0].trim()}
- {person.tags[0] ? ` · ${person.tags[0]}` : ""}
-
-
- {person.lookingFor}
-
-
- ))}
- {!list.length && (
-
-
- 清空筛选
-
-
- )}
-
-
-
-
- 写我的介绍
-
-
-
- );
+
{[["all", tx("所有朋友", "Everyone")], ["online", tx("在线", "Online")], ["saved", tx("我关注的", "Following")]].map(([id, label]) => update("view", id)}>{label} )}
+ {expanded &&
+ {tx("兴趣与技能", "Interests & skills")} update("interest", event.target.value)}>{tx("不限", "Any interest")} {interests.map(interest => {tx(interest)} )}
+ {tx("语言", "Language")} update("language", event.target.value)}>{tx("不限", "Any language")} {languages.map(language => {language} )}
+ {tx("行程状态", "Travel plans")} update("status", event.target.value)}>{tx("不限", "Any travel plan")} {tx("正在这里", "Currently here")} {tx("即将到达", "Arriving soon")}
+
}
+ {active.length > 0 &&
{active.map(key => update(key, EMPTY[key])} aria-label={tx(`移除 ${chipLabels[key] || filters[key]}`, `Remove ${chipLabels[key] || filters[key]}`)}>{chipLabels[key] || tx(filters[key])} )} setFilters({ ...EMPTY })}>{tx("清空筛选", "Reset filters")}
}
+
+ {list.length} {tx("位朋友", list.length === 1 ? "person" : "people")}
{tx("排序", "Sort")} update("sort", event.target.value)}>{tx("为你发现", "Recommended")} {tx("在线优先", "Online first")} {tx("按名字", "Name")}
+ {list.map(person =>
+ {person.name}{person.example && {tx("示例", "Example")} }{tx(person.title)}
{tx(person.city)} setRosterLike(person.id, !likes[person.id])}>{likes[person.id] ? : }
+ {tx(person.bio)}
{tx(person.lookingFor)}
+ {person.tags.slice(0, 4).map(tag => update("interest", tag)}>{tx(tag)} )}
+ {(isHere(person.status) || isSoon(person.status)) && {isHere(person.status) ? tx("正在这里", "Currently here") : tx("即将到达", "Arriving soon")} }
+ {person.languages?.slice(0, 2).join(" · ") || tx("自在交流", "Find common ground")} {tx("看看介绍", "View profile")}
+ )}
+ {!list.length && setFilters({ ...EMPTY })}>{tx("看看所有朋友", "Explore everyone")} {tx("写我的介绍", "Introduce yourself")} }
+ {tx("示例资料用于体验浏览;行程状态由成员填写,在线状态与所在城市分别展示。关注仅保存在当前设备。", "Example profiles let you explore the experience. Travel plans are declared by members and are separate from online presence. Follows stay on this device.")}
+ ;
}
diff --git a/src/modules/social/components/PlacesClient.tsx b/src/modules/social/components/PlacesClient.tsx
index 665a03f..23549f0 100644
--- a/src/modules/social/components/PlacesClient.tsx
+++ b/src/modules/social/components/PlacesClient.tsx
@@ -54,6 +54,7 @@ function PlacesHub() {
(c) =>
cityParam &&
(c.name === cityParam ||
+ c.id === cityParam ||
c.name.includes(cityParam) ||
cityParam.includes(c.name)),
) || null;
@@ -146,7 +147,10 @@ function PlacesHub() {
>
{socialTx("看这座城")}
-
+
+ {socialTx("想见的人")}
+
+
{socialTx("打开地图")}
diff --git a/src/modules/social/components/ResourceLibrary.tsx b/src/modules/social/components/ResourceLibrary.tsx
index 758bb2c..829c99d 100644
--- a/src/modules/social/components/ResourceLibrary.tsx
+++ b/src/modules/social/components/ResourceLibrary.tsx
@@ -1,7 +1,7 @@
"use client";
import Link from "next/link";
-import { useRef, useState, useSyncExternalStore, type FormEvent } from "react";
+import { useMemo, useRef, useState, useSyncExternalStore, type FormEvent } from "react";
import {
ArrowUpRight,
BookOpen,
@@ -240,15 +240,32 @@ export default function ResourceLibrary({ kind }: { kind: Kind }) {
const config = useSocialConfig();
const [saved] = useLocalState(`saved-${kind}`, []);
const books = kind === "ebook";
+ const catalog = useMemo(() => {
+ const remote = books ? config.copy.socialCatalogs?.ebooks : config.copy.socialCatalogs?.videos;
+ const seeds = books ? SEED_EBOOKS : SEED_VIDEOS;
+ if (!Array.isArray(remote) || !remote.length) return seeds;
+ const valid = remote.filter(item => item && typeof item.id === "string" && typeof item.title === "string");
+ return valid.length ? valid.map((item, index) => {
+ const fallback = seeds[index % seeds.length];
+ const normalized: Record = { ...fallback };
+ for (const [key, value] of Object.entries(item)) {
+ if (typeof value === "string" || (typeof value === "number" && Number.isFinite(value))) normalized[key] = value;
+ }
+ for (const [key, value] of Object.entries(fallback)) {
+ if (typeof normalized[key] !== typeof value) normalized[key] = value;
+ }
+ return normalized as typeof fallback;
+ }) : seeds;
+ }, [books, config.copy.socialCatalogs]);
const items = books
- ? SEED_EBOOKS.map((book) => ({
+ ? (catalog as typeof SEED_EBOOKS).map((book) => ({
...book,
summary: book.blurb,
city: "共创",
coverEmoji: "✦",
detail: `${book.chapters} 章 · ${book.minutes} 分钟`,
}))
- : SEED_VIDEOS.map((video) => ({
+ : (catalog as typeof SEED_VIDEOS).map((video) => ({
...video,
detail: `${video.city} · ${video.minutes} 分钟`,
}));
diff --git a/src/modules/social/components/RoleBoard.tsx b/src/modules/social/components/RoleBoard.tsx
index 28808cb..e008624 100644
--- a/src/modules/social/components/RoleBoard.tsx
+++ b/src/modules/social/components/RoleBoard.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useMemo, useRef, useState, type FormEvent } from "react";
+import { useEffect, useMemo, useRef, useState, type FormEvent } from "react";
import Link from "next/link";
import {
ArrowUpRight,
@@ -22,6 +22,7 @@ import {
SearchField,
ResultSummary,
SocialDialog,
+ ShareButton,
} from "./SocialUI";
import { TEAM_KIND_LABEL } from "@social/lib/seed";
import { socialApi } from "@social/lib/api";
@@ -31,6 +32,7 @@ import { useSocialConfig } from "./SocialExperience";
import { socialPath } from "@social/lib/socialPath";
import type { SocialGig, SocialTeamKind } from "@social/lib/types";
import { socialTx } from "@social/lib/socialTx";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
const NOTE_PROMPTS = [
"做过类似项目…",
@@ -252,6 +254,7 @@ export default function RoleBoard({
initialKind?: SocialTeamKind | "all";
}) {
const config = useSocialConfig();
+ const { tx } = useSocialI18n();
const catalog = useMemo(
() => resolveSocialCatalog(config.copy.socialCatalogs),
[config.copy.socialCatalogs],
@@ -261,6 +264,20 @@ export default function RoleBoard({
const [savedOnly, setSavedOnly] = useState(false);
const [saved] = useLocalState("saved-roles", []);
const [active, setActive] = useState(null);
+ useEffect(() => {
+ const sync = () => {
+ let id = "";
+ try { id = decodeURIComponent(location.hash.slice(1)); } catch { /* invalid fragment */ }
+ setActive(catalog.gigs.find(gig => gig.id === id) || null);
+ };
+ sync(); window.addEventListener("hashchange", sync); window.addEventListener("popstate", sync);
+ return () => { window.removeEventListener("hashchange", sync); window.removeEventListener("popstate", sync); };
+ }, [catalog.gigs]);
+ const selectRole = (gig: SocialGig | null) => {
+ setActive(gig);
+ const url = new URL(location.href); url.hash = gig?.id || "";
+ history.replaceState(history.state, "", url);
+ };
const roles = catalog.gigs.filter(
(gig) =>
(kind === "all" || gig.kind === kind) &&
@@ -351,8 +368,8 @@ export default function RoleBoard({
{TEAM_KIND_LABEL[gig.kind || "parttime"]}
- {gig.title}
- {gig.role}
+ {tx(gig.title)}
+ {tx(gig.role)}
@@ -365,13 +382,13 @@ export default function RoleBoard({
{tag}
))}
- setActive(gig)}
+ onClick={() => selectRole(gig)}
>
{socialTx("我想参与")}
-
+
))}
{!roles.length && (
@@ -398,8 +415,8 @@ export default function RoleBoard({
)}
{active && (
-
setActive(null)}>
-
+ selectRole(null)}>
+
)}
diff --git a/src/modules/social/components/SiteShell.tsx b/src/modules/social/components/SiteShell.tsx
index 8f2b201..c7dbfe3 100644
--- a/src/modules/social/components/SiteShell.tsx
+++ b/src/modules/social/components/SiteShell.tsx
@@ -2,7 +2,13 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { LogOut } from "lucide-react";
+import { ArrowUpRight, ChevronDown, LogOut, Moon, Sun } from "lucide-react";
+import { useTheme } from "~/components/theme-provider";
+import { navigationDetail, routeMatches } from "@social/lib/navigation";
+import { navigationVisible } from "@social/lib/experience";
+import { useSocialConfig } from "./SocialExperience";
+import SocialCommandMenu from "./SocialCommandMenu";
+import SocialLangSwitch from "./SocialLangSwitch";
import {
useEffect,
useId,
@@ -22,7 +28,7 @@ import {
import { useRevealMotion } from "@social/lib/useRevealMotion";
import { useSocialI18n } from "@social/lib/useSocialI18n";
import { socialTx } from "@social/lib/socialTx";
-import { SocialMobileDock } from "./SocialNavigation";
+import { SocialFooter, SocialMobileDock } from "./SocialNavigation";
import SocialQuickRail from "./SocialQuickRail";
import SocialBrandLogo from "./SocialBrandLogo";
import JoinPayModal from "./JoinPayModal";
@@ -51,7 +57,9 @@ export default function SiteShell({
editorial?: boolean;
onJoin?: () => void;
}) {
- const { t } = useSocialI18n();
+ const { t, tx, locale } = useSocialI18n();
+ const config = useSocialConfig();
+ const { resolvedTheme, setTheme } = useTheme();
const [openGroup, setOpenGroup] = useState(null);
const [menuOpen, setMenuOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
@@ -188,10 +196,11 @@ export default function SiteShell({
+
+
+ setTheme(resolvedTheme === "dark" ? "light" : "dark")} aria-label={resolvedTheme === "dark" ? t.themeLight : t.themeDark}>{resolvedTheme === "dark" ? : }
{session ? : null}
{session ? (
@@ -372,6 +394,7 @@ export default function SiteShell({
{children}
+
diff --git a/src/modules/social/components/SkillsBoardClient.tsx b/src/modules/social/components/SkillsBoardClient.tsx
index edf1625..f08bbff 100644
--- a/src/modules/social/components/SkillsBoardClient.tsx
+++ b/src/modules/social/components/SkillsBoardClient.tsx
@@ -1,211 +1,89 @@
"use client";
-import { useEffect, useState, type FormEvent } from "react";
-import { ArrowLeftRight, MapPin, Plus } from "lucide-react";
+import { useCallback, useEffect, useMemo, useRef, useState, type FormEvent } from "react";
+import Link from "next/link";
+import { ArrowLeftRight, ArrowUpRight, Check, MapPin, Plus } from "lucide-react";
import SiteShell from "./SiteShell";
-import { PageIntro } from "./SocialUI";
+import { EmptyState, PageIntro, SearchField, SocialDialog } from "./SocialUI";
import { socialApi, getGuestId } from "@social/lib/api";
-import { loadJson } from "@social/lib/storage";
-import { socialTx } from "@social/lib/socialTx";
-
-type SkillItem = {
- id: string;
- guestId: string;
- author: string;
- city: string;
- offer: string;
- want: string;
- note: string;
- createdAt: string;
-};
+import { loadJson, saveJson } from "@social/lib/storage";
+import { useLocalState } from "@social/lib/useLocalState";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
+import { socialPath } from "@social/lib/socialPath";
+type SkillItem = { id: string; guestId: string; author: string; city: string; offer: string; want: string; note: string; createdAt: string };
const SEED: SkillItem[] = [
- {
- id: "seed-1",
- guestId: "seed",
- author: "Mia",
- city: "清迈",
- offer: "英语口语陪练",
- want: "帮拍短视频 / 剪辑",
- note: "每周 2 次 · 咖啡馆或线上均可",
- createdAt: "",
- },
- {
- id: "seed-2",
- guestId: "seed",
- author: "Ken",
- city: "里斯本",
- offer: "帮看代码 / 架构 review",
- want: "签证 / D7 经验咨询",
- note: "远程异步也行",
- createdAt: "",
- },
+ { id: "seed-1", guestId: "seed", author: "Mia", city: "清迈", offer: "英语口语陪练", want: "帮拍短视频 / 剪辑", note: "每周 2 次 · 咖啡馆或线上均可", createdAt: "" },
+ { id: "seed-2", guestId: "seed", author: "Ken", city: "里斯本", offer: "帮看代码 / 架构 review", want: "签证 / D7 经验咨询", note: "远程异步也行", createdAt: "" },
];
+const EMPTY = { city: "", offer: "", want: "", note: "" };
export default function SkillsBoardClient() {
- const me = typeof window !== "undefined" ? getGuestId() : "";
+ const { tx } = useSocialI18n();
const [items, setItems] = useState(SEED);
- const [city, setCity] = useState("");
- const [offer, setOffer] = useState("");
- const [want, setWant] = useState("");
- const [note, setNote] = useState("");
- const [postCity, setPostCity] = useState("");
+ const [draft, setDraft] = useLocalState("skill-exchange-draft", EMPTY);
+ const [query, setQuery] = useState("");
+ const [view, setView] = useState("all");
+ const [open, setOpen] = useState(false);
const [busy, setBusy] = useState(false);
- const [err, setErr] = useState("");
-
- const load = async (filterCity = city) => {
+ const [loading, setLoading] = useState(false);
+ const [offline, setOffline] = useState(false);
+ const [error, setError] = useState("");
+ const [message, setMessage] = useState("");
+ const [closeId, setCloseId] = useState(null);
+ const lock = useRef(false);
+ const generation = useRef(0);
+ const me = typeof window !== "undefined" ? getGuestId() : "";
+ const load = useCallback(async () => {
+ const current = ++generation.current;
+ setLoading(true);
try {
- const res = await socialApi.listSkills({
- city: filterCity || undefined,
- limit: 80,
- });
- const live = res.items || [];
- setItems(live.length ? live : SEED);
+ const response = await socialApi.listSkills({ limit: 80 });
+ if (current !== generation.current) return;
+ setItems(response.items.length ? response.items : SEED);
+ setOffline(false); saveJson("skill-exchange-cache", response.items);
} catch {
- setItems(SEED);
- }
- };
-
- useEffect(() => {
- const roster = loadJson<{ name?: string; city?: string }>("roster", {});
- if (roster.city) {
- setPostCity(roster.city);
- setCity(roster.city);
- }
- void load(roster.city || "");
- // eslint-disable-next-line react-hooks/exhaustive-deps
+ if (current !== generation.current) return;
+ setOffline(true);
+ const cached = loadJson("skill-exchange-cache", []);
+ if (Array.isArray(cached) && cached.length) setItems(cached);
+ } finally { if (current === generation.current) setLoading(false); }
}, []);
-
- const submit = async (e: FormEvent) => {
- e.preventDefault();
- if (busy) return;
- setBusy(true);
- setErr("");
+ useEffect(() => { void load(); return () => { generation.current += 1; }; }, [load]);
+ const update = (key: keyof typeof EMPTY, value: string) => { setDraft(previous => ({ ...previous, [key]: value })); setError(""); };
+ const submit = async (event: FormEvent) => {
+ event.preventDefault();
+ if (lock.current || !draft.offer.trim() || !draft.want.trim()) return;
+ lock.current = true; setBusy(true); setError(""); setMessage("");
try {
- const roster = loadJson<{ name?: string }>("roster", {});
- await socialApi.createSkill({
- author: roster.name || "游民",
- city: postCity.trim(),
- offer: offer.trim(),
- want: want.trim(),
- note: note.trim(),
- });
- setOffer("");
- setWant("");
- setNote("");
+ const profile = loadJson<{ name?: string }>("roster", {});
+ await socialApi.createSkill({ author: profile.name || tx("游民", "Community member"), city: draft.city.trim(), offer: draft.offer.trim(), want: draft.want.trim(), note: draft.note.trim() });
+ setDraft(EMPTY); setOpen(false); setMessage(tx("互换已发布。欢迎去聊天群介绍你的想法。", "Your exchange is published. Introduce it in the community chat."));
await load();
- } catch (ex) {
- setErr(ex instanceof Error ? ex.message : socialTx("发布失败"));
- } finally {
- setBusy(false);
- }
+ } catch { setError(tx("暂时未能发布,草稿已保存在当前设备。请重试。", "Couldn’t publish. Your draft is saved on this device. Please try again.")); }
+ finally { lock.current = false; setBusy(false); }
};
+ const closeExchange = async () => {
+ if (!closeId || lock.current) return;
+ lock.current = true; setBusy(true); setError("");
+ try { await socialApi.closeSkill(closeId); setItems(previous => previous.filter(item => item.id !== closeId)); setCloseId(null); setMessage(tx("互换已关闭。", "Exchange closed.")); }
+ catch { setError(tx("暂时未能关闭,请重试。", "Couldn’t close the exchange. Please try again.")); }
+ finally { lock.current = false; setBusy(false); }
+ };
+ const list = useMemo(() => {
+ const q = query.trim().toLowerCase();
+ return items.filter(item => (view !== "mine" || item.guestId === me) && (!q || `${item.author} ${item.city} ${item.offer} ${item.want} ${item.note} ${tx(item.city)} ${tx(item.offer)} ${tx(item.want)}`.toLowerCase().includes(q)));
+ }, [items, view, query, me, tx]);
- return (
-
-
-
- {socialTx("教英语换拍视频、帮忙看代码换签证咨询——写清楚你能给什么、想换什么。")}
-
-
-
-
-
-
-
- setCity(e.target.value)}
- placeholder={socialTx("按城市筛选")}
- onKeyDown={(e) => {
- if (e.key === "Enter") void load(city);
- }}
- />
- void load(city)}>
- {socialTx("筛选")}
-
-
-
-
- {items.map((item) => (
-
-
- {item.author}
-
- {item.city || socialTx("全球 / 线上")}
-
-
-
- {item.offer}
-
- {item.want}
-
- {item.note ? {item.note}
: null}
- {item.guestId === me && item.id.startsWith("sk_") ? (
-
- void socialApi.closeSkill(item.id).then(() => load(city))
- }
- >
- {socialTx("关闭")}
-
- ) : null}
-
- ))}
-
-
- );
+ return
+ { setError(""); setOpen(true); }}> {tx("发布互换", "Post an exchange")}
+ {[["all", tx("全部互换", "All exchanges")], ["mine", tx("我的发布", "My exchanges")]].map(([key, label]) => setView(key)}>{label} )}
+ {message && {message}
}
+ {offline && {tx("暂时无法更新,正在显示缓存或示例内容。", "Couldn’t refresh. Showing cached or example exchanges.")} void load()}>{tx("重新加载", "Retry")}
}
+ {loading ? tx("正在更新互换…", "Refreshing exchanges…") : `${list.length} ${tx("条互换", "exchanges")}`}
+ {list.map(item =>
{item.author}{item.guestId === "seed" && {tx("示例", "Example")} } {tx(item.city) || tx("全球 / 线上", "Anywhere / online")}{tx("我能提供", "I can offer")}
{tx(item.offer)} {tx("想换到", "I’d love to learn")}
{tx(item.want)} {item.note && {tx(item.note)}
}{item.guestId === me ?
{ setError(""); setCloseId(item.id); }}>{tx("关闭互换", "Close exchange")} :
{item.guestId === "seed" ? tx("去群里交流", "Meet the community") : tx("了解发布者", "Meet the author")}
}
)}
+ {!list.length && { setQuery(""); setView("all"); }}>{tx("看看全部", "Explore all")} setOpen(true)}>{tx("发布互换", "Post an exchange")} }
+ {open && { if (!busy) setOpen(false); }}> void submit(event)}>{([['city', tx("城市", "City"), 64], ['offer', tx("我能提供", "I can offer"), 200], ['want', tx("想换到", "I’d love to learn"), 200]] as const).map(([key, label, max]) => {label} update(key, event.target.value)} /> )}{tx("补充说明", "A little more detail")} update("note", event.target.value)} placeholder={tx("每周的时间、线上或线下、如何互相帮助…", "Availability, online or in person, and what a good exchange looks like…")} /> {error && {error}
}{busy ? tx("发布中…", "Publishing…") : tx("发布互换", "Publish exchange")} {tx("草稿保存在当前设备,发布后才会对其他人展示。", "Drafts stay on this device. An exchange becomes public after publishing.")}
}
+ {closeId && { if (!busy) setCloseId(null); }}>{tx("关闭后,它将从公开互助板移除。", "It will be removed from the public exchange board.")}
{error && {error}
} setCloseId(null)}>{tx("继续保留", "Keep it open")} void closeExchange()}>{busy ? tx("关闭中…", "Closing…") : tx("确认关闭", "Close exchange")}
}
+ ;
}
diff --git a/src/modules/social/components/SocialCommandMenu.tsx b/src/modules/social/components/SocialCommandMenu.tsx
new file mode 100644
index 0000000..0df6454
--- /dev/null
+++ b/src/modules/social/components/SocialCommandMenu.tsx
@@ -0,0 +1,47 @@
+"use client";
+
+import { useEffect, useMemo, useRef, useState } from "react";
+import Link from "next/link";
+import { ArrowUpRight, Search } from "lucide-react";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
+import { navigationDetail } from "@social/lib/navigation";
+import { navigationVisible } from "@social/lib/experience";
+import { socialPath } from "@social/lib/socialPath";
+import { useSocialConfig } from "./SocialExperience";
+import { SocialDialog } from "./SocialUI";
+
+export default function SocialCommandMenu() {
+ const { t, tx, locale } = useSocialI18n();
+ const config = useSocialConfig();
+ const [open, setOpen] = useState(false);
+ const [query, setQuery] = useState("");
+ const results = useRef(null);
+ useEffect(() => {
+ const onKey = (event: KeyboardEvent) => {
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k" && !document.querySelector("dialog[open]")) {
+ event.preventDefault(); setQuery(""); setOpen(true);
+ }
+ };
+ window.addEventListener("keydown", onKey);
+ return () => window.removeEventListener("keydown", onKey);
+ }, []);
+ const items = useMemo(() => t.navGroups.flatMap(group => group.items.map(item => ({ ...item, group: group.label, ...navigationDetail(item.href, locale) })))
+ .filter(item => navigationVisible(config, item.href) && `${item.label} ${item.group} ${item.description} ${item.href}`.toLowerCase().includes(query.trim().toLowerCase())), [t, locale, config, query]);
+ return <>
+ { setQuery(""); setOpen(true); }}>⌘ K
+ {open && setOpen(false)}>
+
+
setQuery(event.target.value)} onKeyDown={event => { if (event.key === "ArrowDown") { event.preventDefault(); results.current?.querySelector("a")?.focus(); } }} />
+
{
+ const links = Array.from(results.current?.querySelectorAll("a") || []);
+ const index = links.indexOf(document.activeElement as HTMLAnchorElement);
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") { event.preventDefault(); links[(index + (event.key === "ArrowDown" ? 1 : -1) + links.length) % links.length]?.focus(); }
+ }}>
+ {items.map(item => { const Icon = item.icon; return
setOpen(false)}>
{item.label}{item.group} {item.description} ; })}
+ {!items.length &&
{tx("没有匹配的功能,换个关键词试试。", "No matching features. Try another keyword.")}
}
+
+
{tx("↑ ↓ 选择 · Enter 打开 · Esc 关闭", "↑ ↓ Navigate · Enter Open · Esc Close")}
+
+ }
+ >;
+}
diff --git a/src/modules/social/components/SocialGlobe3D.tsx b/src/modules/social/components/SocialGlobe3D.tsx
index eae0834..d2b9a53 100644
--- a/src/modules/social/components/SocialGlobe3D.tsx
+++ b/src/modules/social/components/SocialGlobe3D.tsx
@@ -180,6 +180,7 @@ export default function SocialGlobe3D({
const rendererRef = useRef(null);
const [overlays, setOverlays] = useState([]);
const [ready, setReady] = useState(false);
+ const [failed, setFailed] = useState(false);
const drag = useRef({ active: false, lx: 0, ly: 0, rotY: 0.55, rotX: 0.08 });
const autoSpin = useRef(true);
const fitDistanceRef = useRef<(aspect: number) => number>(() => 4.2);
@@ -214,12 +215,13 @@ export default function SocialGlobe3D({
const w = Math.max(wrap.clientWidth, 320);
const h = Math.max(wrap.clientHeight, 320);
- const renderer = new THREE.WebGLRenderer({
+ let renderer: THREE.WebGLRenderer;
+ try { renderer = new THREE.WebGLRenderer({
canvas,
antialias: true,
alpha: true,
powerPreference: "high-performance",
- });
+ }); } catch { setFailed(true); return; }
renderer.setClearColor(0x000000, 0);
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2.5));
renderer.setSize(w, h, false);
@@ -480,7 +482,7 @@ export default function SocialGlobe3D({
{!ready ? (
- 生成立体地球…
+ {failed ? "当前设备无法显示立体地图,请切换平面或使用城市目录 / Use the map or city list" : "生成立体地球… / Loading globe…"}
) : null}
diff --git a/src/modules/social/components/SocialLangSwitch.tsx b/src/modules/social/components/SocialLangSwitch.tsx
index 28ea6f1..375ccf3 100644
--- a/src/modules/social/components/SocialLangSwitch.tsx
+++ b/src/modules/social/components/SocialLangSwitch.tsx
@@ -1,6 +1,9 @@
"use client";
-/** 多语言切换已隐藏;跟随门户自动检测的语言。 */
+import { Languages } from "lucide-react";
+import { useSocialI18n } from "@social/lib/useSocialI18n";
+
export default function SocialLangSwitch() {
- return null;
+ const { locale, setLocale } = useSocialI18n();
+ return
setLocale(locale === "zh" ? "en" : "zh")}>{locale === "zh" ? "EN" : "中"} ;
}
diff --git a/src/modules/social/components/SocialMapCanvas.tsx b/src/modules/social/components/SocialMapCanvas.tsx
index 3a761be..0d49358 100644
--- a/src/modules/social/components/SocialMapCanvas.tsx
+++ b/src/modules/social/components/SocialMapCanvas.tsx
@@ -44,9 +44,15 @@ function makePulseEl(city: SocialMapCity, selected: boolean): HTMLButtonElement
el.innerHTML = `
-
${city.emoji || "·"}
-
${city.name}${city.memberCount}
+
+
`;
+ el.querySelector(".sm-pulse-core")!.textContent = city.emoji || "·";
+ const label = el.querySelector(".sm-pulse-label")!;
+ label.textContent = city.name;
+ const count = document.createElement("b");
+ count.textContent = String(city.memberCount);
+ label.append(count);
return el;
}
@@ -61,18 +67,28 @@ function makePersonEl(
el.innerHTML = `
${opts.showApprox ? `
approximate location ` : ""}
- ${pin.fromCode} › ${pin.toCode}
+ ›
${opts.showApprox ? `
` : ""}
${pin.vip ? `♛ ` : ""}
${pin.verified ? `✓ ` : ""}
-
- ${pin.gender === "f" ? "♀" : "♂"}
+
+
`;
+ const codes = el.querySelectorAll(".sm-route > b");
+ codes[0].textContent = pin.fromCode;
+ codes[1].textContent = pin.toCode;
+ const gender = el.querySelector(".sm-gender")!;
+ gender.classList.add(pin.gender === "f" ? "sm-gender--f" : "sm-gender--m");
+ gender.textContent = pin.gender === "f" ? "♀" : "♂";
+ try {
+ const avatar = new URL(pin.avatar, location.origin);
+ if (["https:", "http:"].includes(avatar.protocol)) (el.querySelector("img") as HTMLImageElement).src = avatar.href;
+ } catch { /* Missing portraits leave the city marker available. */ }
return el;
}
@@ -158,12 +174,20 @@ export default function SocialMapCanvas({
map.on("error", onError);
};
- tryStyle(0);
+ try {
+ tryStyle(0);
+ } catch {
+ setStatus("地图暂不可用,请从城市目录继续探索 / Explore the city list below");
+ }
+ const timeout = setTimeout(() => {
+ if (!readyRef.current) setStatus("底图加载较慢,可从城市目录继续探索 / Explore the city list below");
+ }, 12000);
const onWinResize = () => mapRef.current?.resize();
window.addEventListener("resize", onWinResize);
return () => {
+ clearTimeout(timeout);
window.removeEventListener("resize", onWinResize);
markersRef.current.forEach((m) => m.remove());
markersRef.current = [];
diff --git a/src/modules/social/components/SocialNavigation.tsx b/src/modules/social/components/SocialNavigation.tsx
index ce27660..a7c8125 100644
--- a/src/modules/social/components/SocialNavigation.tsx
+++ b/src/modules/social/components/SocialNavigation.tsx
@@ -2,25 +2,27 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { useEffect, useRef } from "react";
+import { useEffect, useRef, useState } from "react";
import {
CircleUserRound,
- Compass,
- Heart,
House,
MessageCircle,
+ MapPin,
+ Users,
} from "lucide-react";
import {
+ WechatOaModal,
DEFAULT_X_HANDLE,
formatXHandle,
xProfileUrl,
} from "~/components/social-follow";
+import { useAudienceModule } from "~/modules/audience";
import { trackFollow } from "~/lib/analytics/track";
import { openSocialJoinModal } from "@social/lib/joinModal";
import { isSocialHomePath, socialPath } from "@social/lib/socialPath";
import { useSocialI18n } from "@social/lib/useSocialI18n";
-const DOCK_ICONS = [House, MessageCircle, Heart, Compass, CircleUserRound] as const;
+const DOCK_ICONS = [House, MapPin, MessageCircle, Users, CircleUserRound] as const;
export function SocialMobileDock() {
const pathname = usePathname();
@@ -73,6 +75,8 @@ export function SocialMobileDock() {
export function SocialFooter() {
const { t, locale } = useSocialI18n();
const zh = locale === "zh";
+ const { followChannel } = useAudienceModule();
+ const [wechatOpen, setWechatOpen] = useState(false);
return (
+ setWechatOpen(false)} />
);
}
diff --git a/src/modules/social/components/SocialQuickRail.tsx b/src/modules/social/components/SocialQuickRail.tsx
index e40eacc..5af1edf 100644
--- a/src/modules/social/components/SocialQuickRail.tsx
+++ b/src/modules/social/components/SocialQuickRail.tsx
@@ -2,58 +2,24 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { useEffect, useRef } from "react";
-import { openSocialJoinModal } from "@social/lib/joinModal";
+import { ChevronRight, House } from "lucide-react";
import { socialPath } from "@social/lib/socialPath";
+import { navigationDetail, routeMatches } from "@social/lib/navigation";
+import { navigationVisible } from "@social/lib/experience";
import { useSocialI18n } from "@social/lib/useSocialI18n";
+import { useSocialConfig } from "./SocialExperience";
export default function SocialQuickRail() {
const pathname = usePathname();
- const { t } = useSocialI18n();
- const track = useRef(null);
- useEffect(() => {
- const container = track.current;
- const active = container?.querySelector('[aria-current="page"]');
- if (container && active) container.scrollLeft = Math.max(0, active.offsetLeft - container.offsetLeft - (container.clientWidth - active.clientWidth) / 2);
- }, [pathname, t.rail]);
- return (
-
-
- {t.rail.map((item) => {
- if (item.href === "/join") {
- return (
- openSocialJoinModal({ reason: "cta" })}
- >
- {item.emoji}
- {item.label}
-
- );
- }
- const href = socialPath(item.href);
- const active =
- item.href === "/ebook"
- ? pathname.startsWith(socialPath("/ebook")) ||
- pathname.startsWith(socialPath("/videos"))
- : item.href === "/"
- ? pathname === "/" || pathname === socialPath("/")
- : pathname.startsWith(href);
- return (
-
- {item.emoji}
- {item.label}
-
- );
- })}
-
-
- );
+ const { t, tx, locale } = useSocialI18n();
+ const config = useSocialConfig();
+ const group = t.navGroups.find(group => group.items.some(item => routeMatches(pathname, socialPath(item.href))));
+ return
+ {group?.label || tx("我的社区", "My community")}
+ {(group?.items || [{ href: "/people", label: tx("发现朋友", "Discover people") }, { href: "/roster", label: tx("我的名片", "My profile") }]).filter(item => navigationVisible(config, item.href)).map(item => {
+ const Icon = navigationDetail(item.href, locale).icon;
+ const active = routeMatches(pathname, socialPath(item.href));
+ return {item.label} ;
+ })}
+ ;
}
diff --git a/src/modules/social/lib/api.ts b/src/modules/social/lib/api.ts
index 56f40bc..752062f 100644
--- a/src/modules/social/lib/api.ts
+++ b/src/modules/social/lib/api.ts
@@ -83,6 +83,12 @@ async function req(
throw new Error(msg);
}
const data = (await res.json()) as T;
+ if (method !== "GET") {
+ const resource = path.split("/")[1]?.split("?")[0];
+ for (const key of _memTtl.keys()) {
+ if (key.startsWith(`GET:/${resource}`)) _memTtl.delete(key);
+ }
+ }
if (cacheKey) _memTtl.set(cacheKey, { at: Date.now(), data });
return data;
}
diff --git a/src/modules/social/lib/cities.ts b/src/modules/social/lib/cities.ts
index 2a821a8..290f107 100644
--- a/src/modules/social/lib/cities.ts
+++ b/src/modules/social/lib/cities.ts
@@ -31,8 +31,7 @@ export const SOCIAL_CITIES: SocialCity[] = [
vibe: "苍山洱海 · 慢生活",
blurb: "湖边骑行、古城咖啡馆、时区友好的远程日常。",
highlights: ["洱海骑行与落日局", "租金友好", "社区局密集"],
- cover:
- "https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80",
+ cover: "/social/cities/dali.jpg",
members: 520,
meetupCount: 12,
costHint: "¥3,000/月起",
@@ -160,8 +159,7 @@ export const SOCIAL_CITIES: SocialCity[] = [
country: "泰国",
emoji: "🌿",
vibe: "Nimman · 游民大本营",
- cover:
- "https://images.unsplash.com/photo-1528183429752-a97d0bf99b5a?auto=format&fit=crop&w=1600&q=80",
+ cover: "/social/cities/chiangmai.jpg",
members: 940,
meetupCount: 36,
costHint: "฿18,000/月起",
@@ -173,6 +171,7 @@ export const SOCIAL_CITIES: SocialCity[] = [
},
{
id: "bali",
+ cover: "/social/cities/bali.jpg",
name: "巴厘岛",
country: "印尼",
emoji: "🌴",
@@ -188,6 +187,7 @@ export const SOCIAL_CITIES: SocialCity[] = [
},
{
id: "lisbon",
+ cover: "/social/cities/lisbon.jpg",
name: "里斯本",
country: "葡萄牙",
emoji: "🌊",
diff --git a/src/modules/social/lib/discoveryRoster.ts b/src/modules/social/lib/discoveryRoster.ts
index f31e83f..a9703e8 100644
--- a/src/modules/social/lib/discoveryRoster.ts
+++ b/src/modules/social/lib/discoveryRoster.ts
@@ -212,7 +212,7 @@ export function useDiscoveryRoster(_opts?: {
// Dating: mock portraits count as face-ok; never pad with no-face remotes
const mocks = seed
.filter((m) => !liveIds.has(m.id))
- .map((m) => ({ ...m, faceOk: true })); // stock portraits only
+ .map((m) => ({ ...m, faceOk: true, example: true })); // stock portraits only
const merged = [
...live,
...(requireFace ? mocks.filter((m) => m.faceOk === true) : mocks),
diff --git a/src/modules/social/lib/experience.ts b/src/modules/social/lib/experience.ts
new file mode 100644
index 0000000..2d27198
--- /dev/null
+++ b/src/modules/social/lib/experience.ts
@@ -0,0 +1,27 @@
+import type { NomadroRemoteConfig } from "~/lib/remote-config";
+import type { SocialLocale } from "./i18n";
+
+export type SocialPageCopy = { eyebrow?: string; title?: string; accent?: string; description?: string };
+export type SocialExperienceConfig = {
+ navigation?: Record;
+ sections?: Record;
+ pages?: Partial>>;
+ announcement?: { enabled?: boolean; zh?: string; en?: string; href?: string };
+ featuredCityIds?: string[];
+};
+
+export function experiencePage(config: NomadroRemoteConfig, locale: SocialLocale, key: string): SocialPageCopy {
+ return config.copy.socialExperience?.pages?.[locale]?.[key] || {};
+}
+
+export function navigationVisible(config: NomadroRemoteConfig, href: string) {
+ return config.copy.socialExperience?.navigation?.[href.split("/").filter(Boolean)[0]] !== false;
+}
+
+export function homeSectionVisible(config: NomadroRemoteConfig, key: string) {
+ return config.copy.socialExperience?.sections?.[key] !== false && !config.copy.socialHiddenSections?.includes(key);
+}
+
+export function safeCommunityHref(value: string | undefined) {
+ return value && /^\/(?:social(?:\/|\?|$)|$)/.test(value) && !value.includes("\\") ? value : "/social/people";
+}
diff --git a/src/modules/social/lib/i18n.ts b/src/modules/social/lib/i18n.ts
index 1e29ef5..5bb26da 100644
--- a/src/modules/social/lib/i18n.ts
+++ b/src/modules/social/lib/i18n.ts
@@ -98,7 +98,9 @@ const zh: SocialDictionary = {
label: "一起做事",
items: [
{ href: "/team", label: "找搭子" },
+ { href: "/skills", label: "技能交换" },
{ href: "/ebook", label: "共创" },
+ { href: "/videos", label: "社区影像" },
{ href: "/work", label: "远程工作" },
{ href: "/feedback", label: "说说想法" },
],
@@ -129,7 +131,7 @@ const zh: SocialDictionary = {
{ href: "#people", label: "想见的人", emoji: "👋" },
{ href: "#date", label: "约会", emoji: "💕" },
{ href: "/coffeechat", label: "线下咖啡", emoji: "☕", external: true },
- { href: "/team", label: "技能交换", emoji: "🔄", external: true },
+ { href: "/skills", label: "技能交换", emoji: "🔄", external: true },
{ href: "#cities", label: "城市", emoji: "📍" },
{ href: "/map", label: "地图", emoji: "🗺️", external: true },
{ href: "#team", label: "一起做事", emoji: "🚀" },
@@ -179,7 +181,7 @@ const en: SocialDictionary = {
navGroups: [
{
id: "online",
- label: "Meet online",
+ label: "Meet people",
items: [
{ href: "/chat", label: "Chat rooms" },
{ href: "/people", label: "People" },
@@ -201,7 +203,9 @@ const en: SocialDictionary = {
label: "Build together",
items: [
{ href: "/team", label: "Find buddies" },
+ { href: "/skills", label: "Skill exchange" },
{ href: "/ebook", label: "Co-create" },
+ { href: "/videos", label: "Community films" },
{ href: "/work", label: "Remote work" },
{ href: "/feedback", label: "Feedback" },
],
@@ -232,7 +236,7 @@ const en: SocialDictionary = {
{ href: "#people", label: "People", emoji: "👋" },
{ href: "#date", label: "Dating", emoji: "💕" },
{ href: "/coffeechat", label: "Coffee chat", emoji: "☕", external: true },
- { href: "#skills", label: "Skill swap", emoji: "🔄" },
+ { href: "/skills", label: "Skill swap", emoji: "🔄", external: true },
{ href: "#cities", label: "Cities", emoji: "📍" },
{ href: "/map", label: "Map", emoji: "🗺️", external: true },
{ href: "#team", label: "Collaborate", emoji: "🚀" },
diff --git a/src/modules/social/lib/localizeConfig.ts b/src/modules/social/lib/localizeConfig.ts
index 2e298e3..3afc9a6 100644
--- a/src/modules/social/lib/localizeConfig.ts
+++ b/src/modules/social/lib/localizeConfig.ts
@@ -11,7 +11,10 @@ export function localizeSocialConfig(
config: NomadroRemoteConfig,
locale: string | undefined | null,
): NomadroRemoteConfig {
- if (toSocialLocale(locale) === "zh") return config;
+ if (toSocialLocale(locale) === "zh") {
+ const overrides = config.copy.socialExperience?.pages?.zh || {};
+ return { ...config, copy: { ...config.copy, socialPages: { ...config.copy.socialPages, ...overrides } } };
+ }
const landing = getSocialDictionary("en").landing;
const remotePages = config.copy.socialPages || {};
@@ -27,6 +30,7 @@ export function localizeSocialConfig(
description: en.description || "",
};
}
+ Object.assign(socialPages, config.copy.socialExperience?.pages?.en || {});
return {
...config,
diff --git a/src/modules/social/lib/navigation.ts b/src/modules/social/lib/navigation.ts
new file mode 100644
index 0000000..cd77b9b
--- /dev/null
+++ b/src/modules/social/lib/navigation.ts
@@ -0,0 +1,28 @@
+import { BookOpen, BriefcaseBusiness, Coffee, Compass, Heart, HeartHandshake, Map, MessageCircle, MessagesSquare, Radio, Sparkles, Users, Video } from "lucide-react";
+import type { SocialLocale } from "./i18n";
+
+const entries = {
+ chat: { icon: MessageCircle, zh: "一起聊聊近况,交换沿途的发现", en: "Say hello and swap stories along the way" },
+ people: { icon: Users, zh: "从城市、兴趣和技能,发现同频的人", en: "Find your people through cities, interests and skills" },
+ date: { icon: Heart, zh: "一张一张认识,按自己的节奏靠近", en: "Discover someone new, one introduction at a time" },
+ meetup: { icon: Radio, zh: "选一个话题,用声音和画面拉近距离", en: "Drop into a conversation with voice and video" },
+ coffeechat: { icon: Coffee, zh: "选主理人、挑时间,认真聊一杯咖啡", en: "Find a host and make time for a real conversation" },
+ map: { icon: Map, zh: "看看世界各地的城市和社区足迹", en: "Explore cities and community connections worldwide" },
+ places: { icon: Compass, zh: "探索城市生活与适合见面的咖啡馆", en: "Discover local life and a cafe for your next hello" },
+ team: { icon: BriefcaseBusiness, zh: "找到合适的角色,把想法变成行动", en: "Find a role and turn a shared idea into action" },
+ skills: { icon: HeartHandshake, zh: "交换擅长的事,让彼此走得更远", en: "Trade what you know and learn something new" },
+ ebook: { icon: BookOpen, zh: "读沿途的经验,也写下自己的故事", en: "Read community guides and contribute your story" },
+ videos: { icon: Video, zh: "用镜头记录生活,一起分享灵感", en: "Explore community films and share your perspective" },
+ work: { icon: Sparkles, zh: "从一张看板、一份文档开始协作", en: "Keep things moving with boards and shared notes" },
+ feedback: { icon: MessagesSquare, zh: "告诉我们,你想要怎样的社区", en: "Help shape the community you want to be part of" },
+};
+
+export function navigationDetail(href: string, locale: SocialLocale) {
+ const key = href.split("/").filter(Boolean)[0] as keyof typeof entries;
+ const entry = entries[key] || entries.people;
+ return { icon: entry.icon, description: entry[locale] };
+}
+
+export function routeMatches(pathname: string, href: string) {
+ return pathname === href || pathname.startsWith(href + "/");
+}
diff --git a/src/modules/social/lib/rankDiscovery.ts b/src/modules/social/lib/rankDiscovery.ts
index 059d871..39690b8 100644
--- a/src/modules/social/lib/rankDiscovery.ts
+++ b/src/modules/social/lib/rankDiscovery.ts
@@ -71,6 +71,7 @@ export function discoveryItemToMember(item: {
tags?: string[];
status?: string;
faceOk?: boolean;
+ languages?: string[];
}): SocialRosterMember {
const tags =
item.tags?.length
@@ -97,5 +98,6 @@ export function discoveryItemToMember(item: {
gender: (item.gender as SocialRosterMember["gender"]) || "f",
availability: item.availability || "",
faceOk,
+ languages: Array.isArray(item.languages) ? item.languages.filter(language => typeof language === "string") : [],
};
}
diff --git a/src/modules/social/lib/rosterMock.ts b/src/modules/social/lib/rosterMock.ts
index e874353..19f1ef6 100644
--- a/src/modules/social/lib/rosterMock.ts
+++ b/src/modules/social/lib/rosterMock.ts
@@ -21,6 +21,7 @@ export type SocialRosterMember = {
gallery?: string[];
/** Detector saw a face in avatar — required for dating feed. */
faceOk?: boolean;
+ example?: boolean;
};
const MOCK_ROSTER_SEED: SocialRosterMember[] = [
diff --git a/src/modules/social/lib/useSocialI18n.ts b/src/modules/social/lib/useSocialI18n.ts
index 9fdf760..ea50cf5 100644
--- a/src/modules/social/lib/useSocialI18n.ts
+++ b/src/modules/social/lib/useSocialI18n.ts
@@ -11,7 +11,6 @@ import {
} from "./i18n";
import { socialTx, setSocialTxLocale } from "./socialTx";
-const UNLOCK_KEY = "nomadro-lang-unlock";
export type TranslateFn = (zh: string, en?: string) => string;
@@ -41,11 +40,6 @@ export function useSocialI18n(): {
const setLocale = useCallback(
(next: SocialLocale) => {
- try {
- window.sessionStorage.setItem(UNLOCK_KEY, "1");
- } catch {
- // ignore
- }
setSocialTxLocale(next);
setPortalLocale(next);
},
diff --git a/src/modules/work/components/WorkClient.tsx b/src/modules/work/components/WorkClient.tsx
index 0ff87cb..b5356d9 100644
--- a/src/modules/work/components/WorkClient.tsx
+++ b/src/modules/work/components/WorkClient.tsx
@@ -6,10 +6,13 @@ import { socialPath } from "@social/lib/socialPath";
import { socialTx } from "@social/lib/socialTx";
import { useSocialI18n } from "@social/lib/useSocialI18n";
import "./work.css";
+import { experiencePage } from "@social/lib/experience";
+import { useSocialConfig } from "@social/components/SocialExperience";
export default function WorkClient() {
const { locale } = useSocialI18n();
const zh = locale === "zh";
+ const copy = experiencePage(useSocialConfig(), locale, "work");
return (
@@ -24,12 +27,12 @@ export default function WorkClient() {
Nomadro Work
- {zh ? "远程一起做事" : "Work together, remotely"}
+ {copy.title || (zh ? "远程一起做事" : "Work together, remotely")}
- {zh
+ {copy.description || (zh
? "看板推进任务,文档沉淀共识——同一套 Nomadro 远程协作。"
- : "Kanban for momentum, pads for shared notes — one Nomadro work surface."}
+ : "Keep projects moving with a shared board. Turn ideas into clear notes and next steps.")}
-
- {zh ? "开发者本地启动" : "Local developer setup"}
-
-
- pnpm dev:work-api
- {zh ? "FastAPI work_svc" : "FastAPI work_svc"}
-
-
- pnpm dev
- → /social/work
-
-
-
+
✦ {zh ? "先写下一个共同目标,再拆成可以开始的小任务。还缺搭档?" : "Start with a shared goal, then break it into small steps. Need a collaborator?"} {zh ? "去找搭子 ↗" : "Find your team ↗"}
);
diff --git a/tsconfig.json b/tsconfig.json
index 4b671b3..496e031 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES2017",
- "lib": ["dom", "dom.iterable", "esnext"],
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -13,22 +17,52 @@
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true,
- "plugins": [{ "name": "next" }],
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
"baseUrl": ".",
"paths": {
- "@/*": ["./src/*"],
- "~/*": ["./src/*"],
- "@ebook/*": ["./src/modules/ebook/*"],
- "@community/*": ["./src/modules/community/*"],
- "@social/*": ["./src/modules/social/*"],
- "@navmini/*": ["./src/modules/nav/*"],
- "@vip/*": ["./src/modules/vip/*"],
- "@work/*": ["./src/modules/work/*"],
- "@notify/*": ["./src/modules/notify/*"],
- "@coffee/*": ["./src/modules/coffee/*"],
- "@nomadro/pay": ["./packages/pay/src/index.ts"],
- "@nomadro/pb": ["./packages/pb/src/index.ts"],
- "@nomadro/sdk": ["./packages/sdk/src/index.ts"]
+ "@/*": [
+ "./src/*"
+ ],
+ "~/*": [
+ "./src/*"
+ ],
+ "@ebook/*": [
+ "./src/modules/ebook/*"
+ ],
+ "@community/*": [
+ "./src/modules/community/*"
+ ],
+ "@social/*": [
+ "./src/modules/social/*"
+ ],
+ "@navmini/*": [
+ "./src/modules/nav/*"
+ ],
+ "@vip/*": [
+ "./src/modules/vip/*"
+ ],
+ "@work/*": [
+ "./src/modules/work/*"
+ ],
+ "@notify/*": [
+ "./src/modules/notify/*"
+ ],
+ "@coffee/*": [
+ "./src/modules/coffee/*"
+ ],
+ "@nomadro/pay": [
+ "./packages/pay/src/index.ts"
+ ],
+ "@nomadro/pb": [
+ "./packages/pb/src/index.ts"
+ ],
+ "@nomadro/sdk": [
+ "./packages/sdk/src/index.ts"
+ ]
}
},
"include": [
@@ -38,7 +72,9 @@
"src/**/*.mts",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
- "packages/**/*.ts"
+ "packages/**/*.ts",
+ ".next-social-dev/types/**/*.ts",
+ ".next-social-dev/dev/types/**/*.ts"
],
"exclude": [
"node_modules",
{number}{eyebrow}
{title}
{description}