@celljs/ta-nearby 4.17.0 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,19 +204,19 @@ var NearbyTexts;
204
204
  NearbyTexts.roomTitle = roomTitle;
205
205
  function invited(name, title) {
206
206
  return TaLanguageUtil.say({
207
- "zh-CN": `${name}(在你附近)邀请你进房间「${title}」`,
208
- "zh-TW": `${name}(在你附近)邀請你進房間「${title}」`,
209
- "en-US": `${name}, nearby, invites you into the room ${title}`,
210
- "ja-JP": `${name}(近くにいる)があなたをルーム「${title}」に招待しています`
207
+ "zh-CN": `${name}(在你附近)邀请你进群聊「${title}」`,
208
+ "zh-TW": `${name}(在你附近)邀請你進群聊「${title}」`,
209
+ "en-US": `${name}, nearby, invites you into the group chat ${title}`,
210
+ "ja-JP": `${name}(近くにいる)があなたをグループチャット「${title}」に招待しています`
211
211
  });
212
212
  }
213
213
  NearbyTexts.invited = invited;
214
214
  function proposeTitle(count) {
215
215
  return TaLanguageUtil.say({
216
- "zh-CN": `和附近的 ${count} 个 Ta 建个房间,放纪要和文件`,
217
- "zh-TW": `和附近的 ${count} 個 Ta 建個房間,放紀要和檔案`,
218
- "en-US": `Make a room with the ${count} Ta nearby, for notes and files`,
219
- "ja-JP": `近くにいる ${count} 人の Ta とルームを作成して、ノートとファイルを保存`
216
+ "zh-CN": `和附近的 ${count} 个 Ta 建个群聊,放纪要和文件`,
217
+ "zh-TW": `和附近的 ${count} 個 Ta 建個群聊,放紀要和檔案`,
218
+ "en-US": `Make a group chat with the ${count} Ta nearby, for notes and files`,
219
+ "ja-JP": `近くにいる ${count} 人の Ta とグループチャットを作成して、ノートとファイルを保存`
220
220
  });
221
221
  }
222
222
  NearbyTexts.proposeTitle = proposeTitle;
@@ -232,19 +232,19 @@ var NearbyTexts;
232
232
  function confirmRoom(title, names) {
233
233
  const lang = language();
234
234
  if (lang === "zh-CN") {
235
- return [`和附近的人建房间「${title}」?`, `会邀请 ${list(names)}。他们在自己的 Ta 里点"加入"后就进来,不需要你再同意。`];
235
+ return [`和附近的人建群聊「${title}」?`, `会邀请 ${list(names)}。他们在自己的 Ta 里点"加入"后就进来,不需要你再同意。`];
236
236
  }
237
237
  if (lang === "zh-TW") {
238
- return [`和附近的人建房間「${title}」?`, `會邀請 ${list(names)}。他們在自己的 Ta 裡點「加入」後就進來,不需要你再同意。`];
238
+ return [`和附近的人建群聊「${title}」?`, `會邀請 ${list(names)}。他們在自己的 Ta 裡點「加入」後就進來,不需要你再同意。`];
239
239
  }
240
240
  if (lang === "ja-JP") {
241
241
  return [
242
- `近くの人とルーム「${title}」を作成しますか?`,
242
+ `近くの人とグループチャット「${title}」を作成しますか?`,
243
243
  `${list(names)} に招待します。彼らは自分の Ta で参加をタップすると入ってきて、あなたが再度許可する必要はありません。`
244
244
  ];
245
245
  }
246
246
  return [
247
- `Make the room ${title} with those nearby?`,
247
+ `Make the group chat ${title} with those nearby?`,
248
248
  `It invites ${list(names)}. Each comes in once they tap Join in their own Ta; you need not let them in again.`
249
249
  ];
250
250
  }
@@ -438,10 +438,10 @@ var NearbyTexts;
438
438
  NearbyTexts.draftTitle = draftTitle;
439
439
  function kindTitle() {
440
440
  return {
441
- "zh-CN": "和附近的 Ta 建房间",
442
- "zh-TW": "和附近的 Ta 建房間",
443
- "en-US": "Make a room of the Ta nearby",
444
- "ja-JP": "近くにいる Ta とルームを作成"
441
+ "zh-CN": "和附近的 Ta 建群聊",
442
+ "zh-TW": "和附近的 Ta 建群聊",
443
+ "en-US": "Make a group chat of the Ta nearby",
444
+ "ja-JP": "近くにいる Ta とグループチャットを作成"
445
445
  };
446
446
  }
