dsh-vault 1.7.1-rc.2 → 1.7.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/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
- "saveButton": "t_j5va_saveButton",
21
- "status": "t_j5va_status",
22
- "healthBar": "t_j5va_healthBar",
23
- "backupButton": "t_j5va_backupButton",
24
- "deleteButton": "t_j5va_deleteButton",
25
- "badgeDanger": "t_j5va_badgeDanger",
26
- "totp": "t_j5va_totp",
27
- "section": "t_j5va_section",
28
- "lockedBanner": "t_j5va_lockedBanner",
29
- "dupMerge": "t_j5va_dupMerge",
30
- "auditIssues": "t_j5va_auditIssues",
31
- "revealButton": "t_j5va_revealButton",
32
- "pwBar": "t_j5va_pwBar",
33
- "pwStrong": "t_j5va_pwStrong",
34
20
  "resultCount": "t_j5va_resultCount",
21
+ "copied": "t_j5va_copied",
22
+ "genOptRow": "t_j5va_genOptRow",
23
+ "srOnly": "t_j5va_srOnly",
24
+ "rowExpired": "t_j5va_rowExpired",
25
+ "badgeOk": "t_j5va_badgeOk",
26
+ "dangerButton": "t_j5va_dangerButton",
27
+ "checkField": "t_j5va_checkField",
28
+ "toolbar": "t_j5va_toolbar",
29
+ "dupMerge": "t_j5va_dupMerge",
30
+ "pinStar": "t_j5va_pinStar",
31
+ "auditRow": "t_j5va_auditRow",
32
+ "searchBox": "t_j5va_searchBox",
33
+ "pwLabel": "t_j5va_pwLabel",
34
+ "lockedBanner": "t_j5va_lockedBanner",
35
+ "footer": "t_j5va_footer",
36
+ "detailItem": "t_j5va_detailItem",
37
+ "dupGroup": "t_j5va_dupGroup",
38
+ "reportBox": "t_j5va_reportBox",
39
+ "totpRing": "t_j5va_totpRing",
35
40
  "dupNames": "t_j5va_dupNames",
36
- "field": "t_j5va_field",
41
+ "reportTitle": "t_j5va_reportTitle",
42
+ "reportSub": "t_j5va_reportSub",
43
+ "tabs": "t_j5va_tabs",
44
+ "badgeWarn": "t_j5va_badgeWarn",
45
+ "healthBar": "t_j5va_healthBar",
46
+ "intro": "t_j5va_intro",
47
+ "tabPane": "t_j5va_tabPane",
48
+ "badge": "t_j5va_badge",
49
+ "pwFair": "t_j5va_pwFair",
50
+ "editor": "t_j5va_editor",
51
+ "modeReadonly": "t_j5va_modeReadonly",
52
+ "editorBody": "t_j5va_editorBody",
53
+ "list": "t_j5va_list",
54
+ "tabActive": "t_j5va_tabActive",
55
+ "backupButton": "t_j5va_backupButton",
56
+ "status": "t_j5va_status",
57
+ "rowMain": "t_j5va_rowMain",
58
+ "kindFilter": "t_j5va_kindFilter",
37
59
  "retryButton": "t_j5va_retryButton",
38
- "footer": "t_j5va_footer",
39
60
  "modeAsk": "t_j5va_modeAsk",
40
- "dangerButton": "t_j5va_dangerButton",
61
+ "deleteButton": "t_j5va_deleteButton",
62
+ "genOpts": "t_j5va_genOpts",
63
+ "pwBar": "t_j5va_pwBar",
64
+ "tab": "t_j5va_tab",
41
65
  "rowDue": "t_j5va_rowDue",
42
66
  "kindIcon": "t_j5va_kindIcon",
43
- "reportTitle": "t_j5va_reportTitle",
67
+ "pwStrong": "t_j5va_pwStrong",
68
+ "trashButton": "t_j5va_trashButton",
69
+ "kindChip": "t_j5va_kindChip",
44
70
  "pwWeak": "t_j5va_pwWeak",
45
- "pwLabel": "t_j5va_pwLabel",
46
- "reportLine": "t_j5va_reportLine",
47
- "tabs": "t_j5va_tabs",
48
- "srOnly": "t_j5va_srOnly",
49
- "lockedTag": "t_j5va_lockedTag",
50
- "badge": "t_j5va_badge",
51
- "uriCode": "t_j5va_uriCode",
52
- "auditRow": "t_j5va_auditRow",
71
+ "sortButton": "t_j5va_sortButton",
72
+ "empty": "t_j5va_empty",
73
+ "identity": "t_j5va_identity",
53
74
  "emptyHint": "t_j5va_emptyHint",
54
- "rowActions": "t_j5va_rowActions",
55
- "highBadge": "t_j5va_highBadge",
56
- "scoreRing": "t_j5va_scoreRing",
57
- "tab": "t_j5va_tab",
75
+ "field": "t_j5va_field",
76
+ "error": "t_j5va_error",
58
77
  "dueBadge": "t_j5va_dueBadge",
59
- "reportBox": "t_j5va_reportBox",
60
- "kindFilter": "t_j5va_kindFilter",
61
- "badgeOk": "t_j5va_badgeOk",
62
- "totpRing": "t_j5va_totpRing",
63
- "list": "t_j5va_list",
64
- "intro": "t_j5va_intro",
78
+ "reportLine": "t_j5va_reportLine",
79
+ "uriCode": "t_j5va_uriCode",
80
+ "revealButton": "t_j5va_revealButton",
81
+ "editorActions": "t_j5va_editorActions",
82
+ "badgeDanger": "t_j5va_badgeDanger",
65
83
  "detailBox": "t_j5va_detailBox",
