dsh-vault 1.8.1 → 1.9.0-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 +77 -71
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -17,91 +17,91 @@ 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
|
-
"list": "t_j5va_list",
|
|
27
|
-
"dangerButton": "t_j5va_dangerButton",
|
|
28
|
-
"reportBox": "t_j5va_reportBox",
|
|
29
|
-
"editorActions": "t_j5va_editorActions",
|
|
30
|
-
"tabPane": "t_j5va_tabPane",
|
|
31
|
-
"badgeDanger": "t_j5va_badgeDanger",
|
|
32
|
-
"toolbar": "t_j5va_toolbar",
|
|
33
|
-
"badgeWarn": "t_j5va_badgeWarn",
|
|
34
|
-
"detailItem": "t_j5va_detailItem",
|
|
35
|
-
"footer": "t_j5va_footer",
|
|
20
|
+
"secretField": "t_j5va_secretField",
|
|
21
|
+
"reportTitle": "t_j5va_reportTitle",
|
|
22
|
+
"pwStrong": "t_j5va_pwStrong",
|
|
23
|
+
"lockedTag": "t_j5va_lockedTag",
|
|
24
|
+
"emptyBox": "t_j5va_emptyBox",
|
|
25
|
+
"genOpts": "t_j5va_genOpts",
|
|
36
26
|
"section": "t_j5va_section",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"pinOff": "t_j5va_pinOff",
|
|
40
|
-
"deleteButton": "t_j5va_deleteButton",
|
|
41
|
-
"modeAuto": "t_j5va_modeAuto",
|
|
27
|
+
"field": "t_j5va_field",
|
|
28
|
+
"healthBar": "t_j5va_healthBar",
|
|
42
29
|
"empty": "t_j5va_empty",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"reportTitle": "t_j5va_reportTitle",
|
|
30
|
+
"highBadge": "t_j5va_highBadge",
|
|
31
|
+
"detailItem": "t_j5va_detailItem",
|
|
32
|
+
"pwBar": "t_j5va_pwBar",
|
|
47
33
|
"status": "t_j5va_status",
|
|
48
|
-
"
|
|
34
|
+
"emptyHint": "t_j5va_emptyHint",
|
|
35
|
+
"editorActions": "t_j5va_editorActions",
|
|
36
|
+
"checkField": "t_j5va_checkField",
|
|
37
|
+
"reportLine": "t_j5va_reportLine",
|
|
38
|
+
"badgeDanger": "t_j5va_badgeDanger",
|
|
39
|
+
"addButton": "t_j5va_addButton",
|
|
40
|
+
"rowExpired": "t_j5va_rowExpired",
|
|
41
|
+
"kindIcon": "t_j5va_kindIcon",
|
|
49
42
|
"policyField": "t_j5va_policyField",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
43
|
+
"row": "t_j5va_row",
|
|
44
|
+
"title": "t_j5va_title",
|
|
45
|
+
"pwWeak": "t_j5va_pwWeak",
|
|
46
|
+
"kindFilter": "t_j5va_kindFilter",
|
|
47
|
+
"dupNames": "t_j5va_dupNames",
|
|
48
|
+
"tab": "t_j5va_tab",
|
|
49
|
+
"identity": "t_j5va_identity",
|
|
50
|
+
"deleteButton": "t_j5va_deleteButton",
|
|
51
|
+
"copied": "t_j5va_copied",
|
|
52
|
+
"error": "t_j5va_error",
|
|
53
|
+
"dueBadge": "t_j5va_dueBadge",
|
|
54
|
+
"tabPane": "t_j5va_tabPane",
|
|
55
|
+
"searchBox": "t_j5va_searchBox",
|
|
56
|
+
"genHist": "t_j5va_genHist",
|
|
57
|
+
"badge": "t_j5va_badge",
|
|
58
|
+
"editorBody": "t_j5va_editorBody",
|
|
59
|
+
"pinOff": "t_j5va_pinOff",
|
|
53
60
|
"backupButton": "t_j5va_backupButton",
|
|
54
|
-
"
|
|
61
|
+
"pwLabel": "t_j5va_pwLabel",
|
|
62
|
+
"pwMeter": "t_j5va_pwMeter",
|
|
63
|
+
"modeReadonly": "t_j5va_modeReadonly",
|
|
55
64
|
"auditRow": "t_j5va_auditRow",
|
|
56
|
-
"healthBar": "t_j5va_healthBar",
|
|
57
|
-
"checkField": "t_j5va_checkField",
|
|
58
65
|
"pwFair": "t_j5va_pwFair",
|
|
66
|
+
"resultCount": "t_j5va_resultCount",
|
|
67
|
+
"modeAsk": "t_j5va_modeAsk",
|
|
68
|
+
"modeAuto": "t_j5va_modeAuto",
|
|
69
|
+
"srOnly": "t_j5va_srOnly",
|
|
70
|
+
"editor": "t_j5va_editor",
|
|
71
|
+
"rowActions": "t_j5va_rowActions",
|
|
72
|
+
"toolbar": "t_j5va_toolbar",
|
|
73
|
+
"revealButton": "t_j5va_revealButton",
|
|
74
|
+
"sortButton": "t_j5va_sortButton",
|
|
75
|
+
"dupMerge": "t_j5va_dupMerge",
|
|
76
|
+
"trashButton": "t_j5va_trashButton",
|
|
77
|
+
"rowDue": "t_j5va_rowDue",
|
|
78
|
+
"detailBox": "t_j5va_detailBox",
|
|
79
|
+
"dupGroup": "t_j5va_dupGroup",
|
|
80
|
+
"list": "t_j5va_list",
|
|
81
|
+
"scoreRing": "t_j5va_scoreRing",
|
|
82
|
+
"genOptRow": "t_j5va_genOptRow",
|
|
59
83
|
"kindChip": "t_j5va_kindChip",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
84
|
+
"dangerButton": "t_j5va_dangerButton",
|
|
85
|
+
"uriCode": "t_j5va_uriCode",
|
|
62
86
|
"tabs": "t_j5va_tabs",
|
|
63
|
-
"genOptRow": "t_j5va_genOptRow",
|
|
64
|
-
"pwMeter": "t_j5va_pwMeter",
|
|
65
|
-
"row": "t_j5va_row",
|
|
66
|
-
"tab": "t_j5va_tab",
|
|
67
|
-
"highBadge": "t_j5va_highBadge",
|
|
68
|
-
"srOnly": "t_j5va_srOnly",
|
|
69
87
|
"lockedBanner": "t_j5va_lockedBanner",
|
|
70
|
-
"policyBar": "t_j5va_policyBar",
|
|
71
|
-
"reportSub": "t_j5va_reportSub",
|
|
72
|
-
"genOpts": "t_j5va_genOpts",
|
|
73
|
-
"pwWeak": "t_j5va_pwWeak",
|
|
74
|
-
"editorBody": "t_j5va_editorBody",
|
|
75
|
-
"scoreRing": "t_j5va_scoreRing",
|
|
76
|
-
"addButton": "t_j5va_addButton",
|
|
77
|
-
"lockedTag": "t_j5va_lockedTag",
|
|
78
88
|
"tabActive": "t_j5va_tabActive",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"title": "t_j5va_title",
|
|
82
|
-
"modeAsk": "t_j5va_modeAsk",
|
|
83
|
-
"rowActions": "t_j5va_rowActions",
|
|
84
|
-
"editor": "t_j5va_editor",
|
|
85
|
-
"trashButton": "t_j5va_trashButton",
|
|
86
|
-
"secretField": "t_j5va_secretField",
|
|
89
|
+
"intro": "t_j5va_intro",
|
|
90
|
+
"saveButton": "t_j5va_saveButton",
|
|
87
91
|
"pinOn": "t_j5va_pinOn",
|
|
88
|
-
"
|
|
89
|
-
"error": "t_j5va_error",
|
|
90
|
-
"dupNames": "t_j5va_dupNames",
|
|
92
|
+
"badgeWarn": "t_j5va_badgeWarn",
|
|
91
93
|
"rowMain": "t_j5va_rowMain",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"pwStrong": "t_j5va_pwStrong",
|
|
97
|
-
"emptyBox": "t_j5va_emptyBox",
|
|
94
|
+
"policyBar": "t_j5va_policyBar",
|
|
95
|
+
"retryButton": "t_j5va_retryButton",
|
|
96
|
+
"totp": "t_j5va_totp",
|
|
97
|
+
"reportBox": "t_j5va_reportBox",
|
|
98
98
|
"badgeOk": "t_j5va_badgeOk",
|
|
99
|
+
"reportSub": "t_j5va_reportSub",
|
|
100
|
+
"totpRing": "t_j5va_totpRing",
|
|
101
|
+
"footer": "t_j5va_footer",
|
|
102
|
+
"pinStar": "t_j5va_pinStar",
|
|
99
103
|
"clearButton": "t_j5va_clearButton",
|
|
100
|
-
"
|
|
101
|
-
"rowExpired": "t_j5va_rowExpired",
|
|
102
|
-
"kindFilter": "t_j5va_kindFilter",
|
|
103
|
-
"kindIcon": "t_j5va_kindIcon",
|
|
104
|
-
"retryButton": "t_j5va_retryButton"
|
|
104
|
+
"auditIssues": "t_j5va_auditIssues"
|
|
105
105
|
};
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/client/VaultSection.tsx
|
|
@@ -1671,6 +1671,10 @@ window.__ModuleLoader__.load({
|
|
|
1671
1671
|
value: "recent",
|
|
1672
1672
|
children: t("sortRecent")
|
|
1673
1673
|
}),
|
|
1674
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1675
|
+
value: "created",
|
|
1676
|
+
children: t("sortCreated")
|
|
1677
|
+
}),
|
|
1674
1678
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1675
1679
|
value: "favorite",
|
|
1676
1680
|
children: t("sortFavorite")
|
|
@@ -2806,7 +2810,7 @@ window.__ModuleLoader__.load({
|
|
|
2806
2810
|
children: [filteredCount(state.entries, kindFilter, tagFilter) === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
2807
2811
|
className: VaultSection_module_css_default.empty,
|
|
2808
2812
|
children: t("noFiltered")
|
|
2809
|
-
}), state.entries.filter((entry) => (kindFilter === "" || entry.kind === kindFilter) && (tagFilter === "" || (entry.tags ?? []).includes(tagFilter))).sort((a, b) => sortBy === "alpha" ? a.title.localeCompare(b.title) : sortBy === "recent" ? (b.updatedAt ?? 0) - (a.updatedAt ?? 0) : (a.favorite === true ? 0 : 1) - (b.favorite === true ? 0 : 1) || (b.updatedAt ?? 0) - (a.updatedAt ?? 0) || a.title.localeCompare(b.title)).slice(0, visibleCount).map((entry) => {
|
|
2813
|
+
}), state.entries.filter((entry) => (kindFilter === "" || entry.kind === kindFilter) && (tagFilter === "" || (entry.tags ?? []).includes(tagFilter))).sort((a, b) => sortBy === "alpha" ? a.title.localeCompare(b.title) : sortBy === "recent" ? (b.updatedAt ?? 0) - (a.updatedAt ?? 0) : sortBy === "created" ? (b.createdAt ?? 0) - (a.createdAt ?? 0) : (a.favorite === true ? 0 : 1) - (b.favorite === true ? 0 : 1) || (b.updatedAt ?? 0) - (a.updatedAt ?? 0) || a.title.localeCompare(b.title)).slice(0, visibleCount).map((entry) => {
|
|
2810
2814
|
const totpInfo = totpMap[entry.id];
|
|
2811
2815
|
const remaining = totpInfo !== void 0 && totpInfo.until > 0 ? Math.max(0, Math.ceil((totpInfo.until - nowTick) / 1e3)) : void 0;
|
|
2812
2816
|
const frac = remaining !== void 0 ? remaining / 30 : 0;
|
|
@@ -3786,6 +3790,7 @@ window.__ModuleLoader__.load({
|
|
|
3786
3790
|
sortFavorite: "Favorites first",
|
|
3787
3791
|
sortSmart: "Smart",
|
|
3788
3792
|
sortRecent: "Sort: recent",
|
|
3793
|
+
sortCreated: "Sort: created",
|
|
3789
3794
|
highSensitivity: "HIGH",
|
|
3790
3795
|
pinned: "Pinned",
|
|
3791
3796
|
togglePinHint: "Toggle pinned (shows at top in pinned/smart sort)",
|
|
@@ -4105,6 +4110,7 @@ window.__ModuleLoader__.load({
|
|
|
4105
4110
|
sortFavorite: "置顶优先",
|
|
4106
4111
|
sortSmart: "智能排序",
|
|
4107
4112
|
sortRecent: "排序:最近",
|
|
4113
|
+
sortCreated: "排序:创建时间",
|
|
4108
4114
|
highSensitivity: "高敏",
|
|
4109
4115
|
pinned: "已置顶",
|
|
4110
4116
|
togglePinHint: "切换置顶(置顶/智能排序时显示在最前)",
|