447
447
  NearbyTexts.kindTitle = kindTitle;
package/host/index.mjs CHANGED
@@ -41,7 +41,7 @@ var TaLanguageUtil;
41
41
  })(TaLanguageUtil || (TaLanguageUtil = {}));
42
42
 
43
43
  // ../ta-relay/esm/common/relay-faces.js
44
- var FACE_COUNT = 16;
44
+ var FACE_COUNT = 25;
45
45
  var BLUE = "#4285F4";
46
46
  var RED = "#EA4335";
47
47
  var YELLOW = "#FBBC05";
@@ -78,7 +78,16 @@ var LOOKS = [
78
78
  { color: TEAL, eye: WHITE, cheek: CHEEK, accent: "#1B8A84", eyeY: 22.5, gap: 8.4 },
79
79
  { color: PINK, eye: "#4A1428", cheek: "rgba(160, 20, 70, 0.3)", eyeY: 24, gap: 7.4 },
80
80
  { color: LILAC, eye: "#2A1A5E", cheek: CHEEK, eyeY: 25, gap: 8 },
81
- { color: YELLOW, eye: INK, cheek: CHEEK_WARM, eyeY: 25, gap: 7.4 }
81
+ { color: YELLOW, eye: INK, cheek: CHEEK_WARM, eyeY: 25, gap: 7.4 },
82
+ { color: BLUE, eye: WHITE, cheek: CHEEK, eyeY: 19.5, gap: 8 },
83
+ { color: CREAM, eye: "#4A3420", cheek: "rgba(240, 120, 120, 0.5)", eyeY: 23.5, gap: 8 },
84
+ { color: GREEN, eye: WHITE, cheek: CHEEK, eyeY: 21, gap: 8 },
85
+ { color: PINK, eye: "#4A1428", cheek: "rgba(160, 20, 70, 0.3)", eyeY: 19.5, gap: 8.4 },
86
+ { color: RED, eye: WHITE, cheek: CHEEK_DEEP, accent: "#B3261E", eyeY: 20, gap: 8.4 },
87
+ { color: SKY, eye: WHITE, cheek: CHEEK, eyeY: 23.5, gap: 8 },
88
+ { color: VIOLET, eye: WHITE, cheek: CHEEK, accent: "#6B3FD4", eyeY: 22, gap: 8 },
89
+ { color: TEAL, eye: WHITE, cheek: CHEEK, accent: "#1B8A84", eyeY: 25, gap: 7.6 },
90
+ { color: MINT, eye: "#1D3B27", cheek: CHEEK, accent: "#4AAE6C", eyeY: 22.5, gap: 9 }
82
91
  ];
83
92
  function corners(count, radius, cx, cy, inner) {
84
93
  const points = [];
@@ -170,6 +179,52 @@ function shape(face, look) {
170
179
  ]);
171
180
  case 15:
172
181
  return rounded("20,7 35,33 5,33", color, 6);
