dsh-vault 1.8.0 → 1.8.1-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 +76 -70
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
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
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"deleteButton": "t_j5va_deleteButton",
|
|
21
|
+
"secretField": "t_j5va_secretField",
|
|
22
|
+
"toolbar": "t_j5va_toolbar",
|
|
23
|
+
"emptyBox": "t_j5va_emptyBox",
|
|
24
|
+
"genOptRow": "t_j5va_genOptRow",
|
|
25
|
+
"badgeWarn": "t_j5va_badgeWarn",
|
|
26
|
+
"row": "t_j5va_row",
|
|
27
|
+
"totp": "t_j5va_totp",
|
|
23
28
|
"emptyHint": "t_j5va_emptyHint",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
29
|
+
"field": "t_j5va_field",
|
|
30
|
+
"pinStar": "t_j5va_pinStar",
|
|
31
|
+
"dupNames": "t_j5va_dupNames",
|
|
32
|
+
"genOpts": "t_j5va_genOpts",
|
|
33
|
+
"revealButton": "t_j5va_revealButton",
|
|
26
34
|
"pwLabel": "t_j5va_pwLabel",
|
|
35
|
+
"reportLine": "t_j5va_reportLine",
|
|
36
|
+
"rowMain": "t_j5va_rowMain",
|
|
37
|
+
"uriCode": "t_j5va_uriCode",
|
|
38
|
+
"rowExpired": "t_j5va_rowExpired",
|
|
39
|
+
"status": "t_j5va_status",
|
|
27
40
|
"modeAuto": "t_j5va_modeAuto",
|
|
28
|
-
"
|
|
29
|
-
"totpRing": "t_j5va_totpRing",
|
|
30
|
-
"pinStar": "t_j5va_pinStar",
|
|
31
|
-
"dupGroup": "t_j5va_dupGroup",
|
|
32
|
-
"addButton": "t_j5va_addButton",
|
|
41
|
+
"section": "t_j5va_section",
|
|
33
42
|
"healthBar": "t_j5va_healthBar",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
43
|
+
"scoreRing": "t_j5va_scoreRing",
|
|
44
|
+
"pwFair": "t_j5va_pwFair",
|
|
45
|
+
"modeReadonly": "t_j5va_modeReadonly",
|
|
46
|
+
"editor": "t_j5va_editor",
|
|
47
|
+
"dupGroup": "t_j5va_dupGroup",
|
|
48
|
+
"intro": "t_j5va_intro",
|
|
49
|
+
"reportBox": "t_j5va_reportBox",
|
|
50
|
+
"saveButton": "t_j5va_saveButton",
|
|
51
|
+
"editorBody": "t_j5va_editorBody",
|
|
52
|
+
"reportTitle": "t_j5va_reportTitle",
|
|
53
|
+
"auditIssues": "t_j5va_auditIssues",
|
|
54
|
+
"badgeOk": "t_j5va_badgeOk",
|
|
55
|
+
"dueBadge": "t_j5va_dueBadge",
|
|
56
|
+
"footer": "t_j5va_footer",
|
|
57
|
+
"pwBar": "t_j5va_pwBar",
|
|
58
|
+
"srOnly": "t_j5va_srOnly",
|
|
59
|
+
"kindIcon": "t_j5va_kindIcon",
|
|
60
|
+
"list": "t_j5va_list",
|
|
61
|
+
"tabActive": "t_j5va_tabActive",
|
|
62
|
+
"rowActions": "t_j5va_rowActions",
|
|
36
63
|
"empty": "t_j5va_empty",
|
|
37
|
-
"trashButton": "t_j5va_trashButton",
|
|
38
|
-
"modeAsk": "t_j5va_modeAsk",
|
|
39
64
|
"kindFilter": "t_j5va_kindFilter",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"field": "t_j5va_field",
|
|
43
|
-
"reportBox": "t_j5va_reportBox",
|
|
65
|
+
"searchBox": "t_j5va_searchBox",
|
|
66
|
+
"trashButton": "t_j5va_trashButton",
|
|
44
67
|
"lockedTag": "t_j5va_lockedTag",
|
|
68
|
+
"reportSub": "t_j5va_reportSub",
|
|
69
|
+
"editorActions": "t_j5va_editorActions",
|
|
70
|
+
"tabPane": "t_j5va_tabPane",
|
|
71
|
+
"checkField": "t_j5va_checkField",
|
|
72
|
+
"dupMerge": "t_j5va_dupMerge",
|
|
45
73
|
"badge": "t_j5va_badge",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"list": "t_j5va_list",
|
|
49
|
-
"srOnly": "t_j5va_srOnly",
|
|
50
|
-
"toolbar": "t_j5va_toolbar",
|
|
51
|
-
"status": "t_j5va_status",
|
|
52
|
-
"editor": "t_j5va_editor",
|
|
53
|
-
"deleteButton": "t_j5va_deleteButton",
|
|
54
|
-
"error": "t_j5va_error",
|
|
55
|
-
"reportTitle": "t_j5va_reportTitle",
|
|
56
|
-
"title": "t_j5va_title",
|
|
57
|
-
"section": "t_j5va_section",
|
|
58
|
-
"modeReadonly": "t_j5va_modeReadonly",
|
|
74
|
+
"pwWeak": "t_j5va_pwWeak",
|
|
75
|
+
"tab": "t_j5va_tab",
|
|
59
76
|
"sortButton": "t_j5va_sortButton",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"tabActive": "t_j5va_tabActive",
|
|
67
|
-
"badgeDanger": "t_j5va_badgeDanger",
|
|
68
|
-
"backupButton": "t_j5va_backupButton",
|
|
77
|
+
"genHist": "t_j5va_genHist",
|
|
78
|
+
"resultCount": "t_j5va_resultCount",
|
|
79
|
+
"tabs": "t_j5va_tabs",
|
|
80
|
+
"identity": "t_j5va_identity",
|
|
81
|
+
"pwStrong": "t_j5va_pwStrong",
|
|
82
|
+
"totpRing": "t_j5va_totpRing",
|
|
69
83
|
"policyField": "t_j5va_policyField",
|
|
70
|
-
"rowDue": "t_j5va_rowDue",
|
|
71
|
-
"totp": "t_j5va_totp",
|
|
72
84
|
"auditRow": "t_j5va_auditRow",
|
|
85
|
+
"clearButton": "t_j5va_clearButton",
|
|
86
|
+
"rowDue": "t_j5va_rowDue",
|
|
87
|
+
"badgeDanger": "t_j5va_badgeDanger",
|
|
88
|
+
"dangerButton": "t_j5va_dangerButton",
|
|
89
|
+
"error": "t_j5va_error",
|
|
73
90
|
"detailItem": "t_j5va_detailItem",
|
|
74
|
-
"intro": "t_j5va_intro",
|
|
75
|
-
"copied": "t_j5va_copied",
|
|
76
|
-
"rowMain": "t_j5va_rowMain",
|
|
77
|
-
"tabPane": "t_j5va_tabPane",
|
|
78
91
|
"retryButton": "t_j5va_retryButton",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"pwBar": "t_j5va_pwBar",
|
|
82
|
-
"genHist": "t_j5va_genHist",
|
|
83
|
-
"row": "t_j5va_row",
|
|
84
|
-
"tabs": "t_j5va_tabs",
|
|
85
|
-
"clearButton": "t_j5va_clearButton",
|
|
86
|
-
"genOpts": "t_j5va_genOpts",
|
|
87
|
-
"pwMeter": "t_j5va_pwMeter",
|
|
88
|
-
"highBadge": "t_j5va_highBadge",
|
|
89
|
-
"badgeWarn": "t_j5va_badgeWarn",
|
|
90
|
-
"revealButton": "t_j5va_revealButton",
|
|
91
|
-
"rowActions": "t_j5va_rowActions",
|
|
92
|
+
"modeAsk": "t_j5va_modeAsk",
|
|
93
|
+
"addButton": "t_j5va_addButton",
|
|
92
94
|
"policyBar": "t_j5va_policyBar",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"kindIcon": "t_j5va_kindIcon",
|
|
97
|
-
"resultCount": "t_j5va_resultCount",
|
|
98
|
-
"dupNames": "t_j5va_dupNames",
|
|
99
|
-
"identity": "t_j5va_identity",
|
|
95
|
+
"lockedBanner": "t_j5va_lockedBanner",
|
|
96
|
+
"kindChip": "t_j5va_kindChip",
|
|
97
|
+
"pwMeter": "t_j5va_pwMeter",
|
|
100
98
|
"detailBox": "t_j5va_detailBox",
|
|
101
|
-
"
|
|
102
|
-
"
|
|
99
|
+
"title": "t_j5va_title",
|
|
100
|
+
"highBadge": "t_j5va_highBadge",
|
|
101
|
+
"copied": "t_j5va_copied",
|
|
102
|
+
"backupButton": "t_j5va_backupButton"
|
|
103
103
|
};
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/client/VaultSection.tsx
|
|
@@ -740,7 +740,8 @@ window.__ModuleLoader__.load({
|
|
|
740
740
|
}
|
|
741
741
|
/** Export the vault as a 1Password 1PUX archive. */
|
|
742
742
|
async function runExport1pux() {
|
|
743
|
-
const
|
|
743
|
+
const suggested = t("exportDefaultPath").replace("{file}", `${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.1pux`);
|
|
744
|
+
const path = window.prompt(`${t("export1puxPrompt")}\n${t("exportPathHint")}: ${suggested}`, suggested);
|
|
744
745
|
if (path === null || path.trim() === "") return;
|
|
745
746
|
setBusy(true);
|
|
746
747
|
setMessage(null);
|
|
@@ -755,7 +756,8 @@ window.__ModuleLoader__.load({
|
|
|
755
756
|
}
|
|
756
757
|
/** Export the vault as a Bitwarden JSON document. */
|
|
757
758
|
async function runExportBitwarden() {
|
|
758
|
-
const
|
|
759
|
+
const suggested = t("exportDefaultPath").replace("{file}", `${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.json`);
|
|
760
|
+
const path = window.prompt(`${t("exportBitwardenPrompt")}\n${t("exportPathHint")}: ${suggested}`, suggested);
|
|
759
761
|
if (path === null || path.trim() === "") return;
|
|
760
762
|
setBusy(true);
|
|
761
763
|
setMessage(null);
|
|
@@ -3694,6 +3696,8 @@ window.__ModuleLoader__.load({
|
|
|
3694
3696
|
export1pux: "Export 1Password 1PUX",
|
|
3695
3697
|
export1puxDesc: "1Password 1PUX archive (.1pux)",
|
|
3696
3698
|
export1puxPrompt: "Path to the output .1pux file:",
|
|
3699
|
+
exportDefaultPath: "dsh-vault-export-{file}",
|
|
3700
|
+
exportPathHint: "Suggested path (edit if needed)",
|
|
3697
3701
|
exportBitwarden: "Export Bitwarden JSON",
|
|
3698
3702
|
exportBitwardenDesc: "Bitwarden JSON document (.json)",
|
|
3699
3703
|
exportBitwardenPrompt: "Path to the output .json file:",
|
|
@@ -4010,6 +4014,8 @@ window.__ModuleLoader__.load({
|
|
|
4010
4014
|
export1pux: "导出 1Password 1PUX",
|
|
4011
4015
|
export1puxDesc: "1Password 1PUX 归档(.1pux)",
|
|
4012
4016
|
export1puxPrompt: "输出 .1pux 文件路径:",
|
|
4017
|
+
exportDefaultPath: "dsh-vault-export-{file}",
|
|
4018
|
+
exportPathHint: "建议路径(可按需修改)",
|
|
4013
4019
|
exportBitwarden: "导出 Bitwarden JSON",
|
|
4014
4020
|
exportBitwardenDesc: "Bitwarden JSON 文档(.json)",
|
|
4015
4021
|
exportBitwardenPrompt: "输出 .json 文件路径:",
|