strapi-plugin-comments 3.2.3-beta.2 → 3.2.4
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/_chunks/{en-Y06L5Ws_.mjs → en-CT6Rt2uf.mjs} +5 -0
- package/dist/_chunks/en-Tdlz6WoL.js +1 -0
- package/dist/_chunks/fr-BlaISu0-.js +1 -0
- package/dist/_chunks/{fr-Cv2agoba.mjs → fr-CTKzDZoe.mjs} +7 -2
- package/dist/_chunks/{index-T4wQaxSs.mjs → index-BIaTg-pL.mjs} +2062 -2080
- package/dist/_chunks/{index-DxpJkJBv.js → index-BIivsuhp.js} +1 -1
- package/dist/_chunks/{index-QQjHUmZX.js → index-CgbBtemc.js} +14 -14
- package/dist/_chunks/{index-CEpIxnxx.mjs → index-CqWqvu-C.mjs} +814 -781
- package/dist/_chunks/{index-BOiPKIfk.mjs → index-CynNsAVf.mjs} +14 -13
- package/dist/_chunks/index-D9B_m9fB.mjs +417 -0
- package/dist/_chunks/index-Dz3cg8MA.js +1 -0
- package/dist/_chunks/index-sPxsE9Y1.js +5 -0
- package/dist/_chunks/{pl-a5516Yys.mjs → pl-BE9Xc2Tq.mjs} +4 -0
- package/dist/_chunks/pl-r2tJzCYX.js +1 -0
- package/dist/_chunks/pt-BR-BntmApbV.js +1 -0
- package/dist/_chunks/{pt-BR-DwEywOda.mjs → pt-BR-ZzKZqryk.mjs} +4 -0
- package/dist/_chunks/ru-DdjjIy0c.js +1 -0
- package/dist/_chunks/{ru-72L1_BWN.mjs → ru-NqAiywiG.mjs} +4 -0
- package/dist/_chunks/{tr-Ca93Ai2h.mjs → tr-6Vivmm9L.mjs} +4 -0
- package/dist/_chunks/{tr-B2Tw9kcB.js → tr-v1mNvsod.js} +1 -1
- package/dist/_chunks/{zh-Hans-DXLzMysj.mjs → zh-Hans-B3CCaxs8.mjs} +4 -0
- package/dist/_chunks/zh-Hans-_ImAlhp2.js +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/translations/en.d.ts +5 -0
- package/dist/admin/src/translations/fr.d.ts +5 -0
- package/dist/admin/src/translations/pl.d.ts +196 -192
- package/dist/admin/src/translations/pt-BR.d.ts +4 -0
- package/dist/admin/src/translations/ru.d.ts +4 -0
- package/dist/admin/src/translations/tr.d.ts +4 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +4 -0
- package/dist/server/index.js +22 -22
- package/dist/server/index.mjs +874 -844
- package/dist/server/src/index.d.ts +3 -3
- package/dist/server/src/services/admin/admin.service.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +1 -1
- package/dist/server/src/services/common.service.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/_chunks/en-nurIIakL.js +0 -1
- package/dist/_chunks/fr-JAoXWyAN.js +0 -1
- package/dist/_chunks/index-BR27qalE.js +0 -1
- package/dist/_chunks/index-DMbK1qUe.js +0 -5
- package/dist/_chunks/index-DToI8I6s.mjs +0 -340
- package/dist/_chunks/pl-DUaDM2d3.js +0 -1
- package/dist/_chunks/pt-BR-BXuFBSgm.js +0 -1
- package/dist/_chunks/ru-B7jFc-n7.js +0 -1
- package/dist/_chunks/zh-Hans-Cp3JcN8q.js +0 -1
|
@@ -16,7 +16,7 @@ g(u)`
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
|
-
const f = "strapi-plugin-comments", $ = {
|
|
19
|
+
const f = "strapi-plugin-comments", M = "3.2.4", $ = {
|
|
20
20
|
displayName: "Comments"
|
|
21
21
|
}, b = 576, h = ({ width: e = 24, height: n = 24 }) => /* @__PURE__ */ o("svg", { viewBox: `0 0 ${e} ${n}`, xmlns: "http://www.w3.org/2000/svg", height: `${n}px`, children: /* @__PURE__ */ o("g", { style: { transform: `scale(${e / b})` }, fill: "currentColor", children: /* @__PURE__ */ o("path", { d: "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z" }) }) }), w = /* @__PURE__ */ o(h, {}), j = () => w, t = {
|
|
22
22
|
render: (e) => `plugin::comments.${e}`,
|
|
@@ -59,14 +59,14 @@ const f = "strapi-plugin-comments", $ = {
|
|
|
59
59
|
{ action: t.render(t.settings.change), subject: null }
|
|
60
60
|
]
|
|
61
61
|
}, s = f.replace(/^strapi-plugin-/i, ""), p = {
|
|
62
|
-
en: () => import("./en-
|
|
63
|
-
fr: () => import("./fr-
|
|
64
|
-
"pt-BR": () => import("./pt-BR-
|
|
65
|
-
tr: () => import("./tr-
|
|
66
|
-
ru: () => import("./ru-
|
|
67
|
-
"zh-Hans": () => import("./zh-Hans-
|
|
68
|
-
pl: () => import("./pl-
|
|
69
|
-
}, { displayName: d } = $,
|
|
62
|
+
en: () => import("./en-CT6Rt2uf.mjs"),
|
|
63
|
+
fr: () => import("./fr-CTKzDZoe.mjs"),
|
|
64
|
+
"pt-BR": () => import("./pt-BR-ZzKZqryk.mjs"),
|
|
65
|
+
tr: () => import("./tr-6Vivmm9L.mjs"),
|
|
66
|
+
ru: () => import("./ru-NqAiywiG.mjs"),
|
|
67
|
+
"zh-Hans": () => import("./zh-Hans-B3CCaxs8.mjs"),
|
|
68
|
+
pl: () => import("./pl-BE9Xc2Tq.mjs")
|
|
69
|
+
}, { displayName: d } = $, S = {
|
|
70
70
|
register(e) {
|
|
71
71
|
e.addMenuLink({
|
|
72
72
|
to: `/plugins/${s}`,
|
|
@@ -76,7 +76,7 @@ const f = "strapi-plugin-comments", $ = {
|
|
|
76
76
|
id: `${s}.plugin.name`,
|
|
77
77
|
defaultMessage: d
|
|
78
78
|
},
|
|
79
|
-
Component: () => import("./index-
|
|
79
|
+
Component: () => import("./index-CqWqvu-C.mjs"),
|
|
80
80
|
permissions: l.access
|
|
81
81
|
}), e.createSettingSection(
|
|
82
82
|
{
|
|
@@ -94,7 +94,7 @@ const f = "strapi-plugin-comments", $ = {
|
|
|
94
94
|
},
|
|
95
95
|
id: "comments",
|
|
96
96
|
to: `/settings/${s}`,
|
|
97
|
-
Component: () => import("./index-
|
|
97
|
+
Component: () => import("./index-D9B_m9fB.mjs"),
|
|
98
98
|
permissions: l.settings
|
|
99
99
|
}
|
|
100
100
|
]
|
|
@@ -114,6 +114,7 @@ const f = "strapi-plugin-comments", $ = {
|
|
|
114
114
|
};
|
|
115
115
|
export {
|
|
116
116
|
l as a,
|
|
117
|
-
|
|
118
|
-
s as p
|
|
117
|
+
S as i,
|
|
118
|
+
s as p,
|
|
119
|
+
M as v
|
|
119
120
|
};
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Button as F, Flex as I, Typography as h, Badge as oe, Box as m, Grid as s, Field as n, MultiSelect as q, MultiSelectOption as A, Accordion as y, Switch as re, Toggle as B, Alert as se } from "@strapi/design-system";
|
|
3
|
+
import { Check as le, Play as ae, ArrowClockwise as W } from "@strapi/icons";
|
|
4
|
+
import { useNotification as ce, Page as j, Layouts as N, Form as de } from "@strapi/strapi/admin";
|
|
5
|
+
import { useMutation as T, useQuery as v, useQueryClient as ge } from "@tanstack/react-query";
|
|
6
|
+
import { u as U, f as he, a as pe, g as t, l as D, e as me } from "./index-BIaTg-pL.mjs";
|
|
7
|
+
import { useMemo as ue, useRef as be, useState as fe, useCallback as Q } from "react";
|
|
8
|
+
import ye from "styled-components";
|
|
9
|
+
import { v as Se } from "./index-CynNsAVf.mjs";
|
|
10
|
+
const P = ({
|
|
11
|
+
children: c,
|
|
12
|
+
condition: a
|
|
13
|
+
}) => a ? /* @__PURE__ */ e(O, { children: c }) : null, we = (c = {}) => {
|
|
14
|
+
const a = U(), S = T({
|
|
15
|
+
mutationFn: a.settings.update,
|
|
16
|
+
onSuccess: c.updateSettingsMutationSuccess,
|
|
17
|
+
onError: c.updateSettingsMutationError
|
|
18
|
+
}), p = T({
|
|
19
|
+
mutationFn: a.settings.restore,
|
|
20
|
+
onSuccess: c.restoreSettingsMutationSuccess,
|
|
21
|
+
onError: c.restoreSettingsMutationError
|
|
22
|
+
}), w = T({
|
|
23
|
+
mutationFn: a.settings.restart,
|
|
24
|
+
onSuccess: c.restartStrapiMutationSuccess,
|
|
25
|
+
onError: c.restartStrapiMutationError
|
|
26
|
+
}), u = v({
|
|
27
|
+
queryKey: a.config.getKey(),
|
|
28
|
+
queryFn: a.config.query
|
|
29
|
+
}), b = v({
|
|
30
|
+
queryKey: a.contentTypeBuilder.all.getKey(),
|
|
31
|
+
queryFn: a.contentTypeBuilder.all.query
|
|
32
|
+
}), f = v({
|
|
33
|
+
queryKey: a.roles.getKey(),
|
|
34
|
+
queryFn: a.roles.query
|
|
35
|
+
});
|
|
36
|
+
return ue(() => ({
|
|
37
|
+
config: u,
|
|
38
|
+
collectionTypes: b,
|
|
39
|
+
roles: f,
|
|
40
|
+
restoreSettingsMutation: p,
|
|
41
|
+
updateSettingsMutation: S,
|
|
42
|
+
restartStrapiMutation: w
|
|
43
|
+
}), [
|
|
44
|
+
u,
|
|
45
|
+
f,
|
|
46
|
+
b,
|
|
47
|
+
p,
|
|
48
|
+
S,
|
|
49
|
+
w
|
|
50
|
+
]);
|
|
51
|
+
}, Ce = Se, R = {
|
|
52
|
+
background: "neutral0",
|
|
53
|
+
hasRadius: !0,
|
|
54
|
+
shadow: "filterShadow",
|
|
55
|
+
padding: 6,
|
|
56
|
+
width: "100%"
|
|
57
|
+
}, Ie = ye(se)(() => ({
|
|
58
|
+
"[role]": {
|
|
59
|
+
flexDirection: "column"
|
|
60
|
+
}
|
|
61
|
+
})), Re = () => {
|
|
62
|
+
const c = be(null), { toggleNotification: a } = ce(), [S, p] = fe(!1), { isLoadingForPermissions: w, canSettingsChange: u } = pe(), b = ge(), f = U(), {
|
|
63
|
+
config: d,
|
|
64
|
+
collectionTypes: M,
|
|
65
|
+
roles: L,
|
|
66
|
+
restoreSettingsMutation: V,
|
|
67
|
+
updateSettingsMutation: k,
|
|
68
|
+
restartStrapiMutation: G
|
|
69
|
+
} = we({
|
|
70
|
+
restoreSettingsMutationSuccess: () => {
|
|
71
|
+
b.invalidateQueries({
|
|
72
|
+
queryKey: f.config.getKey(),
|
|
73
|
+
exact: !1
|
|
74
|
+
}), p(!0), a({
|
|
75
|
+
message: t("page.settings.actions.restore.success"),
|
|
76
|
+
type: "success"
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
restartStrapiMutationSuccess: () => {
|
|
80
|
+
p(!1);
|
|
81
|
+
},
|
|
82
|
+
updateSettingsMutationSuccess: () => {
|
|
83
|
+
b.invalidateQueries({
|
|
84
|
+
queryKey: f.config.getKey(),
|
|
85
|
+
exact: !1
|
|
86
|
+
}), p(!0);
|
|
87
|
+
}
|
|
88
|
+
}), z = Q(() => {
|
|
89
|
+
c.current?.requestSubmit();
|
|
90
|
+
}, []), J = Q(
|
|
91
|
+
(r) => {
|
|
92
|
+
k.mutate({
|
|
93
|
+
...r,
|
|
94
|
+
blockedAuthorProps: r.blockedAuthorProps.split(",").map((l) => l.trim())
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
[k]
|
|
98
|
+
);
|
|
99
|
+
if (d.status !== "success" || M.status !== "success" || L.status !== "success" || w)
|
|
100
|
+
return t("page.settings.loading");
|
|
101
|
+
const x = M.data.filter((r) => r.uid.includes("api::")), X = d.data.enabledCollections.filter(
|
|
102
|
+
(r) => x.some((l) => l.uid === r)
|
|
103
|
+
), Y = D.isNil(d.data.badWords) ? !0 : d.data?.badWords, Z = !!d.data.gql?.auth, _ = d.data.moderatorRoles.filter(
|
|
104
|
+
(r) => L.data.filter((l) => l.code === r)
|
|
105
|
+
), $ = d.data.client?.url, ee = d.data.client?.contactEmail, te = d.data.blockedAuthorProps ?? [], ne = () => p(!1);
|
|
106
|
+
return /* @__PURE__ */ i(O, { children: [
|
|
107
|
+
/* @__PURE__ */ e(j.Title, { children: "Comments - settings" }),
|
|
108
|
+
/* @__PURE__ */ i(j.Main, { children: [
|
|
109
|
+
/* @__PURE__ */ e(
|
|
110
|
+
N.Header,
|
|
111
|
+
{
|
|
112
|
+
title: t("page.settings.header.title"),
|
|
113
|
+
subtitle: /* @__PURE__ */ i(I, { direction: "row", gap: 3, alignItems: "center", justifyContent: "space-between", children: [
|
|
114
|
+
/* @__PURE__ */ e(h, { variant: "epsilon", textColor: "neutral600", tag: "p", children: t("page.settings.header.description") }),
|
|
115
|
+
/* @__PURE__ */ e(oe, { color: "neutral", minWidth: "fit-content", children: /* @__PURE__ */ i("span", { style: { textTransform: "none" }, children: [
|
|
116
|
+
"v",
|
|
117
|
+
Ce
|
|
118
|
+
] }) })
|
|
119
|
+
] }),
|
|
120
|
+
primaryAction: /* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(F, { type: "submit", startIcon: /* @__PURE__ */ e(le, {}), onClick: z, children: t("page.settings.actions.submit") }) })
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ i(N.Content, { children: [
|
|
124
|
+
S && /* @__PURE__ */ e(m, { marginBottom: 4, children: /* @__PURE__ */ e(
|
|
125
|
+
Ie,
|
|
126
|
+
{
|
|
127
|
+
closeLabel: t("page.settings.actions.restart.alert.close"),
|
|
128
|
+
title: t("page.settings.actions.restart.alert.title"),
|
|
129
|
+
onClose: ne,
|
|
130
|
+
action: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(F, { onClick: G.mutate, startIcon: /* @__PURE__ */ e(ae, {}), children: t("page.settings.actions.restart") }) }),
|
|
131
|
+
children: /* @__PURE__ */ e(m, { marginTop: 4, children: t("page.settings.actions.restart.alert.description") })
|
|
132
|
+
}
|
|
133
|
+
) }),
|
|
134
|
+
/* @__PURE__ */ e(
|
|
135
|
+
de,
|
|
136
|
+
{
|
|
137
|
+
method: "POST",
|
|
138
|
+
width: "auto",
|
|
139
|
+
height: "auto",
|
|
140
|
+
ref: c,
|
|
141
|
+
onSubmit: J,
|
|
142
|
+
initialValues: {
|
|
143
|
+
enabledCollections: X,
|
|
144
|
+
moderatorRoles: _,
|
|
145
|
+
badWords: Y,
|
|
146
|
+
clientEmail: ee,
|
|
147
|
+
clientUrl: $,
|
|
148
|
+
gqlAuthEnabled: Z,
|
|
149
|
+
approvalFlow: d.data.approvalFlow,
|
|
150
|
+
entryLabel: d.data.entryLabel,
|
|
151
|
+
blockedAuthorProps: te.join(", ")
|
|
152
|
+
},
|
|
153
|
+
children: ({ values: r, onChange: l }) => /* @__PURE__ */ i(I, { gap: 4, direction: "column", children: [
|
|
154
|
+
/* @__PURE__ */ i(m, { ...R, children: [
|
|
155
|
+
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.general") }),
|
|
156
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
157
|
+
/* @__PURE__ */ e(s.Item, { xs: 12, children: /* @__PURE__ */ i(
|
|
158
|
+
n.Root,
|
|
159
|
+
{
|
|
160
|
+
width: "100%",
|
|
161
|
+
hint: t("page.settings.form.enabledCollections.hint"),
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
164
|
+
/* @__PURE__ */ e(
|
|
165
|
+
q,
|
|
166
|
+
{
|
|
167
|
+
withTags: !0,
|
|
168
|
+
name: "enabledCollections",
|
|
169
|
+
value: r.enabledCollections,
|
|
170
|
+
onChange: (o) => {
|
|
171
|
+
l("enabledCollections", o);
|
|
172
|
+
},
|
|
173
|
+
children: x.map((o) => /* @__PURE__ */ e(A, { value: o.uid, children: o.schema.displayName }, o.uid))
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
) }),
|
|
180
|
+
r.enabledCollections.length > 0 && /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(s.Root, { gap: 4, width: "100%", children: [
|
|
181
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ e(h, { children: t("page.settings.form.contentTypesSettings.label") }) }),
|
|
182
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ e(y.Root, { style: { width: "100%" }, children: D.orderBy(r.enabledCollections).map((o) => {
|
|
183
|
+
const E = x.find((C) => C.uid === o);
|
|
184
|
+
if (E) {
|
|
185
|
+
const {
|
|
186
|
+
schema: { displayName: C, attributes: H }
|
|
187
|
+
} = E, K = Object.keys(H).filter(
|
|
188
|
+
(g) => H[g].type === "string"
|
|
189
|
+
);
|
|
190
|
+
return /* @__PURE__ */ i(y.Item, { value: o, children: [
|
|
191
|
+
/* @__PURE__ */ e(y.Header, { children: /* @__PURE__ */ e(y.Trigger, { children: /* @__PURE__ */ e(h, { variant: "epsilon", as: "h3", children: C }) }) }),
|
|
192
|
+
/* @__PURE__ */ e(y.Content, { children: /* @__PURE__ */ i(s.Root, { padding: 6, gap: 4, children: [
|
|
193
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(
|
|
194
|
+
n.Root,
|
|
195
|
+
{
|
|
196
|
+
width: "100%",
|
|
197
|
+
hint: t({
|
|
198
|
+
id: "page.settings.form.approvalFlow.hint",
|
|
199
|
+
props: { name: C }
|
|
200
|
+
}),
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ e(n.Label, { children: t(
|
|
203
|
+
"page.settings.form.approvalFlow.label"
|
|
204
|
+
) }),
|
|
205
|
+
/* @__PURE__ */ e(
|
|
206
|
+
re,
|
|
207
|
+
{
|
|
208
|
+
visibleLabels: !0,
|
|
209
|
+
onLabel: t("components.toogle.enabled"),
|
|
210
|
+
offLabel: t("components.toogle.disabled"),
|
|
211
|
+
checked: r.approvalFlow.includes(o),
|
|
212
|
+
onCheckedChange: (g) => {
|
|
213
|
+
l(
|
|
214
|
+
"approvalFlow",
|
|
215
|
+
g ? [...r.approvalFlow, o] : r.approvalFlow.filter(
|
|
216
|
+
(ie) => ie !== o
|
|
217
|
+
)
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
) }),
|
|
226
|
+
/* @__PURE__ */ e(P, { condition: K.length > 0, children: /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ i(
|
|
227
|
+
n.Root,
|
|
228
|
+
{
|
|
229
|
+
width: "100%",
|
|
230
|
+
hint: t(
|
|
231
|
+
"page.settings.form.entryLabel.hint"
|
|
232
|
+
),
|
|
233
|
+
children: [
|
|
234
|
+
/* @__PURE__ */ e(n.Label, { children: t(
|
|
235
|
+
"page.settings.form.entryLabel.label"
|
|
236
|
+
) }),
|
|
237
|
+
/* @__PURE__ */ e(
|
|
238
|
+
q,
|
|
239
|
+
{
|
|
240
|
+
withTags: !0,
|
|
241
|
+
placeholder: t(
|
|
242
|
+
"page.settings.form.entryLabel.placeholder"
|
|
243
|
+
),
|
|
244
|
+
name: "enabledCollections",
|
|
245
|
+
value: r.entryLabel[o] ?? [],
|
|
246
|
+
onChange: (g) => {
|
|
247
|
+
l("entryLabel", {
|
|
248
|
+
...r.entryLabel,
|
|
249
|
+
[o]: g
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
children: K.map((g) => /* @__PURE__ */ e(A, { value: g, children: g }, g))
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
) }) })
|
|
259
|
+
] }) })
|
|
260
|
+
] }, o);
|
|
261
|
+
}
|
|
262
|
+
return null;
|
|
263
|
+
}) }) })
|
|
264
|
+
] }) })
|
|
265
|
+
] })
|
|
266
|
+
] }),
|
|
267
|
+
/* @__PURE__ */ i(m, { ...R, children: [
|
|
268
|
+
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
|
|
269
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
270
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
271
|
+
n.Root,
|
|
272
|
+
{
|
|
273
|
+
width: "100%",
|
|
274
|
+
hint: t("page.settings.form.enabledCollections.hint"),
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
277
|
+
/* @__PURE__ */ e(
|
|
278
|
+
B,
|
|
279
|
+
{
|
|
280
|
+
name: "badWords",
|
|
281
|
+
checked: r.badWords,
|
|
282
|
+
onChange: l,
|
|
283
|
+
onLabel: t("components.toogle.enabled"),
|
|
284
|
+
offLabel: t("components.toogle.disabled"),
|
|
285
|
+
width: "100%"
|
|
286
|
+
}
|
|
287
|
+
),
|
|
288
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
) }),
|
|
292
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
293
|
+
n.Root,
|
|
294
|
+
{
|
|
295
|
+
width: "100%",
|
|
296
|
+
hint: t("page.settings.form.author.blockedProps.hint"),
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.author.blockedProps.label") }),
|
|
299
|
+
/* @__PURE__ */ e(
|
|
300
|
+
n.Input,
|
|
301
|
+
{
|
|
302
|
+
name: "blockedAuthorProps",
|
|
303
|
+
value: r.blockedAuthorProps,
|
|
304
|
+
onChange: l
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
) }),
|
|
311
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(n.Root, { width: "100%", hint: t("page.settings.form.gqlAuth.hint"), children: [
|
|
312
|
+
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.gqlAuth.label") }),
|
|
313
|
+
/* @__PURE__ */ e(
|
|
314
|
+
B,
|
|
315
|
+
{
|
|
316
|
+
name: "gqlAuthEnabled",
|
|
317
|
+
checked: r.gqlAuthEnabled,
|
|
318
|
+
onChange: l,
|
|
319
|
+
onLabel: t("components.toogle.enabled"),
|
|
320
|
+
offLabel: t("components.toogle.disabled"),
|
|
321
|
+
width: "100%"
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
325
|
+
] }) })
|
|
326
|
+
] })
|
|
327
|
+
] }),
|
|
328
|
+
/* @__PURE__ */ i(m, { ...R, children: [
|
|
329
|
+
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
|
|
330
|
+
/* @__PURE__ */ i(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
331
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
332
|
+
n.Root,
|
|
333
|
+
{
|
|
334
|
+
width: "100%",
|
|
335
|
+
hint: t("page.settings.form.client.url.hint"),
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.url.label") }),
|
|
338
|
+
/* @__PURE__ */ e(n.Input, { name: "clientUrl", onChange: l }),
|
|
339
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
) }),
|
|
343
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
344
|
+
n.Root,
|
|
345
|
+
{
|
|
346
|
+
width: "100%",
|
|
347
|
+
hint: t("page.settings.form.client.email.hint"),
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.client.email.label") }),
|
|
350
|
+
/* @__PURE__ */ e(n.Input, { name: "clientEmail", onChange: l }),
|
|
351
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
) }),
|
|
355
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ i(
|
|
356
|
+
n.Root,
|
|
357
|
+
{
|
|
358
|
+
width: "100%",
|
|
359
|
+
hint: t("page.settings.form.moderatorRoles.hint"),
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.moderatorRoles.label") }),
|
|
362
|
+
/* @__PURE__ */ e(
|
|
363
|
+
q,
|
|
364
|
+
{
|
|
365
|
+
withTags: !0,
|
|
366
|
+
placeholder: t("page.settings.form.moderatorRoles.placeholder"),
|
|
367
|
+
name: "enabledCollections",
|
|
368
|
+
value: r.moderatorRoles,
|
|
369
|
+
onChange: (o) => {
|
|
370
|
+
l("moderatorRoles", o);
|
|
371
|
+
},
|
|
372
|
+
children: L.data.map((o) => /* @__PURE__ */ e(A, { value: o.code, children: o.name }, o.code))
|
|
373
|
+
}
|
|
374
|
+
),
|
|
375
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
) })
|
|
379
|
+
] })
|
|
380
|
+
] }),
|
|
381
|
+
/* @__PURE__ */ e(P, { condition: u, children: /* @__PURE__ */ e(m, { ...R, children: /* @__PURE__ */ i(I, { gap: 4, direction: "column", alignItems: "flex-start", children: [
|
|
382
|
+
/* @__PURE__ */ i(I, { gap: 2, direction: "column", alignItems: "flex-start", children: [
|
|
383
|
+
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.restore") }),
|
|
384
|
+
/* @__PURE__ */ e(h, { variant: "pi", as: "h4", children: t("page.settings.section.restore.subtitle") })
|
|
385
|
+
] }),
|
|
386
|
+
/* @__PURE__ */ e(
|
|
387
|
+
me,
|
|
388
|
+
{
|
|
389
|
+
Trigger: ({ onClick: o }) => /* @__PURE__ */ e(
|
|
390
|
+
F,
|
|
391
|
+
{
|
|
392
|
+
variant: "danger-light",
|
|
393
|
+
startIcon: /* @__PURE__ */ e(W, {}),
|
|
394
|
+
onClick: o,
|
|
395
|
+
children: t("page.settings.actions.restore")
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
onConfirm: V.mutate,
|
|
399
|
+
title: t("page.settings.actions.restore.confirmation.header"),
|
|
400
|
+
labelConfirm: t(
|
|
401
|
+
"page.settings.actions.restore.confirmation.button.confirm"
|
|
402
|
+
),
|
|
403
|
+
iconConfirm: /* @__PURE__ */ e(W, {}),
|
|
404
|
+
children: t("page.settings.actions.restore.confirmation.description")
|
|
405
|
+
}
|
|
406
|
+
)
|
|
407
|
+
] }) }) })
|
|
408
|
+
] })
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
] })
|
|
412
|
+
] })
|
|
413
|
+
] });
|
|
414
|
+
}, ke = () => /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(Re, {}) });
|
|
415
|
+
export {
|
|
416
|
+
ke as default
|
|
417
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@strapi/design-system"),y=require("@strapi/icons"),h=require("@strapi/strapi/admin"),g=require("@tanstack/react-query"),s=require("./index-BIivsuhp.js"),m=require("react"),D=require("styled-components"),N=require("./index-sPxsE9Y1.js"),_=o=>o&&o.__esModule?o:{default:o},U=_(D),w=({children:o,condition:a})=>a?e.jsx(e.Fragment,{children:o}):null,V=(o={})=>{const a=s.useAPI(),j=g.useMutation({mutationFn:a.settings.update,onSuccess:o.updateSettingsMutationSuccess,onError:o.updateSettingsMutationError}),d=g.useMutation({mutationFn:a.settings.restore,onSuccess:o.restoreSettingsMutationSuccess,onError:o.restoreSettingsMutationError}),b=g.useMutation({mutationFn:a.settings.restart,onSuccess:o.restartStrapiMutationSuccess,onError:o.restartStrapiMutationError}),u=g.useQuery({queryKey:a.config.getKey(),queryFn:a.config.query}),p=g.useQuery({queryKey:a.contentTypeBuilder.all.getKey(),queryFn:a.contentTypeBuilder.all.query}),x=g.useQuery({queryKey:a.roles.getKey(),queryFn:a.roles.query});return m.useMemo(()=>({config:u,collectionTypes:p,roles:x,restoreSettingsMutation:d,updateSettingsMutation:j,restartStrapiMutation:b}),[u,x,p,d,j,b])},$=N.version,M={background:"neutral0",hasRadius:!0,shadow:"filterShadow",padding:6,width:"100%"},z=U.default(t.Alert)(()=>({"[role]":{flexDirection:"column"}})),J=()=>{const o=m.useRef(null),{toggleNotification:a}=h.useNotification(),[j,d]=m.useState(!1),{isLoadingForPermissions:b,canSettingsChange:u}=s.usePermissions(),p=g.useQueryClient(),x=s.useAPI(),{config:l,collectionTypes:C,roles:F,restoreSettingsMutation:L,updateSettingsMutation:I,restartStrapiMutation:A}=V({restoreSettingsMutationSuccess:()=>{p.invalidateQueries({queryKey:x.config.getKey(),exact:!1}),d(!0),a({message:s.getMessage("page.settings.actions.restore.success"),type:"success"})},restartStrapiMutationSuccess:()=>{d(!1)},updateSettingsMutationSuccess:()=>{p.invalidateQueries({queryKey:x.config.getKey(),exact:!1}),d(!0)}}),P=m.useCallback(()=>{o.current?.requestSubmit()},[]),v=m.useCallback(n=>{I.mutate({...n,blockedAuthorProps:n.blockedAuthorProps.split(",").map(r=>r.trim())})},[I]);if(l.status!=="success"||C.status!=="success"||F.status!=="success"||b)return s.getMessage("page.settings.loading");const S=C.data.filter(n=>n.uid.includes("api::")),k=l.data.enabledCollections.filter(n=>S.some(r=>r.uid===n)),G=s.lodashExports.isNil(l.data.badWords)?!0:l.data?.badWords,B=!!l.data.gql?.auth,E=l.data.moderatorRoles.filter(n=>F.data.filter(r=>r.code===n)),H=l.data.client?.url,K=l.data.client?.contactEmail,Q=l.data.blockedAuthorProps??[],O=()=>d(!1);return e.jsxs(e.Fragment,{children:[e.jsx(h.Page.Title,{children:"Comments - settings"}),e.jsxs(h.Page.Main,{children:[e.jsx(h.Layouts.Header,{title:s.getMessage("page.settings.header.title"),subtitle:e.jsxs(t.Flex,{direction:"row",gap:3,alignItems:"center",justifyContent:"space-between",children:[e.jsx(t.Typography,{variant:"epsilon",textColor:"neutral600",tag:"p",children:s.getMessage("page.settings.header.description")}),e.jsx(t.Badge,{color:"neutral",minWidth:"fit-content",children:e.jsxs("span",{style:{textTransform:"none"},children:["v",$]})})]}),primaryAction:e.jsx(w,{condition:u,children:e.jsx(t.Button,{type:"submit",startIcon:e.jsx(y.Check,{}),onClick:P,children:s.getMessage("page.settings.actions.submit")})})}),e.jsxs(h.Layouts.Content,{children:[j&&e.jsx(t.Box,{marginBottom:4,children:e.jsx(z,{closeLabel:s.getMessage("page.settings.actions.restart.alert.close"),title:s.getMessage("page.settings.actions.restart.alert.title"),onClose:O,action:e.jsx(t.Box,{children:e.jsx(t.Button,{onClick:A.mutate,startIcon:e.jsx(y.Play,{}),children:s.getMessage("page.settings.actions.restart")})}),children:e.jsx(t.Box,{marginTop:4,children:s.getMessage("page.settings.actions.restart.alert.description")})})}),e.jsx(h.Form,{method:"POST",width:"auto",height:"auto",ref:o,onSubmit:v,initialValues:{enabledCollections:k,moderatorRoles:E,badWords:G,clientEmail:K,clientUrl:H,gqlAuthEnabled:B,approvalFlow:l.data.approvalFlow,entryLabel:l.data.entryLabel,blockedAuthorProps:Q.join(", ")},children:({values:n,onChange:r})=>e.jsxs(t.Flex,{gap:4,direction:"column",children:[e.jsxs(t.Box,{...M,children:[e.jsx(t.Typography,{variant:"delta",as:"h2",children:s.getMessage("page.settings.section.general")}),e.jsxs(t.Grid.Root,{gap:4,marginTop:4,width:"100%",children:[e.jsx(t.Grid.Item,{xs:12,children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.enabledCollections.hint"),children:[e.jsx(t.Field.Label,{htmlFor:"enabledCollections",children:s.getMessage("page.settings.form.enabledCollections.label")}),e.jsx(t.MultiSelect,{withTags:!0,name:"enabledCollections",value:n.enabledCollections,onChange:i=>{r("enabledCollections",i)},children:S.map(i=>e.jsx(t.MultiSelectOption,{value:i.uid,children:i.schema.displayName},i.uid))}),e.jsx(t.Field.Hint,{})]})}),n.enabledCollections.length>0&&e.jsx(t.Grid.Item,{children:e.jsxs(t.Grid.Root,{gap:4,width:"100%",children:[e.jsx(t.Grid.Item,{children:e.jsx(t.Typography,{children:s.getMessage("page.settings.form.contentTypesSettings.label")})}),e.jsx(t.Grid.Item,{children:e.jsx(t.Accordion.Root,{style:{width:"100%"},children:s.lodashExports.orderBy(n.enabledCollections).map(i=>{const R=S.find(f=>f.uid===i);if(R){const{schema:{displayName:f,attributes:q}}=R,T=Object.keys(q).filter(c=>q[c].type==="string");return e.jsxs(t.Accordion.Item,{value:i,children:[e.jsx(t.Accordion.Header,{children:e.jsx(t.Accordion.Trigger,{children:e.jsx(t.Typography,{variant:"epsilon",as:"h3",children:f})})}),e.jsx(t.Accordion.Content,{children:e.jsxs(t.Grid.Root,{padding:6,gap:4,children:[e.jsx(t.Grid.Item,{children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage({id:"page.settings.form.approvalFlow.hint",props:{name:f}}),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.approvalFlow.label")}),e.jsx(t.Switch,{visibleLabels:!0,onLabel:s.getMessage("components.toogle.enabled"),offLabel:s.getMessage("components.toogle.disabled"),checked:n.approvalFlow.includes(i),onCheckedChange:c=>{r("approvalFlow",c?[...n.approvalFlow,i]:n.approvalFlow.filter(W=>W!==i))}}),e.jsx(t.Field.Hint,{})]})}),e.jsx(w,{condition:T.length>0,children:e.jsx(t.Grid.Item,{children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.entryLabel.hint"),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.entryLabel.label")}),e.jsx(t.MultiSelect,{withTags:!0,placeholder:s.getMessage("page.settings.form.entryLabel.placeholder"),name:"enabledCollections",value:n.entryLabel[i]??[],onChange:c=>{r("entryLabel",{...n.entryLabel,[i]:c})},children:T.map(c=>e.jsx(t.MultiSelectOption,{value:c,children:c},c))}),e.jsx(t.Field.Hint,{})]})})})]})})]},i)}return null})})})]})})]})]}),e.jsxs(t.Box,{...M,children:[e.jsx(t.Typography,{variant:"delta",as:"h2",children:s.getMessage("page.settings.section.additional")}),e.jsxs(t.Grid.Root,{gap:4,marginTop:4,width:"100%",children:[e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.enabledCollections.hint"),children:[e.jsx(t.Field.Label,{htmlFor:"enabledCollections",children:s.getMessage("page.settings.form.enabledCollections.label")}),e.jsx(t.Toggle,{name:"badWords",checked:n.badWords,onChange:r,onLabel:s.getMessage("components.toogle.enabled"),offLabel:s.getMessage("components.toogle.disabled"),width:"100%"}),e.jsx(t.Field.Hint,{})]})}),e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.author.blockedProps.hint"),children:[e.jsx(t.Field.Label,{htmlFor:"enabledCollections",children:s.getMessage("page.settings.form.author.blockedProps.label")}),e.jsx(t.Field.Input,{name:"blockedAuthorProps",value:n.blockedAuthorProps,onChange:r}),e.jsx(t.Field.Hint,{})]})}),e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.gqlAuth.hint"),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.gqlAuth.label")}),e.jsx(t.Toggle,{name:"gqlAuthEnabled",checked:n.gqlAuthEnabled,onChange:r,onLabel:s.getMessage("components.toogle.enabled"),offLabel:s.getMessage("components.toogle.disabled"),width:"100%"}),e.jsx(t.Field.Hint,{})]})})]})]}),e.jsxs(t.Box,{...M,children:[e.jsx(t.Typography,{variant:"delta",as:"h2",children:s.getMessage("page.settings.section.client")}),e.jsxs(t.Grid.Root,{gap:4,marginTop:4,width:"100%",children:[e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.client.url.hint"),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.client.url.label")}),e.jsx(t.Field.Input,{name:"clientUrl",onChange:r}),e.jsx(t.Field.Hint,{})]})}),e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.client.email.hint"),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.client.email.label")}),e.jsx(t.Field.Input,{name:"clientEmail",onChange:r}),e.jsx(t.Field.Hint,{})]})}),e.jsx(t.Grid.Item,{col:4,xs:12,alignItems:"start",children:e.jsxs(t.Field.Root,{width:"100%",hint:s.getMessage("page.settings.form.moderatorRoles.hint"),children:[e.jsx(t.Field.Label,{children:s.getMessage("page.settings.form.moderatorRoles.label")}),e.jsx(t.MultiSelect,{withTags:!0,placeholder:s.getMessage("page.settings.form.moderatorRoles.placeholder"),name:"enabledCollections",value:n.moderatorRoles,onChange:i=>{r("moderatorRoles",i)},children:F.data.map(i=>e.jsx(t.MultiSelectOption,{value:i.code,children:i.name},i.code))}),e.jsx(t.Field.Hint,{})]})})]})]}),e.jsx(w,{condition:u,children:e.jsx(t.Box,{...M,children:e.jsxs(t.Flex,{gap:4,direction:"column",alignItems:"flex-start",children:[e.jsxs(t.Flex,{gap:2,direction:"column",alignItems:"flex-start",children:[e.jsx(t.Typography,{variant:"delta",as:"h2",children:s.getMessage("page.settings.section.restore")}),e.jsx(t.Typography,{variant:"pi",as:"h4",children:s.getMessage("page.settings.section.restore.subtitle")})]}),e.jsx(s.ConfirmationDialog,{Trigger:({onClick:i})=>e.jsx(t.Button,{variant:"danger-light",startIcon:e.jsx(y.ArrowClockwise,{}),onClick:i,children:s.getMessage("page.settings.actions.restore")}),onConfirm:L.mutate,title:s.getMessage("page.settings.actions.restore.confirmation.header"),labelConfirm:s.getMessage("page.settings.actions.restore.confirmation.button.confirm"),iconConfirm:e.jsx(y.ArrowClockwise,{}),children:s.getMessage("page.settings.actions.restore.confirmation.description")})]})})})]})})]})]})]})},X=()=>e.jsx(s.CommonProviders,{children:e.jsx(J,{})});exports.default=X;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";require("react");const g=require("@strapi/design-system");require("@strapi/icons");const p=require("styled-components"),o=require("react/jsx-runtime"),c=(e,r="")=>Object.keys(e).reduce((i,t)=>{const l=r.length?`${r}.`:"";return typeof e[t]=="object"&&e[t]!==null&&!Array.isArray(e[t])?Object.assign(i,c(e[t],l+t)):i[l+t]=e[t],i},{}),u=(e,r)=>{if(!r)throw new TypeError("pluginId can't be empty");return Object.keys(e).reduce((i,t)=>(i[`${r}.${t}`]=e[t],i),{})};p.styled(g.Flex)`
|
|
2
|
+
&>* {
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
`;const h="strapi-plugin-comments",v="3.2.4",f={displayName:"Comments"},q=576,P=({width:e=24,height:r=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${r}`,xmlns:"http://www.w3.org/2000/svg",height:`${r}px`,children:o.jsx("g",{style:{transform:`scale(${e/q})`},fill:"currentColor",children:o.jsx("path",{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"})})}),$=o.jsx(P,{}),b=()=>$,n={render:e=>`plugin::comments.${e}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},a={access:[{action:n.render(n.comments.read),subject:null},{action:n.render(n.reports.read),subject:null},{action:n.render(n.settings.read),subject:null}],moderate:[{action:n.render(n.comments.moderate),subject:null}],reports:[{action:n.render(n.reports.read),subject:null}],reportsReview:[{action:n.render(n.reports.review),subject:null}],settings:[{action:n.render(n.settings.read),subject:null}],settingsChange:[{action:n.render(n.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),d={en:()=>Promise.resolve().then(()=>require("./en-Tdlz6WoL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-BlaISu0-.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-BntmApbV.js")),tr:()=>Promise.resolve().then(()=>require("./tr-v1mNvsod.js")),ru:()=>Promise.resolve().then(()=>require("./ru-DdjjIy0c.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-_ImAlhp2.js")),pl:()=>Promise.resolve().then(()=>require("./pl-r2tJzCYX.js"))},{displayName:m}=f,j={register(e){e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:b,intlLabel:{id:`${s}.plugin.name`,defaultMessage:m},Component:()=>Promise.resolve().then(()=>require("./index-CgbBtemc.js")),permissions:a.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${m} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-Dz3cg8MA.js")),permissions:a.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async r=>r in d?d[r]().then(({default:t})=>({data:u(c(t),s),locale:r})):{data:u(c({}),s),locale:r}))}};exports.index=j;exports.pluginId=s;exports.pluginPermissions=a;exports.version=v;
|
|
@@ -111,6 +111,10 @@ const e = {
|
|
|
111
111
|
"page.details.actions.thread.modal.update.comment": "Aktualizuj komentarz",
|
|
112
112
|
"page.details.actions.comment.approve.confirmation.success": "Komentarz został zatwierdzony",
|
|
113
113
|
"page.details.actions.comment.reject.confirmation.success": "Komentarz został odrzucony",
|
|
114
|
+
"page.details.actions.comment.delete.confirmation.header": "Moderacja: Usuń komentarz",
|
|
115
|
+
"page.details.actions.comment.delete.confirmation.description": "Czy na pewno chcesz usunąć ten komentarz? Ta akcja jest nieodwracalna.",
|
|
116
|
+
"page.details.actions.comment.delete.confirmation.button.confirm": "Tak, usuń",
|
|
117
|
+
"page.details.actions.comment.delete.confirmation.button.cancel": "Anuluj",
|
|
114
118
|
"page.details.filters.label": "Widok",
|
|
115
119
|
"page.details.filters.removed.visibility": "Pokaż usunięte komentarze",
|
|
116
120
|
"page.coming.soon": "Oczekuj...",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={"plugin.name":"Komentarze","plugin.section":"Plugin komentarzy","plugin.section.item":"Konfiguracja","common.button.back":"Powrót","nav.header.moderation":"Moderacja","nav.header.settings":"Ustawienia","nav.item.updates":"Aktualizacje","nav.item.discover":"Odkryj","nav.item.reports":"Raporty","nav.item.settings":"Ustawienia","page.auth.noAccess":"Brak dostępu","page.auth.not.allowed":"Ups! Wygląda na to, że nie masz dostępu do tej strony...","page.common.item.status.OPEN":"Otwarty","page.common.item.status.PENDING":"Oczekujący","page.common.item.status.BLOCKED":"Zablokowany","page.common.item.status.APPROVED":"Zatwierdzony","page.common.item.status.RESOLVED":"Rozwiązany","page.common.item.status.TO_REVIEW":"Do przeglądu ({count, number})","page.common.item.status.REJECTED":"Odrzucony","page.common.item.status.REMOVED":"Usunięty przez autora","page.common.item.status.setFilter":"Wybierz status...","page.updates.header":"Ostatnie aktualizacje","page.discover.header":"Odkryj wątki","page.discover.header.count":"{count} znalezionych wpisów","page.discover.table.header.id":"ID","page.discover.table.header.author":"Autor","page.discover.table.header.author.email":"Adres e-mail nie podany","page.discover.table.header.message":"Wiadomość","page.discover.table.header.thread":"Wątek","page.discover.table.header.entry":"Wpis","page.discover.table.header.lastUpdate":"Ostatnia aktualizacja","page.discover.table.header.status":"Status","page.discover.table.header.actions":"Akcje","page.discover.table.cell.thread":"Komentarz #{id}","page.discover.table.action.display":"Wyświetl","page.discover.table.action.reports":"Raporty","page.discover.table.empty":"Nie masz jeszcze żadnych komentarzy.","page.discover.table.empty.search":"Brak komentarzy pasujących do wyszukiwania.","page.discover.table.filters":"Filtrowanie","page.discover.table.reports.review":"Przejrzyj raporty","page.reports.header":"Rozwiązywanie raportów","page.reports.table.empty":"Nie masz jeszcze żadnych raportów.","page.reports.table.empty.search":"Brak raportów pasujących do wyszukiwania.","page.reports.table.header.id":"ID","page.reports.table.header.reason":"Powód","page.reports.table.header.content":"Treść","page.reports.table.header.status":"Status","page.reports.table.header.issueDate":"Data zgłoszenia","page.reports.table.header.relatedComment":"Powiązany komentarz","page.reports.table.header.actions":"Akcje","page.reports.table.cell.action.resolve":"Rozwiązane","page.reports.table.cell.action.block":"Blokuj","page.details.header":"Panel dyskusji","page.details.header.description":"Przegłądaj i zarządzaj dyskusją dotyczącą obiektu","page.details.header.description.empty":"Ten wpis został usunięty","page.details.panel.discussion":"Dyskusja","page.details.panel.discussion.nav.drilldown":"Przewijaj w dół","page.details.panel.discussion.nav.back":"Powrót na górę","page.details.panel.discussion.warnings.reports.description":"otwarte raporty","page.details.panel.discussion.warnings.reports.review":"Przeglądaj","page.details.panel.discussion.warnings.reports.dialog.list":"Raporty","page.details.panel.discussion.warnings.reports.dialog.header":"Moderacja: Przeglądaj otwarte raporty","page.details.panel.discussion.warnings.reports.dialog.selectAll":"Zaznacz wszystkie wpisy","page.details.panel.discussion.warnings.reports.dialog.select":"Wybierz obiekt","page.details.panel.discussion.warnings.reports.dialog.reason":"Powód","page.details.panel.discussion.warnings.reports.dialog.reason.BAD_LANGUAGE":"Nieodpowiedni język","page.details.panel.discussion.warnings.reports.dialog.reason.DISCRIMINATION":"Dyskryminacja","page.details.panel.discussion.warnings.reports.dialog.reason.OTHER":"Inny","page.details.panel.discussion.warnings.reports.dialog.content":"Zawartość","page.details.panel.discussion.warnings.reports.dialog.createdAt":"Data zgłoszenia","page.details.panel.discussion.warnings.reports.dialog.status":"Status","page.details.panel.discussion.warnings.reports.dialog.status.OPEN":"Otwarte","page.details.panel.discussion.warnings.reports.dialog.status.RESOLVED":"Rozwiązane","page.details.panel.discussion.warnings.reports.dialog.actions":"Akcje","page.details.panel.discussion.warnings.reports.dialog.actions.resolve":"Rozwiąż","page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected":"Rozwiąż raporty ({count})","page.details.panel.discussion.warnings.reports.dialog.confirmation.success":"Otwarty raport został rozwiązany","page.details.panel.discussion.warnings.reports.selected.dialog.confirmation.success":"Otwarte raporty zostały rozwiązane","page.details.panel.discussion.warnings.comments.header":"Moderacja: Przeglądaj zgłoszone komentarze","page.details.panel.discussion.status.blocked":"Zablokowane","page.details.panel.discussion.reply":"Odpowiedz","page.details.panel.discussion.reopen":"Ponowne otwarcie","page.details.panel.discussion.send":"Wyślij odpowiedź moderatora","page.details.actions.comment.post.confirmation":"Komentarz został opublikowany","page.details.actions.comment.update.confirmation":"Komentarz został zaktualizowany","page.details.panel.entity":"Szczegóły obiektu","page.details.panel.status":"Status dyskusji","page.details.panel.status.open":"Otwarta","page.details.panel.status.blocked":"Zablokowana","page.details.panel.status.pending":"Oczekująca","page.details.panel.loading":"Pobieranie informacji o obiekcie...","page.details.actions.comment.block":"Zablokuj komentarz","page.details.actions.comment.block.confirmation.header":"Moderacja: Zablokuj komentarz","page.details.actions.comment.block.confirmation.description":"Czy na pewno chcesz zablokować ten komentarz?","page.details.actions.comment.block.confirmation.button.confirm":"Tak, zablokuj","page.details.actions.comment.block.confirmation.success":"Komentarz został zablokowany","page.details.actions.comment.unblock":"Odblokuj komentarz","page.details.actions.comment.unblock.confirmation.success":"Komentarz został odblokowany","page.details.actions.comment.delete":"Usuń komentarz","page.details.actions.comment.delete.confirmation.success":"Komentarz został usunięty","page.details.actions.comment.reports.review":"Przeglądaj","page.details.actions.thread.block":"Zablokuj wątek","page.details.actions.thread.block.confirmation.header":"Moderacja: Zablokuj wątek","page.details.actions.thread.block.confirmation.description":"Czy na pewno chcesz zablokować cały wątek? Nie będą możliwe dalsze dyskusje.","page.details.actions.thread.block.confirmation.button.confirm":"Tak, zablokuj","page.details.actions.thread.block.confirmation.success":"Wątek został zablokowany","page.details.actions.thread.unblock":"Odblokuj wątek","page.details.actions.thread.unblock.confirmation.success":"Wątek został odblokowany","page.details.actions.thread.modal.start.thread":"Rozpocznij wątek","page.details.actions.thread.modal.update.comment":"Aktualizuj komentarz","page.details.actions.comment.approve.confirmation.success":"Komentarz został zatwierdzony","page.details.actions.comment.reject.confirmation.success":"Komentarz został odrzucony","page.details.actions.comment.delete.confirmation.header":"Moderacja: Usuń komentarz","page.details.actions.comment.delete.confirmation.description":"Czy na pewno chcesz usunąć ten komentarz? Ta akcja jest nieodwracalna.","page.details.actions.comment.delete.confirmation.button.confirm":"Tak, usuń","page.details.actions.comment.delete.confirmation.button.cancel":"Anuluj","page.details.filters.label":"Widok","page.details.filters.removed.visibility":"Pokaż usunięte komentarze","page.coming.soon":"Oczekuj...","page.settings":"Ustawienia","page.settings.header.title":"Komentarze","page.settings.header.description":"Skonfiguruj możliwości moderacji komentarzy","page.settings.actions.submit":"Zapisz","page.settings.actions.restore":"Przywróć domyślne ustawienia","page.settings.actions.restart":"Uruchom ponownie Strapi","page.settings.section.general":"Konfiguracja ogólna","page.settings.section.additional":"Dodatkowa konfiguracja","page.settings.section.client":"Konfiguracja portalu klienta","page.settings.section.restore":"Przywróć domyślne ustawienia","page.settings.section.restore.subtitle":"Odrzucanie wszystkich zastosowanych ustawień i powrót do domyślnych ustawień wtyczki. Używaj rozsądnie.","page.settings.form.enabledCollections.label":"Włącz komentarze tylko dla","page.settings.form.enabledCollections.placeholder":"Wybierz jedną lub więcej kolekcji","page.settings.form.enabledCollections.hint":"Jeśli żadna nie jest wybrana, wszystkie typy zawartości będą włączone","page.settings.form.contentTypesSettings.label":"Typy zawartości","page.settings.form.contentTypesSettings.tooltip":"Konfiguracja niestandardowa dla każdego typu zawartości","page.settings.form.moderatorRoles.label":"Wysyłaj istotne powiadomienia do","page.settings.form.moderatorRoles.placeholder":"Wybierz jedną lub więcej ról","page.settings.form.moderatorRoles.hint":"Role, które otrzymają powiadomienia od wtyczki dotyczące istotnych działań do wykonania","page.settings.form.badWords.label":"Filtrowanie nieodpowiednich słów","page.settings.form.badWords.hint":"Jeśli jest włączone, każdy post / aktualizacja komentarza będzie sprawdzany pod kątem nieodpowiedniego języka","page.settings.form.gqlAuth.label":"Autoryzacja zapytań GraphQL","page.settings.form.gqlAuth.hint":"Jeśli jest włączone, zapytania i mutacje interfejsu API GraphQL mogą być wywoływane tylko przez uwierzytelnionych użytkowników Strapi. W przeciwnym razie API pozostaje otwarte.","page.settings.form.approvalFlow.label":"Przebieg zatwierdzania","page.settings.form.approvalFlow.hint":'Komentarze powiązane z typem zawartości "{name}" będą podlegały ręcznemu procesowi zatwierdzania',"page.settings.form.entryLabel.label":"Pola tytułu","page.settings.form.entryLabel.placeholder":"Wybierz co najmniej jedno pole lub pozostaw puste, aby zastosować domyślne wartości","page.settings.form.entryLabel.hint":'Jeśli zostanie puste, generowanie tytułu będzie korzystać z następujących pól w kolejności: "Tytuł", "Temat" i "Nazwa"',"page.settings.form.client.url.label":"URL portalu","page.settings.form.client.url.hint":"Adres URL, pod którym dostępny jest twój portal klienta","page.settings.form.client.email.label":"E-mail do komunikacji","page.settings.form.client.email.hint":"Adres e-mail używany do wysyłania wiadomości, komunikacji z użytkownikami w imieniu zespołu portalu","page.settings.actions.restore.confirmation.header":"Przywróć domyślną konfigurację","page.settings.actions.restore.confirmation.description":"Zamierzasz przywrócić konfigurację wtyczki do domyślnych wartości. Może to spowodować utratę danych zgromadzonych wcześniej. Czy na pewno chcesz kontynuować?","page.settings.actions.restore.confirmation.button.confirm":"Tak, chcę przywrócić","page.settings.actions.restart.alert.title":"Strapi wymaga restartu","page.settings.actions.restart.alert.description":"Wprowadziłeś zmiany w konfiguracji, które wymagają ponownego uruchomienia Twojej aplikacji Strapi, aby zaczęły obowiązywać w schemacie GraphQL. Zrób to ręcznie lub użyj poniższego wyzwalacza.","page.settings.actions.restart.alert.close":"Anuluj","page.settings.notification.fetch.error":"Nie udało się pobrać konfiguracji. Ponawianie próby...","page.settings.notification.submit.success":"Konfiguracja została pomyślnie zapisana","page.settings.notification.submit.error":"Nie udało się zapisać konfiguracji. Spróbuj ponownie.","page.settings.notification.restore.success":"Konfiguracja została pomyślnie przywrócona","page.settings.notification.restore.error":"Nie udało się przywrócić konfiguracji. Spróbuj ponownie.","page.settings.notification.restart.success":"Aplikacja została pomyślnie uruchomiona ponownie","page.settings.notification.restart.error":"Nie udało się uruchomić aplikacji ponownie. Spróbuj zrobić to ręcznie.","page.settings.loading":"Pobieranie konfiguracji...","page.settings.form.author.blockedProps.label":"Zablokowane dane autora","page.settings.form.author.blockedProps.hint":"Określone właściwości zostaną filtrowane z danych autora (oddzielone przecinkiem)","components.confirmation.dialog.header":"Potwierdzenie","components.confirmation.dialog.description":"Czy na pewno chcesz wykonać tę czynność?","components.confirmation.dialog.button.confirm":"Tak, chcę","components.confirmation.dialog.button.cancel":"Anuluj","components.toogle.enabled":"Włączone","components.toogle.disabled":"Wyłączone","components.author.unknown":"Autor usunięty","components.reason.unknown":"Nie podano przyczyny","components.content.unknown":"Nie podano treści","components.notAccessPage.back":"Powrót do strony głównej","customField.comments.label":"Komentarze","customField.comments.description":"Określ parametry zapytania dla komentarzy","customField.comments.input.commentsNumber.label":"Liczba komentarzy","customField.comments.input.renderType.label":"Wyświetlanie komentarzy jako","customField.comments.input.renderType.option.tree.label":"Drzewo","customField.comments.input.renderType.option.flat.label":"Płaska lista","customField.comments.input.sortByDate.label":"Sortuj według daty utworzenia","customField.comments.input.sortByDate.option.asc.label":"Rosnąco","customField.comments.input.sortByDate.option.desc.label":"Malejąco","customField.comments.input.filterBy.label":"Filtruj według","customField.comments.input.filterBy.option.dateCreated.label":"Data utworzenia","customField.comments.input.filterBy.option.dateCreated.label.details.label":"Podaj datę","customField.comments.input.filterBy.option.approvalStatus.label":"Status zatwierdzenia","customField.comments.input.filterBy.option.approvalStatus.label.details.label":"Określ status","customField.comments.input.filterBy.option.approvalStatus.option.pending.label":"Oczekujący","customField.comments.input.filterBy.option.approvalStatus.option.approved.label":"Zatwierdzony","customField.comments.input.filterBy.option.approvalStatus.option.rejected.label":"Odrzucony","customField.comments.input.populate.label":"Uzupełnienie","customField.comments.input.populate.author.label":"Uzupełnij pole autora","customField.comments.input.populate.avatar.label":"Uzupełnij pole awatara","success.approveItem":"Komentarz został zatwierdzony","success.rejectItem":"Komentarz został odrzucony"};exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={"plugin.name":"Comentários","plugin.section":"plugin de comentários","plugin.section.item":"Configurações","common.button.back":"Voltar","nav.header.moderation":"Moderação","nav.header.settings":"Configurações","nav.item.updates":"Updates","nav.item.discover":"Descobrir","nav.item.reports":"Reports","nav.item.settings":"Configurações","page.common.item.status.OPEN":"Abrir","page.common.item.status.PENDING":"Pendente","page.common.item.status.BLOCKED":"Bloqueado","page.common.item.status.APPROVED":"Aprovado","page.common.item.status.TO_REVIEW":"Para revisar ({count, number})","page.common.item.status.REJECTED":"Rejeitado","page.common.item.status.REMOVED":"Removido pelo autor","page.common.item.status.setFilter":"Definir status...","page.updates.header":"Atualizações recentes","page.discover.header":"Descubra tópicos","page.discover.header.count":"{count} entries found","page.discover.table.header.id":"ID","page.discover.table.header.author":"Autor","page.discover.table.header.author.email":"E-mail não fornecido","page.discover.table.header.message":"Messagem","page.discover.table.header.thread":"Thread of","page.discover.table.header.entry":"Entry","page.discover.table.header.lastUpdate":"Ultima atualização","page.discover.table.header.status":"Status","page.discover.table.header.actions":"Actions","page.discover.table.cell.thread":"Comentário #{id}","page.discover.table.action.display":"Display","page.discover.table.action.reports":"Reports","page.discover.table.empty":"Você ainda não tem comentários.","page.discover.table.empty.search":"Nenhum comentário corresponde à pesquisa.","page.discover.table.filters":"Filtrando","page.discover.table.reports.review":"Review reports","page.details.header":"Painel de discussão","page.details.header.description":"Pesquise e gerencie a discussão relacionada à entidade","page.details.header.description.empty":"Esta entrada foi excluída","page.details.panel.discussion":"Discussão","page.details.panel.discussion.nav.drilldown":"Pesquisa detalhada","page.details.panel.discussion.nav.back":"Ir para o topo","page.details.panel.discussion.warnings.reports.description":"Abrir reports","page.details.panel.discussion.warnings.reports.review":"Review","page.details.panel.discussion.warnings.reports.dialog.list":"Reports","page.details.panel.discussion.warnings.reports.dialog.header":"Moderation: Review open reports","page.details.panel.discussion.warnings.reports.dialog.selectAll":"Selecione todas as entradas","page.details.panel.discussion.warnings.reports.dialog.select":"Selecionar entidade","page.details.panel.discussion.warnings.reports.dialog.reason":"Razão","page.details.panel.discussion.warnings.reports.dialog.reason.BAD_LANGUAGE":"Linguagem imprópria","page.details.panel.discussion.warnings.reports.dialog.reason.DISCRIMINATION":"Discrimination","page.details.panel.discussion.warnings.reports.dialog.reason.OTHER":"Outros","page.details.panel.discussion.warnings.reports.dialog.content":"Conteúdo","page.details.panel.discussion.warnings.reports.dialog.createdAt":"Issue date","page.details.panel.discussion.warnings.reports.dialog.status":"Status","page.details.panel.discussion.warnings.reports.dialog.status.OPEN":"Aberto","page.details.panel.discussion.warnings.reports.dialog.status.RESOLVED":"Resolvido","page.details.panel.discussion.warnings.reports.dialog.actions":"Ações","page.details.panel.discussion.warnings.reports.dialog.actions.resolve":"Resolver","page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected":"Resolver relatórios ({count})","page.details.panel.discussion.warnings.reports.dialog.confirmation.success":"O relatório aberto foi resolvido","page.details.panel.discussion.warnings.reports.selected.dialog.confirmation.success":"Os relatórios abertos foram resolvidos","page.details.actions.comment.delete.confirmation.header":"Moderação: Excluir comentário","page.details.actions.comment.delete.confirmation.description":"Você realmente deseja excluir este comentário? Esta ação é irreversível.","page.details.actions.comment.delete.confirmation.button.confirm":"Sim, exclua","page.details.actions.comment.delete.confirmation.button.cancel":"Cancelar","page.details.panel.discussion.status.blocked":"Bloqueado","page.details.panel.entity":"Entity details","page.details.panel.status":"Discussion is","page.details.panel.status.open":"Open","page.details.panel.status.blocked":"Bloqueado","page.details.panel.status.pending":"Pendente","page.details.panel.loading":"Fetching entity...","page.details.actions.comment.block":"Bloquear comentário","page.details.actions.comment.block.confirmation.header":"Moderação: Bloquear comentário","page.details.actions.comment.block.confirmation.description":"Deseja mesmo bloquear este comentário?","page.details.actions.comment.block.confirmation.button.confirm":"Sim, bloqueie","page.details.actions.comment.block.confirmation.success":"O comentário foi bloqueado","page.details.actions.comment.unblock":"Desbloquear comentário","page.details.actions.comment.unblock.confirmation.success":"O comentário foi desbloqueado","page.details.actions.comment.reports.review":"Análise","page.details.actions.thread.block":"Bloquear thread","page.details.actions.thread.block.confirmation.header":"Moderação: Bloquear thread","page.details.actions.thread.block.confirmation.description":"Você realmente quer bloquear todo o thread? Nenhuma outra discussão será permitida.","page.details.actions.thread.block.confirmation.button.confirm":"Sim, bloqueie","page.details.actions.thread.block.confirmation.success":"A thread foi bloqueada","page.details.actions.thread.unblock":"Desbloquear thread","page.details.actions.thread.unblock.confirmation.success":"A Thread foi desbloqueado","page.details.actions.comment.approve.confirmation.success":"O comentário foi aprovado","page.details.actions.comment.reject.confirmation.success":"O comentário foi rejeitado","page.details.filters.label":"View","page.details.filters.removed.visibility":"Mostrar comentários removidos","page.coming.soon":"Aguarde o que está por vir...","page.settings":"Configurações","page.settings.header.title":"Comentários","page.settings.header.description":"Configure seus recursos de moderação de comentários","page.settings.actions.submit":"Salvar","page.settings.actions.restore":"Restaurar configurações originais","page.settings.actions.restart":"Restart Strapi","page.settings.section.general":"Configurações gerais","page.settings.section.additional":"Configurações adicionais","page.settings.section.client":"Configurações do portal do cliente","page.settings.section.restore":"Restaurar configurações originais","page.settings.section.restore.subtitle":"Descartando todas as configurações aplicadas e voltando para as configurações padrão do plugin. Use razoável.","page.settings.form.enabledCollections.label":"Ativar comentários apenas para","page.settings.form.enabledCollections.placeholder":"Selecione uma ou mais collection","page.settings.form.enabledCollections.hint":"Se nenhum for selecionado, todos os tipos de conteúdo serão habilitados","page.settings.form.contentTypesSettings.label":"Tipos de conteúdo","page.settings.form.contentTypesSettings.tooltip":"Configuração personalizada por tipo de conteúdo","page.settings.form.moderatorRoles.label":"Envie notificações importantes para","page.settings.form.moderatorRoles.placeholder":"Selecione um ou mais Roles","page.settings.form.moderatorRoles.hint":"Roles que serão notificadas pelo plugin sobre ações significativas a serem executadas","page.settings.form.badWords.label":"Filtragem de palavrões","page.settings.form.badWords.hint":"Se ativado, todas as postagens/atualizações de comentários serão verificadas em relação a palavras impróprias","page.settings.form.gqlAuth.label":"GraphQL queries authorization","page.settings.form.gqlAuth.hint":"Se ativado, as queries e mutations da API GraphQL podem ser acionadas apenas por usuários autenticados do Strapi. Caso contrário, a API permanece aberta.","page.settings.form.approvalFlow.label":"Fluxo de aprovação","page.settings.form.approvalFlow.hint":'Os comentários associados ao tipo de conteúdo "{name}" passarão pelo fluxo de aprovação manual',"page.settings.form.entryLabel.label":"Campos de título","page.settings.form.entryLabel.placeholder":"Selecione pelo menos um ou deixe em branco para aplicar os padrões","page.settings.form.entryLabel.hint":'Se deixado em branco, a renderização do título terá os seguintes campos ordenados: "Title", "Subject" & "Name"',"page.settings.form.client.url.label":"Portal URL","page.settings.form.client.url.hint":"URL onde seu portal do cliente está disponível","page.settings.form.client.email.label":"Email de comunicação","page.settings.form.client.email.hint":"Endereço de e-mail usado para correspondências, comunicação com usuários em nome da equipe do portal","page.settings.actions.restore.confirmation.header":"Restaurar a configuração padrão","page.settings.actions.restore.confirmation.description":"Você está prestes a restaurar a configuração do plug-in para seus valores padrão. Pode ter um impacto destrutivo no conteúdo já coletado. Você realmente quer continuar?","page.settings.actions.restore.confirmation.button.confirm":"Sim, quero restaurar","page.settings.actions.restart.alert.title":"Strapi requer reinicialização","page.settings.actions.restart.alert.description":"Você fez uma alteração de configuração que exige que seu aplicativo Strapi seja reiniciado para ter efeito no schema do GraphQL. Faça isso manualmente ou usando o trigger abaixo.","page.settings.actions.restart.alert.close":"Descartar","page.settings.notification.fetch.error":"Falha ao buscar a configuração. Tentando novamente...","page.settings.notification.submit.success":"A configuração foi salva com sucesso","page.settings.notification.submit.error":"Falha ao salvar a configuração. Tente novamente.","page.settings.notification.restore.success":"A configuração foi restaurada com sucesso","page.settings.notification.restore.error":"Falha ao restaurar a configuração. Tente novamente.","page.settings.notification.restart.success":"O aplicativo foi reiniciado com sucesso","page.settings.notification.restart.error":"Falha ao reiniciar seu aplicativo. Tente fazer manualmente.","page.settings.loading":"Buscando configuração...","components.confirmation.dialog.header":"Confirmação","components.confirmation.dialog.description":"Você realmente deseja realizar esta ação?","components.confirmation.dialog.button.confirm":"Sim eu quero","components.confirmation.dialog.button.cancel":"Cancelar","components.toogle.enabled":"Habilitado","components.toogle.disabled":"Desabilitado","components.author.unknown":"Autor removido","success.approveItem":"O comentário foi aprovado","success.rejectItem":"O comentário foi rejeitado"};exports.default=e;
|
|
@@ -62,6 +62,10 @@ const e = {
|
|
|
62
62
|
"page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected": "Resolver relatórios ({count})",
|
|
63
63
|
"page.details.panel.discussion.warnings.reports.dialog.confirmation.success": "O relatório aberto foi resolvido",
|
|
64
64
|
"page.details.panel.discussion.warnings.reports.selected.dialog.confirmation.success": "Os relatórios abertos foram resolvidos",
|
|
65
|
+
"page.details.actions.comment.delete.confirmation.header": "Moderação: Excluir comentário",
|
|
66
|
+
"page.details.actions.comment.delete.confirmation.description": "Você realmente deseja excluir este comentário? Esta ação é irreversível.",
|
|
67
|
+
"page.details.actions.comment.delete.confirmation.button.confirm": "Sim, exclua",
|
|
68
|
+
"page.details.actions.comment.delete.confirmation.button.cancel": "Cancelar",
|
|
65
69
|
"page.details.panel.discussion.status.blocked": "Bloqueado",
|
|
66
70
|
"page.details.panel.entity": "Entity details",
|
|
67
71
|
"page.details.panel.status": "Discussion is",
|