182
+ case 16:
183
+ return node("path", {
184
+ d: "M20 6.5l12 4.2v8.4c0 7.4-4.9 12.6-12 15.9-7.1-3.3-12-8.5-12-15.9v-8.4Z",
185
+ fill: color,
186
+ stroke: color,
187
+ "stroke-width": 3,
188
+ "stroke-linejoin": "round"
189
+ });
190
+ case 17:
191
+ return rounded("20,7 32.5,17.5 32.5,33 7.5,33 7.5,17.5", color, 4.5);
192
+ case 18:
193
+ return rounded("14,9 26,9 32.5,32 7.5,32", color, 6);
194
+ case 19:
195
+ return node("rect", { x: 4.5, y: 10.5, width: 31, height: 19.5, rx: 9.75, fill: color });
196
+ case 20:
197
+ return node("g", {}, [
198
+ node("rect", { x: 14, y: 5.5, width: 12, height: 4.5, rx: 1.6, fill: accent }),
199
+ node("rect", { x: 14, y: 30.5, width: 12, height: 4.5, rx: 1.6, fill: accent }),
200
+ node("ellipse", { cx: 20, cy: 20.25, rx: 15, ry: 12.25, fill: color })
201
+ ]);
202
+ case 21:
203
+ return node("g", {}, [
204
+ node("circle", { cx: 13.5, cy: 21.5, r: 7, fill: color }),
205
+ node("circle", { cx: 21.5, cy: 16.5, r: 9, fill: color }),
206
+ node("circle", { cx: 28.5, cy: 22.5, r: 6.5, fill: color }),
207
+ node("rect", { x: 5.5, y: 21, width: 29, height: 12, rx: 6, fill: color })
208
+ ]);
209
+ case 22:
210
+ return node("g", {}, [
211
+ node("rect", { x: 12.5, y: 5.5, width: 15, height: 5.5, rx: 2, fill: accent }),
212
+ node("rect", { x: 7.5, y: 9.5, width: 25, height: 25.5, rx: 6.5, fill: color })
213
+ ]);
214
+ case 23:
215
+ return node("g", {}, [
216
+ node("rect", { x: 18.8, y: 3.5, width: 2.4, height: 6, rx: 1.2, fill: accent }),
217
+ node("circle", { cx: 20, cy: 13, r: 6.5, fill: color }),
218
+ node("circle", { cx: 20, cy: 25, r: 11.5, fill: color })
219
+ ]);
220
+ case 24:
221
+ return node("g", {}, [
222
+ node("circle", { cx: 12, cy: 13, r: 5.5, fill: color }),
223
+ node("circle", { cx: 28, cy: 13, r: 5.5, fill: color }),
224
+ node("circle", { cx: 12, cy: 13, r: 2.2, fill: accent }),
225
+ node("circle", { cx: 28, cy: 13, r: 2.2, fill: accent }),
226
+ node("ellipse", { cx: 20, cy: 23.5, rx: 15.5, ry: 11.5, fill: color })
227
+ ]);
173
228
  default:
174
229
  return node("circle", { cx: 20, cy: 21, r: 14.5, fill: color });
175
230
  }
@@ -1131,19 +1186,19 @@ var NearbyTexts;
1131
1186
  NearbyTexts.roomTitle = roomTitle;
1132
1187
  function invited(name, title) {
1133
1188
  return TaLanguageUtil.say({
1134
- "zh-CN": `${name}(在你附近)邀请你进房间「${title}」`,
1135
- "zh-TW": `${name}(在你附近)邀請你進房間「${title}」`,
1136
- "en-US": `${name}, nearby, invites you into the room ${title}`,
1137
- "ja-JP": `${name}(近くにいる)があなたをルーム「${title}」に招待しています`
1189
+ "zh-CN": `${name}(在你附近)邀请你进群聊「${title}」`,
1190
+ "zh-TW": `${name}(在你附近)邀請你進群聊「${title}」`,
1191
+ "en-US": `${name}, nearby, invites you into the group chat ${title}`,
1192
+ "ja-JP": `${name}(近くにいる)があなたをグループチャット「${title}」に招待しています`
1138
1193
  });
1139
1194
  }
1140
1195
  NearbyTexts.invited = invited;
1141
1196
  function proposeTitle(count) {
1142
1197
  return TaLanguageUtil.say({
1143
- "zh-CN": `和附近的 ${count} 个 Ta 建个房间,放纪要和文件`,
1144
- "zh-TW": `和附近的 ${count} 個 Ta 建個房間,放紀要和檔案`,
1145
- "en-US": `Make a room with the ${count} Ta nearby, for notes and files`,
1146
- "ja-JP": `近くにいる ${count} 人の Ta とルームを作成して、ノートとファイルを保存`
1198
+ "zh-CN": `和附近的 ${count} 个 Ta 建个群聊,放纪要和文件`,
1199
+ "zh-TW": `和附近的 ${count} 個 Ta 建個群聊,放紀要和檔案`,
1200
+ "en-US": `Make a group chat with the ${count} Ta nearby, for notes and files`,
1201
+ "ja-JP": `近くにいる ${count} 人の Ta とグループチャットを作成して、ノートとファイルを保存`
1147
1202
  });
1148
1203
  }
1149
1204
  NearbyTexts.proposeTitle = proposeTitle;