66
- "reportSub": "t_j5va_reportSub",
67
- "badgeWarn": "t_j5va_badgeWarn",
84
+ "lockedTag": "t_j5va_lockedTag",
85
+ "totp": "t_j5va_totp",
86
+ "saveButton": "t_j5va_saveButton",
87
+ "scoreRing": "t_j5va_scoreRing",
88
+ "pwMeter": "t_j5va_pwMeter",
89
+ "secretField": "t_j5va_secretField",
68
90
  "policyBar": "t_j5va_policyBar",
69
- "identity": "t_j5va_identity",
91
+ "row": "t_j5va_row",
70
92
  "title": "t_j5va_title",
71
- "error": "t_j5va_error",
72
- "copied": "t_j5va_copied",
73
- "pinStar": "t_j5va_pinStar",
74
- "genHist": "t_j5va_genHist",
75
- "secretField": "t_j5va_secretField",
93
+ "highBadge": "t_j5va_highBadge",
94
+ "auditIssues": "t_j5va_auditIssues",
95
+ "section": "t_j5va_section",
96
+ "addButton": "t_j5va_addButton",
76
97
  "policyField": "t_j5va_policyField",
77
- "sortButton": "t_j5va_sortButton",
78
- "tabPane": "t_j5va_tabPane",
79
- "searchBox": "t_j5va_searchBox",
80
- "kindChip": "t_j5va_kindChip",
81
- "dupGroup": "t_j5va_dupGroup",
82
- "genOpts": "t_j5va_genOpts",
83
- "pwMeter": "t_j5va_pwMeter",
84
- "pwFair": "t_j5va_pwFair",
85
- "tabActive": "t_j5va_tabActive",
86
- "checkField": "t_j5va_checkField",
87
- "row": "t_j5va_row",
88
- "empty": "t_j5va_empty",
89
- "editor": "t_j5va_editor",
90
- "emptyBox": "t_j5va_emptyBox",
91
- "rowExpired": "t_j5va_rowExpired",
92
- "rowMain": "t_j5va_rowMain",
93
- "modeAuto": "t_j5va_modeAuto",
94
- "editorBody": "t_j5va_editorBody",
98
+ "genHist": "t_j5va_genHist",
95
99
  "clearButton": "t_j5va_clearButton",
96
- "editorActions": "t_j5va_editorActions",
97
- "trashButton": "t_j5va_trashButton",
98
- "toolbar": "t_j5va_toolbar",
99
- "genOptRow": "t_j5va_genOptRow",
100
- "modeReadonly": "t_j5va_modeReadonly",
101
- "addButton": "t_j5va_addButton",
102
- "detailItem": "t_j5va_detailItem"
100
+ "rowActions": "t_j5va_rowActions",
101
+ "modeAuto": "t_j5va_modeAuto",
102
+ "emptyBox": "t_j5va_emptyBox"
103
103
  };
104
104
  //#endregion
105
105
  //#region src/client/VaultSection.tsx
@@ -2687,9 +2687,9 @@ window.__ModuleLoader__.load({
2687
2687
  className: VaultSection_module_css_default.identity,
2688
2688
  children: t("trashed")
2689
2689
  })]
2690
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2690
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2691
2691
  className: VaultSection_module_css_default.rowActions,
2692
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2692
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2693
2693
  type: "button",
2694
2694
  onClick: () => {
2695
2695
  restore(entry.id).then(() => {
@@ -2699,7 +2699,19 @@ window.__ModuleLoader__.load({
2699
2699
  },
2700
2700
  disabled: busy || readonly || locked,
2701
2701
  children: t("restore")
2702
- })
2702
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
2703
+ type: "button",
2704
+ className: VaultSection_module_css_default.dangerButton,
2705
+ onClick: () => {
2706
+ if (!window.confirm(t("purgeOneConfirm").replace("{name}", entry.title))) return;
2707
+ purge(entry.id).then(() => {
2708
+ trash().then(setTrashEntries);
2709
+ refresh();
2710
+ });
2711
+ },
2712
+ disabled: busy || readonly || locked,
2713
+ children: t("purge")
2714
+ })]
2703
2715
  })]
2704
2716
  }, entry.id))
2705
2717
  }),
@@ -3783,6 +3795,8 @@ window.__ModuleLoader__.load({
3783
3795
  autoLock1h: "1 hour",
3784
3796
  autoLockHint: "Auto-lock",
3785
3797
  autoLockNeverHint: "auto-lock off",
3798
+ purge: "Delete permanently",
3799
+ purgeOneConfirm: "Permanently delete \"{name}\"? This cannot be undone.",
3786
3800
  kindLogin: "Login",
3787
3801
  kindSsh: "SSH",
3788
3802
  kindApiKey: "API key",
@@ -4095,6 +4109,8 @@ window.__ModuleLoader__.load({
4095
4109
  autoLock1h: "1 小时",
4096
4110
  autoLockHint: "自动锁定",
4097
4111
  autoLockNeverHint: "自动锁定已关闭",
4112
+ purge: "永久删除",
4113
+ purgeOneConfirm: "永久删除「{name}」?此操作不可撤销。",
4098
4114
  kindLogin: "登录",
4099
4115
  kindSsh: "SSH",
4100
4116
  kindApiKey: "API 密钥",