@burdenoff/microfe-product 2026.624.3 → 2026.625.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 +25 -24
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +69 -64
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +91 -86
- 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 +2 -2
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +91 -89
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +2 -2
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +164 -159
- 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 +2 -2
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +82 -80
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +2 -2
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +83 -79
- 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 +2 -2
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +71 -69
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +2 -2
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +80 -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 +4 -4
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +2 -2
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +142 -140
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +2 -2
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +188 -179
- 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 +2 -2
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +167 -175
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +2 -2
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +171 -168
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +1 -1
- 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
|
@@ -10,11 +10,12 @@ import { useContentPages as u, useDeleteContentPage as d } from "../hooks/useCon
|
|
|
10
10
|
import { ContentPageStatusBadge as f } from "../components/ContentPageStatusBadge.js";
|
|
11
11
|
import { useDebounced as p } from "../../../shared/hooks/useDebounced.js";
|
|
12
12
|
import { useEffect as m, useState as h } from "react";
|
|
13
|
-
import { ChevronLeft as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { PermissionGate as
|
|
13
|
+
import { ChevronLeft as ee, 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 } from "@burdenoff/fe-libs/ui";
|
|
16
17
|
//#region src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
|
|
17
|
-
var
|
|
18
|
+
var M = [
|
|
18
19
|
{
|
|
19
20
|
label: "All",
|
|
20
21
|
tag: ""
|
|
@@ -39,122 +40,124 @@ var O = [
|
|
|
39
40
|
label: "Pages",
|
|
40
41
|
tag: "page"
|
|
41
42
|
}
|
|
42
|
-
],
|
|
43
|
-
function
|
|
44
|
-
let { navigate:
|
|
45
|
-
...
|
|
46
|
-
search:
|
|
43
|
+
], N = 20;
|
|
44
|
+
function P() {
|
|
45
|
+
let { navigate: P, basePath: F = "/products" } = t(), I = `${F}/content-pages`, [L, R] = h(""), z = p(L, 300), B = e(), [V, H] = h({}), [U, W] = h(0), { contentPages: G, total: K, hasMore: q, loading: J, error: Y, refetch: X } = u(void 0, {
|
|
46
|
+
...V,
|
|
47
|
+
search: z || void 0
|
|
47
48
|
}, {
|
|
48
|
-
limit:
|
|
49
|
-
offset:
|
|
50
|
-
}),
|
|
49
|
+
limit: N,
|
|
50
|
+
offset: U * N
|
|
51
|
+
}), Z = Math.max(1, Math.ceil(K / N)), Q = U * N + 1, $ = Math.min((U + 1) * N, K);
|
|
51
52
|
m(() => {
|
|
52
|
-
if (
|
|
53
|
-
|
|
53
|
+
if (K === 0) {
|
|
54
|
+
W(0);
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
let e = Math.ceil(
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
let { deleteContentPage:
|
|
57
|
+
let e = Math.ceil(K / N) - 1;
|
|
58
|
+
W((t) => t > e ? e : t);
|
|
59
|
+
}, [K]);
|
|
60
|
+
let { deleteContentPage: te, loading: ne } = d(), { confirm: re, ConfirmDialog: ie } = l(), ae = async (e) => {
|
|
60
61
|
s("medium");
|
|
61
|
-
let t =
|
|
62
|
+
let t = B("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 re({
|
|
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 te(e), c("success"), X();
|
|
75
76
|
} catch (e) {
|
|
76
77
|
c("error"), console.error("Failed to delete content page:", e);
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, oe = (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: B("contentPages.title", "Content Pages") })
|
|
95
|
+
}), /* @__PURE__ */ w("p", {
|
|
95
96
|
className: "text-text-secondary",
|
|
96
|
-
children:
|
|
97
|
-
})] }), /* @__PURE__ */
|
|
97
|
+
children: B("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: B("contentPages.newPage", "New Page"),
|
|
103
|
+
onSelect: () => P(`${I}/new`),
|
|
104
|
+
icon: /* @__PURE__ */ w(b, { className: "size-4" })
|
|
105
|
+
},
|
|
106
|
+
actions: []
|
|
104
107
|
})
|
|
105
108
|
})]
|
|
106
109
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
className: "flex flex-wrap gap-1 border-b border-
|
|
109
|
-
children:
|
|
110
|
+
/* @__PURE__ */ w("div", {
|
|
111
|
+
className: "flex flex-wrap gap-1 border-b border-border-seam pb-px",
|
|
112
|
+
children: M.map((e) => /* @__PURE__ */ w("button", {
|
|
110
113
|
type: "button",
|
|
111
114
|
onClick: () => {
|
|
112
|
-
|
|
113
|
-
...
|
|
115
|
+
H({
|
|
116
|
+
...V,
|
|
114
117
|
tag: e.tag || void 0
|
|
115
|
-
}),
|
|
118
|
+
}), W(0);
|
|
116
119
|
},
|
|
117
|
-
className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(
|
|
118
|
-
children:
|
|
120
|
+
className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(V.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
|
|
121
|
+
children: B(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
|
|
119
122
|
}, e.label))
|
|
120
123
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ T("div", {
|
|
122
125
|
className: "flex gap-4",
|
|
123
126
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
value:
|
|
127
|
+
/* @__PURE__ */ w(i, {
|
|
128
|
+
value: L,
|
|
126
129
|
onChange: (e) => {
|
|
127
|
-
|
|
130
|
+
R(e), W(0);
|
|
128
131
|
},
|
|
129
|
-
placeholder:
|
|
132
|
+
placeholder: B("contentPages.searchPlaceholder", "Search content pages..."),
|
|
130
133
|
className: "flex-1"
|
|
131
134
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
value:
|
|
135
|
+
/* @__PURE__ */ T("select", {
|
|
136
|
+
value: V.isPublished === void 0 ? "" : V.isPublished ? "published" : "all",
|
|
134
137
|
onChange: (e) => {
|
|
135
|
-
|
|
136
|
-
...
|
|
138
|
+
H({
|
|
139
|
+
...V,
|
|
137
140
|
isPublished: e.target.value === "published" ? !0 : void 0
|
|
138
|
-
}),
|
|
141
|
+
}), W(0);
|
|
139
142
|
},
|
|
140
143
|
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__ */
|
|
144
|
+
children: [/* @__PURE__ */ w("option", {
|
|
142
145
|
value: "",
|
|
143
|
-
children:
|
|
144
|
-
}), /* @__PURE__ */
|
|
146
|
+
children: B("contentPages.filterAll", "All")
|
|
147
|
+
}), /* @__PURE__ */ w("option", {
|
|
145
148
|
value: "published",
|
|
146
|
-
children:
|
|
149
|
+
children: B("contentPages.publishedOnly", "Published Only")
|
|
147
150
|
})]
|
|
148
151
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ w("button", {
|
|
150
153
|
type: "button",
|
|
151
|
-
onClick: () =>
|
|
154
|
+
onClick: () => X(),
|
|
152
155
|
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__ */
|
|
156
|
+
children: /* @__PURE__ */ w(x, { size: 18 })
|
|
154
157
|
}),
|
|
155
|
-
|
|
158
|
+
G.length > 0 && /* @__PURE__ */ w("button", {
|
|
156
159
|
type: "button",
|
|
157
|
-
onClick: () => a("content-pages",
|
|
160
|
+
onClick: () => a("content-pages", G.map((e) => ({
|
|
158
161
|
id: e.id,
|
|
159
162
|
slug: e.slug,
|
|
160
163
|
title: e.title,
|
|
@@ -167,135 +170,137 @@ function A() {
|
|
|
167
170
|
updatedAt: e.updatedAt
|
|
168
171
|
}))),
|
|
169
172
|
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__ */
|
|
173
|
+
title: B("contentPages.exportCsv", "Export as CSV"),
|
|
174
|
+
children: /* @__PURE__ */ w(_, { size: 18 })
|
|
172
175
|
})
|
|
173
176
|
]
|
|
174
177
|
})
|
|
175
178
|
]
|
|
176
179
|
}),
|
|
177
|
-
|
|
178
|
-
message:
|
|
180
|
+
Y ? /* @__PURE__ */ w(r, {
|
|
181
|
+
message: Y.message,
|
|
179
182
|
action: {
|
|
180
|
-
label:
|
|
181
|
-
onClick: () =>
|
|
183
|
+
label: B("productCommon.retry", "Retry"),
|
|
184
|
+
onClick: () => X()
|
|
182
185
|
}
|
|
183
|
-
}) :
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
}) : J && G.length === 0 ? /* @__PURE__ */ w(n, { message: B("contentPages.loadingContentPages", "Loading content pages...") }) : G.length === 0 ? /* @__PURE__ */ w(k, {
|
|
187
|
+
treatment: "insight",
|
|
188
|
+
className: "animate-in fade-in duration-200",
|
|
189
|
+
children: /* @__PURE__ */ w(j, {
|
|
190
|
+
illustration: L || V.tag || V.isPublished ? "empty-search" : "empty-files",
|
|
191
|
+
title: B("contentPages.noContentPagesFound", "No content pages found"),
|
|
192
|
+
action: /* @__PURE__ */ T(D, {
|
|
193
|
+
type: "button",
|
|
194
|
+
onClick: () => P(`${I}/new`),
|
|
195
|
+
children: [/* @__PURE__ */ w(b, { className: "size-4" }), B("contentPages.newPage", "New Page")]
|
|
196
|
+
})
|
|
197
|
+
})
|
|
198
|
+
}) : /* @__PURE__ */ T(k, {
|
|
199
|
+
treatment: "insight",
|
|
200
|
+
className: "overflow-hidden p-0",
|
|
201
|
+
children: [/* @__PURE__ */ T("table", {
|
|
197
202
|
className: "w-full",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
199
|
-
className: "bg-bg-sunken border-b border-
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ w("thead", {
|
|
204
|
+
className: "bg-bg-sunken/60 border-b border-border-seam",
|
|
205
|
+
children: /* @__PURE__ */ T("tr", { children: [
|
|
206
|
+
/* @__PURE__ */ w("th", {
|
|
202
207
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
203
|
-
children:
|
|
208
|
+
children: B("contentPages.columnPage", "Page")
|
|
204
209
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ w("th", {
|
|
206
211
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
207
|
-
children:
|
|
212
|
+
children: B("contentPages.columnSlug", "Slug")
|
|
208
213
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ w("th", {
|
|
210
215
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
211
|
-
children:
|
|
216
|
+
children: B("contentPages.columnStatus", "Status")
|
|
212
217
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ w("th", {
|
|
214
219
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
215
|
-
children:
|
|
220
|
+
children: B("contentPages.columnVersion", "Version")
|
|
216
221
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ w("th", {
|
|
218
223
|
className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
219
|
-
children:
|
|
224
|
+
children: B("contentPages.columnLastUpdated", "Last Updated")
|
|
220
225
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ w("th", {
|
|
222
227
|
className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
|
|
223
|
-
children:
|
|
228
|
+
children: B("contentPages.columnActions", "Actions")
|
|
224
229
|
})
|
|
225
230
|
] })
|
|
226
|
-
}), /* @__PURE__ */
|
|
227
|
-
className: "divide-y divide-
|
|
228
|
-
children:
|
|
229
|
-
className: "hover:bg-bg-sunken transition-
|
|
230
|
-
onClick: () =>
|
|
231
|
+
}), /* @__PURE__ */ w("tbody", {
|
|
232
|
+
className: "divide-y divide-border-seam",
|
|
233
|
+
children: G.map((e) => /* @__PURE__ */ T("tr", {
|
|
234
|
+
className: "hover:bg-bg-sunken/70 transition-colors duration-200 cursor-pointer",
|
|
235
|
+
onClick: () => P(`${I}/${e.id}`),
|
|
231
236
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ w("td", {
|
|
233
238
|
className: "px-6 py-4",
|
|
234
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ T("div", {
|
|
235
240
|
className: "flex items-center gap-3",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ w("div", {
|
|
237
242
|
className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
|
|
238
|
-
children: /* @__PURE__ */
|
|
243
|
+
children: /* @__PURE__ */ w(y, {
|
|
239
244
|
size: 20,
|
|
240
245
|
className: "text-[var(--color-status-info)]"
|
|
241
246
|
})
|
|
242
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
|
|
243
248
|
className: "font-medium text-text-primary",
|
|
244
249
|
children: e.title
|
|
245
250
|
}) })]
|
|
246
251
|
})
|
|
247
252
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ w("td", {
|
|
249
254
|
className: "px-6 py-4",
|
|
250
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ T("span", {
|
|
251
256
|
className: "text-sm text-text-tertiary font-mono",
|
|
252
257
|
children: ["/", e.slug]
|
|
253
258
|
})
|
|
254
259
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ w("td", {
|
|
256
261
|
className: "px-6 py-4",
|
|
257
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ w(f, { isPublished: e.isPublished })
|
|
258
263
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ w("td", {
|
|
260
265
|
className: "px-6 py-4",
|
|
261
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ T("span", {
|
|
262
267
|
className: "text-sm text-text-primary font-mono",
|
|
263
268
|
children: ["v", e.version]
|
|
264
269
|
})
|
|
265
270
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ w("td", {
|
|
267
272
|
className: "px-6 py-4",
|
|
268
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ w("span", {
|
|
269
274
|
className: "text-sm text-text-secondary",
|
|
270
|
-
children:
|
|
275
|
+
children: oe(e.lastUpdated || e.updatedAt)
|
|
271
276
|
})
|
|
272
277
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ w("td", {
|
|
274
279
|
className: "px-6 py-4",
|
|
275
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ T("div", {
|
|
276
281
|
className: "flex items-center justify-end gap-2",
|
|
277
282
|
onClick: (e) => e.stopPropagation(),
|
|
278
|
-
children: [/* @__PURE__ */
|
|
283
|
+
children: [/* @__PURE__ */ w("button", {
|
|
279
284
|
type: "button",
|
|
280
|
-
onClick: () =>
|
|
285
|
+
onClick: () => P(`${I}/${e.id}`),
|
|
281
286
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
282
|
-
title:
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
}), /* @__PURE__ */ E
|
|
287
|
+
title: B("contentPages.viewDetails", "View details"),
|
|
288
|
+
children: /* @__PURE__ */ w(v, { size: 18 })
|
|
289
|
+
}), /* @__PURE__ */ T(E, {
|
|
285
290
|
role: "super_admin",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
291
|
+
children: [/* @__PURE__ */ w("button", {
|
|
287
292
|
type: "button",
|
|
288
|
-
onClick: () =>
|
|
293
|
+
onClick: () => P(`${I}/${e.id}/edit`),
|
|
289
294
|
className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
|
|
290
|
-
title:
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
}), /* @__PURE__ */
|
|
295
|
+
title: B("contentPages.edit", "Edit"),
|
|
296
|
+
children: /* @__PURE__ */ w(S, { size: 18 })
|
|
297
|
+
}), /* @__PURE__ */ w("button", {
|
|
293
298
|
type: "button",
|
|
294
|
-
onClick: () =>
|
|
295
|
-
disabled:
|
|
299
|
+
onClick: () => ae(e.id),
|
|
300
|
+
disabled: ne,
|
|
296
301
|
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__ */
|
|
302
|
+
title: B("contentPages.delete", "Delete"),
|
|
303
|
+
children: /* @__PURE__ */ w(C, { size: 18 })
|
|
299
304
|
})]
|
|
300
305
|
})]
|
|
301
306
|
})
|
|
@@ -303,59 +308,59 @@ function A() {
|
|
|
303
308
|
]
|
|
304
309
|
}, e.id))
|
|
305
310
|
})]
|
|
306
|
-
}),
|
|
307
|
-
className: "flex items-center justify-between px-6 py-3 border-t border-
|
|
308
|
-
children: [/* @__PURE__ */
|
|
311
|
+
}), K > N && /* @__PURE__ */ T("div", {
|
|
312
|
+
className: "flex items-center justify-between px-6 py-3 border-t border-border-seam bg-bg-sunken/40",
|
|
313
|
+
children: [/* @__PURE__ */ T("p", {
|
|
309
314
|
className: "text-sm text-text-secondary",
|
|
310
315
|
children: [
|
|
311
|
-
|
|
316
|
+
B("contentPages.showing", "Showing"),
|
|
312
317
|
" ",
|
|
313
|
-
|
|
318
|
+
Q,
|
|
314
319
|
"–",
|
|
315
|
-
|
|
320
|
+
$,
|
|
316
321
|
" ",
|
|
317
|
-
|
|
322
|
+
B("contentPages.of", "of"),
|
|
318
323
|
" ",
|
|
319
|
-
|
|
324
|
+
K,
|
|
320
325
|
" ",
|
|
321
|
-
|
|
326
|
+
B("contentPages.contentPages", "content pages")
|
|
322
327
|
]
|
|
323
|
-
}), /* @__PURE__ */
|
|
328
|
+
}), /* @__PURE__ */ T("div", {
|
|
324
329
|
className: "flex items-center gap-2",
|
|
325
330
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ T("button", {
|
|
327
332
|
type: "button",
|
|
328
|
-
onClick: () =>
|
|
329
|
-
disabled:
|
|
330
|
-
"aria-label":
|
|
333
|
+
onClick: () => W((e) => Math.max(0, e - 1)),
|
|
334
|
+
disabled: U === 0 || J,
|
|
335
|
+
"aria-label": B("contentPages.prevPage", "Previous page"),
|
|
331
336
|
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__ */
|
|
337
|
+
children: [/* @__PURE__ */ w(ee, { size: 16 }), B("contentPages.prev", "Prev")]
|
|
333
338
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ T("span", {
|
|
335
340
|
className: "text-sm text-text-secondary px-2 tabular-nums",
|
|
336
341
|
children: [
|
|
337
|
-
|
|
342
|
+
U + 1,
|
|
338
343
|
" / ",
|
|
339
|
-
|
|
344
|
+
Z
|
|
340
345
|
]
|
|
341
346
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ T("button", {
|
|
343
348
|
type: "button",
|
|
344
|
-
onClick: () =>
|
|
345
|
-
disabled: !
|
|
346
|
-
"aria-label":
|
|
349
|
+
onClick: () => W((e) => e + 1),
|
|
350
|
+
disabled: !q && U + 1 >= Z || J,
|
|
351
|
+
"aria-label": B("contentPages.nextPage", "Next page"),
|
|
347
352
|
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: [
|
|
353
|
+
children: [B("contentPages.next", "Next"), /* @__PURE__ */ w(g, { size: 16 })]
|
|
349
354
|
})
|
|
350
355
|
]
|
|
351
356
|
})]
|
|
352
357
|
})]
|
|
353
358
|
}),
|
|
354
|
-
|
|
359
|
+
ie
|
|
355
360
|
]
|
|
356
361
|
});
|
|
357
362
|
}
|
|
358
363
|
//#endregion
|
|
359
|
-
export {
|
|
364
|
+
export { P as ContentPagesListPage };
|
|
360
365
|
|
|
361
366
|
//# sourceMappingURL=ContentPagesListPage.js.map
|