@@ -1159,19 +1214,19 @@ var NearbyTexts;
1159
1214
  function confirmRoom(title, names) {
1160
1215
  const lang = language();
1161
1216
  if (lang === "zh-CN") {
1162
- return [`和附近的人建房间「${title}」?`, `会邀请 ${list(names)}。他们在自己的 Ta 里点"加入"后就进来,不需要你再同意。`];
1217
+ return [`和附近的人建群聊「${title}」?`, `会邀请 ${list(names)}。他们在自己的 Ta 里点"加入"后就进来,不需要你再同意。`];
1163
1218
  }
1164
1219
  if (lang === "zh-TW") {
1165
- return [`和附近的人建房間「${title}」?`, `會邀請 ${list(names)}。他們在自己的 Ta 裡點「加入」後就進來,不需要你再同意。`];
1220
+ return [`和附近的人建群聊「${title}」?`, `會邀請 ${list(names)}。他們在自己的 Ta 裡點「加入」後就進來,不需要你再同意。`];
1166
1221
  }
1167
1222
  if (lang === "ja-JP") {
1168
1223
  return [
1169
- `近くの人とルーム「${title}」を作成しますか?`,
1224
+ `近くの人とグループチャット「${title}」を作成しますか?`,
1170
1225
  `${list(names)} に招待します。彼らは自分の Ta で参加をタップすると入ってきて、あなたが再度許可する必要はありません。`
1171
1226
  ];
1172
1227
  }
1173
1228
  return [
1174
- `Make the room ${title} with those nearby?`,
1229
+ `Make the group chat ${title} with those nearby?`,
1175
1230
  `It invites ${list(names)}. Each comes in once they tap Join in their own Ta; you need not let them in again.`
1176
1231
  ];
1177
1232
  }
@@ -1365,10 +1420,10 @@ var NearbyTexts;
1365
1420
  NearbyTexts.draftTitle = draftTitle;
1366
1421
  function kindTitle() {
1367
1422
  return {
1368
- "zh-CN": "和附近的 Ta 建房间",
1369
- "zh-TW": "和附近的 Ta 建房間",
1370
- "en-US": "Make a room of the Ta nearby",
1371
- "ja-JP": "近くにいる Ta とルームを作成"
1423
+ "zh-CN": "和附近的 Ta 建群聊",
1424
+ "zh-TW": "和附近的 Ta 建群聊",
1425
+ "en-US": "Make a group chat of the Ta nearby",
1426
+ "ja-JP": "近くにいる Ta とグループチャットを作成"
1372
1427
  };
1373
1428
  }
1374
1429
  NearbyTexts.kindTitle = kindTitle;
@@ -1650,6 +1705,16 @@ import { createHash as createHash2, randomBytes as randomBytes3, randomInt } fro
1650
1705
  // ../ta-relay/esm/common/relay-protocol.js
1651
1706
  var RELAY_FRAME_CSP = "default-src 'none'; script-src 'unsafe-inline' 'unsafe-eval' https: data: blob:; style-src 'unsafe-inline' https: data:; img-src https: data: blob:; font-src https: data:; media-src https: data: blob:; connect-src 'none'; form-action 'none'";
1652
1707
  var RELAY_FRAME_HEADER_CSP = `${RELAY_FRAME_CSP}; frame-ancestors 'self'; sandbox allow-scripts allow-popups allow-popups-to-escape-sandbox`;
1708
+ var OPEN_IN_TA = `<p><a id="open" style="display:inline-block;padding:10px 18px;border-radius:20px;background:#111;color:#fff;text-decoration:none;font-weight:600">Open in Ta · 在 Ta 中打开</a></p>
1709
+ <script>document.getElementById('open').href='ta://open?link='+encodeURIComponent(location.href)</script>`;
1710
+ var RELAY_PAIR_PAGE = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Ta</title>
1711
+ <body style="font:16px system-ui;max-width:32em;margin:3em auto;padding:0 1em">
1712
+ <h1>Ta</h1><p>Open this link in the Ta app, or paste it there, to reach your Ta from this device.</p>
1713
+ <p>打开 Ta 应用,粘贴这个链接,就能从这台设备连到你的 Ta。</p>${OPEN_IN_TA}</body>`;
1714
+ var RELAY_SHARE_PAGE = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Ta</title>
1715
+ <body style="font:16px system-ui;max-width:32em;margin:3em auto;padding:0 1em">
1716
+ <h1>Ta</h1><p>Someone shared an extension of Ta. Scan the code in the Ta app, or paste this link in its Quick open, to open it.</p>
1717
+ <p>有人分享了一个 Ta 扩展。在 Ta 应用里扫码,或把这个链接粘贴到“快捷打开”,就能打开它。</p>${OPEN_IN_TA}</body>`;
1653
1718
  var RELAY_SHARE_MAX_BYTES = 8 * 1024 * 1024;
