dsh-vault 1.9.4 → 1.9.5-rc.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 +92 -90
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -17,110 +17,110 @@ window.__ModuleLoader__.load({
|
|
|
17
17
|
document.head.appendChild(tag);
|
|
18
18
|
}
|
|
19
19
|
var VaultSection_module_css_default = {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"pwHistTime": "t_j5va_pwHistTime",
|
|
28
|
-
"rowExpired": "t_j5va_rowExpired",
|
|
29
|
-
"dueBadge": "t_j5va_dueBadge",
|
|
30
|
-
"bulkCount": "t_j5va_bulkCount",
|
|
31
|
-
"lockedBanner": "t_j5va_lockedBanner",
|
|
32
|
-
"toolbar": "t_j5va_toolbar",
|
|
33
|
-
"modeAuto": "t_j5va_modeAuto",
|
|
34
|
-
"kindIcon": "t_j5va_kindIcon",
|
|
35
|
-
"row": "t_j5va_row",
|
|
36
|
-
"dupGroup": "t_j5va_dupGroup",
|
|
20
|
+
"empty": "t_j5va_empty",
|
|
21
|
+
"editor": "t_j5va_editor",
|
|
22
|
+
"rowDue": "t_j5va_rowDue",
|
|
23
|
+
"auditRow": "t_j5va_auditRow",
|
|
24
|
+
"auditIssues": "t_j5va_auditIssues",
|
|
25
|
+
"sortButton": "t_j5va_sortButton",
|
|
26
|
+
"pwWeak": "t_j5va_pwWeak",
|
|
37
27
|
"retryButton": "t_j5va_retryButton",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
28
|
+
"resultCount": "t_j5va_resultCount",
|
|
29
|
+
"tabs": "t_j5va_tabs",
|
|
30
|
+
"tabActive": "t_j5va_tabActive",
|
|
31
|
+
"healthSummary": "t_j5va_healthSummary",
|
|
32
|
+
"dupGroup": "t_j5va_dupGroup",
|
|
33
|
+
"badge": "t_j5va_badge",
|
|
34
|
+
"rowExpired": "t_j5va_rowExpired",
|
|
42
35
|
"pwBar": "t_j5va_pwBar",
|
|
43
|
-
"
|
|
44
|
-
"pwHistRow": "t_j5va_pwHistRow",
|
|
45
|
-
"sortButton": "t_j5va_sortButton",
|
|
46
|
-
"pwFair": "t_j5va_pwFair",
|
|
36
|
+
"revealButton": "t_j5va_revealButton",
|
|
47
37
|
"moreButton": "t_j5va_moreButton",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"tab": "t_j5va_tab",
|
|
52
|
-
"histAdd": "t_j5va_histAdd",
|
|
53
|
-
"selectActive": "t_j5va_selectActive",
|
|
54
|
-
"pinOn": "t_j5va_pinOn",
|
|
55
|
-
"rowSelected": "t_j5va_rowSelected",
|
|
38
|
+
"secretField": "t_j5va_secretField",
|
|
39
|
+
"footer": "t_j5va_footer",
|
|
40
|
+
"pwLabel": "t_j5va_pwLabel",
|
|
56
41
|
"list": "t_j5va_list",
|
|
57
|
-
"empty": "t_j5va_empty",
|
|
58
42
|
"badgeDanger": "t_j5va_badgeDanger",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"deleteButton": "t_j5va_deleteButton",
|
|
67
|
-
"error": "t_j5va_error",
|
|
43
|
+
"histDanger": "t_j5va_histDanger",
|
|
44
|
+
"reportTitle": "t_j5va_reportTitle",
|
|
45
|
+
"reportLine": "t_j5va_reportLine",
|
|
46
|
+
"pinOn": "t_j5va_pinOn",
|
|
47
|
+
"healthBar": "t_j5va_healthBar",
|
|
48
|
+
"row": "t_j5va_row",
|
|
49
|
+
"reportBox": "t_j5va_reportBox",
|
|
68
50
|
"pwHistBox": "t_j5va_pwHistBox",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"modeAsk": "t_j5va_modeAsk",
|
|
76
|
-
"reportSub": "t_j5va_reportSub",
|
|
77
|
-
"histUpdate": "t_j5va_histUpdate",
|
|
78
|
-
"detailBox": "t_j5va_detailBox",
|
|
79
|
-
"detailItem": "t_j5va_detailItem",
|
|
80
|
-
"healthSummary": "t_j5va_healthSummary",
|
|
81
|
-
"policyField": "t_j5va_policyField",
|
|
51
|
+
"backupButton": "t_j5va_backupButton",
|
|
52
|
+
"genOpts": "t_j5va_genOpts",
|
|
53
|
+
"lockedTag": "t_j5va_lockedTag",
|
|
54
|
+
"modeReadonly": "t_j5va_modeReadonly",
|
|
55
|
+
"uriCode": "t_j5va_uriCode",
|
|
56
|
+
"pwHistTime": "t_j5va_pwHistTime",
|
|
82
57
|
"dupMerge": "t_j5va_dupMerge",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
58
|
+
"identity": "t_j5va_identity",
|
|
59
|
+
"bulkBar": "t_j5va_bulkBar",
|
|
60
|
+
"emptyHint": "t_j5va_emptyHint",
|
|
61
|
+
"genOptRow": "t_j5va_genOptRow",
|
|
62
|
+
"pwFair": "t_j5va_pwFair",
|
|
63
|
+
"detailItem": "t_j5va_detailItem",
|
|
64
|
+
"title": "t_j5va_title",
|
|
65
|
+
"deleteButton": "t_j5va_deleteButton",
|
|
66
|
+
"moreMenu": "t_j5va_moreMenu",
|
|
88
67
|
"editorActions": "t_j5va_editorActions",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"pwWeak": "t_j5va_pwWeak",
|
|
68
|
+
"pwMeter": "t_j5va_pwMeter",
|
|
69
|
+
"policyBar": "t_j5va_policyBar",
|
|
92
70
|
"kindChip": "t_j5va_kindChip",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
71
|
+
"policyField": "t_j5va_policyField",
|
|
72
|
+
"rowSelected": "t_j5va_rowSelected",
|
|
73
|
+
"totpRing": "t_j5va_totpRing",
|
|
74
|
+
"histAdd": "t_j5va_histAdd",
|
|
75
|
+
"genHist": "t_j5va_genHist",
|
|
76
|
+
"modeAuto": "t_j5va_modeAuto",
|
|
77
|
+
"dangerButton": "t_j5va_dangerButton",
|
|
78
|
+
"editorBody": "t_j5va_editorBody",
|
|
79
|
+
"histUpdate": "t_j5va_histUpdate",
|
|
80
|
+
"detailBox": "t_j5va_detailBox",
|
|
81
|
+
"pwHistPwd": "t_j5va_pwHistPwd",
|
|
82
|
+
"kindIcon": "t_j5va_kindIcon",
|
|
83
|
+
"bulkCount": "t_j5va_bulkCount",
|
|
84
|
+
"pinOff": "t_j5va_pinOff",
|
|
85
|
+
"rowMain": "t_j5va_rowMain",
|
|
102
86
|
"scoreRing": "t_j5va_scoreRing",
|
|
103
|
-
"
|
|
87
|
+
"pwStrong": "t_j5va_pwStrong",
|
|
104
88
|
"totp": "t_j5va_totp",
|
|
105
|
-
"
|
|
89
|
+
"bulkItem": "t_j5va_bulkItem",
|
|
106
90
|
"srOnly": "t_j5va_srOnly",
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
91
|
+
"selectActive": "t_j5va_selectActive",
|
|
92
|
+
"tabPane": "t_j5va_tabPane",
|
|
93
|
+
"moreWrap": "t_j5va_moreWrap",
|
|
94
|
+
"intro": "t_j5va_intro",
|
|
95
|
+
"reportSub": "t_j5va_reportSub",
|
|
96
|
+
"modeAsk": "t_j5va_modeAsk",
|
|
97
|
+
"histNeutral": "t_j5va_histNeutral",
|
|
98
|
+
"actionPrimary": "t_j5va_actionPrimary",
|
|
99
|
+
"field": "t_j5va_field",
|
|
110
100
|
"copied": "t_j5va_copied",
|
|
111
|
-
"
|
|
101
|
+
"error": "t_j5va_error",
|
|
102
|
+
"lockedBanner": "t_j5va_lockedBanner",
|
|
103
|
+
"kindFilter": "t_j5va_kindFilter",
|
|
104
|
+
"section": "t_j5va_section",
|
|
112
105
|
"searchBox": "t_j5va_searchBox",
|
|
113
|
-
"
|
|
106
|
+
"rowCheck": "t_j5va_rowCheck",
|
|
107
|
+
"rowActions": "t_j5va_rowActions",
|
|
114
108
|
"checkField": "t_j5va_checkField",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
109
|
+
"status": "t_j5va_status",
|
|
110
|
+
"emptyBox": "t_j5va_emptyBox",
|
|
111
|
+
"clearButton": "t_j5va_clearButton",
|
|
112
|
+
"toolbar": "t_j5va_toolbar",
|
|
113
|
+
"saveButton": "t_j5va_saveButton",
|
|
114
|
+
"badgeOk": "t_j5va_badgeOk",
|
|
115
|
+
"badgeWarn": "t_j5va_badgeWarn",
|
|
116
|
+
"pwHistRow": "t_j5va_pwHistRow",
|
|
117
|
+
"dueBadge": "t_j5va_dueBadge",
|
|
118
|
+
"tab": "t_j5va_tab",
|
|
119
|
+
"trashButton": "t_j5va_trashButton",
|
|
120
|
+
"addButton": "t_j5va_addButton",
|
|
120
121
|
"pinStar": "t_j5va_pinStar",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"histDanger": "t_j5va_histDanger"
|
|
122
|
+
"highBadge": "t_j5va_highBadge",
|
|
123
|
+
"dupNames": "t_j5va_dupNames"
|
|
124
124
|
};
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/client/VaultSection.tsx
|
|
@@ -1409,7 +1409,7 @@ window.__ModuleLoader__.load({
|
|
|
1409
1409
|
try {
|
|
1410
1410
|
const result = await get(id);
|
|
1411
1411
|
if (!result.found || result.entry === void 0) {
|
|
1412
|
-
setMessage(t("
|
|
1412
|
+
setMessage(t("entryNotFound"));
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
1415
|
const entry = result.entry;
|
|
@@ -1452,7 +1452,7 @@ window.__ModuleLoader__.load({
|
|
|
1452
1452
|
/** Save the current form (create or update). */
|
|
1453
1453
|
async function save() {
|
|
1454
1454
|
if (!(form.title ?? "").trim()) {
|
|
1455
|
-
setMessage(t("
|
|
1455
|
+
setMessage(t("errTitleEmpty"));
|
|
1456
1456
|
return;
|
|
1457
1457
|
}
|
|
1458
1458
|
const entryPw = editor.status === "editing" ? editor.entry?.password ?? "" : "";
|
|
@@ -4396,6 +4396,7 @@ window.__ModuleLoader__.load({
|
|
|
4396
4396
|
error: "Something went wrong.",
|
|
4397
4397
|
errLocked: "Vault is locked — unlock first.",
|
|
4398
4398
|
errTitleEmpty: "Title must not be empty.",
|
|
4399
|
+
entryNotFound: "Entry not found.",
|
|
4399
4400
|
errInvalidVaultName: "Invalid vault name.",
|
|
4400
4401
|
errReadonly: "This action is disabled in readonly mode.",
|
|
4401
4402
|
errDetail: "Something went wrong: {detail}",
|
|
@@ -4747,6 +4748,7 @@ window.__ModuleLoader__.load({
|
|
|
4747
4748
|
error: "操作失败。",
|
|
4748
4749
|
errLocked: "保险库已锁定,请先解锁。",
|
|
4749
4750
|
errTitleEmpty: "标题不能为空。",
|
|
4751
|
+
entryNotFound: "条目不存在。",
|
|
4750
4752
|
errInvalidVaultName: "保险库名称无效。",
|
|
4751
4753
|
errReadonly: "当前为只读模式,此操作已禁用。",
|
|
4752
4754
|
errDetail: "操作失败:{detail}",
|