@burdenoff/microfe-product 2026.624.3 → 2026.626.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/dist/product/pages/ContentPageViewPage.js +41 -36
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +63 -50
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +220 -178
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +8 -8
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
- package/package.json +2 -2
- package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
|
@@ -8,258 +8,277 @@ import { useDeleteShortcut as c, useShortcut as l, useToggleShortcut as u } from
|
|
|
8
8
|
import { ShortcutCategoryBadge as d } from "../components/ShortcutCategoryBadge.js";
|
|
9
9
|
import { ShortcutKeyBadge as f } from "../components/ShortcutKeyBadge.js";
|
|
10
10
|
import { ArrowLeft as p, SquarePen as m, ToggleLeft as h, ToggleRight as g, Trash2 as _ } from "lucide-react";
|
|
11
|
-
import {
|
|
12
|
-
import { useParams as
|
|
11
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
12
|
+
import { useParams as b } from "react-router-dom";
|
|
13
|
+
import { CTAOverflowMenu as x, EmphasisPanel as S, GradientText as C, NextSteps as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx
|
|
14
|
-
function
|
|
15
|
-
let { id:
|
|
16
|
-
|
|
15
|
+
function E() {
|
|
16
|
+
let { id: E } = b(), { navigate: D, basePath: O = "/products" } = t(), k = e(), { confirm: A, ConfirmDialog: j } = s(), M = E || "", { shortcut: N, loading: P, error: F, refetch: I } = l(M), { deleteShortcut: L, loading: R } = c(), { toggleShortcut: z, loading: B } = u(), V = async () => {
|
|
17
|
+
a("medium");
|
|
18
|
+
let e = k("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
|
|
19
|
+
title: "Delete shortcut",
|
|
20
|
+
message: e,
|
|
21
|
+
okButtonTitle: "Delete",
|
|
22
|
+
cancelButtonTitle: "Cancel"
|
|
23
|
+
});
|
|
24
|
+
if (t === null ? await A({
|
|
25
|
+
title: "Delete shortcut",
|
|
26
|
+
message: e,
|
|
27
|
+
okButtonTitle: "Delete",
|
|
28
|
+
cancelButtonTitle: "Cancel",
|
|
29
|
+
destructive: !0
|
|
30
|
+
}) : t) try {
|
|
31
|
+
await L(M), o("success"), D(`${O}/shortcuts`);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
o("error"), console.error("Failed to delete shortcut:", e);
|
|
34
|
+
}
|
|
35
|
+
}, H = async () => {
|
|
36
|
+
if (N) {
|
|
37
|
+
a("medium");
|
|
38
|
+
try {
|
|
39
|
+
await z(M, !N.isEnabled), I();
|
|
40
|
+
} catch (e) {
|
|
41
|
+
o("error"), console.error("Failed to toggle shortcut:", e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return P ? /* @__PURE__ */ v("div", {
|
|
17
46
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
}) :
|
|
47
|
+
children: /* @__PURE__ */ v(n, { message: k("shortcuts.loadingShortcut", "Loading shortcut...") })
|
|
48
|
+
}) : F ? /* @__PURE__ */ v("div", {
|
|
20
49
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
-
message:
|
|
50
|
+
children: /* @__PURE__ */ v(r, {
|
|
51
|
+
message: F.message,
|
|
23
52
|
action: {
|
|
24
|
-
label:
|
|
25
|
-
onClick: () =>
|
|
53
|
+
label: k("productCommon.retry", "Retry"),
|
|
54
|
+
onClick: () => I()
|
|
26
55
|
}
|
|
27
56
|
})
|
|
28
|
-
}) :
|
|
57
|
+
}) : N ? /* @__PURE__ */ y("div", {
|
|
29
58
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
30
59
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ y("div", {
|
|
32
61
|
className: "mb-6",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ y("button", {
|
|
34
63
|
type: "button",
|
|
35
|
-
onClick: () =>
|
|
64
|
+
onClick: () => D(`${O}/shortcuts`),
|
|
36
65
|
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
38
|
-
}), /* @__PURE__ */
|
|
39
|
-
className: "flex items-start justify-between",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
41
|
-
className: "flex items-center gap-3 mb-2",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
43
|
-
className: "text-3xl font-
|
|
44
|
-
children:
|
|
45
|
-
}), /* @__PURE__ */
|
|
46
|
-
}), /* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ v(p, { size: 18 }), k("shortcuts.backToShortcuts", "Back to Shortcuts")]
|
|
67
|
+
}), /* @__PURE__ */ y("div", {
|
|
68
|
+
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
|
|
69
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
|
|
70
|
+
className: "flex flex-wrap items-center gap-3 mb-2",
|
|
71
|
+
children: [/* @__PURE__ */ v("h1", {
|
|
72
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
73
|
+
children: /* @__PURE__ */ v(C, { children: N.label })
|
|
74
|
+
}), /* @__PURE__ */ v(d, { category: N.category })]
|
|
75
|
+
}), /* @__PURE__ */ y("div", {
|
|
47
76
|
className: "flex items-center gap-3",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
49
|
-
shortcutKey:
|
|
50
|
-
isSequence:
|
|
77
|
+
children: [/* @__PURE__ */ v(f, {
|
|
78
|
+
shortcutKey: N.shortcutKey,
|
|
79
|
+
isSequence: N.isSequence
|
|
51
80
|
}), /* @__PURE__ */ y("span", {
|
|
52
81
|
className: `
|
|
53
|
-
inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium
|
|
54
|
-
${
|
|
82
|
+
inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium
|
|
83
|
+
${N.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
|
|
55
84
|
`,
|
|
56
|
-
children:
|
|
85
|
+
children: [N.isEnabled && /* @__PURE__ */ v("span", { className: "size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse" }), N.isEnabled ? k("shortcuts.enabled", "Enabled") : k("shortcuts.disabled", "Disabled")]
|
|
57
86
|
})]
|
|
58
|
-
})] }), /* @__PURE__ */
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
${k.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-bg-sunken" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
|
|
81
|
-
`,
|
|
82
|
-
children: k.isEnabled ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(h, { size: 18 }), T("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(g, { size: 18 }), T("shortcuts.enable", "Enable")] })
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ b("button", {
|
|
85
|
-
type: "button",
|
|
86
|
-
onClick: () => C(`${w}/shortcuts/${O}/edit`),
|
|
87
|
-
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
|
|
88
|
-
children: [/* @__PURE__ */ y(m, { size: 18 }), T("shortcuts.edit", "Edit")]
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */ b("button", {
|
|
91
|
-
type: "button",
|
|
92
|
-
onClick: async () => {
|
|
93
|
-
a("medium");
|
|
94
|
-
let e = T("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
|
|
95
|
-
title: "Delete shortcut",
|
|
96
|
-
message: e,
|
|
97
|
-
okButtonTitle: "Delete",
|
|
98
|
-
cancelButtonTitle: "Cancel"
|
|
99
|
-
});
|
|
100
|
-
if (t === null ? await E({
|
|
101
|
-
title: "Delete shortcut",
|
|
102
|
-
message: e,
|
|
103
|
-
okButtonTitle: "Delete",
|
|
104
|
-
cancelButtonTitle: "Cancel",
|
|
105
|
-
destructive: !0
|
|
106
|
-
}) : t) try {
|
|
107
|
-
await N(O), o("success"), C(`${w}/shortcuts`);
|
|
108
|
-
} catch (e) {
|
|
109
|
-
o("error"), console.error("Failed to delete shortcut:", e);
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
disabled: P,
|
|
113
|
-
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
|
|
114
|
-
children: [/* @__PURE__ */ y(_, { size: 18 }), T("shortcuts.delete", "Delete")]
|
|
115
|
-
})
|
|
116
|
-
]
|
|
87
|
+
})] }), /* @__PURE__ */ v(x, {
|
|
88
|
+
primary: {
|
|
89
|
+
label: k("shortcuts.edit", "Edit"),
|
|
90
|
+
onSelect: () => D(`${O}/shortcuts/${M}/edit`),
|
|
91
|
+
icon: /* @__PURE__ */ v(m, { className: "size-4" })
|
|
92
|
+
},
|
|
93
|
+
actions: [{
|
|
94
|
+
label: N.isEnabled ? k("shortcuts.disable", "Disable") : k("shortcuts.enable", "Enable"),
|
|
95
|
+
onSelect: () => {
|
|
96
|
+
H();
|
|
97
|
+
},
|
|
98
|
+
disabled: B,
|
|
99
|
+
icon: N.isEnabled ? /* @__PURE__ */ v(h, { className: "size-4" }) : /* @__PURE__ */ v(g, { className: "size-4" })
|
|
100
|
+
}, {
|
|
101
|
+
label: k("shortcuts.delete", "Delete"),
|
|
102
|
+
onSelect: () => {
|
|
103
|
+
V();
|
|
104
|
+
},
|
|
105
|
+
intent: "destructive",
|
|
106
|
+
disabled: R,
|
|
107
|
+
icon: /* @__PURE__ */ v(_, { className: "size-4" })
|
|
108
|
+
}]
|
|
117
109
|
})]
|
|
118
110
|
})]
|
|
119
111
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ v(T, {
|
|
113
|
+
className: "mb-6",
|
|
114
|
+
children: k("shortcuts.detailPurpose", `This is the "${N.label}" shortcut — it fires the "${N.eventName}" event when pressed. Review its key bindings (including Mac and Windows/Linux variants), toggle it on or off, or edit it to change the keys or event.`)
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ v(w, {
|
|
117
|
+
storageKey: "product-shortcut-detail",
|
|
118
|
+
className: "mb-6",
|
|
119
|
+
steps: [
|
|
120
|
+
{
|
|
121
|
+
id: "edit",
|
|
122
|
+
label: k("shortcuts.steps.edit", "Edit this shortcut"),
|
|
123
|
+
description: k("shortcuts.steps.editDesc", "Change the key combination, event, category, or per-platform keys."),
|
|
124
|
+
onClick: () => D(`${O}/shortcuts/${M}/edit`)
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: "toggle",
|
|
128
|
+
label: N.isEnabled ? k("shortcuts.steps.disable", "Disable this shortcut") : k("shortcuts.steps.enable", "Enable this shortcut"),
|
|
129
|
+
description: k("shortcuts.steps.toggleDesc", "Turn it on or off without deleting it — useful while testing."),
|
|
130
|
+
onClick: () => {
|
|
131
|
+
H();
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: "back",
|
|
136
|
+
label: k("shortcuts.steps.back", "Back to all shortcuts"),
|
|
137
|
+
description: k("shortcuts.steps.backDesc", "Return to the list to manage the rest of your shortcuts."),
|
|
138
|
+
onClick: () => D(`${O}/shortcuts`)
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ y("div", {
|
|
121
143
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
123
|
-
className: "
|
|
124
|
-
children:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
k.description
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
className: "
|
|
159
|
-
children:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
className: "text-text-
|
|
176
|
-
children: k.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
})]
|
|
197
|
-
}), /* @__PURE__ */ b("div", {
|
|
198
|
-
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
|
|
144
|
+
children: [/* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v("h2", {
|
|
145
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
146
|
+
children: k("shortcuts.shortcutDetails", "Shortcut Details")
|
|
147
|
+
}), /* @__PURE__ */ y("dl", {
|
|
148
|
+
className: "space-y-4",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
151
|
+
className: "text-sm font-medium text-text-secondary",
|
|
152
|
+
children: k("shortcuts.label", "Label")
|
|
153
|
+
}), /* @__PURE__ */ v("dd", {
|
|
154
|
+
className: "text-text-primary mt-1",
|
|
155
|
+
children: N.label
|
|
156
|
+
})] }),
|
|
157
|
+
N.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
158
|
+
className: "text-sm font-medium text-text-secondary",
|
|
159
|
+
children: k("shortcuts.description", "Description")
|
|
160
|
+
}), /* @__PURE__ */ v("dd", {
|
|
161
|
+
className: "text-text-primary mt-1",
|
|
162
|
+
children: N.description
|
|
163
|
+
})] }),
|
|
164
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
165
|
+
className: "text-sm font-medium text-text-secondary",
|
|
166
|
+
children: k("shortcuts.shortcutKey", "Shortcut Key")
|
|
167
|
+
}), /* @__PURE__ */ v("dd", {
|
|
168
|
+
className: "mt-1",
|
|
169
|
+
children: /* @__PURE__ */ v(f, {
|
|
170
|
+
shortcutKey: N.shortcutKey,
|
|
171
|
+
isSequence: N.isSequence
|
|
172
|
+
})
|
|
173
|
+
})] }),
|
|
174
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
175
|
+
className: "text-sm font-medium text-text-secondary",
|
|
176
|
+
children: k("shortcuts.eventName", "Event Name")
|
|
177
|
+
}), /* @__PURE__ */ v("dd", {
|
|
178
|
+
className: "mt-1",
|
|
179
|
+
children: /* @__PURE__ */ v("code", {
|
|
180
|
+
className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
|
|
181
|
+
children: N.eventName
|
|
182
|
+
})
|
|
183
|
+
})] }),
|
|
184
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
185
|
+
className: "text-sm font-medium text-text-secondary",
|
|
186
|
+
children: k("shortcuts.category", "Category")
|
|
187
|
+
}), /* @__PURE__ */ v("dd", {
|
|
188
|
+
className: "mt-1",
|
|
189
|
+
children: /* @__PURE__ */ v(d, { category: N.category })
|
|
190
|
+
})] }),
|
|
191
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
192
|
+
className: "text-sm font-medium text-text-secondary",
|
|
193
|
+
children: k("shortcuts.product", "Product")
|
|
194
|
+
}), /* @__PURE__ */ v("dd", {
|
|
195
|
+
className: "text-text-primary mt-1",
|
|
196
|
+
children: N.product?.name || /* @__PURE__ */ v("span", {
|
|
197
|
+
className: "text-text-tertiary italic",
|
|
198
|
+
children: k("shortcuts.globalAllProducts", "Global (All Products)")
|
|
199
|
+
})
|
|
200
|
+
})] }),
|
|
201
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
202
|
+
className: "text-sm font-medium text-text-secondary",
|
|
203
|
+
children: k("shortcuts.type", "Type")
|
|
204
|
+
}), /* @__PURE__ */ v("dd", {
|
|
205
|
+
className: "text-text-primary mt-1",
|
|
206
|
+
children: N.isSequence ? k("shortcuts.keySequence", "Key Sequence") : k("shortcuts.keyCombination", "Key Combination")
|
|
207
|
+
})] }),
|
|
208
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
209
|
+
className: "text-sm font-medium text-text-secondary",
|
|
210
|
+
children: k("shortcuts.sortOrder", "Sort Order")
|
|
211
|
+
}), /* @__PURE__ */ v("dd", {
|
|
212
|
+
className: "text-text-primary mt-1",
|
|
213
|
+
children: N.sortOrder
|
|
214
|
+
})] })
|
|
215
|
+
]
|
|
216
|
+
})] }), /* @__PURE__ */ y("div", {
|
|
217
|
+
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6",
|
|
199
218
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ v("h2", {
|
|
201
220
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
202
|
-
children:
|
|
221
|
+
children: k("shortcuts.platformKeys", "Platform Keys")
|
|
203
222
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ y("dl", {
|
|
205
224
|
className: "space-y-4",
|
|
206
225
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
208
227
|
className: "text-sm font-medium text-text-secondary",
|
|
209
|
-
children:
|
|
210
|
-
}), /* @__PURE__ */
|
|
228
|
+
children: k("shortcuts.defaultKey", "Default Key")
|
|
229
|
+
}), /* @__PURE__ */ v("dd", {
|
|
211
230
|
className: "mt-1",
|
|
212
|
-
children: /* @__PURE__ */
|
|
213
|
-
shortcutKey:
|
|
214
|
-
isSequence:
|
|
231
|
+
children: /* @__PURE__ */ v(f, {
|
|
232
|
+
shortcutKey: N.shortcutKey,
|
|
233
|
+
isSequence: N.isSequence
|
|
215
234
|
})
|
|
216
235
|
})] }),
|
|
217
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
218
237
|
className: "text-sm font-medium text-text-secondary",
|
|
219
|
-
children:
|
|
220
|
-
}), /* @__PURE__ */
|
|
238
|
+
children: k("shortcuts.macKey", "Mac Key")
|
|
239
|
+
}), /* @__PURE__ */ v("dd", {
|
|
221
240
|
className: "mt-1",
|
|
222
|
-
children:
|
|
241
|
+
children: N.macKey ? /* @__PURE__ */ v(f, { shortcutKey: N.macKey }) : /* @__PURE__ */ v("span", {
|
|
223
242
|
className: "text-text-tertiary italic",
|
|
224
|
-
children:
|
|
243
|
+
children: k("shortcuts.sameAsDefault", "Same as default")
|
|
225
244
|
})
|
|
226
245
|
})] }),
|
|
227
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
228
247
|
className: "text-sm font-medium text-text-secondary",
|
|
229
|
-
children:
|
|
230
|
-
}), /* @__PURE__ */
|
|
248
|
+
children: k("shortcuts.windowsLinuxKey", "Windows/Linux Key")
|
|
249
|
+
}), /* @__PURE__ */ v("dd", {
|
|
231
250
|
className: "mt-1",
|
|
232
|
-
children:
|
|
251
|
+
children: N.windowsKey ? /* @__PURE__ */ v(f, { shortcutKey: N.windowsKey }) : /* @__PURE__ */ v("span", {
|
|
233
252
|
className: "text-text-tertiary italic",
|
|
234
|
-
children:
|
|
253
|
+
children: k("shortcuts.sameAsDefault", "Same as default")
|
|
235
254
|
})
|
|
236
255
|
})] })
|
|
237
256
|
]
|
|
238
257
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
className: "mt-6 pt-4 border-t border-
|
|
241
|
-
children: [/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ y("div", {
|
|
259
|
+
className: "mt-6 pt-4 border-t border-border-seam",
|
|
260
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
242
261
|
className: "text-sm font-semibold text-text-secondary mb-3",
|
|
243
|
-
children:
|
|
244
|
-
}), /* @__PURE__ */
|
|
262
|
+
children: k("shortcuts.timestamps", "Timestamps")
|
|
263
|
+
}), /* @__PURE__ */ y("dl", {
|
|
245
264
|
className: "space-y-2 text-sm",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ y("div", {
|
|
247
266
|
className: "flex justify-between",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
249
268
|
className: "text-text-tertiary",
|
|
250
|
-
children:
|
|
251
|
-
}), /* @__PURE__ */
|
|
269
|
+
children: k("shortcuts.created", "Created")
|
|
270
|
+
}), /* @__PURE__ */ v("dd", {
|
|
252
271
|
className: "text-text-primary",
|
|
253
|
-
children: new Date(
|
|
272
|
+
children: new Date(N.createdAt).toLocaleString()
|
|
254
273
|
})]
|
|
255
|
-
}), /* @__PURE__ */
|
|
274
|
+
}), /* @__PURE__ */ y("div", {
|
|
256
275
|
className: "flex justify-between",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
276
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
258
277
|
className: "text-text-tertiary",
|
|
259
|
-
children:
|
|
260
|
-
}), /* @__PURE__ */
|
|
278
|
+
children: k("shortcuts.updated", "Updated")
|
|
279
|
+
}), /* @__PURE__ */ v("dd", {
|
|
261
280
|
className: "text-text-primary",
|
|
262
|
-
children: new Date(
|
|
281
|
+
children: new Date(N.updatedAt).toLocaleString()
|
|
263
282
|
})]
|
|
264
283
|
})]
|
|
265
284
|
})]
|
|
@@ -267,20 +286,20 @@ function S() {
|
|
|
267
286
|
]
|
|
268
287
|
})]
|
|
269
288
|
}),
|
|
270
|
-
|
|
289
|
+
j
|
|
271
290
|
]
|
|
272
|
-
}) : /* @__PURE__ */
|
|
291
|
+
}) : /* @__PURE__ */ v("div", {
|
|
273
292
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
274
|
-
children: /* @__PURE__ */
|
|
275
|
-
message:
|
|
293
|
+
children: /* @__PURE__ */ v(r, {
|
|
294
|
+
message: k("shortcuts.shortcutNotFound", "Shortcut not found"),
|
|
276
295
|
action: {
|
|
277
|
-
label:
|
|
278
|
-
onClick: () =>
|
|
296
|
+
label: k("shortcuts.goBack", "Go Back"),
|
|
297
|
+
onClick: () => D(`${O}/shortcuts`)
|
|
279
298
|
}
|
|
280
299
|
})
|
|
281
300
|
});
|
|
282
301
|
}
|
|
283
302
|
//#endregion
|
|
284
|
-
export {
|
|
303
|
+
export { E as ShortcutDetailPage };
|
|
285
304
|
|
|
286
305
|
//# sourceMappingURL=ShortcutDetailPage.js.map
|