1654
1719
  var RELAY_SHARE_CHUNK_BYTES = 192 * 1024;
1655
1720
  var RELAY_CONTENT_MAX_BYTES = 8 * 1024 * 1024;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-nearby",
3
- "version": "4.17.0",
3
+ "version": "4.19.0",
4
4
  "description": "A pi package for Ta: the other Ta around on the same network while you let them see you, known to Ta in your conversations, and rooms of those present made in a tap",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -27,9 +27,9 @@
27
27
  "watch": "tsc -b -w --preserveWatchOutput"
28
28
  },
29
29
  "devDependencies": {
30
- "@celljs/ta-protocol": "4.17.0",
31
- "@celljs/ta-relay": "4.17.0",
32
- "@celljs/ta-web": "4.17.0",
30
+ "@celljs/ta-protocol": "4.19.0",
31
+ "@celljs/ta-relay": "4.19.0",
32
+ "@celljs/ta-web": "4.19.0",
33
33
  "@types/react": "^19.3.0"
34
34
  },
35
35
  "publishConfig": {
@@ -43,10 +43,10 @@
43
43
  "ja-JP": "近くの人"
44
44
  },
45
45
  "summary": {
46
- "en": "See which Ta are around you on the same network while you turn it on, and get things done with them: Ta makes a room of those present, hands them work, asks their doubles.",
47
- "zh-CN": "打开后看到同一网络里身边的 Ta,并和他们一起办事:Ta 帮你和在场的人建房间、派任务、问他们的分身。",
48
- "zh-TW": "開啟後看到同一網路裡身邊的 Ta,並和他們一起辦事:Ta 幫你和在場的人建房間、派任務、問他們的分身。",
49
- "ja-JP": "オンにすると同じネットワークにいる周りの Ta が見え、一緒に作業できます:その場の人とルームを作る、タスクを任せる、相手の分身に聞く。"
46
+ "en": "See which Ta are around you on the same network while you turn it on, and get things done with them: Ta makes a group chat of those present, hands them work, asks their doubles.",
47
+ "zh-CN": "打开后看到同一网络里身边的 Ta,并和他们一起办事:Ta 帮你和在场的人建群聊、派任务、问他们的分身。",
48
+ "zh-TW": "開啟後看到同一網路裡身邊的 Ta,並和他們一起辦事:Ta 幫你和在場的人建群聊、派任務、問他們的分身。",
49
+ "ja-JP": "オンにすると同じネットワークにいる周りの Ta が見え、一緒に作業できます:その場の人とグループチャットを作る、タスクを任せる、相手の分身に聞く。"
50
50
  },
51
51
  "icon": "Radar",
