@240xu/dsh-message-ops 0.47.2 → 0.47.3
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/package.json +1 -1
- package/src/client/10-i18n.js +2 -0
- package/src/client/30-panel.js +9 -3
- package/src/client.js +11 -3
package/package.json
CHANGED
package/src/client/10-i18n.js
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
'panel.trashMoving': '删除中断,仅存副本留作人工恢复',
|
|
126
126
|
'panel.trashCorrupt': '清单损坏,只能永久删除',
|
|
127
127
|
'panel.trashManual': '需人工处理',
|
|
128
|
+
'panel.trashManualExpiry': '不会自动清理',
|
|
128
129
|
'panel.purgeConfirm': '再点一次永久删除',
|
|
129
130
|
'panel.restored': '会话已恢复',
|
|
130
131
|
'panel.purged': '回收站条目已永久删除',
|
|
@@ -251,6 +252,7 @@
|
|
|
251
252
|
'panel.trashMoving': 'Delete was interrupted; the only copy is kept for manual recovery',
|
|
252
253
|
'panel.trashCorrupt': 'Manifest is corrupt; only deleting forever is possible',
|
|
253
254
|
'panel.trashManual': 'Needs manual handling',
|
|
255
|
+
'panel.trashManualExpiry': 'never auto-purged',
|
|
254
256
|
'panel.purgeConfirm': 'Click again to delete forever',
|
|
255
257
|
'panel.restored': 'Session restored',
|
|
256
258
|
'panel.purged': 'Trash entry permanently deleted',
|
package/src/client/30-panel.js
CHANGED
|
@@ -726,8 +726,8 @@
|
|
|
726
726
|
const r = await readOpsJson(res)
|
|
727
727
|
if (!r.ok) throw opsError(r.status, r.data)
|
|
728
728
|
setTrash(prev => prev.filter(x => x.trashId !== trashId))
|
|
729
|
+
// 0.47.3:面板内已有绿色横幅,不要再弹同文案 toast(真机复核 finding #1)。
|
|
729
730
|
setDone(t('panel.restored'))
|
|
730
|
-
notifyDone(t('panel.restored'))
|
|
731
731
|
emitChanged()
|
|
732
732
|
// 0.33.13:unarchive 后宿主 feed 会把行放回侧栏,无需整页 reload。
|
|
733
733
|
} catch (reason) {
|
|
@@ -759,8 +759,8 @@
|
|
|
759
759
|
if (!r.ok) throw opsError(r.status, r.data)
|
|
760
760
|
setTrash(prev => prev.filter(x => x.trashId !== trashId))
|
|
761
761
|
setPurgeId(null)
|
|
762
|
+
// 0.47.3:同上 —— 横幅已可见,去掉重复 toast。
|
|
762
763
|
setDone(t('panel.purged'))
|
|
763
|
-
notifyDone(t('panel.purged'))
|
|
764
764
|
} catch (reason) {
|
|
765
765
|
setError(timeoutText(reason, t('errorPrefix')))
|
|
766
766
|
} finally {
|
|
@@ -1395,8 +1395,14 @@
|
|
|
1395
1395
|
React.createElement(
|
|
1396
1396
|
'div',
|
|
1397
1397
|
{ className: 'mopsTrashMeta' },
|
|
1398
|
+
// 0.47.3(真机 UI 复核 finding):`moving` 是删除中断留下的孤儿,
|
|
1399
|
+
// 服务端**永不自动清理**(只能人工 purge)→ 显示到期时间会误导。
|
|
1398
1400
|
(item.sessionId || t('panel.trashManual')) +
|
|
1399
|
-
(item.
|
|
1401
|
+
(item.state === 'moving'
|
|
1402
|
+
? ' · ' + t('panel.trashManualExpiry')
|
|
1403
|
+
: item.expiresAt
|
|
1404
|
+
? ' · ' + t('panel.expires') + ' ' + new Date(item.expiresAt).toLocaleDateString()
|
|
1405
|
+
: ''),
|
|
1400
1406
|
),
|
|
1401
1407
|
),
|
|
1402
1408
|
// 0.42.0(srv-audit D9/D10):异常态条目不提供 Restore ——
|
package/src/client.js
CHANGED
|
@@ -423,6 +423,7 @@ window.__ModuleLoader__.load({
|
|
|
423
423
|
'panel.trashMoving': '删除中断,仅存副本留作人工恢复',
|
|
424
424
|
'panel.trashCorrupt': '清单损坏,只能永久删除',
|
|
425
425
|
'panel.trashManual': '需人工处理',
|
|
426
|
+
'panel.trashManualExpiry': '不会自动清理',
|
|
426
427
|
'panel.purgeConfirm': '再点一次永久删除',
|
|
427
428
|
'panel.restored': '会话已恢复',
|
|
428
429
|
'panel.purged': '回收站条目已永久删除',
|
|
@@ -549,6 +550,7 @@ window.__ModuleLoader__.load({
|
|
|
549
550
|
'panel.trashMoving': 'Delete was interrupted; the only copy is kept for manual recovery',
|
|
550
551
|
'panel.trashCorrupt': 'Manifest is corrupt; only deleting forever is possible',
|
|
551
552
|
'panel.trashManual': 'Needs manual handling',
|
|
553
|
+
'panel.trashManualExpiry': 'never auto-purged',
|
|
552
554
|
'panel.purgeConfirm': 'Click again to delete forever',
|
|
553
555
|
'panel.restored': 'Session restored',
|
|
554
556
|
'panel.purged': 'Trash entry permanently deleted',
|
|
@@ -1597,8 +1599,8 @@ window.__ModuleLoader__.load({
|
|
|
1597
1599
|
const r = await readOpsJson(res)
|
|
1598
1600
|
if (!r.ok) throw opsError(r.status, r.data)
|
|
1599
1601
|
setTrash(prev => prev.filter(x => x.trashId !== trashId))
|
|
1602
|
+
// 0.47.3:面板内已有绿色横幅,不要再弹同文案 toast(真机复核 finding #1)。
|
|
1600
1603
|
setDone(t('panel.restored'))
|
|
1601
|
-
notifyDone(t('panel.restored'))
|
|
1602
1604
|
emitChanged()
|
|
1603
1605
|
// 0.33.13:unarchive 后宿主 feed 会把行放回侧栏,无需整页 reload。
|
|
1604
1606
|
} catch (reason) {
|
|
@@ -1630,8 +1632,8 @@ window.__ModuleLoader__.load({
|
|
|
1630
1632
|
if (!r.ok) throw opsError(r.status, r.data)
|
|
1631
1633
|
setTrash(prev => prev.filter(x => x.trashId !== trashId))
|
|
1632
1634
|
setPurgeId(null)
|
|
1635
|
+
// 0.47.3:同上 —— 横幅已可见,去掉重复 toast。
|
|
1633
1636
|
setDone(t('panel.purged'))
|
|
1634
|
-
notifyDone(t('panel.purged'))
|
|
1635
1637
|
} catch (reason) {
|
|
1636
1638
|
setError(timeoutText(reason, t('errorPrefix')))
|
|
1637
1639
|
} finally {
|
|
@@ -2266,8 +2268,14 @@ window.__ModuleLoader__.load({
|
|
|
2266
2268
|
React.createElement(
|
|
2267
2269
|
'div',
|
|
2268
2270
|
{ className: 'mopsTrashMeta' },
|
|
2271
|
+
// 0.47.3(真机 UI 复核 finding):`moving` 是删除中断留下的孤儿,
|
|
2272
|
+
// 服务端**永不自动清理**(只能人工 purge)→ 显示到期时间会误导。
|
|
2269
2273
|
(item.sessionId || t('panel.trashManual')) +
|
|
2270
|
-
(item.
|
|
2274
|
+
(item.state === 'moving'
|
|
2275
|
+
? ' · ' + t('panel.trashManualExpiry')
|
|
2276
|
+
: item.expiresAt
|
|
2277
|
+
? ' · ' + t('panel.expires') + ' ' + new Date(item.expiresAt).toLocaleDateString()
|
|
2278
|
+
: ''),
|
|
2271
2279
|
),
|
|
2272
2280
|
),
|
|
2273
2281
|
// 0.42.0(srv-audit D9/D10):异常态条目不提供 Restore ——
|