@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
|
@@ -9,12 +9,13 @@ import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js
|
|
|
9
9
|
import { useContentPages as u, useDeleteContentPage as d } from "../hooks/useContentPages.js";
|
|
10
10
|
import { ContentPageStatusBadge as f } from "../components/ContentPageStatusBadge.js";
|
|
11
11
|
import { useDebounced as p } from "../../../shared/hooks/useDebounced.js";
|
|
12
|
-
import { useEffect as
|
|
13
|
-
import { ChevronLeft as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { PermissionGate as
|
|
12
|
+
import { useEffect as ee, useState as m } from "react";
|
|
13
|
+
import { ChevronLeft as h, ChevronRight as g, Download as _, Eye as v, FileText as y, Plus as b, RefreshCw as x, SquarePen as S, Trash2 as C } from "lucide-react";
|
|
14
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
15
|
+
import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
|
|
16
|
+
import { Button as D, CTAOverflowMenu as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
16
17
|
//#region src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
|
|
17
|
-
var
|
|
18
|
+
var N = [
|
|
18
19
|
{
|
|
19
20
|
label: "All",
|
|
20
21
|
tag: ""
|
|
@@ -39,122 +40,128 @@ var O = [
|
|
|
39
40
|
label: "Pages",
|
|
40
41
|
tag: "page"
|
|
41
42
|
}
|
|
42
|
-
],
|
|
43
|
-
function
|
|
44
|
-
let { navigate:
|
|
45
|
-
...
|
|
46
|
-
search:
|
|
43
|
+
], P = 20;
|
|
44
|
+
function F() {
|
|
45
|
+
let { navigate: F, basePath: I = "/products" } = t(), L = `${I}/content-pages`, [R, z] = m(""), B = p(R, 300), V = e(), [H, U] = m({}), [W, G] = m(0), { contentPages: K, total: q, hasMore: J, loading: Y, error: X, refetch: Z } = u(void 0, {
|
|
46
|
+
...H,
|
|
47
|
+
search: B || void 0
|
|
47
48
|
}, {
|
|
48
|
-
limit:
|
|
49
|
-
offset:
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
if (
|
|
53
|
-
|
|
49
|
+
limit: P,
|
|
50
|
+
offset: W * P
|
|
51
|
+
}), Q = Math.max(1, Math.ceil(q / P)), $ = W * P + 1, te = Math.min((W + 1) * P, q);
|
|
52
|
+
ee(() => {
|
|
53
|
+
if (q === 0) {
|
|
54
|
+
G(0);
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
let e = Math.ceil(
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
let { deleteContentPage:
|
|
57
|
+
let e = Math.ceil(q / P) - 1;
|
|
58
|
+
G((t) => t > e ? e : t);
|
|
59
|
+
}, [q]);
|
|
60
|
+
let { deleteContentPage: ne, loading: re } = d(), { confirm: ie, ConfirmDialog: ae } = l(), oe = async (e) => {
|
|
60
61
|
s("medium");
|
|
61
|
-
let t =
|
|
62
|
+
let t = V("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
|
|
62
63
|
title: "Delete content page",
|
|
63
64
|
message: t,
|
|
64
65
|
okButtonTitle: "Delete",
|
|
65
66
|
cancelButtonTitle: "Cancel"
|
|
66
67
|
});
|
|
67
|
-
if (n === null ? await
|
|
68
|
+
if (n === null ? await ie({
|
|
68
69
|
title: "Delete content page",
|
|
69
70
|
message: t,
|
|
70
71
|
okButtonTitle: "Delete",
|
|
71
72
|
cancelButtonTitle: "Cancel",
|
|
72
73
|
destructive: !0
|
|
73
74
|
}) : n) try {
|
|
74
|
-
await
|
|
75
|
+
await ne(e), c("success"), Z();
|
|
75
76
|
} catch (e) {
|
|
76
77
|
c("error"), console.error("Failed to delete content page:", e);
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, se = (e) => e ? new Date(e).toLocaleDateString("en-US", {
|
|
79
80
|
year: "numeric",
|
|
80
81
|
month: "short",
|
|
81
82
|
day: "numeric"
|
|
82
83
|
}) : "—";
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ T("div", {
|
|
84
85
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
85
86
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ T("div", {
|
|
87
88
|
className: "mb-6",
|
|
88
89
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
className: "flex items-center justify-between mb-4",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
92
|
-
className: "text-3xl font-
|
|
93
|
-
children:
|
|
94
|
-
}), /* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ T("div", {
|
|
91
|
+
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",
|
|
92
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
93
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2",
|
|
94
|
+
children: /* @__PURE__ */ w(A, { children: V("contentPages.title", "Content Pages") })
|
|
95
|
+
}), /* @__PURE__ */ w("p", {
|
|
95
96
|
className: "text-text-secondary",
|
|
96
|
-
children:
|
|
97
|
-
})] }), /* @__PURE__ */
|
|
97
|
+
children: V("contentPages.subtitle", "Manage content pages and documentation")
|
|
98
|
+
})] }), /* @__PURE__ */ w(E, {
|
|
98
99
|
role: "super_admin",
|
|
99
|
-
children: /* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
children: /* @__PURE__ */ w(O, {
|
|
101
|
+
primary: {
|
|
102
|
+
label: V("contentPages.newPage", "New Page"),
|
|
103
|
+
onSelect: () => F(`${L}/new`),
|
|
104
|
+
icon: /* @__PURE__ */ w(b, { className: "size-4" })
|
|
105
|
+
},
|
|
106
|
+
actions: []
|
|
104
107
|
})
|
|
105
108
|
})]
|
|
106
109
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
className: "
|
|
109
|
-
children:
|
|
110
|
+
/* @__PURE__ */ w(M, {
|
|
111
|
+
className: "mb-4",
|
|
112
|
+
children: V("contentPages.purpose", "Content pages are the published text your products show users — blog posts, legal pages, docs, and announcements. Write them in markdown or HTML, version each change, and publish only when they are ready to go live.")
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ w("div", {
|
|
115
|
+
className: "flex flex-wrap gap-1 border-b border-border-seam pb-px",
|
|
116
|
+
children: N.map((e) => /* @__PURE__ */ w("button", {
|
|
110
117
|
type: "button",
|
|
111
118
|
onClick: () => {
|
|
112
|
-
|
|
113
|
-
...
|
|
119
|
+
U({
|
|
120
|
+
...H,
|
|
114
121
|
tag: e.tag || void 0
|
|
115
|
-
}),
|
|
122
|
+
}), G(0);
|
|
116
123
|
},
|
|
117
|
-
className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(
|
|
118
|
-
children:
|
|
124
|
+
className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(H.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
|
|
125
|
+
children: V(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
|
|
119
126
|
}, e.label))
|
|
120
127
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ T("div", {
|
|
122
129
|
className: "flex gap-4",
|
|
123
130
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
value:
|
|
131
|
+
/* @__PURE__ */ w(i, {
|
|
132
|
+
value: R,
|
|
126
133
|
onChange: (e) => {
|
|
127
|
-
|
|
134
|
+
z(e), G(0);
|
|
128
135
|
},
|
|
129
|
-
placeholder:
|
|
136
|
+
placeholder: V("contentPages.searchPlaceholder", "Search content pages..."),
|
|
130
137
|
className: "flex-1"
|
|
131
138
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
value:
|
|
139
|
+
/* @__PURE__ */ T("select", {
|
|
140
|
+
value: H.isPublished === void 0 ? "" : H.isPublished ? "published" : "all",
|
|
134
141
|
onChange: (e) => {
|
|
135
|
-
|
|
136
|
-
...
|
|
142
|
+
U({
|
|
143
|
+
...H,
|
|
137
144
|
isPublished: e.target.value === "published" ? !0 : void 0
|
|
138
|
-
}),
|
|
145
|
+
}), G(0);
|
|
139
146
|
},
|
|
140
147
|
className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
|
|
141
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ w("option", {
|
|
142
149
|
value: "",
|
|
143
|
-
children:
|
|
144
|
-
}), /* @__PURE__ */
|
|
150
|
+
children: V("contentPages.filterAll", "All")
|
|
151
|
+
}), /* @__PURE__ */ w("option", {
|
|
145
152
|
value: "published",
|
|
146
|
-
children:
|
|
153
|
+
children: V("contentPages.publishedOnly", "Published Only")
|
|
147
154
|
})]
|
|
148
155
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ w("button", {
|
|
150
157
|
type: "button",
|
|
151
|
-
onClick: () =>
|
|
158
|
+
onClick: () => Z(),
|
|
152
159
|
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
|
|
153
|
-
children: /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ w(x, { size: 18 })
|
|
154
161
|
}),
|
|
155
|
-
|
|
162
|
+
K.length > 0 && /* @__PURE__ */ w("button", {
|
|
156
163
|
type: "button",
|
|
157
|
-
onClick: () => a("content-pages",
|
|
164
|
+
onClick: () => a("content-pages", K.map((e) => ({
|
|
158
165
|
id: e.id,
|
|
159
166
|
slug: e.slug,
|
|
160
167
|
title: e.title,
|
|
@@ -167,135 +174,138 @@ function A() {
|
|
|
167
174
|
updatedAt: e.updatedAt
|
|
168
175
|
}))),
|
|
169
176
|
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
|
|
170
|
-
title:
|
|
171
|
-
children: /* @__PURE__ */
|
|
177
|
+
title: V("contentPages.exportCsv", "Export as CSV"),
|
|
178
|
+
children: /* @__PURE__ */ w(_, { size: 18 })
|
|
172
179
|
})
|
|
173
180
|
]
|
|
174
181
|
})
|
|
175
182
|
]
|
|
176
183
|
}),
|
|
177
|
-
|
|
178
|
-
message:
|
|
184
|
+
X ? /* @__PURE__ */ w(r, {
|
|
185
|
+
message: X.message,
|
|
179
186
|
action: {
|
|
180
|
-
label:
|
|
181
|
-
onClick: () =>
|
|
187
|
+
label: V("productCommon.retry", "Retry"),
|
|
188
|
+
onClick: () => Z()
|
|
182
189
|
}
|
|
183
|
-
}) :
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
190
|
+
}) : Y && K.length === 0 ? /* @__PURE__ */ w(n, { message: V("contentPages.loadingContentPages", "Loading content pages...") }) : K.length === 0 ? /* @__PURE__ */ w(k, {
|
|
191
|
+
treatment: "insight",
|
|
192
|
+
className: "animate-in fade-in duration-200",
|
|
193
|
+
children: /* @__PURE__ */ w(j, {
|
|
194
|
+
illustration: R || H.tag || H.isPublished ? "empty-search" : "empty-files",
|
|
195
|
+
title: V("contentPages.noContentPagesFound", "No content pages found"),
|
|
196
|
+
action: /* @__PURE__ */ T(D, {
|
|
197
|
+
type: "button",
|
|
198
|
+
onClick: () => F(`${L}/new`),
|
|
199
|
+
children: [/* @__PURE__ */ w(b, { className: "size-4" }), V("contentPages.newPage", "New Page")]
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
}) : /* @__PURE__ */ T(k, {
|
|
203
|
+
treatment: "glass",
|
|
204
|
+
glow: !0,
|
|
205
|
+
className: "overflow-hidden p-0",
|
|
206
|
+
children: [/* @__PURE__ */ T("table", {
|
|
197
207
|
className: "w-full",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
199
|
-
className: "bg-bg-sunken border-b border-
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ w("thead", {
|
|
209
|
+
className: "bg-bg-sunken/60 border-b border-border-seam",
|
|
210
|
+
children: /* @__PURE__ */ T("tr", { children: [
|
|
211
|
+
/* @__PURE__ */ w("th", {
|
|
202
212
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
203
|
-
children:
|
|
213
|
+
children: V("contentPages.columnPage", "Page")
|
|
204
214
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ w("th", {
|
|
206
216
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
207
|
-
children:
|
|
217
|
+
children: V("contentPages.columnSlug", "Slug")
|
|
208
218
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ w("th", {
|
|
210
220
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
211
|
-
children:
|
|
221
|
+
children: V("contentPages.columnStatus", "Status")
|
|
212
222
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ w("th", {
|
|
214
224
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
215
|
-
children:
|
|
225
|
+
children: V("contentPages.columnVersion", "Version")
|
|
216
226
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ w("th", {
|
|
218
228
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
219
|
-
children:
|
|
229
|
+
children: V("contentPages.columnLastUpdated", "Last Updated")
|
|
220
230
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ w("th", {
|
|
222
232
|
className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
223
|
-
children:
|
|
233
|
+
children: V("contentPages.columnActions", "Actions")
|
|
224
234
|
})
|
|
225
235
|
] })
|
|
226
|
-
}), /* @__PURE__ */
|
|
227
|
-
className: "divide-y divide-
|
|
228
|
-
children:
|
|
229
|
-
className: "hover:bg-bg-sunken transition-
|
|
230
|
-
onClick: () =>
|
|
236
|
+
}), /* @__PURE__ */ w("tbody", {
|
|
237
|
+
className: "divide-y divide-border-seam",
|
|
238
|
+
children: K.map((e) => /* @__PURE__ */ T("tr", {
|
|
239
|
+
className: "hover:bg-bg-sunken/70 transition-colors duration-200 cursor-pointer",
|
|
240
|
+
onClick: () => F(`${L}/${e.id}`),
|
|
231
241
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ w("td", {
|
|
233
243
|
className: "px-6 py-4",
|
|
234
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ T("div", {
|
|
235
245
|
className: "flex items-center gap-3",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ w("div", {
|
|
237
247
|
className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
|
|
238
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ w(y, {
|
|
239
249
|
size: 20,
|
|
240
250
|
className: "text-[var(--color-status-info)]"
|
|
241
251
|
})
|
|
242
|
-
}), /* @__PURE__ */
|
|
252
|
+
}), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
|
|
243
253
|
className: "font-medium text-text-primary",
|
|
244
254
|
children: e.title
|
|
245
255
|
}) })]
|
|
246
256
|
})
|
|
247
257
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ w("td", {
|
|
249
259
|
className: "px-6 py-4",
|
|
250
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ T("span", {
|
|
251
261
|
className: "text-sm text-text-tertiary font-mono",
|
|
252
262
|
children: ["/", e.slug]
|
|
253
263
|
})
|
|
254
264
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ w("td", {
|
|
256
266
|
className: "px-6 py-4",
|
|
257
|
-
children: /* @__PURE__ */
|
|
267
|
+
children: /* @__PURE__ */ w(f, { isPublished: e.isPublished })
|
|
258
268
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ w("td", {
|
|
260
270
|
className: "px-6 py-4",
|
|
261
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ T("span", {
|
|
262
272
|
className: "text-sm text-text-primary font-mono",
|
|
263
273
|
children: ["v", e.version]
|
|
264
274
|
})
|
|
265
275
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ w("td", {
|
|
267
277
|
className: "px-6 py-4",
|
|
268
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ w("span", {
|
|
269
279
|
className: "text-sm text-text-secondary",
|
|
270
|
-
children:
|
|
280
|
+
children: se(e.lastUpdated || e.updatedAt)
|
|
271
281
|
})
|
|
272
282
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ w("td", {
|
|
274
284
|
className: "px-6 py-4",
|
|
275
|
-
children: /* @__PURE__ */
|
|
285
|
+
children: /* @__PURE__ */ T("div", {
|
|
276
286
|
className: "flex items-center justify-end gap-2",
|
|
277
287
|
onClick: (e) => e.stopPropagation(),
|
|
278
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ w("button", {
|
|
279
289
|
type: "button",
|
|
280
|
-
onClick: () =>
|
|
290
|
+
onClick: () => F(`${L}/${e.id}`),
|
|
281
291
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
282
|
-
title:
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
}), /* @__PURE__ */ E
|
|
292
|
+
title: V("contentPages.viewDetails", "View details"),
|
|
293
|
+
children: /* @__PURE__ */ w(v, { size: 18 })
|
|
294
|
+
}), /* @__PURE__ */ T(E, {
|
|
285
295
|
role: "super_admin",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ w("button", {
|
|
287
297
|
type: "button",
|
|
288
|
-
onClick: () =>
|
|
298
|
+
onClick: () => F(`${L}/${e.id}/edit`),
|
|
289
299
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
290
|
-
title:
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
}), /* @__PURE__ */
|
|
300
|
+
title: V("contentPages.edit", "Edit"),
|
|
301
|
+
children: /* @__PURE__ */ w(S, { size: 18 })
|
|
302
|
+
}), /* @__PURE__ */ w("button", {
|
|
293
303
|
type: "button",
|
|
294
|
-
onClick: () =>
|
|
295
|
-
disabled:
|
|
304
|
+
onClick: () => oe(e.id),
|
|
305
|
+
disabled: re,
|
|
296
306
|
className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
|
|
297
|
-
title:
|
|
298
|
-
children: /* @__PURE__ */
|
|
307
|
+
title: V("contentPages.delete", "Delete"),
|
|
308
|
+
children: /* @__PURE__ */ w(C, { size: 18 })
|
|
299
309
|
})]
|
|
300
310
|
})]
|
|
301
311
|
})
|
|
@@ -303,59 +313,59 @@ function A() {
|
|
|
303
313
|
]
|
|
304
314
|
}, e.id))
|
|
305
315
|
})]
|
|
306
|
-
}),
|
|
307
|
-
className: "flex items-center justify-between px-6 py-3 border-t border-
|
|
308
|
-
children: [/* @__PURE__ */
|
|
316
|
+
}), q > P && /* @__PURE__ */ T("div", {
|
|
317
|
+
className: "flex items-center justify-between px-6 py-3 border-t border-border-seam bg-bg-sunken/40",
|
|
318
|
+
children: [/* @__PURE__ */ T("p", {
|
|
309
319
|
className: "text-sm text-text-secondary",
|
|
310
320
|
children: [
|
|
311
|
-
|
|
321
|
+
V("contentPages.showing", "Showing"),
|
|
312
322
|
" ",
|
|
313
|
-
|
|
323
|
+
$,
|
|
314
324
|
"–",
|
|
315
|
-
|
|
325
|
+
te,
|
|
316
326
|
" ",
|
|
317
|
-
|
|
327
|
+
V("contentPages.of", "of"),
|
|
318
328
|
" ",
|
|
319
|
-
|
|
329
|
+
q,
|
|
320
330
|
" ",
|
|
321
|
-
|
|
331
|
+
V("contentPages.contentPages", "content pages")
|
|
322
332
|
]
|
|
323
|
-
}), /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ T("div", {
|
|
324
334
|
className: "flex items-center gap-2",
|
|
325
335
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ T("button", {
|
|
327
337
|
type: "button",
|
|
328
|
-
onClick: () =>
|
|
329
|
-
disabled:
|
|
330
|
-
"aria-label":
|
|
338
|
+
onClick: () => G((e) => Math.max(0, e - 1)),
|
|
339
|
+
disabled: W === 0 || Y,
|
|
340
|
+
"aria-label": V("contentPages.prevPage", "Previous page"),
|
|
331
341
|
className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
|
|
332
|
-
children: [/* @__PURE__ */
|
|
342
|
+
children: [/* @__PURE__ */ w(h, { size: 16 }), V("contentPages.prev", "Prev")]
|
|
333
343
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ T("span", {
|
|
335
345
|
className: "text-sm text-text-secondary px-2 tabular-nums",
|
|
336
346
|
children: [
|
|
337
|
-
|
|
347
|
+
W + 1,
|
|
338
348
|
" / ",
|
|
339
|
-
|
|
349
|
+
Q
|
|
340
350
|
]
|
|
341
351
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ T("button", {
|
|
343
353
|
type: "button",
|
|
344
|
-
onClick: () =>
|
|
345
|
-
disabled: !
|
|
346
|
-
"aria-label":
|
|
354
|
+
onClick: () => G((e) => e + 1),
|
|
355
|
+
disabled: !J && W + 1 >= Q || Y,
|
|
356
|
+
"aria-label": V("contentPages.nextPage", "Next page"),
|
|
347
357
|
className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
|
|
348
|
-
children: [
|
|
358
|
+
children: [V("contentPages.next", "Next"), /* @__PURE__ */ w(g, { size: 16 })]
|
|
349
359
|
})
|
|
350
360
|
]
|
|
351
361
|
})]
|
|
352
362
|
})]
|
|
353
363
|
}),
|
|
354
|
-
|
|
364
|
+
ae
|
|
355
365
|
]
|
|
356
366
|
});
|
|
357
367
|
}
|
|
358
368
|
//#endregion
|
|
359
|
-
export {
|
|
369
|
+
export { F as ContentPagesListPage };
|
|
360
370
|
|
|
361
371
|
//# sourceMappingURL=ContentPagesListPage.js.map
|