52
52
  "web": [
package/web/index.js CHANGED
@@ -41,7 +41,7 @@ var TaLanguageUtil;
41
41
  var EN = {
42
42
  title: "Nearby",
43
43
  offTitle: "See who is around",
44
- offHint: "Turned on, the Ta around you on the same network that turned it on too show here, and Ta can make a room of them, hand them work or ask their doubles.",
44
+ offHint: "Turned on, the Ta around you on the same network that turned it on too show here, and Ta can make a group chat of them, hand them work or ask their doubles.",
45
45
  hour: "For an hour",
46
46
  today: "Today",
47
47
  always: "Until I turn it off",
@@ -55,19 +55,19 @@ var EN = {
55
55
  nobodyHint: "Those with you open Discover → Nearby in their Ta and turn it on too.",
56
56
  friend: "Friend",
57
57
  someone: "A user of Ta",
58
- makeRoom: "Make a room of {n}",
59
- makeRoomAll: "Make a room together",
60
- roomTitle: "Name of the room",
58
+ makeRoom: "Make a group chat of {n}",
59
+ makeRoomAll: "Make a group chat together",
60
+ roomTitle: "Name of the group chat",
61
61
  defaultRoom: "Nearby · {time}",
62
62
  made: "Invited {names}: each comes in once they tap Join.",
63
63
  missed: "Could not reach {names}.",
64
- sayIt: "Or tell Ta: “make a room and send today’s notes to those nearby”.",
64
+ sayIt: "Or tell Ta: “make a group chat and send today’s notes to those nearby”.",
65
65
  youAre: "Others see you as",
66
66
  hideName: "Hide my name",
67
67
  showName: "Show my name",
68
68
  invites: "Invitations",
69
69
  invited: "{name} invites you into “{title}”",
70
- inviteNote: "Nearby, on your network. Once in, you see what is said and shared in the room, and they see what you say there.",
70
+ inviteNote: "Nearby, on your network. Once in, you see what is said and shared in the group chat, and they see what you say there.",
71
71
  inviteStranger: "The name is only what they say: join if you know who it is.",
72
72
  join: "Join",
73
73
  notNow: "Not now",
@@ -97,7 +97,7 @@ var EN = {
97
97
  showAsk: "Ask me",
98
98
  showAuto: "At once",
99
99
  settingsWork: "Those nearby may ask my Ta to work",
100
- settingsWorkHint: "They hand it tasks in a room; working in a folder still needs your permission each time.",
100
+ settingsWorkHint: "They hand it tasks in a group chat; working in a folder still needs your permission each time.",
101
101
  settingsMeet: "Open to meet people nearby",
102
102
  settingsMeetHint: "Your Ta and theirs compare cards; Ta proposes to say hello only for a reason, 3 a day at most. Names go only once both say yes.",
103
103
  card: "Your card",
@@ -125,7 +125,7 @@ var EN = {
125
125
  var ZH = {
126
126
  title: "附近",
127
127
  offTitle: "看看身边有谁",
128
- offHint: "打开后,同一网络里也打开了附近的 Ta 会出现在这里;Ta 能和他们一起建房间、派任务、问他们的分身。",
128
+ offHint: "打开后,同一网络里也打开了附近的 Ta 会出现在这里;Ta 能和他们一起建群聊、派任务、问他们的分身。",
129
129
  hour: "1 小时",
130
130
  today: "今天",
131
131
  always: "一直,直到我关掉",
@@ -139,19 +139,19 @@ var ZH = {
139
139
  nobodyHint: "让身边的人在自己的 Ta 里打开 发现 → 附近。",
140
140
  friend: "好友",
141
141
  someone: "一位 Ta 用户",
142
- makeRoom: "和这 {n} 位建房间",
143
- makeRoomAll: "一起建个房间",
144
- roomTitle: "房间名",
142
+ makeRoom: "和这 {n} 位建群聊",
143
+ makeRoomAll: "一起建个群聊",
144
+ roomTitle: "群聊名",
145
145
  defaultRoom: "附近 · {time}",
146
146
  made: "已邀请 {names},他们点“加入”后就进来。",
147
147
  missed: "没联系上 {names}。",
148
- sayIt: "也可以直接对 Ta 说:“建个房间,把今天的纪要发给附近的人”。",
148
+ sayIt: "也可以直接对 Ta 说:“建个群聊,把今天的纪要发给附近的人”。",
149
149
  youAre: "别人看到的你",
150
150
  hideName: "不显示名字",
151
151
  showName: "显示名字",
152
152
  invites: "邀请",
153
- invited: "{name} 邀请你进房间「{title}」",
154
- inviteNote: "在你附近、同一网络里。进去后能看到房间里说的和放的东西,他们也能看到你在那里说的话。",
153
+ invited: "{name} 邀请你进群聊「{title}」",
154
+ inviteNote: "在你附近、同一网络里。进去后能看到群里说的和放的东西,他们也能看到你在那里说的话。",
155
155
  inviteStranger: "名字是对方自称的,认识再加入。",
156
156
  join: "加入",
157
157
  notNow: "不了",
@@ -181,7 +181,7 @@ var ZH = {
181
181
  showAsk: "先问我",
182
182
  showAuto: "直接展示",
183
183
  settingsWork: "附近的人可以请我的 Ta 做事",
184
- settingsWorkHint: "对方在房间里把任务交给你的分身;要在目录里做事,每次仍由你授权。",
184
+ settingsWorkHint: "对方在群里把任务交给你的分身;要在目录里做事,每次仍由你授权。",
185
185
  settingsMeet: "愿意认识附近的人",
186
186
  settingsMeetHint: "你和对方的 Ta 先比对名片,有具体理由才提议你打招呼,每天最多 3 次;双方都同意后才互相知道名字。",
187
187
  card: "我的名片",
@@ -209,7 +209,7 @@ var ZH = {
209
209
  var ZH_TW = {
210
210
  title: "附近",
211
211
  offTitle: "看看身邊有誰",
212
- offHint: "開啟後,同一網路裡也打開了附近的 Ta 會出現在這裡;Ta 能和他們一起建房間、派任務、問他們的分身。",
212
+ offHint: "開啟後,同一網路裡也打開了附近的 Ta 會出現在這裡;Ta 能和他們一起建群聊、派任務、問他們的分身。",
213
213
  hour: "1 小時",
214
214
  today: "今天",
215
215
  always: "一直,直到我關掉",
@@ -223,19 +223,19 @@ var ZH_TW = {
223
223
  nobodyHint: "讓身邊的人在自己的 Ta 裡開啟 發現 → 附近。",
224
224
  friend: "好友",
225
225
  someone: "一位 Ta 使用者",
226
- makeRoom: "和這 {n} 位建房間",
227
- makeRoomAll: "一起建個房間",
228
- roomTitle: "房間名",
226
+ makeRoom: "和這 {n} 位建群聊",
227
+ makeRoomAll: "一起建個群聊",
228
+ roomTitle: "群聊名",
229
229
  defaultRoom: "附近 · {time}",
230
230
  made: "已邀請 {names},他們點「加入」後就進來。",
231
231
  missed: "沒聯絡上 {names}。",
232
- sayIt: "也可以直接對 Ta 說:「建個房間,把今天的紀要發給附近的人」。",
232
+ sayIt: "也可以直接對 Ta 說:「建個群聊,把今天的紀要發給附近的人」。",
233
233
  youAre: "別人看到的你",
234
234
  hideName: "不顯示名字",
235
235
  showName: "顯示名字",
236
236
  invites: "邀請",
237
- invited: "{name} 邀請你進房間「{title}」",
238
- inviteNote: "在你附近、同一網路裡。進去後能看到房間裡說的和放的東西,他們也能看到你在那裡說的話。",
237
+ invited: "{name} 邀請你進群聊「{title}」",
238
+ inviteNote: "在你附近、同一網路裡。進去後能看到群裡說的和放的東西,他們也能看到你在那裡說的話。",
239
239
  inviteStranger: "名字是對方自稱的,認識再加入。",
240
240
  join: "加入",
241
241
  notNow: "不了",
@@ -265,7 +265,7 @@ var ZH_TW = {
265
265
  showAsk: "先問我",
266
266
  showAuto: "直接展示",
267
267
  settingsWork: "附近的人可以請我的 Ta 做事",
268
- settingsWorkHint: "對方在房間裡把任務交給你的分身;要在目錄裡做事,每次仍由你授權。",
268
+ settingsWorkHint: "對方在群裡把任務交給你的分身;要在目錄裡做事,每次仍由你授權。",
269
269
  settingsMeet: "願意認識附近的人",
270
270
  settingsMeetHint: "你和對方的 Ta 先比對名片,有具體理由才提議你打招呼,每天最多 3 次;雙方都同意後才互相知道名字。",
271
271
  card: "我的名片",
@@ -293,7 +293,7 @@ var ZH_TW = {
293
293
  var JA = {
294
294
  title: "近くの人",
295
295
  offTitle: "身近にいる人を探す",
296
- offHint: "オンにすると、同じネットワークで近くの人もオンにしている Ta が表示されます;Ta は一緒にルームを作ったり、タスクを派遣したり、彼らの分身に問い合わせることができます。",
296
+ offHint: "オンにすると、同じネットワークで近くの人もオンにしている Ta が表示されます;Ta は一緒にグループチャットを作ったり、タスクを派遣したり、彼らの分身に問い合わせることができます。",
297
297
  hour: "1 時間",
298
298
  today: "今日",
299
299
  always: "オフにするまで",
@@ -307,19 +307,19 @@ var JA = {
307
307
  nobodyHint: "身近な人に自分の Ta で 見つける → 近くの人 をオンにしてもらいます。",
308
308
  friend: "友だち",
309
309
  someone: "Ta のユーザー",
310
- makeRoom: "この {n} 人とルームを作成",
311
- makeRoomAll: "一緒にルームを作成",
312
- roomTitle: "ルーム名",
310
+ makeRoom: "この {n} 人とグループチャットを作成",
311
+ makeRoomAll: "一緒にグループチャットを作成",
312
+ roomTitle: "グループチャット名",
313
313
  defaultRoom: "近くの人 · {time}",
314
314
  made: "{names} を招待しました。「参加」をタップすると入室します。",
315
315
  missed: "{names} に連絡できませんでした。",
316
- sayIt: "または Ta に「ルームを作成して、今日のノートを近くの人に送って」と言うこともできます。",
316
+ sayIt: "または Ta に「グループチャットを作成して、今日のノートを近くの人に送って」と言うこともできます。",
317
317
  youAre: "ほかの人に見えているあなた",
318
318
  hideName: "名前を非表示",
319
319
  showName: "名前を表示",
320
320
  invites: "招待",
321
- invited: "{name} があなたを「{title}」ルームに招待しました",
322
- inviteNote: "あなたの近くの同じネットワーク上です。入室すると、ルーム内で言ったことや共有したものが見え、他の人もあなたが言ったことが見えます。",
321
+ invited: "{name} があなたを「{title}」グループチャットに招待しました",
322
+ inviteNote: "あなたの近くの同じネットワーク上です。入室すると、グループ内で言ったことや共有したものが見え、他の人もあなたが言ったことが見えます。",
323
323
  inviteStranger: "名前は相手の自称です。知り合いなら参加してください。",
324
324
  join: "参加",
325
325
  notNow: "あとで",
@@ -349,7 +349,7 @@ var JA = {
349
349
  showAsk: "まず聞く",
350
350
  showAuto: "直接表示",
351
351
  settingsWork: "近くの人が私の Ta に仕事を依頼できます",
352
- settingsWorkHint: "ほかの人がルームであなたの分身にタスクを与えます。ディレクトリで作業するには毎回許可が必要です。",
352
+ settingsWorkHint: "ほかの人がグループチャットであなたの分身にタスクを与えます。ディレクトリで作業するには毎回許可が必要です。",
353
353
  settingsMeet: "近くの人と知り合う意思があります",
354
354
  settingsMeetHint: "あなたと相手の Ta がまず名刺を比較します。具体的な理由がある場合のみ Ta があいさつを提案します。1 日最大 3 回。両方が同意してからお互いの名前がわかります。",
355
355
  card: "私の名刺",
@@ -738,6 +738,7 @@ function ShowContent({ content }) {
738
738
  }, content.data);
739
739
  }
740
740
  function ShowOverlay({ shown, close }) {
741
+ const Loading = pi.ui.Loading ?? pi.ui.Skeleton;
741
742
  const status = useStatus();
742
743
  const current = status.shown?.k === shown.k ? status.shown : undefined;
743
744
  const [content, setContent] = React.useState();
@@ -799,9 +800,7 @@ function ShowOverlay({ shown, close }) {
799
800
  className: "tnb-show-body"
800
801
  }, content ? /* @__PURE__ */ React.createElement(ShowContent, {
801
802
  content
802
- }) : /* @__PURE__ */ React.createElement(pi.ui.Skeleton, {
803
- rows: 4
804
- })));
803
+ }) : /* @__PURE__ */ React.createElement(Loading, null)));
805
804
  }
806
805
  var showing;
807
806
  function openShown(shown) {
@@ -881,6 +880,7 @@ class NearbyHome {
881
880
  detail,
882
881
  icon: icon("Radar"),
883
882
  unseen: status.invites.length > 0 || greets.length > 0,
883
+ place: "partners",
884
884
  ...status.peers.length && pi.ui.GroupFace ? {
885
885
  face: ({ size }) => /* @__PURE__ */ React.createElement(pi.ui.GroupFace, {
886
886
  members: store.get().peers.map((peer) => ({ seed: peer.friend?.id ?? peer.e, face: peer.face })),
@@ -1252,7 +1252,7 @@ function activate(pi2) {
1252
1252
  bind(pi2.React);
1253
1253
  bindPage(pi2);
1254
1254
  const removeStyle = injectStyle();
1255
- pi2.registerView("nearby", { title: () => t("title"), icon: icon("Radar"), render: NearbyPage, discover: true, group: "people", order: 82 });
1255
+ pi2.registerView("nearby", { title: () => t("title"), icon: icon("Radar"), render: NearbyPage, group: "people", order: 82 });
1256
1256
  pi2.registerSettings(nearbySettings());
1257
1257
  const home = new NearbyHome;
1258
1258
  const stopHome = home.start();