dsh-vault 1.6.0 → 1.6.1-rc.2

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/lib/client.js CHANGED
@@ -17,89 +17,89 @@ window.__ModuleLoader__.load({
17
17
  document.head.appendChild(tag);
18
18
  }
19
19
  var VaultSection_module_css_default = {
20
- "rowExpired": "t_j5va_rowExpired",
21
- "toolbar": "t_j5va_toolbar",
22
- "status": "t_j5va_status",
23
- "badge": "t_j5va_badge",
24
- "detailItem": "t_j5va_detailItem",
25
- "pwFair": "t_j5va_pwFair",
26
- "pwStrong": "t_j5va_pwStrong",
27
- "copied": "t_j5va_copied",
28
- "editorBody": "t_j5va_editorBody",
29
- "addButton": "t_j5va_addButton",
30
- "modeAuto": "t_j5va_modeAuto",
20
+ "policyField": "t_j5va_policyField",
21
+ "field": "t_j5va_field",
22
+ "saveButton": "t_j5va_saveButton",
31
23
  "scoreRing": "t_j5va_scoreRing",
32
- "tabs": "t_j5va_tabs",
33
- "reportLine": "t_j5va_reportLine",
24
+ "kindFilter": "t_j5va_kindFilter",
25
+ "rowActions": "t_j5va_rowActions",
26
+ "genOpts": "t_j5va_genOpts",
27
+ "reportSub": "t_j5va_reportSub",
28
+ "detailBox": "t_j5va_detailBox",
29
+ "editorActions": "t_j5va_editorActions",
30
+ "dangerButton": "t_j5va_dangerButton",
31
+ "auditRow": "t_j5va_auditRow",
32
+ "list": "t_j5va_list",
33
+ "pinStar": "t_j5va_pinStar",
34
+ "revealButton": "t_j5va_revealButton",
35
+ "srOnly": "t_j5va_srOnly",
36
+ "searchBox": "t_j5va_searchBox",
34
37
  "secretField": "t_j5va_secretField",
35
- "badgeDanger": "t_j5va_badgeDanger",
38
+ "dueBadge": "t_j5va_dueBadge",
39
+ "totpRing": "t_j5va_totpRing",
40
+ "deleteButton": "t_j5va_deleteButton",
36
41
  "backupButton": "t_j5va_backupButton",
37
- "modeReadonly": "t_j5va_modeReadonly",
38
- "uriCode": "t_j5va_uriCode",
39
- "badgeOk": "t_j5va_badgeOk",
40
- "searchBox": "t_j5va_searchBox",
41
- "row": "t_j5va_row",
42
- "dupNames": "t_j5va_dupNames",
43
- "reportTitle": "t_j5va_reportTitle",
44
- "highBadge": "t_j5va_highBadge",
45
- "tabActive": "t_j5va_tabActive",
46
- "error": "t_j5va_error",
47
- "rowActions": "t_j5va_rowActions",
48
42
  "pwBar": "t_j5va_pwBar",
49
- "emptyBox": "t_j5va_emptyBox",
50
- "rowMain": "t_j5va_rowMain",
51
- "empty": "t_j5va_empty",
52
- "lockedTag": "t_j5va_lockedTag",
53
- "totp": "t_j5va_totp",
54
- "modeAsk": "t_j5va_modeAsk",
55
- "healthBar": "t_j5va_healthBar",
56
- "kindIcon": "t_j5va_kindIcon",
43
+ "modeAuto": "t_j5va_modeAuto",
44
+ "rowDue": "t_j5va_rowDue",
45
+ "resultCount": "t_j5va_resultCount",
57
46
  "genHist": "t_j5va_genHist",
58
- "section": "t_j5va_section",
59
- "totpRing": "t_j5va_totpRing",
60
- "dangerButton": "t_j5va_dangerButton",
61
- "reportSub": "t_j5va_reportSub",
62
- "dupGroup": "t_j5va_dupGroup",
63
- "genOptRow": "t_j5va_genOptRow",
64
- "editor": "t_j5va_editor",
47
+ "editorBody": "t_j5va_editorBody",
48
+ "totp": "t_j5va_totp",
49
+ "identity": "t_j5va_identity",
50
+ "clearButton": "t_j5va_clearButton",
51
+ "badgeDanger": "t_j5va_badgeDanger",
65
52
  "auditIssues": "t_j5va_auditIssues",
53
+ "reportBox": "t_j5va_reportBox",
54
+ "highBadge": "t_j5va_highBadge",
55
+ "genOptRow": "t_j5va_genOptRow",
56
+ "intro": "t_j5va_intro",
57
+ "reportLine": "t_j5va_reportLine",
58
+ "badgeWarn": "t_j5va_badgeWarn",
66
59
  "pwMeter": "t_j5va_pwMeter",
67
- "srOnly": "t_j5va_srOnly",
68
- "genOpts": "t_j5va_genOpts",
60
+ "pwFair": "t_j5va_pwFair",
61
+ "kindIcon": "t_j5va_kindIcon",
62
+ "tabActive": "t_j5va_tabActive",
69
63
  "sortButton": "t_j5va_sortButton",
70
- "emptyHint": "t_j5va_emptyHint",
71
- "trashButton": "t_j5va_trashButton",
72
- "tab": "t_j5va_tab",
73
- "rowDue": "t_j5va_rowDue",
74
- "auditRow": "t_j5va_auditRow",
75
- "clearButton": "t_j5va_clearButton",
76
- "resultCount": "t_j5va_resultCount",
77
- "lockedBanner": "t_j5va_lockedBanner",
78
- "field": "t_j5va_field",
79
- "policyField": "t_j5va_policyField",
80
- "reportBox": "t_j5va_reportBox",
81
- "editorActions": "t_j5va_editorActions",
82
- "dueBadge": "t_j5va_dueBadge",
83
- "footer": "t_j5va_footer",
84
- "checkField": "t_j5va_checkField",
85
- "detailBox": "t_j5va_detailBox",
64
+ "tabs": "t_j5va_tabs",
65
+ "tabPane": "t_j5va_tabPane",
66
+ "empty": "t_j5va_empty",
67
+ "policyBar": "t_j5va_policyBar",
68
+ "emptyBox": "t_j5va_emptyBox",
69
+ "error": "t_j5va_error",
86
70
  "dupMerge": "t_j5va_dupMerge",
71
+ "footer": "t_j5va_footer",
87
72
  "pwLabel": "t_j5va_pwLabel",
88
- "deleteButton": "t_j5va_deleteButton",
89
- "identity": "t_j5va_identity",
90
- "saveButton": "t_j5va_saveButton",
91
- "revealButton": "t_j5va_revealButton",
92
- "badgeWarn": "t_j5va_badgeWarn",
93
- "policyBar": "t_j5va_policyBar",
94
- "pinStar": "t_j5va_pinStar",
73
+ "title": "t_j5va_title",
74
+ "kindChip": "t_j5va_kindChip",
75
+ "lockedBanner": "t_j5va_lockedBanner",
76
+ "trashButton": "t_j5va_trashButton",
95
77
  "retryButton": "t_j5va_retryButton",
78
+ "dupGroup": "t_j5va_dupGroup",
79
+ "detailItem": "t_j5va_detailItem",
80
+ "addButton": "t_j5va_addButton",
81
+ "badge": "t_j5va_badge",
82
+ "lockedTag": "t_j5va_lockedTag",
83
+ "healthBar": "t_j5va_healthBar",
84
+ "rowExpired": "t_j5va_rowExpired",
85
+ "row": "t_j5va_row",
86
+ "emptyHint": "t_j5va_emptyHint",
87
+ "modeAsk": "t_j5va_modeAsk",
88
+ "dupNames": "t_j5va_dupNames",
89
+ "pwStrong": "t_j5va_pwStrong",
90
+ "uriCode": "t_j5va_uriCode",
91
+ "rowMain": "t_j5va_rowMain",
92
+ "toolbar": "t_j5va_toolbar",
93
+ "checkField": "t_j5va_checkField",
96
94
  "pwWeak": "t_j5va_pwWeak",
97
- "intro": "t_j5va_intro",
98
- "tabPane": "t_j5va_tabPane",
99
- "kindChip": "t_j5va_kindChip",
100
- "title": "t_j5va_title",
101
- "kindFilter": "t_j5va_kindFilter",
102
- "list": "t_j5va_list"
95
+ "badgeOk": "t_j5va_badgeOk",
96
+ "status": "t_j5va_status",
97
+ "editor": "t_j5va_editor",
98
+ "section": "t_j5va_section",
99
+ "reportTitle": "t_j5va_reportTitle",
100
+ "modeReadonly": "t_j5va_modeReadonly",
101
+ "tab": "t_j5va_tab",
102
+ "copied": "t_j5va_copied"
103
103
  };
104
104
  //#endregion
105
105
  //#region src/client/VaultSection.tsx
@@ -1304,8 +1304,13 @@ window.__ModuleLoader__.load({
1304
1304
  tags,
1305
1305
  fields
1306
1306
  };
1307
- if (editor.status === "creating") await add(patch);
1308
- else if (editor.status === "editing") await update(editor.entry.id, patch);
1307
+ if (editor.status === "creating") {
1308
+ await add(patch);
1309
+ setMessage(t("savedNew"));
1310
+ } else if (editor.status === "editing") {
1311
+ await update(editor.entry.id, patch);
1312
+ setMessage(t("savedUpdated"));
1313
+ }
1309
1314
  setEditor({ status: "closed" });
1310
1315
  await refresh();
1311
1316
  } catch {
@@ -2695,8 +2700,8 @@ window.__ModuleLoader__.load({
2695
2700
  }),
2696
2701
  watchMap[entry.id] !== void 0 && watchMap[entry.id].verdict !== "good" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2697
2702
  className: `${VaultSection_module_css_default.dueBadge} ${watchMap[entry.id].verdict === "poor" ? VaultSection_module_css_default.badgeDanger : VaultSection_module_css_default.badgeWarn}`,
2698
- title: watchMap[entry.id].flags.join(", "),
2699
- children: watchMap[entry.id].verdict === "poor" ? t("watchPoor") : t("watchWarn")
2703
+ title: t("watchFlagsTitle") + watchMap[entry.id].flags.join(", "),
2704
+ children: t("watchScore").replace("{n}", String(watchMap[entry.id].score))
2700
2705
  })
