@nice2dev/admin 1.0.28 → 1.1.5
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/CHANGELOG.md +23 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +26 -8
- package/dist/index.mjs +802 -661
- package/dist/style.css +1 -0
- package/package.json +15 -12
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, useState as A, useMemo as D, useCallback as U, useContext as V, createContext as Y } from "react";
|
|
3
|
+
import { NiceButton as G, NiceIcon as z, NiceDataGrid as P, NiceAvatar as K, NiceTag as J, NiceBadge as W, NiceSelect as Q } from "@nice2dev/ui";
|
|
4
|
+
const ie = $(
|
|
5
|
+
function(u, _) {
|
|
5
6
|
const {
|
|
6
|
-
widgets:
|
|
7
|
-
columns:
|
|
8
|
-
title:
|
|
9
|
-
headerActions:
|
|
10
|
-
onWidgetClick:
|
|
11
|
-
className:
|
|
12
|
-
style:
|
|
13
|
-
} =
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ e("h2", { children:
|
|
17
|
-
|
|
7
|
+
widgets: m,
|
|
8
|
+
columns: y = 4,
|
|
9
|
+
title: g = "Dashboard",
|
|
10
|
+
headerActions: p,
|
|
11
|
+
onWidgetClick: l,
|
|
12
|
+
className: k,
|
|
13
|
+
style: C
|
|
14
|
+
} = u;
|
|
15
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-dashboard ${k ?? ""}`, style: C, children: [
|
|
16
|
+
/* @__PURE__ */ n("div", { className: "nice-admin-dashboard__header", children: [
|
|
17
|
+
/* @__PURE__ */ e("h2", { children: g }),
|
|
18
|
+
p && /* @__PURE__ */ e("div", { className: "nice-admin-dashboard__actions", children: p })
|
|
18
19
|
] }),
|
|
19
20
|
/* @__PURE__ */ e(
|
|
20
21
|
"div",
|
|
@@ -22,206 +23,315 @@ const z = I(
|
|
|
22
23
|
className: "nice-admin-dashboard__grid",
|
|
23
24
|
style: {
|
|
24
25
|
display: "grid",
|
|
25
|
-
gridTemplateColumns: `repeat(${
|
|
26
|
+
gridTemplateColumns: `repeat(${y}, 1fr)`,
|
|
26
27
|
gap: 16
|
|
27
28
|
},
|
|
28
|
-
children:
|
|
29
|
+
children: m.map((c) => /* @__PURE__ */ n(
|
|
29
30
|
"div",
|
|
30
31
|
{
|
|
31
|
-
className: `nice-admin-dashboard__widget nice-admin-dashboard__widget--${
|
|
32
|
+
className: `nice-admin-dashboard__widget nice-admin-dashboard__widget--${c.type}`,
|
|
32
33
|
style: {
|
|
33
|
-
gridColumn:
|
|
34
|
-
gridRow:
|
|
34
|
+
gridColumn: c.colSpan ? `span ${c.colSpan}` : void 0,
|
|
35
|
+
gridRow: c.rowSpan ? `span ${c.rowSpan}` : void 0
|
|
35
36
|
},
|
|
36
|
-
onClick: () =>
|
|
37
|
-
onKeyDown:
|
|
38
|
-
(
|
|
37
|
+
onClick: () => l == null ? void 0 : l(c),
|
|
38
|
+
onKeyDown: l ? (S) => {
|
|
39
|
+
(S.key === "Enter" || S.key === " ") && l(c);
|
|
39
40
|
} : void 0,
|
|
40
|
-
role:
|
|
41
|
-
tabIndex:
|
|
41
|
+
role: l ? "button" : void 0,
|
|
42
|
+
tabIndex: l ? 0 : void 0,
|
|
42
43
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ e("span", { className: "nice-admin-dashboard__widget-title", children:
|
|
44
|
+
/* @__PURE__ */ n("div", { className: "nice-admin-dashboard__widget-header", children: [
|
|
45
|
+
c.icon && /* @__PURE__ */ e("span", { className: "nice-admin-dashboard__widget-icon", children: c.icon }),
|
|
46
|
+
/* @__PURE__ */ e("span", { className: "nice-admin-dashboard__widget-title", children: c.title })
|
|
46
47
|
] }),
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */ e("span", { className: "nice-admin-dashboard__stat-value", children:
|
|
49
|
-
|
|
48
|
+
c.type === "stat" && /* @__PURE__ */ n("div", { className: "nice-admin-dashboard__stat", children: [
|
|
49
|
+
/* @__PURE__ */ e("span", { className: "nice-admin-dashboard__stat-value", children: c.value }),
|
|
50
|
+
c.change && /* @__PURE__ */ e(
|
|
50
51
|
"span",
|
|
51
52
|
{
|
|
52
|
-
className: `nice-admin-dashboard__stat-change ${
|
|
53
|
-
children:
|
|
53
|
+
className: `nice-admin-dashboard__stat-change ${c.changePositive ? "nice-admin-dashboard__stat-change--positive" : "nice-admin-dashboard__stat-change--negative"}`,
|
|
54
|
+
children: c.change
|
|
54
55
|
}
|
|
55
56
|
)
|
|
56
57
|
] }),
|
|
57
|
-
|
|
58
|
-
(
|
|
58
|
+
c.type === "custom" && c.render && /* @__PURE__ */ e("div", { className: "nice-admin-dashboard__custom", children: c.render() }),
|
|
59
|
+
(c.type === "chart" || c.type === "table" || c.type === "list") && c.render && /* @__PURE__ */ e("div", { className: "nice-admin-dashboard__content", children: c.render() })
|
|
59
60
|
]
|
|
60
61
|
},
|
|
61
|
-
|
|
62
|
+
c.id
|
|
62
63
|
))
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
66
|
] });
|
|
66
67
|
}
|
|
67
|
-
),
|
|
68
|
-
active: "
|
|
69
|
-
inactive: "
|
|
70
|
-
suspended: "
|
|
71
|
-
pending: "
|
|
72
|
-
},
|
|
73
|
-
function(
|
|
68
|
+
), X = {
|
|
69
|
+
active: "success",
|
|
70
|
+
inactive: "secondary",
|
|
71
|
+
suspended: "danger",
|
|
72
|
+
pending: "warning"
|
|
73
|
+
}, se = $(
|
|
74
|
+
function(u, _) {
|
|
74
75
|
const {
|
|
75
|
-
users:
|
|
76
|
-
availableRoles:
|
|
77
|
-
onCreate:
|
|
78
|
-
onEdit:
|
|
79
|
-
onDelete:
|
|
80
|
-
onToggleStatus:
|
|
81
|
-
onChangeRoles:
|
|
82
|
-
searchable:
|
|
83
|
-
title:
|
|
84
|
-
className:
|
|
85
|
-
style:
|
|
86
|
-
} =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
] }),
|
|
111
|
-
N && /* @__PURE__ */ e("button", { className: "nice-admin-users__create-btn", onClick: N, children: "+ Add User" })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ t("div", { className: "nice-admin-users__toolbar", children: [
|
|
114
|
-
s && /* @__PURE__ */ e(
|
|
115
|
-
"input",
|
|
116
|
-
{
|
|
117
|
-
type: "text",
|
|
118
|
-
value: y,
|
|
119
|
-
onChange: (a) => S(a.target.value),
|
|
120
|
-
placeholder: "Search users…",
|
|
121
|
-
className: "nice-admin-users__search"
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
/* @__PURE__ */ t(
|
|
125
|
-
"select",
|
|
126
|
-
{
|
|
127
|
-
value: c,
|
|
128
|
-
onChange: (a) => n(a.target.value),
|
|
129
|
-
className: "nice-admin-users__status-filter",
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ e("option", { value: "", children: "All statuses" }),
|
|
132
|
-
/* @__PURE__ */ e("option", { value: "active", children: "Active" }),
|
|
133
|
-
/* @__PURE__ */ e("option", { value: "inactive", children: "Inactive" }),
|
|
134
|
-
/* @__PURE__ */ e("option", { value: "suspended", children: "Suspended" }),
|
|
135
|
-
/* @__PURE__ */ e("option", { value: "pending", children: "Pending" })
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] }),
|
|
140
|
-
l.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-admin-users__empty", children: "No users found." }) : /* @__PURE__ */ t("table", { className: "nice-admin-users__table", children: [
|
|
141
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { children: [
|
|
142
|
-
/* @__PURE__ */ e("th", { children: "User" }),
|
|
143
|
-
/* @__PURE__ */ e("th", { children: "Email" }),
|
|
144
|
-
/* @__PURE__ */ e("th", { children: "Roles" }),
|
|
145
|
-
/* @__PURE__ */ e("th", { children: "Status" }),
|
|
146
|
-
/* @__PURE__ */ e("th", { children: "Created" }),
|
|
147
|
-
/* @__PURE__ */ e("th", { children: "Last Login" }),
|
|
148
|
-
/* @__PURE__ */ e("th", { children: "Actions" })
|
|
149
|
-
] }) }),
|
|
150
|
-
/* @__PURE__ */ e("tbody", { children: l.map((a) => /* @__PURE__ */ t("tr", { children: [
|
|
151
|
-
/* @__PURE__ */ t("td", { className: "nice-admin-users__user-cell", children: [
|
|
152
|
-
a.avatarUrl && /* @__PURE__ */ e("img", { src: a.avatarUrl, alt: "", className: "nice-admin-users__avatar" }),
|
|
153
|
-
/* @__PURE__ */ e("span", { children: a.name })
|
|
154
|
-
] }),
|
|
155
|
-
/* @__PURE__ */ e("td", { children: a.email }),
|
|
156
|
-
/* @__PURE__ */ e("td", { children: x ? /* @__PURE__ */ e(
|
|
76
|
+
users: m,
|
|
77
|
+
availableRoles: y = [],
|
|
78
|
+
onCreate: g,
|
|
79
|
+
onEdit: p,
|
|
80
|
+
onDelete: l,
|
|
81
|
+
onToggleStatus: k,
|
|
82
|
+
onChangeRoles: C,
|
|
83
|
+
searchable: c = !0,
|
|
84
|
+
title: S,
|
|
85
|
+
className: T,
|
|
86
|
+
style: f
|
|
87
|
+
} = u, [N, x] = A(""), v = D(
|
|
88
|
+
() => N ? m.filter((r) => r.status === N) : m,
|
|
89
|
+
[m, N]
|
|
90
|
+
), a = D(() => {
|
|
91
|
+
const r = [
|
|
92
|
+
{
|
|
93
|
+
field: "name",
|
|
94
|
+
header: "User",
|
|
95
|
+
sortable: !0,
|
|
96
|
+
render: (h, b) => /* @__PURE__ */ n("span", { className: "nice-admin-users__user-cell", children: [
|
|
97
|
+
/* @__PURE__ */ e(K, { src: b.avatarUrl, name: b.name, size: "sm" }),
|
|
98
|
+
/* @__PURE__ */ e("span", { children: b.name })
|
|
99
|
+
] })
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
field: "email",
|
|
103
|
+
header: "Email",
|
|
104
|
+
sortable: !0,
|
|
105
|
+
render: (h) => /* @__PURE__ */ e("span", { className: "nice-admin-users__email", children: String(h ?? "") })
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
field: "roles",
|
|
109
|
+
header: "Roles",
|
|
110
|
+
render: (h, b) => C ? /* @__PURE__ */ e(
|
|
157
111
|
"select",
|
|
158
112
|
{
|
|
159
113
|
multiple: !0,
|
|
160
|
-
value:
|
|
161
|
-
onChange: (
|
|
162
|
-
const
|
|
163
|
-
|
|
114
|
+
value: b.roles,
|
|
115
|
+
onChange: (w) => {
|
|
116
|
+
const o = Array.from(w.target.selectedOptions, (L) => L.value);
|
|
117
|
+
C(b.id, o);
|
|
164
118
|
},
|
|
165
119
|
className: "nice-admin-users__roles-select",
|
|
166
|
-
|
|
120
|
+
"aria-label": `Roles for ${b.name}`,
|
|
121
|
+
children: y.map((w) => /* @__PURE__ */ e("option", { value: w, children: w }, w))
|
|
122
|
+
}
|
|
123
|
+
) : /* @__PURE__ */ e("span", { className: "nice-admin-users__roles", children: b.roles.map((w) => /* @__PURE__ */ e(J, { size: "sm", children: w }, w)) })
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
field: "status",
|
|
127
|
+
header: "Status",
|
|
128
|
+
sortable: !0,
|
|
129
|
+
render: (h, b) => {
|
|
130
|
+
const w = /* @__PURE__ */ e(W, { variant: X[b.status], size: "sm", children: b.status });
|
|
131
|
+
if (!k)
|
|
132
|
+
return /* @__PURE__ */ e("span", { className: "nice-admin-users__status-badge", children: w });
|
|
133
|
+
const o = b.status === "active" ? "suspended" : "active";
|
|
134
|
+
return /* @__PURE__ */ e(
|
|
135
|
+
"button",
|
|
136
|
+
{
|
|
137
|
+
type: "button",
|
|
138
|
+
className: "nice-admin-users__status-badge nice-admin-users__status-badge--toggle",
|
|
139
|
+
onClick: () => k(b.id, o),
|
|
140
|
+
"aria-label": `Toggle status for ${b.name}`,
|
|
141
|
+
children: w
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
field: "createdAt",
|
|
148
|
+
header: "Created",
|
|
149
|
+
dataType: "date",
|
|
150
|
+
sortable: !0
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
field: "lastLoginAt",
|
|
154
|
+
header: "Last Login",
|
|
155
|
+
dataType: "date",
|
|
156
|
+
sortable: !0,
|
|
157
|
+
render: (h) => h ? String(h) : "—"
|
|
158
|
+
}
|
|
159
|
+
];
|
|
160
|
+
return (p || l) && r.push({
|
|
161
|
+
field: "__actions",
|
|
162
|
+
header: "Actions",
|
|
163
|
+
align: "right",
|
|
164
|
+
render: (h, b) => /* @__PURE__ */ n("span", { className: "nice-admin-users__actions", children: [
|
|
165
|
+
p && /* @__PURE__ */ e(
|
|
166
|
+
G,
|
|
167
|
+
{
|
|
168
|
+
size: "sm",
|
|
169
|
+
variant: "ghost",
|
|
170
|
+
ariaLabel: `Edit ${b.name}`,
|
|
171
|
+
onClick: () => p(b),
|
|
172
|
+
children: /* @__PURE__ */ e(z, { name: "edit" })
|
|
167
173
|
}
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
),
|
|
175
|
+
l && /* @__PURE__ */ e(
|
|
176
|
+
G,
|
|
171
177
|
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
} : void 0,
|
|
178
|
-
role: f ? "button" : void 0,
|
|
179
|
-
tabIndex: f ? 0 : void 0,
|
|
180
|
-
children: a.status
|
|
178
|
+
size: "sm",
|
|
179
|
+
variant: "ghost",
|
|
180
|
+
ariaLabel: `Delete ${b.name}`,
|
|
181
|
+
onClick: () => l(b.id),
|
|
182
|
+
children: /* @__PURE__ */ e(z, { name: "trash" })
|
|
181
183
|
}
|
|
182
|
-
)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
)
|
|
185
|
+
] })
|
|
186
|
+
}), r;
|
|
187
|
+
}, [y, C, l, p, k]), s = D(() => {
|
|
188
|
+
if (l)
|
|
189
|
+
return [
|
|
190
|
+
{
|
|
191
|
+
key: "delete",
|
|
192
|
+
label: "Delete",
|
|
193
|
+
variant: "danger",
|
|
194
|
+
icon: /* @__PURE__ */ e(z, { name: "trash" }),
|
|
195
|
+
onClick: (r) => r.forEach((h) => l(h))
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
}, [l]), d = /* @__PURE__ */ n("div", { className: "nice-admin-users__toolbar", children: [
|
|
199
|
+
/* @__PURE__ */ e(
|
|
200
|
+
Q,
|
|
201
|
+
{
|
|
202
|
+
value: N,
|
|
203
|
+
onChange: (r) => x(r ?? ""),
|
|
204
|
+
title: "Filter by status",
|
|
205
|
+
options: [
|
|
206
|
+
{ value: "", label: "All statuses" },
|
|
207
|
+
{ value: "active", label: "Active" },
|
|
208
|
+
{ value: "inactive", label: "Inactive" },
|
|
209
|
+
{ value: "suspended", label: "Suspended" },
|
|
210
|
+
{ value: "pending", label: "Pending" }
|
|
211
|
+
],
|
|
212
|
+
size: "sm"
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
g && /* @__PURE__ */ n(G, { size: "sm", variant: "primary", onClick: g, children: [
|
|
216
|
+
/* @__PURE__ */ e(z, { name: "plus" }),
|
|
217
|
+
/* @__PURE__ */ e("span", { children: "Add User" })
|
|
190
218
|
] })
|
|
191
219
|
] });
|
|
220
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-users ${T ?? ""}`, style: f, children: [
|
|
221
|
+
S != null && /* @__PURE__ */ n("div", { className: "nice-admin-users__header", children: [
|
|
222
|
+
/* @__PURE__ */ e("h3", { children: S }),
|
|
223
|
+
/* @__PURE__ */ n("span", { className: "nice-admin-users__count", children: [
|
|
224
|
+
m.length,
|
|
225
|
+
" users"
|
|
226
|
+
] })
|
|
227
|
+
] }),
|
|
228
|
+
/* @__PURE__ */ e(
|
|
229
|
+
P,
|
|
230
|
+
{
|
|
231
|
+
columns: a,
|
|
232
|
+
data: v,
|
|
233
|
+
keyField: "id",
|
|
234
|
+
searchable: c,
|
|
235
|
+
searchPlaceholder: "Search users…",
|
|
236
|
+
selectable: !!l,
|
|
237
|
+
bulkActions: s,
|
|
238
|
+
striped: !0,
|
|
239
|
+
toolbar: d,
|
|
240
|
+
emptyText: "No users found."
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
] });
|
|
192
244
|
}
|
|
193
|
-
)
|
|
194
|
-
|
|
195
|
-
|
|
245
|
+
);
|
|
246
|
+
function Z(F) {
|
|
247
|
+
let u = 0;
|
|
248
|
+
for (const _ of Object.values(F.permissions))
|
|
249
|
+
u += _.length;
|
|
250
|
+
return u;
|
|
251
|
+
}
|
|
252
|
+
const re = $(
|
|
253
|
+
function(u, _) {
|
|
254
|
+
var L;
|
|
196
255
|
const {
|
|
197
|
-
roles:
|
|
198
|
-
actions:
|
|
199
|
-
resources:
|
|
200
|
-
onPermissionChange:
|
|
201
|
-
onCreate:
|
|
202
|
-
onDelete:
|
|
203
|
-
onRename:
|
|
204
|
-
title:
|
|
205
|
-
className:
|
|
206
|
-
style:
|
|
207
|
-
} =
|
|
208
|
-
!
|
|
209
|
-
}, [
|
|
210
|
-
var
|
|
211
|
-
return ((
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
256
|
+
roles: m,
|
|
257
|
+
actions: y,
|
|
258
|
+
resources: g,
|
|
259
|
+
onPermissionChange: p,
|
|
260
|
+
onCreate: l,
|
|
261
|
+
onDelete: k,
|
|
262
|
+
onRename: C,
|
|
263
|
+
title: c,
|
|
264
|
+
className: S,
|
|
265
|
+
style: T
|
|
266
|
+
} = u, [f, N] = A(((L = m[0]) == null ? void 0 : L.id) ?? null), [x, v] = A(!1), [a, s] = A(""), [d, r] = A(""), h = m.find((i) => i.id === f), b = U(() => {
|
|
267
|
+
!a.trim() || !l || (l(a.trim(), d.trim()), s(""), r(""), v(!1));
|
|
268
|
+
}, [a, d, l]), w = (i, t, E) => {
|
|
269
|
+
var R;
|
|
270
|
+
return ((R = i.permissions[t]) == null ? void 0 : R.includes(E)) ?? !1;
|
|
271
|
+
}, o = D(
|
|
272
|
+
() => [
|
|
273
|
+
{
|
|
274
|
+
field: "name",
|
|
275
|
+
header: "Role",
|
|
276
|
+
sortable: !0,
|
|
277
|
+
render: (i, t) => /* @__PURE__ */ n("span", { className: "nice-admin-roles__name-cell", children: [
|
|
278
|
+
t.color && /* @__PURE__ */ e(
|
|
279
|
+
"span",
|
|
280
|
+
{
|
|
281
|
+
className: "nice-admin-roles__color-dot",
|
|
282
|
+
style: { background: t.color },
|
|
283
|
+
"aria-hidden": "true"
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
/* @__PURE__ */ e("span", { children: t.name }),
|
|
287
|
+
t.isSystem && /* @__PURE__ */ e(
|
|
288
|
+
z,
|
|
289
|
+
{
|
|
290
|
+
name: "lock",
|
|
291
|
+
size: "sm",
|
|
292
|
+
title: "System role",
|
|
293
|
+
className: "nice-admin-roles__system-icon"
|
|
294
|
+
}
|
|
295
|
+
)
|
|
296
|
+
] })
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
field: "description",
|
|
300
|
+
header: "Description",
|
|
301
|
+
sortable: !0,
|
|
302
|
+
render: (i, t) => t.description ?? "—"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
field: "permissionCount",
|
|
306
|
+
header: "Permissions",
|
|
307
|
+
align: "right",
|
|
308
|
+
dataType: "number",
|
|
309
|
+
sortable: !0,
|
|
310
|
+
render: (i, t) => Z(t)
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
field: "userCount",
|
|
314
|
+
header: "Users",
|
|
315
|
+
align: "right",
|
|
316
|
+
dataType: "number",
|
|
317
|
+
sortable: !0,
|
|
318
|
+
render: (i, t) => t.userCount ?? 0
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
[]
|
|
322
|
+
);
|
|
323
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-roles ${S ?? ""}`, style: T, children: [
|
|
324
|
+
(c || l) && /* @__PURE__ */ n("div", { className: "nice-admin-roles__header", children: [
|
|
325
|
+
c && /* @__PURE__ */ e("h3", { children: c }),
|
|
326
|
+
l && /* @__PURE__ */ e("button", { onClick: () => v(!x), children: "+ New Role" })
|
|
217
327
|
] }),
|
|
218
|
-
|
|
328
|
+
x && /* @__PURE__ */ n("div", { className: "nice-admin-roles__create-form", children: [
|
|
219
329
|
/* @__PURE__ */ e(
|
|
220
330
|
"input",
|
|
221
331
|
{
|
|
222
332
|
type: "text",
|
|
223
|
-
value:
|
|
224
|
-
onChange: (
|
|
333
|
+
value: a,
|
|
334
|
+
onChange: (i) => s(i.target.value),
|
|
225
335
|
placeholder: "Role name"
|
|
226
336
|
}
|
|
227
337
|
),
|
|
@@ -229,125 +339,162 @@ const z = I(
|
|
|
229
339
|
"input",
|
|
230
340
|
{
|
|
231
341
|
type: "text",
|
|
232
|
-
value:
|
|
233
|
-
onChange: (
|
|
342
|
+
value: d,
|
|
343
|
+
onChange: (i) => r(i.target.value),
|
|
234
344
|
placeholder: "Description"
|
|
235
345
|
}
|
|
236
346
|
),
|
|
237
|
-
/* @__PURE__ */ e("button", { onClick:
|
|
238
|
-
/* @__PURE__ */ e("button", { onClick: () =>
|
|
347
|
+
/* @__PURE__ */ e("button", { onClick: b, disabled: !a.trim(), children: "Create" }),
|
|
348
|
+
/* @__PURE__ */ e("button", { onClick: () => v(!1), children: "Cancel" })
|
|
239
349
|
] }),
|
|
240
|
-
/* @__PURE__ */ e(
|
|
241
|
-
|
|
350
|
+
/* @__PURE__ */ e(
|
|
351
|
+
P,
|
|
242
352
|
{
|
|
243
|
-
className:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
o && /* @__PURE__ */ t("div", { className: "nice-admin-roles__matrix-wrap", children: [
|
|
259
|
-
o.description && /* @__PURE__ */ e("p", { className: "nice-admin-roles__description", children: o.description }),
|
|
260
|
-
/* @__PURE__ */ t("table", { className: "nice-admin-roles__matrix", children: [
|
|
261
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { children: [
|
|
353
|
+
className: "nice-admin-roles__grid",
|
|
354
|
+
columns: o,
|
|
355
|
+
data: m,
|
|
356
|
+
keyField: "id",
|
|
357
|
+
searchable: !0,
|
|
358
|
+
striped: !0,
|
|
359
|
+
size: "sm",
|
|
360
|
+
selectable: !1,
|
|
361
|
+
onRowClick: (i) => N(i.id)
|
|
362
|
+
}
|
|
363
|
+
),
|
|
364
|
+
h && /* @__PURE__ */ n("div", { className: "nice-admin-roles__matrix-wrap", children: [
|
|
365
|
+
h.description && /* @__PURE__ */ e("p", { className: "nice-admin-roles__description", children: h.description }),
|
|
366
|
+
/* @__PURE__ */ n("table", { className: "nice-admin-roles__matrix", children: [
|
|
367
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
262
368
|
/* @__PURE__ */ e("th", { children: "Resource" }),
|
|
263
|
-
|
|
369
|
+
y.map((i) => /* @__PURE__ */ e("th", { title: i.description, children: i.label }, i.id))
|
|
264
370
|
] }) }),
|
|
265
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
266
|
-
/* @__PURE__ */ e("td", { children:
|
|
267
|
-
|
|
268
|
-
const
|
|
371
|
+
/* @__PURE__ */ e("tbody", { children: g.map((i) => /* @__PURE__ */ n("tr", { children: [
|
|
372
|
+
/* @__PURE__ */ e("td", { children: i.label }),
|
|
373
|
+
y.map((t) => {
|
|
374
|
+
const E = w(h, i.id, t.id);
|
|
269
375
|
return /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e(
|
|
270
376
|
"input",
|
|
271
377
|
{
|
|
272
378
|
type: "checkbox",
|
|
273
|
-
checked:
|
|
274
|
-
onChange: () =>
|
|
275
|
-
disabled:
|
|
379
|
+
checked: E,
|
|
380
|
+
onChange: () => p == null ? void 0 : p(h.id, i.id, t.id, !E),
|
|
381
|
+
disabled: h.isSystem
|
|
276
382
|
}
|
|
277
|
-
) },
|
|
383
|
+
) }, t.id);
|
|
278
384
|
})
|
|
279
|
-
] },
|
|
385
|
+
] }, i.id)) })
|
|
280
386
|
] }),
|
|
281
|
-
!
|
|
282
|
-
|
|
387
|
+
!h.isSystem && /* @__PURE__ */ n("div", { className: "nice-admin-roles__role-actions", children: [
|
|
388
|
+
C && /* @__PURE__ */ e(
|
|
283
389
|
"button",
|
|
284
390
|
{
|
|
285
391
|
onClick: () => {
|
|
286
|
-
const
|
|
287
|
-
|
|
392
|
+
const i = prompt("New role name:", h.name);
|
|
393
|
+
i && C(h.id, i);
|
|
288
394
|
},
|
|
289
395
|
children: "Rename"
|
|
290
396
|
}
|
|
291
397
|
),
|
|
292
|
-
|
|
398
|
+
k && /* @__PURE__ */ e("button", { onClick: () => k(h.id), children: "Delete Role" })
|
|
293
399
|
] })
|
|
294
400
|
] })
|
|
295
401
|
] });
|
|
296
402
|
}
|
|
297
|
-
),
|
|
298
|
-
info: { color: "#3b82f6", label: "INFO" },
|
|
299
|
-
warning: { color: "#eab308", label: "WARN" },
|
|
300
|
-
error: { color: "#ef4444", label: "ERROR" },
|
|
301
|
-
critical: { color: "#dc2626", label: "CRIT" }
|
|
302
|
-
},
|
|
303
|
-
function(
|
|
403
|
+
), j = {
|
|
404
|
+
info: { color: "var(--nice-color-info, #3b82f6)", label: "INFO", icon: "info" },
|
|
405
|
+
warning: { color: "var(--nice-color-warning, #eab308)", label: "WARN", icon: "warning" },
|
|
406
|
+
error: { color: "var(--nice-color-danger, #ef4444)", label: "ERROR", icon: "error" },
|
|
407
|
+
critical: { color: "var(--nice-color-danger, #dc2626)", label: "CRIT", icon: "error" }
|
|
408
|
+
}, le = $(
|
|
409
|
+
function(u, _) {
|
|
304
410
|
const {
|
|
305
|
-
entries:
|
|
306
|
-
onEntryClick:
|
|
307
|
-
onLoadMore:
|
|
308
|
-
hasMore:
|
|
309
|
-
searchable:
|
|
310
|
-
showSeverityFilter:
|
|
311
|
-
title:
|
|
312
|
-
className:
|
|
313
|
-
style:
|
|
314
|
-
} =
|
|
315
|
-
let
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
(
|
|
320
|
-
var
|
|
321
|
-
return
|
|
411
|
+
entries: m,
|
|
412
|
+
onEntryClick: y,
|
|
413
|
+
onLoadMore: g,
|
|
414
|
+
hasMore: p = !1,
|
|
415
|
+
searchable: l = !0,
|
|
416
|
+
showSeverityFilter: k = !0,
|
|
417
|
+
title: C,
|
|
418
|
+
className: c,
|
|
419
|
+
style: S
|
|
420
|
+
} = u, [T, f] = A(""), [N, x] = A(""), v = D(() => {
|
|
421
|
+
let s = m;
|
|
422
|
+
if (N && (s = s.filter((d) => d.severity === N)), T.trim()) {
|
|
423
|
+
const d = T.toLowerCase();
|
|
424
|
+
s = s.filter(
|
|
425
|
+
(r) => {
|
|
426
|
+
var h;
|
|
427
|
+
return r.actorName.toLowerCase().includes(d) || r.action.toLowerCase().includes(d) || r.resource.toLowerCase().includes(d) || ((h = r.details) == null ? void 0 : h.toLowerCase().includes(d));
|
|
322
428
|
}
|
|
323
429
|
);
|
|
324
430
|
}
|
|
325
|
-
return
|
|
326
|
-
}, [
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
431
|
+
return s;
|
|
432
|
+
}, [m, N, T]), a = D(
|
|
433
|
+
() => [
|
|
434
|
+
{ field: "timestamp", header: "Timestamp", sortable: !0, width: 170 },
|
|
435
|
+
{
|
|
436
|
+
field: "severity",
|
|
437
|
+
header: "Severity",
|
|
438
|
+
sortable: !0,
|
|
439
|
+
width: 120,
|
|
440
|
+
render: (s, d) => {
|
|
441
|
+
const r = j[d.severity];
|
|
442
|
+
return /* @__PURE__ */ n(
|
|
443
|
+
"span",
|
|
444
|
+
{
|
|
445
|
+
className: "nice-admin-audit-log__severity",
|
|
446
|
+
style: { color: r.color, display: "inline-flex", alignItems: "center", gap: 4 },
|
|
447
|
+
children: [
|
|
448
|
+
/* @__PURE__ */ e(z, { name: r.icon, size: 14 }),
|
|
449
|
+
r.label
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{ field: "actorName", header: "Actor", sortable: !0 },
|
|
456
|
+
{ field: "action", header: "Action", sortable: !0 },
|
|
457
|
+
{
|
|
458
|
+
field: "resource",
|
|
459
|
+
header: "Resource",
|
|
460
|
+
sortable: !0,
|
|
461
|
+
render: (s, d) => /* @__PURE__ */ n(O, { children: [
|
|
462
|
+
d.resource,
|
|
463
|
+
d.resourceId ? ` #${d.resourceId}` : ""
|
|
464
|
+
] })
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
field: "ipAddress",
|
|
468
|
+
header: "IP",
|
|
469
|
+
width: 130,
|
|
470
|
+
render: (s) => s ?? "—"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
field: "details",
|
|
474
|
+
header: "Details",
|
|
475
|
+
render: (s) => /* @__PURE__ */ e("span", { className: "nice-admin-audit-log__details", children: s ?? "—" })
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
[]
|
|
479
|
+
);
|
|
480
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-audit-log ${c ?? ""}`, style: S, children: [
|
|
481
|
+
C && /* @__PURE__ */ e("div", { className: "nice-admin-audit-log__header", children: /* @__PURE__ */ e("h3", { children: C }) }),
|
|
482
|
+
/* @__PURE__ */ n("div", { className: "nice-admin-audit-log__toolbar", children: [
|
|
483
|
+
l && /* @__PURE__ */ e(
|
|
337
484
|
"input",
|
|
338
485
|
{
|
|
339
486
|
type: "text",
|
|
340
|
-
value:
|
|
341
|
-
onChange: (
|
|
487
|
+
value: T,
|
|
488
|
+
onChange: (s) => f(s.target.value),
|
|
342
489
|
placeholder: "Search audit log…",
|
|
343
490
|
className: "nice-admin-audit-log__search"
|
|
344
491
|
}
|
|
345
492
|
),
|
|
346
|
-
|
|
493
|
+
k && /* @__PURE__ */ n(
|
|
347
494
|
"select",
|
|
348
495
|
{
|
|
349
|
-
value:
|
|
350
|
-
onChange: (
|
|
496
|
+
value: N,
|
|
497
|
+
onChange: (s) => x(s.target.value),
|
|
351
498
|
className: "nice-admin-audit-log__severity-filter",
|
|
352
499
|
children: [
|
|
353
500
|
/* @__PURE__ */ e("option", { value: "", children: "All severities" }),
|
|
@@ -359,106 +506,82 @@ const z = I(
|
|
|
359
506
|
}
|
|
360
507
|
)
|
|
361
508
|
] }),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
"tr",
|
|
376
|
-
{
|
|
377
|
-
className: "nice-admin-audit-log__row",
|
|
378
|
-
onClick: () => C == null ? void 0 : C(n),
|
|
379
|
-
role: C ? "button" : void 0,
|
|
380
|
-
tabIndex: C ? 0 : void 0,
|
|
381
|
-
children: [
|
|
382
|
-
/* @__PURE__ */ e("td", { children: n.timestamp }),
|
|
383
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: "nice-admin-audit-log__severity", style: { color: l.color }, children: l.label }) }),
|
|
384
|
-
/* @__PURE__ */ e("td", { children: n.actorName }),
|
|
385
|
-
/* @__PURE__ */ e("td", { children: n.action }),
|
|
386
|
-
/* @__PURE__ */ t("td", { children: [
|
|
387
|
-
n.resource,
|
|
388
|
-
n.resourceId ? ` #${n.resourceId}` : ""
|
|
389
|
-
] }),
|
|
390
|
-
/* @__PURE__ */ e("td", { children: n.ipAddress ?? "—" }),
|
|
391
|
-
/* @__PURE__ */ e("td", { className: "nice-admin-audit-log__details", children: n.details ?? "—" })
|
|
392
|
-
]
|
|
393
|
-
},
|
|
394
|
-
n.id
|
|
395
|
-
);
|
|
396
|
-
}) })
|
|
397
|
-
] }),
|
|
398
|
-
b && N && /* @__PURE__ */ e("button", { className: "nice-admin-audit-log__load-more", onClick: N, children: "Load more" })
|
|
509
|
+
/* @__PURE__ */ e(
|
|
510
|
+
P,
|
|
511
|
+
{
|
|
512
|
+
columns: a,
|
|
513
|
+
data: v,
|
|
514
|
+
keyField: "id",
|
|
515
|
+
striped: !0,
|
|
516
|
+
size: "sm",
|
|
517
|
+
emptyText: "No audit log entries found.",
|
|
518
|
+
onRowClick: y ? (s) => y(s) : void 0
|
|
519
|
+
}
|
|
520
|
+
),
|
|
521
|
+
p && g && /* @__PURE__ */ e("button", { className: "nice-admin-audit-log__load-more", onClick: g, children: "Load more" })
|
|
399
522
|
] });
|
|
400
523
|
}
|
|
401
|
-
),
|
|
402
|
-
function(
|
|
524
|
+
), ce = $(
|
|
525
|
+
function(u, _) {
|
|
403
526
|
const {
|
|
404
|
-
settings:
|
|
405
|
-
onSave:
|
|
406
|
-
onChange:
|
|
407
|
-
onReset:
|
|
408
|
-
saving:
|
|
409
|
-
title:
|
|
410
|
-
className:
|
|
411
|
-
style:
|
|
412
|
-
} =
|
|
413
|
-
const
|
|
414
|
-
for (const
|
|
415
|
-
|
|
416
|
-
return
|
|
417
|
-
}),
|
|
418
|
-
(
|
|
419
|
-
|
|
527
|
+
settings: m,
|
|
528
|
+
onSave: y,
|
|
529
|
+
onChange: g,
|
|
530
|
+
onReset: p,
|
|
531
|
+
saving: l = !1,
|
|
532
|
+
title: k = "Settings",
|
|
533
|
+
className: C,
|
|
534
|
+
style: c
|
|
535
|
+
} = u, [S, T] = A(() => {
|
|
536
|
+
const a = {};
|
|
537
|
+
for (const s of m)
|
|
538
|
+
a[s.key] = s.value;
|
|
539
|
+
return a;
|
|
540
|
+
}), f = U(
|
|
541
|
+
(a, s) => {
|
|
542
|
+
T((d) => ({ ...d, [a]: s })), g == null || g(a, s);
|
|
420
543
|
},
|
|
421
|
-
[
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
}, [
|
|
425
|
-
for (const
|
|
426
|
-
const
|
|
427
|
-
|
|
544
|
+
[g]
|
|
545
|
+
), N = U(() => {
|
|
546
|
+
y == null || y(S);
|
|
547
|
+
}, [y, S]), x = /* @__PURE__ */ new Map();
|
|
548
|
+
for (const a of m) {
|
|
549
|
+
const s = a.section ?? "General";
|
|
550
|
+
x.has(s) || x.set(s, []), x.get(s).push(a);
|
|
428
551
|
}
|
|
429
|
-
const
|
|
430
|
-
var
|
|
431
|
-
const
|
|
432
|
-
switch (
|
|
552
|
+
const v = (a) => {
|
|
553
|
+
var d;
|
|
554
|
+
const s = S[a.key];
|
|
555
|
+
switch (a.type) {
|
|
433
556
|
case "boolean":
|
|
434
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ n("label", { className: "nice-admin-settings__toggle", children: [
|
|
435
558
|
/* @__PURE__ */ e(
|
|
436
559
|
"input",
|
|
437
560
|
{
|
|
438
561
|
type: "checkbox",
|
|
439
|
-
checked: !!
|
|
440
|
-
onChange: (
|
|
562
|
+
checked: !!s,
|
|
563
|
+
onChange: (r) => f(a.key, r.target.checked)
|
|
441
564
|
}
|
|
442
565
|
),
|
|
443
|
-
|
|
566
|
+
a.label
|
|
444
567
|
] });
|
|
445
568
|
case "select":
|
|
446
569
|
return /* @__PURE__ */ e(
|
|
447
570
|
"select",
|
|
448
571
|
{
|
|
449
|
-
value: String(
|
|
450
|
-
onChange: (
|
|
572
|
+
value: String(s ?? ""),
|
|
573
|
+
onChange: (r) => f(a.key, r.target.value),
|
|
451
574
|
className: "nice-admin-settings__select",
|
|
452
|
-
children: (
|
|
575
|
+
children: (d = a.options) == null ? void 0 : d.map((r) => /* @__PURE__ */ e("option", { value: r.value, children: r.label }, r.value))
|
|
453
576
|
}
|
|
454
577
|
);
|
|
455
578
|
case "textarea":
|
|
456
579
|
return /* @__PURE__ */ e(
|
|
457
580
|
"textarea",
|
|
458
581
|
{
|
|
459
|
-
value: String(
|
|
460
|
-
onChange: (
|
|
461
|
-
placeholder:
|
|
582
|
+
value: String(s ?? ""),
|
|
583
|
+
onChange: (r) => f(a.key, r.target.value),
|
|
584
|
+
placeholder: a.placeholder,
|
|
462
585
|
className: "nice-admin-settings__textarea",
|
|
463
586
|
rows: 4
|
|
464
587
|
}
|
|
@@ -468,9 +591,9 @@ const z = I(
|
|
|
468
591
|
"input",
|
|
469
592
|
{
|
|
470
593
|
type: "number",
|
|
471
|
-
value:
|
|
472
|
-
onChange: (
|
|
473
|
-
placeholder:
|
|
594
|
+
value: s != null ? Number(s) : "",
|
|
595
|
+
onChange: (r) => f(a.key, parseFloat(r.target.value) || 0),
|
|
596
|
+
placeholder: a.placeholder,
|
|
474
597
|
className: "nice-admin-settings__input"
|
|
475
598
|
}
|
|
476
599
|
);
|
|
@@ -479,8 +602,8 @@ const z = I(
|
|
|
479
602
|
"input",
|
|
480
603
|
{
|
|
481
604
|
type: "color",
|
|
482
|
-
value: String(
|
|
483
|
-
onChange: (
|
|
605
|
+
value: String(s ?? "#000000"),
|
|
606
|
+
onChange: (r) => f(a.key, r.target.value),
|
|
484
607
|
className: "nice-admin-settings__color"
|
|
485
608
|
}
|
|
486
609
|
);
|
|
@@ -489,9 +612,9 @@ const z = I(
|
|
|
489
612
|
"input",
|
|
490
613
|
{
|
|
491
614
|
type: "password",
|
|
492
|
-
value: String(
|
|
493
|
-
onChange: (
|
|
494
|
-
placeholder:
|
|
615
|
+
value: String(s ?? ""),
|
|
616
|
+
onChange: (r) => f(a.key, r.target.value),
|
|
617
|
+
placeholder: a.placeholder,
|
|
495
618
|
className: "nice-admin-settings__input",
|
|
496
619
|
autoComplete: "new-password"
|
|
497
620
|
}
|
|
@@ -501,151 +624,169 @@ const z = I(
|
|
|
501
624
|
"input",
|
|
502
625
|
{
|
|
503
626
|
type: "text",
|
|
504
|
-
value: String(
|
|
505
|
-
onChange: (
|
|
506
|
-
placeholder:
|
|
627
|
+
value: String(s ?? ""),
|
|
628
|
+
onChange: (r) => f(a.key, r.target.value),
|
|
629
|
+
placeholder: a.placeholder,
|
|
507
630
|
className: "nice-admin-settings__input"
|
|
508
631
|
}
|
|
509
632
|
);
|
|
510
633
|
}
|
|
511
634
|
};
|
|
512
|
-
return /* @__PURE__ */
|
|
513
|
-
/* @__PURE__ */ e("div", { className: "nice-admin-settings__header", children: /* @__PURE__ */ e("h3", { children:
|
|
514
|
-
Array.from(
|
|
515
|
-
/* @__PURE__ */ e("legend", { children:
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
635
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-settings ${C ?? ""}`, style: c, children: [
|
|
636
|
+
/* @__PURE__ */ e("div", { className: "nice-admin-settings__header", children: /* @__PURE__ */ e("h3", { children: k }) }),
|
|
637
|
+
Array.from(x.entries()).map(([a, s]) => /* @__PURE__ */ n("fieldset", { className: "nice-admin-settings__section", children: [
|
|
638
|
+
/* @__PURE__ */ e("legend", { children: a }),
|
|
639
|
+
s.map((d) => /* @__PURE__ */ n("div", { className: "nice-admin-settings__field", children: [
|
|
640
|
+
d.type !== "boolean" && /* @__PURE__ */ n("label", { className: "nice-admin-settings__label", children: [
|
|
641
|
+
d.label,
|
|
642
|
+
d.required && /* @__PURE__ */ e("span", { className: "nice-admin-settings__required", children: "*" })
|
|
520
643
|
] }),
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
] },
|
|
524
|
-
] },
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */ e("button", { className: "nice-admin-settings__save-btn", onClick:
|
|
527
|
-
|
|
644
|
+
d.description && /* @__PURE__ */ e("p", { className: "nice-admin-settings__description", children: d.description }),
|
|
645
|
+
v(d)
|
|
646
|
+
] }, d.key))
|
|
647
|
+
] }, a)),
|
|
648
|
+
/* @__PURE__ */ n("div", { className: "nice-admin-settings__actions", children: [
|
|
649
|
+
/* @__PURE__ */ e("button", { className: "nice-admin-settings__save-btn", onClick: N, disabled: l, children: l ? "Saving…" : "Save Settings" }),
|
|
650
|
+
p && /* @__PURE__ */ e("button", { className: "nice-admin-settings__reset-btn", onClick: p, children: "Reset to Defaults" })
|
|
528
651
|
] })
|
|
529
652
|
] });
|
|
530
653
|
}
|
|
531
|
-
),
|
|
532
|
-
function(
|
|
654
|
+
), de = $(
|
|
655
|
+
function(u, _) {
|
|
533
656
|
const {
|
|
534
|
-
notifications:
|
|
535
|
-
availableChannels:
|
|
536
|
-
onToggle:
|
|
537
|
-
onEdit:
|
|
538
|
-
onTest:
|
|
539
|
-
onCreate:
|
|
540
|
-
onDelete:
|
|
541
|
-
title:
|
|
542
|
-
className:
|
|
543
|
-
style:
|
|
544
|
-
} =
|
|
545
|
-
|
|
546
|
-
return u;
|
|
547
|
-
const c = _.toLowerCase();
|
|
548
|
-
return u.filter(
|
|
549
|
-
(n) => {
|
|
550
|
-
var l;
|
|
551
|
-
return n.name.toLowerCase().includes(c) || n.event.toLowerCase().includes(c) || ((l = n.description) == null ? void 0 : l.toLowerCase().includes(c));
|
|
552
|
-
}
|
|
553
|
-
);
|
|
554
|
-
}, [u, _]);
|
|
555
|
-
return /* @__PURE__ */ t("div", { ref: g, className: `nice-admin-notifications ${w ?? ""}`, style: L, children: [
|
|
556
|
-
/* @__PURE__ */ t("div", { className: "nice-admin-notifications__header", children: [
|
|
557
|
-
/* @__PURE__ */ e("h3", { children: s }),
|
|
558
|
-
f && /* @__PURE__ */ e("button", { onClick: f, children: "+ New Notification" })
|
|
559
|
-
] }),
|
|
560
|
-
/* @__PURE__ */ e(
|
|
561
|
-
"input",
|
|
657
|
+
notifications: m,
|
|
658
|
+
availableChannels: y = ["email", "push", "sms", "in-app", "webhook"],
|
|
659
|
+
onToggle: g,
|
|
660
|
+
onEdit: p,
|
|
661
|
+
onTest: l,
|
|
662
|
+
onCreate: k,
|
|
663
|
+
onDelete: C,
|
|
664
|
+
title: c,
|
|
665
|
+
className: S,
|
|
666
|
+
style: T
|
|
667
|
+
} = u, f = D(() => {
|
|
668
|
+
const x = [
|
|
562
669
|
{
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
),
|
|
570
|
-
S.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-admin-notifications__empty", children: "No notifications found." }) : /* @__PURE__ */ t("table", { className: "nice-admin-notifications__table", children: [
|
|
571
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { children: [
|
|
572
|
-
/* @__PURE__ */ e("th", { children: "Enabled" }),
|
|
573
|
-
/* @__PURE__ */ e("th", { children: "Name" }),
|
|
574
|
-
/* @__PURE__ */ e("th", { children: "Event" }),
|
|
575
|
-
/* @__PURE__ */ e("th", { children: "Channels" }),
|
|
576
|
-
/* @__PURE__ */ e("th", { children: "Last Sent" }),
|
|
577
|
-
/* @__PURE__ */ e("th", { children: "Sent" }),
|
|
578
|
-
/* @__PURE__ */ e("th", { children: "Actions" })
|
|
579
|
-
] }) }),
|
|
580
|
-
/* @__PURE__ */ e("tbody", { children: S.map((c) => /* @__PURE__ */ t("tr", { children: [
|
|
581
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e(
|
|
670
|
+
field: "enabled",
|
|
671
|
+
header: "Enabled",
|
|
672
|
+
align: "center",
|
|
673
|
+
width: 90,
|
|
674
|
+
sortable: !0,
|
|
675
|
+
render: (v, a) => /* @__PURE__ */ e(
|
|
582
676
|
"input",
|
|
583
677
|
{
|
|
584
678
|
type: "checkbox",
|
|
585
|
-
checked:
|
|
586
|
-
onChange: () =>
|
|
679
|
+
checked: a.enabled,
|
|
680
|
+
onChange: () => g == null ? void 0 : g(a.id, !a.enabled),
|
|
681
|
+
"aria-label": `Toggle ${a.name}`
|
|
587
682
|
}
|
|
588
|
-
)
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
/* @__PURE__ */ e("td", { children: c.sentCount ?? 0 }),
|
|
598
|
-
/* @__PURE__ */ t("td", { className: "nice-admin-notifications__actions", children: [
|
|
599
|
-
b && /* @__PURE__ */ e("button", { onClick: () => b(c), children: "Edit" }),
|
|
600
|
-
p && /* @__PURE__ */ e("button", { onClick: () => p(c.id), children: "Test" }),
|
|
601
|
-
x && /* @__PURE__ */ e("button", { onClick: () => x(c.id), children: "Delete" })
|
|
683
|
+
)
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
field: "name",
|
|
687
|
+
header: "Name",
|
|
688
|
+
sortable: !0,
|
|
689
|
+
render: (v, a) => /* @__PURE__ */ n("div", { className: "nice-admin-notifications__name", children: [
|
|
690
|
+
/* @__PURE__ */ e("strong", { children: a.name }),
|
|
691
|
+
a.description && /* @__PURE__ */ e("small", { className: "nice-admin-notifications__description", children: a.description })
|
|
602
692
|
] })
|
|
603
|
-
|
|
604
|
-
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
field: "event",
|
|
696
|
+
header: "Event",
|
|
697
|
+
sortable: !0,
|
|
698
|
+
render: (v, a) => /* @__PURE__ */ e("code", { children: a.event })
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
field: "channels",
|
|
702
|
+
header: "Channels",
|
|
703
|
+
render: (v, a) => a.channels.join(", ")
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
field: "lastSentAt",
|
|
707
|
+
header: "Last Sent",
|
|
708
|
+
sortable: !0,
|
|
709
|
+
render: (v, a) => a.lastSentAt ?? "—"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
field: "sentCount",
|
|
713
|
+
header: "Sent",
|
|
714
|
+
align: "right",
|
|
715
|
+
dataType: "number",
|
|
716
|
+
sortable: !0,
|
|
717
|
+
render: (v, a) => a.sentCount ?? 0
|
|
718
|
+
}
|
|
719
|
+
];
|
|
720
|
+
return (p || l || C) && x.push({
|
|
721
|
+
field: "__actions",
|
|
722
|
+
header: "Actions",
|
|
723
|
+
align: "right",
|
|
724
|
+
sortable: !1,
|
|
725
|
+
render: (v, a) => /* @__PURE__ */ n("div", { className: "nice-admin-notifications__actions", children: [
|
|
726
|
+
p && /* @__PURE__ */ e("button", { type: "button", onClick: () => p(a), children: "Edit" }),
|
|
727
|
+
l && /* @__PURE__ */ e("button", { type: "button", onClick: () => l(a.id), children: "Test" }),
|
|
728
|
+
C && /* @__PURE__ */ e("button", { type: "button", onClick: () => C(a.id), children: "Delete" })
|
|
729
|
+
] })
|
|
730
|
+
}), x;
|
|
731
|
+
}, [g, p, l, C]), N = k ? /* @__PURE__ */ e("button", { type: "button", onClick: k, className: "nice-admin-notifications__create", children: "New Notification" }) : void 0;
|
|
732
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-admin-notifications ${S ?? ""}`, style: T, children: [
|
|
733
|
+
c && /* @__PURE__ */ e("div", { className: "nice-admin-notifications__header", children: /* @__PURE__ */ e("h3", { children: c }) }),
|
|
734
|
+
/* @__PURE__ */ e(
|
|
735
|
+
P,
|
|
736
|
+
{
|
|
737
|
+
data: m,
|
|
738
|
+
columns: f,
|
|
739
|
+
keyField: "id",
|
|
740
|
+
searchable: !0,
|
|
741
|
+
striped: !0,
|
|
742
|
+
emptyText: "No notifications found.",
|
|
743
|
+
toolbar: N
|
|
744
|
+
}
|
|
745
|
+
)
|
|
605
746
|
] });
|
|
606
747
|
}
|
|
607
|
-
),
|
|
608
|
-
function(
|
|
748
|
+
), oe = $(
|
|
749
|
+
function(u, _) {
|
|
609
750
|
const {
|
|
610
|
-
flags:
|
|
611
|
-
environmentNames:
|
|
612
|
-
onToggle:
|
|
613
|
-
onPercentageChange:
|
|
614
|
-
onCreate:
|
|
615
|
-
onDelete:
|
|
616
|
-
onEdit:
|
|
617
|
-
title:
|
|
618
|
-
className:
|
|
619
|
-
style:
|
|
620
|
-
} =
|
|
621
|
-
if (!
|
|
622
|
-
return
|
|
623
|
-
const
|
|
624
|
-
return
|
|
625
|
-
(
|
|
626
|
-
var
|
|
627
|
-
return
|
|
751
|
+
flags: m,
|
|
752
|
+
environmentNames: y = ["development", "staging", "production"],
|
|
753
|
+
onToggle: g,
|
|
754
|
+
onPercentageChange: p,
|
|
755
|
+
onCreate: l,
|
|
756
|
+
onDelete: k,
|
|
757
|
+
onEdit: C,
|
|
758
|
+
title: c = "Feature Flags",
|
|
759
|
+
className: S,
|
|
760
|
+
style: T
|
|
761
|
+
} = u, [f, N] = A(""), [x, v] = A(!1), [a, s] = A(""), [d, r] = A(""), [h, b] = A(""), w = D(() => {
|
|
762
|
+
if (!f.trim())
|
|
763
|
+
return m;
|
|
764
|
+
const i = f.toLowerCase();
|
|
765
|
+
return m.filter(
|
|
766
|
+
(t) => {
|
|
767
|
+
var E, R;
|
|
768
|
+
return t.key.toLowerCase().includes(i) || t.name.toLowerCase().includes(i) || ((E = t.description) == null ? void 0 : E.toLowerCase().includes(i)) || ((R = t.tags) == null ? void 0 : R.some((I) => I.toLowerCase().includes(i)));
|
|
628
769
|
}
|
|
629
770
|
);
|
|
630
|
-
}, [
|
|
631
|
-
!
|
|
632
|
-
}, [
|
|
633
|
-
return /* @__PURE__ */
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */ e("h3", { children:
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
|
|
771
|
+
}, [m, f]), o = U(() => {
|
|
772
|
+
!a.trim() || !d.trim() || !l || (l(a.trim(), d.trim(), h.trim()), s(""), r(""), b(""), v(!1));
|
|
773
|
+
}, [a, d, h, l]), L = (i, t) => i.environments.find((E) => E.name === t);
|
|
774
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-feature-flags ${S ?? ""}`, style: T, children: [
|
|
775
|
+
/* @__PURE__ */ n("div", { className: "nice-feature-flags__header", children: [
|
|
776
|
+
/* @__PURE__ */ e("h3", { children: c }),
|
|
777
|
+
/* @__PURE__ */ n("span", { className: "nice-feature-flags__count", children: [
|
|
778
|
+
m.length,
|
|
638
779
|
" flags"
|
|
639
780
|
] }),
|
|
640
|
-
|
|
781
|
+
l && /* @__PURE__ */ e("button", { onClick: () => v(!x), children: "+ New Flag" })
|
|
641
782
|
] }),
|
|
642
|
-
|
|
783
|
+
x && /* @__PURE__ */ n("div", { className: "nice-feature-flags__create-form", children: [
|
|
643
784
|
/* @__PURE__ */ e(
|
|
644
785
|
"input",
|
|
645
786
|
{
|
|
646
787
|
type: "text",
|
|
647
|
-
value:
|
|
648
|
-
onChange: (
|
|
788
|
+
value: a,
|
|
789
|
+
onChange: (i) => s(i.target.value),
|
|
649
790
|
placeholder: "flag_key"
|
|
650
791
|
}
|
|
651
792
|
),
|
|
@@ -653,8 +794,8 @@ const z = I(
|
|
|
653
794
|
"input",
|
|
654
795
|
{
|
|
655
796
|
type: "text",
|
|
656
|
-
value:
|
|
657
|
-
onChange: (
|
|
797
|
+
value: d,
|
|
798
|
+
onChange: (i) => r(i.target.value),
|
|
658
799
|
placeholder: "Display name"
|
|
659
800
|
}
|
|
660
801
|
),
|
|
@@ -662,158 +803,158 @@ const z = I(
|
|
|
662
803
|
"input",
|
|
663
804
|
{
|
|
664
805
|
type: "text",
|
|
665
|
-
value:
|
|
666
|
-
onChange: (
|
|
806
|
+
value: h,
|
|
807
|
+
onChange: (i) => b(i.target.value),
|
|
667
808
|
placeholder: "Description"
|
|
668
809
|
}
|
|
669
810
|
),
|
|
670
|
-
/* @__PURE__ */ e("button", { onClick:
|
|
671
|
-
/* @__PURE__ */ e("button", { onClick: () =>
|
|
811
|
+
/* @__PURE__ */ e("button", { onClick: o, disabled: !a.trim() || !d.trim(), children: "Create" }),
|
|
812
|
+
/* @__PURE__ */ e("button", { onClick: () => v(!1), children: "Cancel" })
|
|
672
813
|
] }),
|
|
673
814
|
/* @__PURE__ */ e(
|
|
674
815
|
"input",
|
|
675
816
|
{
|
|
676
817
|
type: "text",
|
|
677
|
-
value:
|
|
678
|
-
onChange: (
|
|
818
|
+
value: f,
|
|
819
|
+
onChange: (i) => N(i.target.value),
|
|
679
820
|
placeholder: "Search flags…",
|
|
680
821
|
className: "nice-feature-flags__search"
|
|
681
822
|
}
|
|
682
823
|
),
|
|
683
|
-
|
|
684
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */
|
|
824
|
+
w.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-feature-flags__empty", children: "No feature flags found." }) : /* @__PURE__ */ n("table", { className: "nice-feature-flags__table", children: [
|
|
825
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
685
826
|
/* @__PURE__ */ e("th", { children: "Flag" }),
|
|
686
|
-
|
|
827
|
+
y.map((i) => /* @__PURE__ */ e("th", { children: i }, i)),
|
|
687
828
|
/* @__PURE__ */ e("th", { children: "Tags" }),
|
|
688
829
|
/* @__PURE__ */ e("th", { children: "Updated" }),
|
|
689
830
|
/* @__PURE__ */ e("th", { children: "Actions" })
|
|
690
831
|
] }) }),
|
|
691
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
692
|
-
var
|
|
693
|
-
return /* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */ e("strong", { children:
|
|
696
|
-
/* @__PURE__ */ e("code", { className: "nice-feature-flags__key", children:
|
|
697
|
-
|
|
832
|
+
/* @__PURE__ */ e("tbody", { children: w.map((i) => {
|
|
833
|
+
var t;
|
|
834
|
+
return /* @__PURE__ */ n("tr", { children: [
|
|
835
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ n("div", { className: "nice-feature-flags__flag-info", children: [
|
|
836
|
+
/* @__PURE__ */ e("strong", { children: i.name }),
|
|
837
|
+
/* @__PURE__ */ e("code", { className: "nice-feature-flags__key", children: i.key }),
|
|
838
|
+
i.description && /* @__PURE__ */ e("small", { children: i.description })
|
|
698
839
|
] }) }),
|
|
699
|
-
|
|
700
|
-
const
|
|
701
|
-
return /* @__PURE__ */
|
|
840
|
+
y.map((E) => {
|
|
841
|
+
const R = L(i, E);
|
|
842
|
+
return /* @__PURE__ */ n("td", { className: "nice-feature-flags__env-cell", children: [
|
|
702
843
|
/* @__PURE__ */ e(
|
|
703
844
|
"input",
|
|
704
845
|
{
|
|
705
846
|
type: "checkbox",
|
|
706
|
-
checked: (
|
|
707
|
-
onChange: () =>
|
|
847
|
+
checked: (R == null ? void 0 : R.enabled) ?? !1,
|
|
848
|
+
onChange: () => g == null ? void 0 : g(i.id, E, !((R == null ? void 0 : R.enabled) ?? !1))
|
|
708
849
|
}
|
|
709
850
|
),
|
|
710
|
-
(
|
|
851
|
+
(R == null ? void 0 : R.percentage) != null && /* @__PURE__ */ e(
|
|
711
852
|
"input",
|
|
712
853
|
{
|
|
713
854
|
type: "number",
|
|
714
855
|
min: 0,
|
|
715
856
|
max: 100,
|
|
716
|
-
value:
|
|
717
|
-
onChange: (
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
parseInt(
|
|
857
|
+
value: R.percentage,
|
|
858
|
+
onChange: (I) => p == null ? void 0 : p(
|
|
859
|
+
i.id,
|
|
860
|
+
E,
|
|
861
|
+
parseInt(I.target.value, 10) || 0
|
|
721
862
|
),
|
|
722
863
|
className: "nice-feature-flags__percentage",
|
|
723
864
|
title: "Rollout %"
|
|
724
865
|
}
|
|
725
866
|
)
|
|
726
|
-
] },
|
|
867
|
+
] }, E);
|
|
727
868
|
}),
|
|
728
|
-
/* @__PURE__ */ e("td", { children: ((
|
|
729
|
-
/* @__PURE__ */ e("td", { children:
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
|
|
732
|
-
|
|
869
|
+
/* @__PURE__ */ e("td", { children: ((t = i.tags) == null ? void 0 : t.join(", ")) || "—" }),
|
|
870
|
+
/* @__PURE__ */ e("td", { children: i.updatedAt ?? i.createdAt }),
|
|
871
|
+
/* @__PURE__ */ n("td", { className: "nice-feature-flags__actions", children: [
|
|
872
|
+
C && /* @__PURE__ */ e("button", { onClick: () => C(i), children: "Edit" }),
|
|
873
|
+
k && /* @__PURE__ */ e("button", { onClick: () => k(i.id), children: "Delete" })
|
|
733
874
|
] })
|
|
734
|
-
] },
|
|
875
|
+
] }, i.id);
|
|
735
876
|
}) })
|
|
736
877
|
] })
|
|
737
878
|
] });
|
|
738
879
|
}
|
|
739
|
-
),
|
|
740
|
-
function(
|
|
741
|
-
var
|
|
880
|
+
), he = $(
|
|
881
|
+
function(u, _) {
|
|
882
|
+
var w;
|
|
742
883
|
const {
|
|
743
|
-
entities:
|
|
744
|
-
formats:
|
|
745
|
-
jobs:
|
|
746
|
-
onImport:
|
|
747
|
-
onExport:
|
|
748
|
-
onDownload:
|
|
749
|
-
title:
|
|
750
|
-
className:
|
|
751
|
-
style:
|
|
752
|
-
} =
|
|
753
|
-
!
|
|
754
|
-
}, [
|
|
755
|
-
!
|
|
756
|
-
}, [
|
|
757
|
-
var
|
|
758
|
-
|
|
884
|
+
entities: m,
|
|
885
|
+
formats: y = ["json", "csv", "xlsx"],
|
|
886
|
+
jobs: g = [],
|
|
887
|
+
onImport: p,
|
|
888
|
+
onExport: l,
|
|
889
|
+
onDownload: k,
|
|
890
|
+
title: C = "Import / Export",
|
|
891
|
+
className: c,
|
|
892
|
+
style: S
|
|
893
|
+
} = u, [T, f] = A("export"), [N, x] = A(((w = m[0]) == null ? void 0 : w.id) ?? ""), [v, a] = A(y[0] ?? "json"), [s, d] = A(null), r = U(() => {
|
|
894
|
+
!p || !s || !N || (p(N, v, s), d(null));
|
|
895
|
+
}, [p, N, v, s]), h = U(() => {
|
|
896
|
+
!l || !N || l(N, v);
|
|
897
|
+
}, [l, N, v]), b = (o) => {
|
|
898
|
+
var L;
|
|
899
|
+
d(((L = o.target.files) == null ? void 0 : L[0]) ?? null);
|
|
759
900
|
};
|
|
760
|
-
return /* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */ e("div", { className: "nice-import-export__header", children: /* @__PURE__ */ e("h3", { children:
|
|
762
|
-
/* @__PURE__ */
|
|
901
|
+
return /* @__PURE__ */ n("div", { ref: _, className: `nice-import-export ${c ?? ""}`, style: S, children: [
|
|
902
|
+
/* @__PURE__ */ e("div", { className: "nice-import-export__header", children: /* @__PURE__ */ e("h3", { children: C }) }),
|
|
903
|
+
/* @__PURE__ */ n("div", { className: "nice-import-export__tabs", children: [
|
|
763
904
|
/* @__PURE__ */ e(
|
|
764
905
|
"button",
|
|
765
906
|
{
|
|
766
|
-
className: `nice-import-export__tab ${
|
|
767
|
-
onClick: () =>
|
|
907
|
+
className: `nice-import-export__tab ${T === "import" ? "nice-import-export__tab--active" : ""}`,
|
|
908
|
+
onClick: () => f("import"),
|
|
768
909
|
children: "Import"
|
|
769
910
|
}
|
|
770
911
|
),
|
|
771
912
|
/* @__PURE__ */ e(
|
|
772
913
|
"button",
|
|
773
914
|
{
|
|
774
|
-
className: `nice-import-export__tab ${
|
|
775
|
-
onClick: () =>
|
|
915
|
+
className: `nice-import-export__tab ${T === "export" ? "nice-import-export__tab--active" : ""}`,
|
|
916
|
+
onClick: () => f("export"),
|
|
776
917
|
children: "Export"
|
|
777
918
|
}
|
|
778
919
|
)
|
|
779
920
|
] }),
|
|
780
|
-
/* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ n("div", { className: "nice-import-export__form", children: [
|
|
922
|
+
/* @__PURE__ */ n("label", { children: [
|
|
782
923
|
"Entity",
|
|
783
|
-
/* @__PURE__ */ e("select", { value:
|
|
924
|
+
/* @__PURE__ */ e("select", { value: N, onChange: (o) => x(o.target.value), children: m.map((o) => /* @__PURE__ */ e("option", { value: o.id, children: o.label }, o.id)) })
|
|
784
925
|
] }),
|
|
785
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ n("label", { children: [
|
|
786
927
|
"Format",
|
|
787
928
|
/* @__PURE__ */ e(
|
|
788
929
|
"select",
|
|
789
930
|
{
|
|
790
|
-
value:
|
|
791
|
-
onChange: (
|
|
792
|
-
children:
|
|
931
|
+
value: v,
|
|
932
|
+
onChange: (o) => a(o.target.value),
|
|
933
|
+
children: y.map((o) => /* @__PURE__ */ e("option", { value: o, children: o.toUpperCase() }, o))
|
|
793
934
|
}
|
|
794
935
|
)
|
|
795
936
|
] }),
|
|
796
|
-
|
|
797
|
-
/* @__PURE__ */
|
|
937
|
+
T === "import" && /* @__PURE__ */ n(O, { children: [
|
|
938
|
+
/* @__PURE__ */ n("label", { children: [
|
|
798
939
|
"File",
|
|
799
|
-
/* @__PURE__ */ e("input", { type: "file", onChange:
|
|
940
|
+
/* @__PURE__ */ e("input", { type: "file", onChange: b, accept: `.${v}` })
|
|
800
941
|
] }),
|
|
801
942
|
/* @__PURE__ */ e(
|
|
802
943
|
"button",
|
|
803
944
|
{
|
|
804
945
|
className: "nice-import-export__action-btn",
|
|
805
|
-
onClick:
|
|
806
|
-
disabled: !
|
|
946
|
+
onClick: r,
|
|
947
|
+
disabled: !s,
|
|
807
948
|
children: "Start Import"
|
|
808
949
|
}
|
|
809
950
|
)
|
|
810
951
|
] }),
|
|
811
|
-
|
|
952
|
+
T === "export" && /* @__PURE__ */ e("button", { className: "nice-import-export__action-btn", onClick: h, children: "Start Export" })
|
|
812
953
|
] }),
|
|
813
|
-
|
|
954
|
+
g.length > 0 && /* @__PURE__ */ n("div", { className: "nice-import-export__jobs", children: [
|
|
814
955
|
/* @__PURE__ */ e("h4", { children: "Recent Jobs" }),
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */
|
|
956
|
+
/* @__PURE__ */ n("table", { className: "nice-import-export__jobs-table", children: [
|
|
957
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
817
958
|
/* @__PURE__ */ e("th", { children: "Type" }),
|
|
818
959
|
/* @__PURE__ */ e("th", { children: "Format" }),
|
|
819
960
|
/* @__PURE__ */ e("th", { children: "Status" }),
|
|
@@ -822,135 +963,135 @@ const z = I(
|
|
|
822
963
|
/* @__PURE__ */ e("th", { children: "Created" }),
|
|
823
964
|
/* @__PURE__ */ e("th", {})
|
|
824
965
|
] }) }),
|
|
825
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
826
|
-
/* @__PURE__ */ e("td", { children:
|
|
827
|
-
/* @__PURE__ */ e("td", { children:
|
|
966
|
+
/* @__PURE__ */ e("tbody", { children: g.map((o) => /* @__PURE__ */ n("tr", { children: [
|
|
967
|
+
/* @__PURE__ */ e("td", { children: o.type }),
|
|
968
|
+
/* @__PURE__ */ e("td", { children: o.format.toUpperCase() }),
|
|
828
969
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e(
|
|
829
970
|
"span",
|
|
830
971
|
{
|
|
831
|
-
className: `nice-import-export__status nice-import-export__status--${
|
|
832
|
-
children:
|
|
972
|
+
className: `nice-import-export__status nice-import-export__status--${o.status}`,
|
|
973
|
+
children: o.status
|
|
833
974
|
}
|
|
834
975
|
) }),
|
|
835
|
-
/* @__PURE__ */ e("td", { children:
|
|
836
|
-
/* @__PURE__ */ e("td", { children:
|
|
837
|
-
/* @__PURE__ */ e("td", { children:
|
|
838
|
-
/* @__PURE__ */ e("td", { children:
|
|
839
|
-
] },
|
|
976
|
+
/* @__PURE__ */ e("td", { children: o.processedRows != null && o.totalRows ? `${o.processedRows} / ${o.totalRows}` : "—" }),
|
|
977
|
+
/* @__PURE__ */ e("td", { children: o.errorCount ?? 0 }),
|
|
978
|
+
/* @__PURE__ */ e("td", { children: o.createdAt }),
|
|
979
|
+
/* @__PURE__ */ e("td", { children: o.type === "export" && o.status === "completed" && k && /* @__PURE__ */ e("button", { onClick: () => k(o.id), children: "Download" }) })
|
|
980
|
+
] }, o.id)) })
|
|
840
981
|
] })
|
|
841
982
|
] })
|
|
842
983
|
] });
|
|
843
984
|
}
|
|
844
|
-
), q =
|
|
845
|
-
function
|
|
846
|
-
return /* @__PURE__ */ e(q.Provider, { value:
|
|
985
|
+
), q = Y({ flags: {} });
|
|
986
|
+
function ue({ config: F, children: u }) {
|
|
987
|
+
return /* @__PURE__ */ e(q.Provider, { value: F, children: u });
|
|
847
988
|
}
|
|
848
|
-
function
|
|
849
|
-
const
|
|
850
|
-
return
|
|
851
|
-
const
|
|
852
|
-
return
|
|
853
|
-
}, [
|
|
989
|
+
function ee(F) {
|
|
990
|
+
const u = V(q);
|
|
991
|
+
return D(() => {
|
|
992
|
+
const _ = u.flags[F];
|
|
993
|
+
return _ === void 0 ? { enabled: !1 } : typeof _ == "boolean" ? { enabled: _ } : { enabled: _ > 0, percentage: _ };
|
|
994
|
+
}, [u.flags, F]);
|
|
854
995
|
}
|
|
855
|
-
function
|
|
856
|
-
const { enabled:
|
|
857
|
-
return /* @__PURE__ */ e(
|
|
996
|
+
function me({ flag: F, fallback: u = null, children: _ }) {
|
|
997
|
+
const { enabled: m } = ee(F);
|
|
998
|
+
return /* @__PURE__ */ e(O, { children: m ? _ : u });
|
|
858
999
|
}
|
|
859
1000
|
const M = {
|
|
860
1001
|
low: "#2196f3",
|
|
861
1002
|
medium: "#ff9800",
|
|
862
1003
|
high: "#f44336",
|
|
863
1004
|
critical: "#9c27b0"
|
|
864
|
-
},
|
|
1005
|
+
}, H = {
|
|
865
1006
|
field: "Hidden Field",
|
|
866
1007
|
endpoint: "Decoy Endpoint",
|
|
867
1008
|
file: "Canary File",
|
|
868
1009
|
credential: "Fake Credential",
|
|
869
1010
|
cookie: "Tracking Cookie"
|
|
870
|
-
},
|
|
1011
|
+
}, pe = $(
|
|
871
1012
|
function({
|
|
872
|
-
tokens:
|
|
873
|
-
events:
|
|
874
|
-
onCreate:
|
|
875
|
-
onToggle:
|
|
876
|
-
onDelete:
|
|
877
|
-
onDismissEvent:
|
|
878
|
-
title:
|
|
879
|
-
className:
|
|
880
|
-
style:
|
|
881
|
-
},
|
|
882
|
-
const [
|
|
883
|
-
() =>
|
|
884
|
-
(
|
|
1013
|
+
tokens: u,
|
|
1014
|
+
events: _,
|
|
1015
|
+
onCreate: m,
|
|
1016
|
+
onToggle: y,
|
|
1017
|
+
onDelete: g,
|
|
1018
|
+
onDismissEvent: p,
|
|
1019
|
+
title: l = "Honey Tokens",
|
|
1020
|
+
className: k,
|
|
1021
|
+
style: C
|
|
1022
|
+
}, c) {
|
|
1023
|
+
const [S, T] = A(""), [f, N] = A(!1), [x, v] = A(""), [a, s] = A("field"), [d, r] = A("medium"), [h, b] = A(""), w = D(
|
|
1024
|
+
() => u.filter(
|
|
1025
|
+
(t) => t.name.toLowerCase().includes(S.toLowerCase()) || t.location.toLowerCase().includes(S.toLowerCase())
|
|
885
1026
|
),
|
|
886
|
-
[
|
|
887
|
-
),
|
|
888
|
-
() => [...
|
|
889
|
-
[
|
|
890
|
-
),
|
|
891
|
-
const
|
|
892
|
-
return { activeCount:
|
|
893
|
-
}, [
|
|
894
|
-
|
|
1027
|
+
[u, S]
|
|
1028
|
+
), o = D(
|
|
1029
|
+
() => [..._].sort((t, E) => new Date(E.timestamp).getTime() - new Date(t.timestamp).getTime()),
|
|
1030
|
+
[_]
|
|
1031
|
+
), L = D(() => {
|
|
1032
|
+
const t = u.filter((I) => I.active).length, E = u.reduce((I, B) => I + B.tripCount, 0), R = _.filter((I) => I.severity === "critical").length;
|
|
1033
|
+
return { activeCount: t, totalCount: u.length, totalTrips: E, criticalEvents: R };
|
|
1034
|
+
}, [u, _]), i = () => {
|
|
1035
|
+
x.trim() && h.trim() && m && (m(x.trim(), a, d, h.trim()), v(""), b(""), N(!1));
|
|
895
1036
|
};
|
|
896
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ n(
|
|
897
1038
|
"div",
|
|
898
1039
|
{
|
|
899
|
-
ref:
|
|
900
|
-
className: `nice-honey-token-dashboard${
|
|
901
|
-
style:
|
|
1040
|
+
ref: c,
|
|
1041
|
+
className: `nice-honey-token-dashboard${k ? ` ${k}` : ""}`,
|
|
1042
|
+
style: C,
|
|
902
1043
|
children: [
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */ e("h2", { children:
|
|
905
|
-
/* @__PURE__ */
|
|
906
|
-
/* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__header", children: [
|
|
1045
|
+
/* @__PURE__ */ e("h2", { children: l }),
|
|
1046
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__stats", children: [
|
|
1047
|
+
/* @__PURE__ */ n("span", { className: "nice-honey-token-dashboard__stat", children: [
|
|
907
1048
|
"Active: ",
|
|
908
|
-
|
|
1049
|
+
L.activeCount,
|
|
909
1050
|
"/",
|
|
910
|
-
|
|
1051
|
+
L.totalCount
|
|
911
1052
|
] }),
|
|
912
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ n("span", { className: "nice-honey-token-dashboard__stat", children: [
|
|
913
1054
|
"Trips: ",
|
|
914
|
-
|
|
1055
|
+
L.totalTrips
|
|
915
1056
|
] }),
|
|
916
|
-
|
|
1057
|
+
L.criticalEvents > 0 && /* @__PURE__ */ n("span", { className: "nice-honey-token-dashboard__stat nice-honey-token-dashboard__stat--critical", children: [
|
|
917
1058
|
"Critical: ",
|
|
918
|
-
|
|
1059
|
+
L.criticalEvents
|
|
919
1060
|
] })
|
|
920
1061
|
] })
|
|
921
1062
|
] }),
|
|
922
|
-
/* @__PURE__ */
|
|
1063
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__toolbar", children: [
|
|
923
1064
|
/* @__PURE__ */ e(
|
|
924
1065
|
"input",
|
|
925
1066
|
{
|
|
926
1067
|
type: "text",
|
|
927
1068
|
className: "nice-honey-token-dashboard__search",
|
|
928
1069
|
placeholder: "Search tokens...",
|
|
929
|
-
value:
|
|
930
|
-
onChange: (
|
|
1070
|
+
value: S,
|
|
1071
|
+
onChange: (t) => T(t.target.value)
|
|
931
1072
|
}
|
|
932
1073
|
),
|
|
933
|
-
|
|
1074
|
+
m && /* @__PURE__ */ e(
|
|
934
1075
|
"button",
|
|
935
1076
|
{
|
|
936
1077
|
className: "nice-honey-token-dashboard__btn",
|
|
937
|
-
onClick: () =>
|
|
938
|
-
children:
|
|
1078
|
+
onClick: () => N(!f),
|
|
1079
|
+
children: f ? "Cancel" : "+ New Token"
|
|
939
1080
|
}
|
|
940
1081
|
)
|
|
941
1082
|
] }),
|
|
942
|
-
|
|
1083
|
+
f && /* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__create", children: [
|
|
943
1084
|
/* @__PURE__ */ e(
|
|
944
1085
|
"input",
|
|
945
1086
|
{
|
|
946
1087
|
type: "text",
|
|
947
1088
|
placeholder: "Token name",
|
|
948
|
-
value:
|
|
949
|
-
onChange: (
|
|
1089
|
+
value: x,
|
|
1090
|
+
onChange: (t) => v(t.target.value)
|
|
950
1091
|
}
|
|
951
1092
|
),
|
|
952
|
-
/* @__PURE__ */ e("select", { value:
|
|
953
|
-
/* @__PURE__ */
|
|
1093
|
+
/* @__PURE__ */ e("select", { value: a, onChange: (t) => s(t.target.value), children: Object.entries(H).map(([t, E]) => /* @__PURE__ */ e("option", { value: t, children: E }, t)) }),
|
|
1094
|
+
/* @__PURE__ */ n("select", { value: d, onChange: (t) => r(t.target.value), children: [
|
|
954
1095
|
/* @__PURE__ */ e("option", { value: "low", children: "Low" }),
|
|
955
1096
|
/* @__PURE__ */ e("option", { value: "medium", children: "Medium" }),
|
|
956
1097
|
/* @__PURE__ */ e("option", { value: "high", children: "High" }),
|
|
@@ -961,20 +1102,20 @@ const M = {
|
|
|
961
1102
|
{
|
|
962
1103
|
type: "text",
|
|
963
1104
|
placeholder: "Location (e.g. /api/admin/secret)",
|
|
964
|
-
value:
|
|
965
|
-
onChange: (
|
|
1105
|
+
value: h,
|
|
1106
|
+
onChange: (t) => b(t.target.value)
|
|
966
1107
|
}
|
|
967
1108
|
),
|
|
968
|
-
/* @__PURE__ */ e("button", { onClick:
|
|
1109
|
+
/* @__PURE__ */ e("button", { onClick: i, children: "Create" })
|
|
969
1110
|
] }),
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__tokens", children: [
|
|
1112
|
+
/* @__PURE__ */ n("h3", { children: [
|
|
972
1113
|
"Tokens (",
|
|
973
|
-
|
|
1114
|
+
w.length,
|
|
974
1115
|
")"
|
|
975
1116
|
] }),
|
|
976
|
-
/* @__PURE__ */
|
|
977
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ n("table", { className: "nice-honey-token-dashboard__table", children: [
|
|
1118
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
978
1119
|
/* @__PURE__ */ e("th", { children: "Name" }),
|
|
979
1120
|
/* @__PURE__ */ e("th", { children: "Type" }),
|
|
980
1121
|
/* @__PURE__ */ e("th", { children: "Severity" }),
|
|
@@ -984,73 +1125,73 @@ const M = {
|
|
|
984
1125
|
/* @__PURE__ */ e("th", { children: "Status" }),
|
|
985
1126
|
/* @__PURE__ */ e("th", { children: "Actions" })
|
|
986
1127
|
] }) }),
|
|
987
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
988
|
-
/* @__PURE__ */ e("td", { children:
|
|
989
|
-
/* @__PURE__ */ e("td", { children:
|
|
1128
|
+
/* @__PURE__ */ e("tbody", { children: w.map((t) => /* @__PURE__ */ n("tr", { className: t.tripCount > 0 ? "nice-honey-token-dashboard__row--tripped" : "", children: [
|
|
1129
|
+
/* @__PURE__ */ e("td", { children: t.name }),
|
|
1130
|
+
/* @__PURE__ */ e("td", { children: H[t.type] }),
|
|
990
1131
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e(
|
|
991
1132
|
"span",
|
|
992
1133
|
{
|
|
993
1134
|
className: "nice-honey-token-dashboard__severity",
|
|
994
|
-
style: { color: M[
|
|
995
|
-
children:
|
|
1135
|
+
style: { color: M[t.severity] },
|
|
1136
|
+
children: t.severity
|
|
996
1137
|
}
|
|
997
1138
|
) }),
|
|
998
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children:
|
|
999
|
-
/* @__PURE__ */ e("td", { children:
|
|
1000
|
-
/* @__PURE__ */ e("td", { children:
|
|
1001
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `nice-honey-token-dashboard__status--${
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
|
|
1004
|
-
|
|
1139
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: t.location }) }),
|
|
1140
|
+
/* @__PURE__ */ e("td", { children: t.tripCount }),
|
|
1141
|
+
/* @__PURE__ */ e("td", { children: t.lastTripped ?? "—" }),
|
|
1142
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `nice-honey-token-dashboard__status--${t.active ? "active" : "inactive"}`, children: t.active ? "Active" : "Inactive" }) }),
|
|
1143
|
+
/* @__PURE__ */ n("td", { children: [
|
|
1144
|
+
y && /* @__PURE__ */ e("button", { onClick: () => y(t.id, !t.active), children: t.active ? "Disable" : "Enable" }),
|
|
1145
|
+
g && /* @__PURE__ */ e("button", { onClick: () => g(t.id), children: "Delete" })
|
|
1005
1146
|
] })
|
|
1006
|
-
] },
|
|
1147
|
+
] }, t.id)) })
|
|
1007
1148
|
] })
|
|
1008
1149
|
] }),
|
|
1009
|
-
|
|
1010
|
-
/* @__PURE__ */
|
|
1150
|
+
o.length > 0 && /* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__events", children: [
|
|
1151
|
+
/* @__PURE__ */ n("h3", { children: [
|
|
1011
1152
|
"Recent Events (",
|
|
1012
|
-
|
|
1153
|
+
o.length,
|
|
1013
1154
|
")"
|
|
1014
1155
|
] }),
|
|
1015
|
-
/* @__PURE__ */ e("div", { className: "nice-honey-token-dashboard__event-list", children:
|
|
1156
|
+
/* @__PURE__ */ e("div", { className: "nice-honey-token-dashboard__event-list", children: o.map((t) => /* @__PURE__ */ n(
|
|
1016
1157
|
"div",
|
|
1017
1158
|
{
|
|
1018
|
-
className: `nice-honey-token-dashboard__event nice-honey-token-dashboard__event--${
|
|
1159
|
+
className: `nice-honey-token-dashboard__event nice-honey-token-dashboard__event--${t.severity}`,
|
|
1019
1160
|
children: [
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */ e("strong", { children:
|
|
1161
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__event-header", children: [
|
|
1162
|
+
/* @__PURE__ */ e("strong", { children: t.tokenName }),
|
|
1022
1163
|
/* @__PURE__ */ e(
|
|
1023
1164
|
"span",
|
|
1024
1165
|
{
|
|
1025
1166
|
className: "nice-honey-token-dashboard__severity",
|
|
1026
|
-
style: { color: M[
|
|
1027
|
-
children:
|
|
1167
|
+
style: { color: M[t.severity] },
|
|
1168
|
+
children: t.severity
|
|
1028
1169
|
}
|
|
1029
1170
|
),
|
|
1030
|
-
/* @__PURE__ */ e("time", { children:
|
|
1171
|
+
/* @__PURE__ */ e("time", { children: t.timestamp })
|
|
1031
1172
|
] }),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
/* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ n("div", { className: "nice-honey-token-dashboard__event-details", children: [
|
|
1174
|
+
/* @__PURE__ */ n("span", { children: [
|
|
1034
1175
|
"IP: ",
|
|
1035
|
-
|
|
1176
|
+
t.sourceIp
|
|
1036
1177
|
] }),
|
|
1037
|
-
|
|
1178
|
+
t.userId && /* @__PURE__ */ n("span", { children: [
|
|
1038
1179
|
"User: ",
|
|
1039
|
-
|
|
1180
|
+
t.userId
|
|
1040
1181
|
] }),
|
|
1041
|
-
|
|
1182
|
+
t.details && /* @__PURE__ */ e("span", { children: t.details })
|
|
1042
1183
|
] }),
|
|
1043
|
-
|
|
1184
|
+
p && /* @__PURE__ */ e(
|
|
1044
1185
|
"button",
|
|
1045
1186
|
{
|
|
1046
1187
|
className: "nice-honey-token-dashboard__dismiss",
|
|
1047
|
-
onClick: () =>
|
|
1188
|
+
onClick: () => p(t.id),
|
|
1048
1189
|
children: "Dismiss"
|
|
1049
1190
|
}
|
|
1050
1191
|
)
|
|
1051
1192
|
]
|
|
1052
1193
|
},
|
|
1053
|
-
|
|
1194
|
+
t.id
|
|
1054
1195
|
)) })
|
|
1055
1196
|
] })
|
|
1056
1197
|
]
|
|
@@ -1059,17 +1200,17 @@ const M = {
|
|
|
1059
1200
|
}
|
|
1060
1201
|
);
|
|
1061
1202
|
export {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1203
|
+
me as FeatureGate,
|
|
1204
|
+
le as NiceAdminAuditLog,
|
|
1205
|
+
ie as NiceAdminDashboard,
|
|
1206
|
+
de as NiceAdminNotifications,
|
|
1207
|
+
re as NiceAdminRoles,
|
|
1208
|
+
ce as NiceAdminSettings,
|
|
1209
|
+
se as NiceAdminUsers,
|
|
1210
|
+
oe as NiceFeatureFlags,
|
|
1211
|
+
me as NiceFeatureGate,
|
|
1212
|
+
ue as NiceFeatureGateProvider,
|
|
1213
|
+
pe as NiceHoneyTokenDashboard,
|
|
1214
|
+
he as NiceImportExport,
|
|
1215
|
+
ee as useFeatureGate
|
|
1075
1216
|
};
|