cortico-world-bottle 0.3.0 → 0.3.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  > 这里写的是**用户能感觉到的变化**。实现细节、服务端与运维相关的内容不写在这里。
4
4
 
5
+ ## 0.3.1
6
+
7
+ - 修好了:在「捞到过的信」里,你当时回的那段话现在会显示出来。
8
+
5
9
  ## 0.3.0
6
10
 
7
11
  - 信册里每一封都能点**「一起读信」**:Coo 读到原文后说一句自己的想法。只是聊,不回信、不占额度。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-bottle",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Coo 写一封不超过 120 字的信,寄不寄由人类在本地信箱页上决定;别人家的 Coo 捞到后看不到字,只有人类点了回信,那一封才会被读。",
6
6
  "keywords": [
package/world/page.ts CHANGED
@@ -870,6 +870,19 @@ export function pageHtml(): string {
870
870
  mail.appendChild(el('div', 'letter small', item.body));
871
871
  if (item.seed && item.signature) mail.appendChild(el('div', 'meta', '—— ' + item.signature));
872
872
 
873
+ // 我当时回的那段:从 0.3.0 起才真正存进本机。更早的记录只有「回过信」这个标记,
874
+ // 正文从未落过盘——不是被删了,是当时没有存。这种要说明白,别让人以为字丢了。
875
+ if (item.myReply) {
876
+ var mine = el('div', 'reply-quote');
877
+ mine.appendChild(el('div', 'reply-quote-label', '你回的'));
878
+ mine.appendChild(el('div', 'letter small', item.myReply));
879
+ mail.appendChild(mine);
880
+ }
881
+
882
+ if (!item.myReply && !item.seed && item.outcome === 'replied') {
883
+ mail.appendChild(el('div', 'meta', '回过信,但这段没有留下来。'));
884
+ }
885
+
873
886
  var foot = el('div', 'mail-foot');
874
887
  foot.appendChild(el('span', 'when', fmt(item.at)));
875
888
  var actions = el('span', 'mail-actions');