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 +4 -0
- package/package.json +1 -1
- package/world/page.ts +13 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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');
|