2701
2706
  ]
2702
2707
  }),
@@ -3449,8 +3454,10 @@ window.__ModuleLoader__.load({
3449
3454
  lockedMsg: "Vault locked — unlock with vault_unlock",
3450
3455
  ageToday: "new",
3451
3456
  ageHint: "Updated days ago (password age)",
3452
- watchPoor: "⚠ 高风险",
3453
- watchWarn: "⚠ 需关注",
3457
+ watchPoor: "⚠ high risk",
3458
+ watchWarn: "⚠ attention",
3459
+ watchScore: "{n}",
3460
+ watchFlagsTitle: "Risks: ",
3454
3461
  resultCount: "Results",
3455
3462
  totpUri: "URI",
3456
3463
  totpUriHint: "Show otpauth URI for another device",
@@ -3601,6 +3608,8 @@ window.__ModuleLoader__.load({
3601
3608
  quickAdd: "Quick add",
3602
3609
  cancel: "Cancel",
3603
3610
  save: "Save",
3611
+ savedNew: "Entry created.",
3612
+ savedUpdated: "Entry updated.",
3604
3613
  edit: "Edit",
3605
3614
  delete: "Delete",
3606
3615
  deleteConfirm: "Delete this entry? This cannot be undone.",
@@ -3743,6 +3752,8 @@ window.__ModuleLoader__.load({
3743
3752
  ageHint: "距上次更新天数(密码年龄)",
3744
3753
  watchPoor: "⚠ 高风险",
3745
3754
  watchWarn: "⚠ 需关注",
3755
+ watchScore: "{n}",
3756
+ watchFlagsTitle: "风险: ",
3746
3757
  resultCount: "结果",
3747
3758
  totpUri: "URI",
3748
3759
  totpUriHint: "显示 otpauth URI 以便在其它设备添加",
@@ -3893,6 +3904,8 @@ window.__ModuleLoader__.load({
3893
3904
  quickAdd: "快速添加",
3894
3905
  cancel: "取消",
3895
3906
  save: "保存",
3907
+ savedNew: "条目已创建。",
3908
+ savedUpdated: "条目已更新。",
3896
3909
  edit: "编辑",
3897
3910
  delete: "删除",
3898
3911
  deleteConfirm: "确定删除该条目?此操作不可撤销。",