@burdenoff/microfe-security 2026.830.1 → 2026.830.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/dist/index.js +2 -1
- package/dist/security/SecurityAdminRoot.js +9 -8
- package/dist/security/SecurityAdminRoot.js.map +1 -1
- package/dist/security/SecurityRoot.js +9 -8
- package/dist/security/SecurityRoot.js.map +1 -1
- package/dist/security/SecurityRootBase.js +35 -33
- package/dist/security/SecurityRootBase.js.map +1 -1
- package/dist/security/SecurityUserRoot.js +9 -8
- package/dist/security/SecurityUserRoot.js.map +1 -1
- package/dist/security/components/ActivityTimeline.js +83 -66
- package/dist/security/components/ActivityTimeline.js.map +1 -1
- package/dist/security/components/BulkActionBar.js +40 -41
- package/dist/security/components/BulkActionBar.js.map +1 -1
- package/dist/security/components/ConfirmDialog.js +37 -33
- package/dist/security/components/ConfirmDialog.js.map +1 -1
- package/dist/security/components/CopyButton.js +29 -28
- package/dist/security/components/CopyButton.js.map +1 -1
- package/dist/security/components/ExportDialog.js +81 -80
- package/dist/security/components/ExportDialog.js.map +1 -1
- package/dist/security/components/ImportWizard.js +122 -125
- package/dist/security/components/ImportWizard.js.map +1 -1
- package/dist/security/components/PasswordGenerator.js +71 -66
- package/dist/security/components/PasswordGenerator.js.map +1 -1
- package/dist/security/components/RotationStatusBadge.js +18 -17
- package/dist/security/components/RotationStatusBadge.js.map +1 -1
- package/dist/security/components/SecretFormFields.js +143 -134
- package/dist/security/components/SecretFormFields.js.map +1 -1
- package/dist/security/components/SecretRow.js +30 -31
- package/dist/security/components/SecretRow.js.map +1 -1
- package/dist/security/components/SecretShareDialog.js +208 -195
- package/dist/security/components/SecretShareDialog.js.map +1 -1
- package/dist/security/components/SecretValueDisplay.js +45 -44
- package/dist/security/components/SecretValueDisplay.js.map +1 -1
- package/dist/security/components/SecurityPermissionGuard.js +8 -9
- package/dist/security/components/SecurityPermissionGuard.js.map +1 -1
- package/dist/security/components/SecurityScoreCard.js +42 -37
- package/dist/security/components/SecurityScoreCard.js.map +1 -1
- package/dist/security/components/VaultCard.js +32 -33
- package/dist/security/components/VaultCard.js.map +1 -1
- package/dist/security/components/VaultFormFields.js +101 -97
- package/dist/security/components/VaultFormFields.js.map +1 -1
- package/dist/security/components/VaultShareDialog.js +40 -42
- package/dist/security/components/VaultShareDialog.js.map +1 -1
- package/dist/security/config/navigation.js +20 -20
- package/dist/security/config/navigation.js.map +1 -1
- package/dist/security/constants/providers.js +10 -5
- package/dist/security/constants/providers.js.map +1 -1
- package/dist/security/constants/secretTypes.js +16 -8
- package/dist/security/constants/secretTypes.js.map +1 -1
- package/dist/security/hooks/useTr.js +14 -0
- package/dist/security/hooks/useTr.js.map +1 -0
- package/dist/security/index.js +1 -0
- package/dist/security/pages/AccessReviewPage.js +85 -84
- package/dist/security/pages/AccessReviewPage.js.map +1 -1
- package/dist/security/pages/AuditLogPage.js +98 -97
- package/dist/security/pages/AuditLogPage.js.map +1 -1
- package/dist/security/pages/ImportExportPage.js +21 -22
- package/dist/security/pages/ImportExportPage.js.map +1 -1
- package/dist/security/pages/ProviderDetailPage.js +164 -155
- package/dist/security/pages/ProviderDetailPage.js.map +1 -1
- package/dist/security/pages/ProvidersPage.js +89 -92
- package/dist/security/pages/ProvidersPage.js.map +1 -1
- package/dist/security/pages/SecretCreatePage.js +70 -71
- package/dist/security/pages/SecretCreatePage.js.map +1 -1
- package/dist/security/pages/SecretDetailPage.js +250 -251
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/SecurityDashboardPage.js +53 -54
- package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
- package/dist/security/pages/SharedWithMePage.js +27 -28
- package/dist/security/pages/SharedWithMePage.js.map +1 -1
- package/dist/security/pages/VaultCreatePage.js +49 -50
- package/dist/security/pages/VaultCreatePage.js.map +1 -1
- package/dist/security/pages/VaultDetailPage.js +130 -131
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultLandingPage.js +39 -38
- package/dist/security/pages/VaultLandingPage.js.map +1 -1
- package/dist/security/pages/VaultSettingsPage.js +198 -199
- package/dist/security/pages/VaultSettingsPage.js.map +1 -1
- package/dist/security/pages/VaultShareViewer.js +78 -80
- package/dist/security/pages/VaultShareViewer.js.map +1 -1
- package/dist/security/pages/VaultsDashboardPage.js +97 -98
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
- package/dist/security/translations/en.js +756 -0
- package/dist/security/translations/en.js.map +1 -0
- package/package.json +1 -1
- package/dist/security/utils/i18n.js +0 -9
- package/dist/security/utils/i18n.js.map +0 -1
|
@@ -1,432 +1,431 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSecurity as ee } from "../providers/SecurityProvider.js";
|
|
2
3
|
import { SECURITY_FEATURE_FLAGS as t } from "../constants/featureFlags.js";
|
|
3
4
|
import { cn as n } from "../utils/cn.js";
|
|
4
5
|
import { PageLayout as r } from "../components/PageLayout.js";
|
|
5
6
|
import { Badge as i, Button as a, Card as o } from "../components/ui.js";
|
|
6
|
-
import { translateWithFallback as ee } from "../utils/i18n.js";
|
|
7
7
|
import { ConfirmDialog as te } from "../components/ConfirmDialog.js";
|
|
8
8
|
import { useGetSecretVersionsQuery as ne } from "../../generated/wspace-operations.js";
|
|
9
|
-
import { useSecurityEventEmitter as
|
|
10
|
-
import { useDeleteSecret as
|
|
11
|
-
import { nativeConfirm as
|
|
12
|
-
import { SecurityPermissionGuard as
|
|
13
|
-
import { SecretValueDisplay as
|
|
14
|
-
import { SecretTypeBadge as
|
|
15
|
-
import { RotationStatusBadge as
|
|
16
|
-
import { SecretShareDialog as
|
|
17
|
-
import { useSecretValue as
|
|
18
|
-
import { useRef as
|
|
19
|
-
import { useFeatureFlag as
|
|
20
|
-
import { useNavigate as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { AlertTriangle as
|
|
9
|
+
import { useSecurityEventEmitter as s } from "../hooks/useSecurityEventEmitter.js";
|
|
10
|
+
import { useDeleteSecret as c, useGetSecret as re, useRollbackSecret as ie, useRotateSecret as ae } from "../hooks/useSecretQueries.js";
|
|
11
|
+
import { nativeConfirm as oe, nativeImpact as se, nativeNotify as l } from "../../utils/nativeBridge.js";
|
|
12
|
+
import { SecurityPermissionGuard as ce } from "../components/SecurityPermissionGuard.js";
|
|
13
|
+
import { SecretValueDisplay as le } from "../components/SecretValueDisplay.js";
|
|
14
|
+
import { SecretTypeBadge as ue } from "../components/SecretTypeBadge.js";
|
|
15
|
+
import { RotationStatusBadge as de } from "../components/RotationStatusBadge.js";
|
|
16
|
+
import { SecretShareDialog as fe } from "../components/SecretShareDialog.js";
|
|
17
|
+
import { useSecretValue as pe } from "../hooks/useSecretValue.js";
|
|
18
|
+
import { useRef as me, useState as u } from "react";
|
|
19
|
+
import { useFeatureFlag as he, usePermission as d } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
20
|
+
import { useNavigate as ge, useParams as _e } from "react-router";
|
|
21
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
22
|
+
import { AlertTriangle as ve, ArrowLeft as m, Calendar as h, Clock as ye, History as g, KeyRound as _, Loader2 as v, RefreshCw as y, Share2 as b, Shield as be, Trash2 as xe } from "lucide-react";
|
|
23
23
|
import { CTAOverflowMenu as Se, Dialog as x, DialogContent as S, DialogHeader as C, DialogTitle as w, GlassCard as T, NextSteps as Ce, PagePurpose as we } from "@burdenoff/fe-libs/ui";
|
|
24
|
-
import { useI18n as Te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
25
24
|
//#region src/security/pages/SecretDetailPage.tsx
|
|
26
25
|
function E() {
|
|
27
|
-
let { vaultId: E, secretId: D } =
|
|
26
|
+
let { vaultId: E, secretId: D } = _e(), { basePath: O = "/", navigate: k } = ee(), Te = ge(), A = e(), { data: Ee, loading: De, error: j, refetch: M } = re(D ?? null), N = Ee?.getSecret, { data: P, loading: Oe } = ne({
|
|
28
27
|
variables: {
|
|
29
28
|
secretId: D ?? "",
|
|
30
29
|
pagination: { limit: 50 }
|
|
31
30
|
},
|
|
32
31
|
skip: !D,
|
|
33
32
|
fetchPolicy: "network-only"
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
k ? k(e) :
|
|
33
|
+
}), ke = P?.getSecretVersionsPaginated?.items ?? [], { value: Ae, reveal: F, hide: je, loading: Me, isRevealed: I } = pe(D ?? ""), [Ne, { loading: Pe }] = c(), [Fe, { loading: L }] = ae(), [Ie, { loading: Le }] = ie(), { emit: R } = s(), Re = d("secret:delete"), z = d("secret:update"), B = d("secret:decrypt"), V = he(t.SECRET_ROTATE, !1), [ze, H] = u(!1), [Be, U] = u(!1), [Ve, W] = u(!1), G = me(null), K = () => {
|
|
34
|
+
W(!0), requestAnimationFrame(() => G.current?.focus());
|
|
35
|
+
}, [He, q] = u(!1), [J, Y] = u(""), Ue = (e) => {
|
|
36
|
+
k ? k(e) : Te(e);
|
|
38
37
|
}, X = () => {
|
|
39
|
-
|
|
38
|
+
Ue(`${O}/vaults/${E}`);
|
|
40
39
|
}, Z = async () => {
|
|
41
40
|
if (D) try {
|
|
42
|
-
await
|
|
41
|
+
await Ne({ variables: { id: D } }), R("secret.deleted", {
|
|
43
42
|
secretId: D,
|
|
44
43
|
vaultId: E
|
|
45
|
-
}),
|
|
44
|
+
}), H(!1), l("success"), X();
|
|
46
45
|
} catch (e) {
|
|
47
|
-
console.error("Failed to delete secret:", e),
|
|
46
|
+
console.error("Failed to delete secret:", e), l("error");
|
|
48
47
|
}
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
let e = await
|
|
48
|
+
}, We = async () => {
|
|
49
|
+
se("medium");
|
|
50
|
+
let e = await oe({
|
|
52
51
|
title: "Delete Secret",
|
|
53
52
|
message: "Delete this secret? This cannot be undone.",
|
|
54
53
|
okButtonTitle: "Delete",
|
|
55
54
|
cancelButtonTitle: "Cancel"
|
|
56
55
|
});
|
|
57
56
|
if (e === null) {
|
|
58
|
-
|
|
57
|
+
H(!0);
|
|
59
58
|
return;
|
|
60
59
|
}
|
|
61
60
|
e && await Z();
|
|
62
|
-
},
|
|
63
|
-
if (!(!D || !
|
|
64
|
-
await
|
|
61
|
+
}, Ge = async () => {
|
|
62
|
+
if (!(!D || !J.trim())) try {
|
|
63
|
+
await Fe({ variables: {
|
|
65
64
|
id: D,
|
|
66
|
-
newValue:
|
|
67
|
-
} }),
|
|
65
|
+
newValue: J.trim()
|
|
66
|
+
} }), R("secret.rotated", {
|
|
68
67
|
secretId: D,
|
|
69
68
|
vaultId: E
|
|
70
|
-
}),
|
|
69
|
+
}), W(!1), Y(""), M();
|
|
71
70
|
} catch (e) {
|
|
72
71
|
console.error("Failed to rotate secret:", e);
|
|
73
72
|
}
|
|
74
|
-
},
|
|
73
|
+
}, Ke = async (e) => {
|
|
75
74
|
if (D) try {
|
|
76
|
-
await
|
|
75
|
+
await Ie({ variables: {
|
|
77
76
|
id: D,
|
|
78
77
|
version: e
|
|
79
|
-
} }),
|
|
78
|
+
} }), R("secret.rollback", {
|
|
80
79
|
secretId: D,
|
|
81
80
|
vaultId: E
|
|
82
|
-
}),
|
|
81
|
+
}), M(), q(!1);
|
|
83
82
|
} catch (e) {
|
|
84
83
|
console.error("Failed to rollback secret:", e);
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
|
-
if (
|
|
88
|
-
title:
|
|
86
|
+
if (De && !N) return /* @__PURE__ */ f(r, {
|
|
87
|
+
title: A("security.secretDetail.loading.title", "Loading Secret..."),
|
|
89
88
|
breadcrumbs: [{
|
|
90
|
-
label:
|
|
89
|
+
label: A("security.common.breadcrumbs.security", "Security"),
|
|
91
90
|
path: O
|
|
92
|
-
}, { label:
|
|
93
|
-
children: /* @__PURE__ */
|
|
91
|
+
}, { label: A("security.common.breadcrumbs.secret", "Secret") }],
|
|
92
|
+
children: /* @__PURE__ */ f("div", {
|
|
94
93
|
className: "flex items-center justify-center py-20",
|
|
95
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ f(v, { className: "size-10 animate-spin text-primary/60" })
|
|
96
95
|
})
|
|
97
96
|
});
|
|
98
|
-
if (
|
|
99
|
-
title:
|
|
97
|
+
if (j || !N) return /* @__PURE__ */ f(r, {
|
|
98
|
+
title: A("security.common.errorPage.title", "Error"),
|
|
100
99
|
breadcrumbs: [{
|
|
101
|
-
label:
|
|
100
|
+
label: A("security.common.breadcrumbs.security", "Security"),
|
|
102
101
|
path: O
|
|
103
|
-
}, { label:
|
|
104
|
-
children: /* @__PURE__ */
|
|
102
|
+
}, { label: A("security.common.breadcrumbs.secret", "Secret") }],
|
|
103
|
+
children: /* @__PURE__ */ f(o, {
|
|
105
104
|
className: "p-8 text-center max-w-lg mx-auto mt-10",
|
|
106
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ p("div", {
|
|
107
106
|
className: "flex flex-col items-center gap-4",
|
|
108
107
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ f("div", {
|
|
110
109
|
className: "p-3 rounded-full bg-status-error-bg/10",
|
|
111
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ f(ve, { className: "size-8 text-status-error-text" })
|
|
112
111
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
114
113
|
className: "text-lg font-bold text-text-primary",
|
|
115
|
-
children:
|
|
116
|
-
}), /* @__PURE__ */
|
|
114
|
+
children: A("security.secretDetail.error.title", "Failed to load secret")
|
|
115
|
+
}), /* @__PURE__ */ f("p", {
|
|
117
116
|
className: "text-sm text-text-secondary mt-2",
|
|
118
|
-
children:
|
|
117
|
+
children: j?.message ?? A("security.secretDetail.error.description", "Secret not found or access denied.")
|
|
119
118
|
})] }),
|
|
120
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ p(a, {
|
|
121
120
|
variant: "outline",
|
|
122
121
|
onClick: X,
|
|
123
122
|
className: "mt-4",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ f(m, { className: "size-4" }), A("security.secretDetail.actions.backToVault", "Go Back to Vault")]
|
|
125
124
|
})
|
|
126
125
|
]
|
|
127
126
|
})
|
|
128
127
|
})
|
|
129
128
|
});
|
|
130
|
-
let Q =
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
title:
|
|
133
|
-
description:
|
|
129
|
+
let Q = N.versionCount ?? 0, $ = N.lastRotatedAt ? "healthy" : void 0;
|
|
130
|
+
return /* @__PURE__ */ p(r, {
|
|
131
|
+
title: N.name,
|
|
132
|
+
description: N.description ?? A("security.secretDetail.description", "View and manage this secret."),
|
|
134
133
|
breadcrumbs: [
|
|
135
134
|
{
|
|
136
|
-
label:
|
|
135
|
+
label: A("security.common.breadcrumbs.security", "Security"),
|
|
137
136
|
path: O
|
|
138
137
|
},
|
|
139
138
|
{
|
|
140
|
-
label:
|
|
139
|
+
label: A("security.common.breadcrumbs.vault", "Vault"),
|
|
141
140
|
path: `${O}/vaults/${E}`
|
|
142
141
|
},
|
|
143
|
-
{ label:
|
|
142
|
+
{ label: N.name }
|
|
144
143
|
],
|
|
145
144
|
actions: (() => {
|
|
146
145
|
let e = [];
|
|
147
|
-
return
|
|
148
|
-
label:
|
|
149
|
-
icon: /* @__PURE__ */
|
|
150
|
-
onSelect: () =>
|
|
151
|
-
}),
|
|
152
|
-
label:
|
|
153
|
-
icon: /* @__PURE__ */
|
|
154
|
-
onSelect:
|
|
155
|
-
}),
|
|
156
|
-
label:
|
|
157
|
-
icon: /* @__PURE__ */
|
|
146
|
+
return z && e.push({
|
|
147
|
+
label: A("security.common.actions.share", "Share"),
|
|
148
|
+
icon: /* @__PURE__ */ f(b, { className: "size-4" }),
|
|
149
|
+
onSelect: () => U(!0)
|
|
150
|
+
}), z && V && e.push({
|
|
151
|
+
label: A("security.secretDetail.actions.rotate", "Rotate"),
|
|
152
|
+
icon: /* @__PURE__ */ f(y, { className: "size-4" }),
|
|
153
|
+
onSelect: K
|
|
154
|
+
}), Re && e.push({
|
|
155
|
+
label: A("security.common.actions.delete", "Delete"),
|
|
156
|
+
icon: /* @__PURE__ */ f(xe, { className: "size-4" }),
|
|
158
157
|
intent: "destructive",
|
|
159
|
-
onSelect: () => void
|
|
160
|
-
}), /* @__PURE__ */
|
|
158
|
+
onSelect: () => void We()
|
|
159
|
+
}), /* @__PURE__ */ p("div", {
|
|
161
160
|
className: "flex flex-wrap items-center gap-2",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ p(a, {
|
|
163
162
|
variant: "outline",
|
|
164
163
|
size: "sm",
|
|
165
164
|
onClick: X,
|
|
166
165
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ f(m, { className: "size-4" }),
|
|
167
|
+
/* @__PURE__ */ f("span", {
|
|
169
168
|
className: "hidden sm:inline",
|
|
170
|
-
children:
|
|
169
|
+
children: A("security.secretDetail.actions.backToVault", "Back to Vault")
|
|
171
170
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ f("span", {
|
|
173
172
|
className: "sm:hidden",
|
|
174
|
-
children:
|
|
173
|
+
children: A("security.common.actions.back", "Back")
|
|
175
174
|
})
|
|
176
175
|
]
|
|
177
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ f(Se, { actions: e })]
|
|
178
177
|
});
|
|
179
178
|
})(),
|
|
180
179
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ p("div", {
|
|
182
181
|
className: "space-y-6",
|
|
183
182
|
children: [
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
icon: /* @__PURE__ */
|
|
186
|
-
children:
|
|
183
|
+
/* @__PURE__ */ f(we, {
|
|
184
|
+
icon: /* @__PURE__ */ f(_, { className: "size-4" }),
|
|
185
|
+
children: A("security.secretDetail.purpose", "This is a single secret — an encrypted credential such as an API key, password or connection string. Reveal and copy its value when you need it (every reveal is logged), rotate it to a new value while keeping the old one in version history, roll back to a previous version, or share it securely with someone outside this vault.")
|
|
187
186
|
}),
|
|
188
|
-
(
|
|
187
|
+
(B || z) && /* @__PURE__ */ f(Ce, {
|
|
189
188
|
storageKey: "security-secret-detail",
|
|
190
189
|
steps: [
|
|
191
|
-
...
|
|
190
|
+
...B ? [{
|
|
192
191
|
id: "reveal",
|
|
193
|
-
label:
|
|
194
|
-
description:
|
|
195
|
-
icon: /* @__PURE__ */
|
|
196
|
-
onClick:
|
|
197
|
-
done:
|
|
192
|
+
label: A("security.secretDetail.next.reveal", "Reveal the value"),
|
|
193
|
+
description: A("security.secretDetail.next.revealDesc", "Decrypt and copy this secret when you need it."),
|
|
194
|
+
icon: /* @__PURE__ */ f(_, { className: "size-4" }),
|
|
195
|
+
onClick: I ? void 0 : () => void F(),
|
|
196
|
+
done: I
|
|
198
197
|
}] : [],
|
|
199
|
-
...
|
|
198
|
+
...z ? [{
|
|
200
199
|
id: "share",
|
|
201
|
-
label:
|
|
202
|
-
description:
|
|
203
|
-
icon: /* @__PURE__ */
|
|
204
|
-
onClick: () =>
|
|
200
|
+
label: A("security.secretDetail.next.share", "Share this secret"),
|
|
201
|
+
description: A("security.secretDetail.next.shareDesc", "Send a confidential, expiring link to someone."),
|
|
202
|
+
icon: /* @__PURE__ */ f(b, { className: "size-4" }),
|
|
203
|
+
onClick: () => U(!0)
|
|
205
204
|
}] : [],
|
|
206
|
-
...
|
|
205
|
+
...z && V ? [{
|
|
207
206
|
id: "rotate",
|
|
208
|
-
label:
|
|
209
|
-
description:
|
|
210
|
-
icon: /* @__PURE__ */
|
|
211
|
-
onClick:
|
|
207
|
+
label: A("security.secretDetail.next.rotate", "Rotate the value"),
|
|
208
|
+
description: A("security.secretDetail.next.rotateDesc", "Replace the value and keep the old one in history."),
|
|
209
|
+
icon: /* @__PURE__ */ f(y, { className: "size-4" }),
|
|
210
|
+
onClick: K
|
|
212
211
|
}] : []
|
|
213
212
|
]
|
|
214
213
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ p("div", {
|
|
216
215
|
className: "flex flex-wrap items-center gap-3",
|
|
217
216
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
$ && /* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ f(ue, { type: N.type }),
|
|
218
|
+
$ && /* @__PURE__ */ f(de, { status: $ }),
|
|
219
|
+
/* @__PURE__ */ f(i, {
|
|
221
220
|
variant: "outline",
|
|
222
221
|
className: "bg-bg-surface/50",
|
|
223
|
-
children:
|
|
222
|
+
children: A("security.secretDetail.status.label", "Status: {{status}}", { status: N.status })
|
|
224
223
|
}),
|
|
225
|
-
|
|
224
|
+
N.labels?.map((e) => /* @__PURE__ */ f(i, {
|
|
226
225
|
variant: "outline",
|
|
227
226
|
className: "border-primary/20 text-primary",
|
|
228
227
|
children: e.label
|
|
229
228
|
}, e.id))
|
|
230
229
|
]
|
|
231
230
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ p("div", {
|
|
233
232
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ p("div", {
|
|
235
234
|
className: "md:col-span-2 space-y-6",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ p(T, {
|
|
237
236
|
treatment: "glass",
|
|
238
237
|
glow: !0,
|
|
239
238
|
className: "p-6",
|
|
240
239
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ p("div", {
|
|
242
241
|
className: "flex items-center justify-between mb-4",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
244
243
|
className: "text-lg font-bold text-text-primary flex items-center gap-2",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
246
|
-
}),
|
|
244
|
+
children: [/* @__PURE__ */ f(_, { className: "size-5 text-primary" }), A("security.secretDetail.value.title", "Secret Value")]
|
|
245
|
+
}), N.expiresAt && /* @__PURE__ */ p("div", {
|
|
247
246
|
className: "flex items-center gap-1.5 text-xs text-warning",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ f(h, { className: "size-3.5" }), A("security.secretDetail.value.expires", "Expires: {{date}}", { date: new Date(N.expiresAt).toLocaleDateString() })]
|
|
249
248
|
})]
|
|
250
249
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
value:
|
|
253
|
-
isRevealed:
|
|
254
|
-
onToggleReveal:
|
|
255
|
-
|
|
250
|
+
/* @__PURE__ */ f(le, {
|
|
251
|
+
value: Ae ?? "",
|
|
252
|
+
isRevealed: I,
|
|
253
|
+
onToggleReveal: B ? () => {
|
|
254
|
+
I ? je() : F();
|
|
256
255
|
} : void 0,
|
|
257
|
-
isLoading:
|
|
256
|
+
isLoading: Me
|
|
258
257
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ f("p", {
|
|
260
259
|
className: "text-xs text-text-secondary mt-4 italic",
|
|
261
|
-
children:
|
|
260
|
+
children: A("security.secretDetail.value.note", "Secret values are decrypted on-demand and never stored in plain text.")
|
|
262
261
|
})
|
|
263
262
|
]
|
|
264
|
-
}), /* @__PURE__ */
|
|
263
|
+
}), /* @__PURE__ */ p(o, {
|
|
265
264
|
className: "p-6 shadow-sm border-border-subtle/60",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ p("div", {
|
|
267
266
|
className: "flex items-center justify-between mb-6",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
269
268
|
className: "text-lg font-bold text-text-primary flex items-center gap-2",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
271
|
-
}), /* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ f(g, { className: "size-5 text-primary" }), A("security.secretDetail.history.title", "Version History")]
|
|
270
|
+
}), /* @__PURE__ */ f(i, {
|
|
272
271
|
variant: "outline",
|
|
273
272
|
className: "bg-bg-sunken font-mono",
|
|
274
|
-
children:
|
|
273
|
+
children: A("security.secretDetail.history.totalVersions", "{{count}} total versions", { count: Q })
|
|
275
274
|
})]
|
|
276
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ p("div", {
|
|
277
276
|
className: "space-y-4",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ p("div", {
|
|
279
278
|
className: "flex items-center justify-between p-4 rounded-lg bg-action-primary-bg/5 border border-primary/10",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ p("div", {
|
|
281
280
|
className: "flex items-center gap-3",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
281
|
+
children: [/* @__PURE__ */ p("div", {
|
|
283
282
|
className: "size-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-primary text-xs font-bold tabular-nums",
|
|
284
|
-
children: ["v",
|
|
285
|
-
}), /* @__PURE__ */
|
|
283
|
+
children: ["v", N.version ?? Q]
|
|
284
|
+
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
286
285
|
className: "text-sm font-semibold",
|
|
287
|
-
children:
|
|
288
|
-
}), /* @__PURE__ */
|
|
286
|
+
children: A("security.secretDetail.history.currentVersion", "Current Active Version")
|
|
287
|
+
}), /* @__PURE__ */ f("p", {
|
|
289
288
|
className: "text-xs text-text-secondary",
|
|
290
|
-
children:
|
|
289
|
+
children: A("security.secretDetail.history.lastUpdated", "Last updated {{date}}", { date: new Date(N.updatedAt).toLocaleString() })
|
|
291
290
|
})] })]
|
|
292
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ f(i, {
|
|
293
292
|
variant: "success",
|
|
294
293
|
className: "text-[10px] uppercase",
|
|
295
|
-
children:
|
|
294
|
+
children: A("security.common.status.active", "Active")
|
|
296
295
|
})]
|
|
297
|
-
}), Q > 1 && /* @__PURE__ */
|
|
296
|
+
}), Q > 1 && /* @__PURE__ */ p("div", {
|
|
298
297
|
className: "text-center py-4 border-2 border-dashed border-border-subtle/40 rounded-lg bg-bg-sunken/20",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ f("p", {
|
|
300
299
|
className: "text-sm text-text-secondary",
|
|
301
|
-
children:
|
|
302
|
-
}), /* @__PURE__ */
|
|
300
|
+
children: A("security.secretDetail.history.available", "Historical versions are available. You can rollback to a previous state if needed.")
|
|
301
|
+
}), /* @__PURE__ */ f(a, {
|
|
303
302
|
variant: "outline",
|
|
304
303
|
size: "sm",
|
|
305
304
|
className: "mt-3",
|
|
306
|
-
onClick: () =>
|
|
307
|
-
children:
|
|
305
|
+
onClick: () => q(!0),
|
|
306
|
+
children: A("security.secretDetail.history.viewFull", "View Full History")
|
|
308
307
|
})]
|
|
309
308
|
})]
|
|
310
309
|
})]
|
|
311
310
|
})]
|
|
312
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ p("div", {
|
|
313
312
|
className: "space-y-6",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ p(o, {
|
|
315
314
|
className: "p-6 shadow-sm border-border-subtle/60 space-y-4",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
317
316
|
className: "font-bold text-sm uppercase tracking-wider text-text-secondary",
|
|
318
|
-
children:
|
|
319
|
-
}), /* @__PURE__ */
|
|
317
|
+
children: A("security.secretDetail.details.title", "Details")
|
|
318
|
+
}), /* @__PURE__ */ p("div", {
|
|
320
319
|
className: "space-y-3",
|
|
321
320
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
323
322
|
className: "text-xs text-text-secondary",
|
|
324
|
-
children:
|
|
325
|
-
}), /* @__PURE__ */
|
|
323
|
+
children: A("security.secretDetail.details.keyIdentifier", "Key Identifier")
|
|
324
|
+
}), /* @__PURE__ */ f("code", {
|
|
326
325
|
className: "text-xs font-mono bg-bg-sunken px-1.5 py-0.5 rounded block mt-1 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
327
|
-
children:
|
|
326
|
+
children: N.key
|
|
328
327
|
})] }),
|
|
329
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
330
329
|
className: "text-xs text-text-secondary",
|
|
331
|
-
children:
|
|
332
|
-
}), /* @__PURE__ */
|
|
330
|
+
children: A("security.secretDetail.details.createdBy", "Created By")
|
|
331
|
+
}), /* @__PURE__ */ f("p", {
|
|
333
332
|
className: "text-sm font-medium mt-1",
|
|
334
|
-
children:
|
|
333
|
+
children: N.createdBy
|
|
335
334
|
})] }),
|
|
336
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
337
336
|
className: "text-xs text-text-secondary",
|
|
338
|
-
children:
|
|
339
|
-
}), /* @__PURE__ */
|
|
337
|
+
children: A("security.secretDetail.details.createdAt", "Created At")
|
|
338
|
+
}), /* @__PURE__ */ p("div", {
|
|
340
339
|
className: "flex items-center gap-1.5 text-sm mt-1",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ f(ye, { className: "size-3.5" }), new Date(N.createdAt).toLocaleDateString()]
|
|
342
341
|
})] }),
|
|
343
|
-
|
|
342
|
+
N.lastRotatedAt && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
344
343
|
className: "text-xs text-text-secondary",
|
|
345
|
-
children:
|
|
346
|
-
}), /* @__PURE__ */
|
|
344
|
+
children: A("security.secretDetail.details.lastRotation", "Last Rotation")
|
|
345
|
+
}), /* @__PURE__ */ f("p", {
|
|
347
346
|
className: "text-sm mt-1",
|
|
348
|
-
children: new Date(
|
|
347
|
+
children: new Date(N.lastRotatedAt).toLocaleString()
|
|
349
348
|
})] })
|
|
350
349
|
]
|
|
351
350
|
})]
|
|
352
|
-
}), /* @__PURE__ */
|
|
351
|
+
}), /* @__PURE__ */ p(T, {
|
|
353
352
|
treatment: "insight",
|
|
354
353
|
className: "p-6 space-y-4",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
354
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
356
355
|
className: "font-bold text-sm text-primary flex items-center gap-2",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
358
|
-
}), /* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ f(be, { className: "size-4" }), A("security.secretDetail.security.title", "Security")]
|
|
357
|
+
}), /* @__PURE__ */ f("p", {
|
|
359
358
|
className: "text-xs text-text-secondary leading-relaxed",
|
|
360
|
-
children:
|
|
359
|
+
children: A("security.secretDetail.security.description", "This secret is protected by 256-bit encryption. All access is logged and monitored for suspicious activity.")
|
|
361
360
|
})]
|
|
362
361
|
})]
|
|
363
362
|
})]
|
|
364
363
|
})
|
|
365
364
|
]
|
|
366
365
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
open:
|
|
366
|
+
/* @__PURE__ */ f(x, {
|
|
367
|
+
open: He,
|
|
369
368
|
onOpenChange: (e) => {
|
|
370
|
-
e ||
|
|
369
|
+
e || q(!1);
|
|
371
370
|
},
|
|
372
|
-
children: /* @__PURE__ */
|
|
371
|
+
children: /* @__PURE__ */ p(S, {
|
|
373
372
|
className: "max-w-2xl border-primary/20 max-h-[80vh] flex flex-col gap-0 p-0",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ f(C, {
|
|
375
374
|
className: "p-6 border-b border-border-subtle text-left",
|
|
376
|
-
children: /* @__PURE__ */
|
|
375
|
+
children: /* @__PURE__ */ p("div", {
|
|
377
376
|
className: "flex items-center gap-3",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ f("div", {
|
|
379
378
|
className: "p-2 rounded-full bg-action-primary-bg/10 text-primary",
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
}), /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ f(g, { className: "size-5" })
|
|
380
|
+
}), /* @__PURE__ */ f(w, {
|
|
382
381
|
className: "text-xl font-bold",
|
|
383
|
-
children:
|
|
382
|
+
children: A("security.secretDetail.history.modalTitle", "Version History")
|
|
384
383
|
})]
|
|
385
384
|
})
|
|
386
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ f("div", {
|
|
387
386
|
className: "p-6 overflow-y-auto flex-1",
|
|
388
|
-
children:
|
|
387
|
+
children: Oe ? /* @__PURE__ */ f("div", {
|
|
389
388
|
className: "flex justify-center py-8",
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
-
}) : /* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ f(v, { className: "size-8 animate-spin text-primary/60" })
|
|
390
|
+
}) : /* @__PURE__ */ f("div", {
|
|
392
391
|
className: "space-y-4",
|
|
393
|
-
children:
|
|
394
|
-
className: n("p-4 rounded-lg border", e.version ===
|
|
395
|
-
children: /* @__PURE__ */
|
|
392
|
+
children: ke.map((e) => /* @__PURE__ */ f("div", {
|
|
393
|
+
className: n("p-4 rounded-lg border", e.version === N.version ? "bg-action-primary-bg/5 border-primary/20" : "bg-bg-surface border-border-subtle"),
|
|
394
|
+
children: /* @__PURE__ */ p("div", {
|
|
396
395
|
className: "flex items-center justify-between",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ p("div", { children: [
|
|
397
|
+
/* @__PURE__ */ p("div", {
|
|
399
398
|
className: "flex items-center gap-2",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ f("span", {
|
|
401
400
|
className: "font-semibold",
|
|
402
|
-
children:
|
|
403
|
-
}), e.version ===
|
|
401
|
+
children: A("security.secretDetail.history.versionLabel", "Version {{version}}", { version: e.version })
|
|
402
|
+
}), e.version === N.version && /* @__PURE__ */ f(i, {
|
|
404
403
|
variant: "success",
|
|
405
404
|
className: "text-[10px] uppercase",
|
|
406
|
-
children:
|
|
405
|
+
children: A("security.common.status.active", "Active")
|
|
407
406
|
})]
|
|
408
407
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ f("p", {
|
|
410
409
|
className: "text-xs text-text-secondary mt-1",
|
|
411
|
-
children:
|
|
410
|
+
children: A("security.secretDetail.history.versionMeta", "{date} by {createdBy}", {
|
|
412
411
|
date: new Date(e.createdAt).toLocaleString(),
|
|
413
412
|
createdBy: e.createdBy
|
|
414
413
|
})
|
|
415
414
|
}),
|
|
416
|
-
e.changeReason && /* @__PURE__ */
|
|
415
|
+
e.changeReason && /* @__PURE__ */ f("p", {
|
|
417
416
|
className: "text-sm mt-2",
|
|
418
417
|
children: e.changeReason
|
|
419
418
|
})
|
|
420
|
-
] }), e.version !==
|
|
419
|
+
] }), e.version !== N.version && /* @__PURE__ */ f(ce, {
|
|
421
420
|
permission: "secret:update",
|
|
422
421
|
featureFlagKey: t.SECRET_ROLLBACK,
|
|
423
422
|
featureFlagDefault: !1,
|
|
424
|
-
children: /* @__PURE__ */
|
|
423
|
+
children: /* @__PURE__ */ f(a, {
|
|
425
424
|
variant: "outline",
|
|
426
425
|
size: "sm",
|
|
427
|
-
onClick: () =>
|
|
428
|
-
disabled:
|
|
429
|
-
children:
|
|
426
|
+
onClick: () => Ke(e.version),
|
|
427
|
+
disabled: Le,
|
|
428
|
+
children: A("security.secretDetail.actions.rollback", "Rollback")
|
|
430
429
|
})
|
|
431
430
|
})]
|
|
432
431
|
})
|
|
@@ -435,82 +434,82 @@ function E() {
|
|
|
435
434
|
})]
|
|
436
435
|
})
|
|
437
436
|
}),
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
isOpen:
|
|
440
|
-
onClose: () =>
|
|
437
|
+
/* @__PURE__ */ f(te, {
|
|
438
|
+
isOpen: ze,
|
|
439
|
+
onClose: () => H(!1),
|
|
441
440
|
onConfirm: Z,
|
|
442
|
-
title:
|
|
443
|
-
description:
|
|
444
|
-
confirmLabel:
|
|
441
|
+
title: A("security.secretDetail.delete.title", "Delete Secret"),
|
|
442
|
+
description: A("security.secretDetail.delete.description", "Are you sure you want to delete \"{name}\"? This action cannot be undone and will permanently remove this secret from the vault.", { name: N.name }),
|
|
443
|
+
confirmLabel: Pe ? A("security.secretDetail.delete.deleting", "Deleting...") : A("security.secretDetail.delete.confirm", "Delete Secret"),
|
|
445
444
|
variant: "destructive"
|
|
446
445
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
open:
|
|
446
|
+
/* @__PURE__ */ f(x, {
|
|
447
|
+
open: Ve,
|
|
449
448
|
onOpenChange: (e) => {
|
|
450
|
-
e ||
|
|
449
|
+
e || W(!1);
|
|
451
450
|
},
|
|
452
|
-
children: /* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ f(S, {
|
|
453
452
|
className: "max-w-md border-primary/20",
|
|
454
|
-
children: /* @__PURE__ */
|
|
453
|
+
children: /* @__PURE__ */ p("div", {
|
|
455
454
|
className: "space-y-4",
|
|
456
455
|
children: [
|
|
457
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ f(C, {
|
|
458
457
|
className: "text-left",
|
|
459
|
-
children: /* @__PURE__ */
|
|
458
|
+
children: /* @__PURE__ */ p("div", {
|
|
460
459
|
className: "flex items-center gap-3",
|
|
461
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ f("div", {
|
|
462
461
|
className: "p-2 rounded-full bg-action-primary-bg/10 text-primary",
|
|
463
|
-
children: /* @__PURE__ */
|
|
464
|
-
}), /* @__PURE__ */
|
|
462
|
+
children: /* @__PURE__ */ f(y, { className: "size-5" })
|
|
463
|
+
}), /* @__PURE__ */ f(w, {
|
|
465
464
|
className: "text-xl font-bold",
|
|
466
|
-
children:
|
|
465
|
+
children: A("security.secretDetail.rotate.title", "Rotate Secret")
|
|
467
466
|
})]
|
|
468
467
|
})
|
|
469
468
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ f("p", {
|
|
471
470
|
className: "text-sm text-text-secondary",
|
|
472
|
-
children:
|
|
471
|
+
children: A("security.secretDetail.rotate.description", "Enter a new value for {name}. The current value will be moved to version history.", { name: N.name })
|
|
473
472
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ p("div", {
|
|
475
474
|
className: "space-y-2",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
475
|
+
children: [/* @__PURE__ */ f("label", {
|
|
477
476
|
htmlFor: "new-secret-value",
|
|
478
477
|
className: "text-sm font-medium",
|
|
479
|
-
children:
|
|
480
|
-
}), /* @__PURE__ */
|
|
478
|
+
children: A("security.secretDetail.rotate.newValue", "New Secret Value")
|
|
479
|
+
}), /* @__PURE__ */ f("textarea", {
|
|
481
480
|
id: "new-secret-value",
|
|
482
|
-
"aria-label":
|
|
483
|
-
ref:
|
|
484
|
-
value:
|
|
485
|
-
onChange: (e) =>
|
|
486
|
-
placeholder:
|
|
481
|
+
"aria-label": A("security.secretDetail.rotate.newValue", "New Secret Value"),
|
|
482
|
+
ref: G,
|
|
483
|
+
value: J,
|
|
484
|
+
onChange: (e) => Y(e.target.value),
|
|
485
|
+
placeholder: A("security.secretDetail.rotate.placeholder", "Enter new secret value..."),
|
|
487
486
|
rows: 4,
|
|
488
487
|
className: n("w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-mono transition-all", "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary", "placeholder:text-text-secondary/50")
|
|
489
488
|
})]
|
|
490
489
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ p("div", {
|
|
492
491
|
className: "flex justify-end gap-3 pt-2",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ f(a, {
|
|
494
493
|
variant: "outline",
|
|
495
|
-
onClick: () =>
|
|
496
|
-
disabled:
|
|
497
|
-
children:
|
|
498
|
-
}), /* @__PURE__ */
|
|
499
|
-
onClick:
|
|
500
|
-
disabled:
|
|
501
|
-
children: [
|
|
494
|
+
onClick: () => W(!1),
|
|
495
|
+
disabled: L,
|
|
496
|
+
children: A("security.common.actions.cancel", "Cancel")
|
|
497
|
+
}), /* @__PURE__ */ p(a, {
|
|
498
|
+
onClick: Ge,
|
|
499
|
+
disabled: L || !J.trim(),
|
|
500
|
+
children: [L ? /* @__PURE__ */ f(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ f(y, { className: "size-4" }), L ? A("security.secretDetail.rotate.loading", "Rotating...") : A("security.secretDetail.rotate.confirm", "Rotate Secret")]
|
|
502
501
|
})]
|
|
503
502
|
})
|
|
504
503
|
]
|
|
505
504
|
})
|
|
506
505
|
})
|
|
507
506
|
}),
|
|
508
|
-
E && D && /* @__PURE__ */
|
|
509
|
-
isOpen:
|
|
510
|
-
onClose: () =>
|
|
507
|
+
E && D && /* @__PURE__ */ f(fe, {
|
|
508
|
+
isOpen: Be,
|
|
509
|
+
onClose: () => U(!1),
|
|
511
510
|
vaultId: E,
|
|
512
511
|
secretId: D,
|
|
513
|
-
name:
|
|
512
|
+
name: N.name
|
|
514
513
|
})
|
|
515
514
|
]
|
|
516
515
|
});
|