strapi-plugin-comments 3.2.3 → 3.2.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/LICENSE.md +18 -4
- package/README.md +379 -26
- package/dist/_chunks/{en-D_SOYUc-.mjs → en-B_ywmALc.mjs} +7 -0
- package/dist/_chunks/en-CTX-vxI-.js +1 -0
- package/dist/_chunks/fr-CJZ1I0cO.js +1 -0
- package/dist/_chunks/{fr-D-buWSlG.mjs → fr-CzgABcR9.mjs} +7 -0
- package/dist/_chunks/{index-B0yEw22H.mjs → index-2HqVa6_n.mjs} +11304 -12128
- package/dist/_chunks/index-BFzHCJ8V.mjs +5959 -0
- package/dist/_chunks/index-BYQzi_fP.js +44 -0
- package/dist/_chunks/{index-Cw0IIXkV.js → index-Cfy8GjIN.js} +134 -91
- package/dist/_chunks/{index-DKj3j1po.mjs → index-D8SWUMcR.mjs} +45 -23
- package/dist/_chunks/index-DXgb05uJ.js +1 -0
- package/dist/_chunks/{index-BuR0AJ4i.mjs → index-W9svnX5A.mjs} +185 -146
- package/dist/_chunks/index-hBG5i5nT.js +5 -0
- package/dist/_chunks/{pl-a5516Yys.mjs → pl-Ca-o0rE-.mjs} +7 -0
- package/dist/_chunks/pl-clljrMvo.js +1 -0
- package/dist/_chunks/pt-BR-DV48_kX8.js +1 -0
- package/dist/_chunks/{pt-BR-DwEywOda.mjs → pt-BR-XHO5Olrb.mjs} +7 -0
- package/dist/_chunks/ru-BK78F2Vt.js +1 -0
- package/dist/_chunks/{ru-72L1_BWN.mjs → ru-zKH0YOjJ.mjs} +7 -0
- package/dist/_chunks/tr-BMe1cFKp.js +1 -0
- package/dist/_chunks/{tr-Ca93Ai2h.mjs → tr-BaczzuT6.mjs} +7 -0
- package/dist/_chunks/{zh-Hans-DXLzMysj.mjs → zh-Hans-CPSQ76Y3.mjs} +7 -0
- package/dist/_chunks/zh-Hans-xMRxrXVG.js +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +67 -58
- package/dist/admin/src/api/schemas.d.ts +169 -2797
- package/dist/admin/src/components/ActionButton/index.d.ts +2 -4
- package/dist/admin/src/components/CommentReactionsSummary/index.d.ts +8 -0
- package/dist/admin/src/components/CommentStatusFilters/index.d.ts +2 -1
- package/dist/admin/src/components/CustomInjectionZone/index.d.ts +6 -0
- package/dist/admin/src/components/CustomInjectionZoneCell/index.d.ts +7 -0
- package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
- package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +3 -3
- package/dist/admin/src/components/IconButtonGroup/index.d.ts +2 -5
- package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +2 -1
- package/dist/admin/src/components/PluginIcon/index.d.ts +2 -1
- package/dist/admin/src/components/ReactionCounter/index.d.ts +7 -0
- package/dist/admin/src/components/ReactionCounter/styled.d.ts +16 -0
- package/dist/admin/src/components/SideNav/index.d.ts +2 -1
- package/dist/admin/src/components/StatusBadge/index.d.ts +3 -5
- package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +2 -2
- package/dist/admin/src/components/Wysiwyg/PreviewWysiwyg.d.ts +2 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +2 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygNav.d.ts +1 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
- package/dist/admin/src/components/icons/comments.d.ts +2 -1
- package/dist/admin/src/components/icons/strapiIcons.d.ts +2 -1
- package/dist/admin/src/contexts/UserContext.d.ts +7 -7
- package/dist/admin/src/hooks/useAPI.d.ts +74 -65
- package/dist/admin/src/hooks/useCommentMutations.d.ts +18 -18
- package/dist/admin/src/hooks/useCommentsAll.d.ts +8 -6
- package/dist/admin/src/hooks/useConfig.d.ts +2 -0
- package/dist/admin/src/hooks/useReactionCounts.d.ts +2 -0
- package/dist/admin/src/hooks/useReactionTypes.d.ts +8 -0
- package/dist/admin/src/hooks/useReports.d.ts +13 -11
- package/dist/admin/src/hooks/useUserContext.d.ts +7 -7
- package/dist/admin/src/pages/AiEvaluations/index.d.ts +2 -0
- package/dist/admin/src/pages/App/index.d.ts +2 -1
- package/dist/admin/src/pages/Details/DetailsEntry.d.ts +2 -1
- package/dist/admin/src/pages/Discover/index.d.ts +2 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +9 -7
- package/dist/admin/src/pages/Settings/index.d.ts +2 -1
- package/dist/admin/src/translations/en.d.ts +7 -0
- package/dist/admin/src/translations/fr.d.ts +7 -0
- package/dist/admin/src/translations/pl.d.ts +199 -192
- package/dist/admin/src/translations/pt-BR.d.ts +7 -0
- package/dist/admin/src/translations/ru.d.ts +7 -0
- package/dist/admin/src/translations/tr.d.ts +7 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +7 -0
- package/dist/admin/src/utils/functions.d.ts +3 -0
- package/dist/admin/src/utils/reactionsIntegration.d.ts +24 -0
- package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +1 -1
- package/dist/admin/src/utils/resolveReportStatusColor.d.ts +1 -1
- package/dist/server/index.js +69 -88
- package/dist/server/index.mjs +9714 -7520
- package/dist/server/src/config/index.d.ts +37 -112
- package/dist/server/src/const/REPORT_SOURCE.d.ts +4 -0
- package/dist/server/src/const/index.d.ts +1 -0
- package/dist/server/src/content-types/index.d.ts +7 -0
- package/dist/server/src/content-types/report/index.d.ts +7 -0
- package/dist/server/src/content-types/report/schema.d.ts +8 -1
- package/dist/server/src/controllers/admin.controller.d.ts +920 -888
- package/dist/server/src/controllers/client.controller.d.ts +1595 -709
- package/dist/server/src/controllers/index.d.ts +2784 -6208
- package/dist/server/src/controllers/settings.controller.d.ts +110 -94
- package/dist/server/src/graphql/getResolversConfig.d.ts +33 -0
- package/dist/server/src/graphql/mutations/getApproveComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getBlockComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getBlockCommentThread.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +81 -78
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +74 -72
- package/dist/server/src/graphql/mutations/getRejectComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +74 -72
- package/dist/server/src/graphql/mutations/getResolveAbuseReport.d.ts +25 -0
- package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForComment.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForThread.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getResolveCommentMultipleAbuseReports.d.ts +17 -0
- package/dist/server/src/graphql/mutations/getResolveMultipleAbuseReports.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getUnblockComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getUnblockCommentThread.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +74 -72
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +162 -155
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +9 -1
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +161 -154
- package/dist/server/src/graphql/types/getCommentReactionCount.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentReactionsMetaEntry.d.ts +2 -0
- package/dist/server/src/graphql/types/getModerateCommentInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportsResolveBatch.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveAbuseReportInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveCommentMultipleAbuseReportsInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveMultipleAbuseReportsInput.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +17 -35339
- package/dist/server/src/repositories/report.comment.repository.d.ts +87 -83
- package/dist/server/src/repositories/store.repository.d.ts +144 -124
- package/dist/server/src/services/admin/admin.service.d.ts +14597 -8230
- package/dist/server/src/services/client.service.d.ts +11410 -7681
- package/dist/server/src/services/common.service.d.ts +3546 -469
- package/dist/server/src/services/email.service.d.ts +11 -0
- package/dist/server/src/services/index.d.ts +17 -27339
- package/dist/server/src/services/reactions.service.d.ts +11976 -0
- package/dist/server/src/services/settings.service.d.ts +85 -73
- package/dist/server/src/services/utils/functions.d.ts +2 -2
- package/dist/server/src/services/utils/reactions.d.ts +12 -0
- package/dist/server/src/utils/constants.d.ts +1 -0
- package/dist/server/src/utils/getConfig.d.ts +1 -1
- package/dist/server/src/utils/getPluginService.d.ts +1 -1
- package/dist/server/src/utils/types.d.ts +5 -3
- package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +234 -1322
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +2051 -2013
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +15 -13
- package/dist/server/src/validators/repositories/comment.schema.d.ts +15 -439
- package/dist/server/src/validators/repositories/comment.validator.d.ts +240 -7397
- package/dist/server/src/validators/repositories/reports.validator.d.ts +89 -2940
- package/dist/server/src/validators/repositories/utils.d.ts +5 -13
- package/dist/server/src/validators/utils.d.ts +164 -1875
- package/dist/shared/constants.d.ts +1 -0
- package/package.json +40 -48
- package/dist/_chunks/en-D55DewfG.js +0 -1
- package/dist/_chunks/fr-BJBWOa1O.js +0 -1
- package/dist/_chunks/index-Bi2NGQAJ.mjs +0 -5682
- package/dist/_chunks/index-DQDKR2VV.js +0 -1
- package/dist/_chunks/index-EP5RzAx9.js +0 -44
- package/dist/_chunks/index-k6CsdDOQ.js +0 -5
- 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/tr-B2Tw9kcB.js +0 -1
- package/dist/_chunks/zh-Hans-Cp3JcN8q.js +0 -1
|
@@ -1,72 +1,83 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Check as
|
|
4
|
-
import { useNotification as
|
|
5
|
-
import { useMutation as
|
|
6
|
-
import { u as
|
|
7
|
-
import { useMemo as
|
|
8
|
-
import
|
|
9
|
-
import { v as
|
|
10
|
-
const
|
|
11
|
-
children:
|
|
1
|
+
import { jsx as e, Fragment as V, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Button as P, Flex as F, Typography as h, Badge as ae, Box as m, Grid as s, Field as n, MultiSelect as T, MultiSelectOption as A, Accordion as y, Switch as ce, Toggle as v, Alert as de } from "@strapi/design-system";
|
|
3
|
+
import { Check as ge, Play as he, ArrowClockwise as j } from "@strapi/icons";
|
|
4
|
+
import { useNotification as pe, Page as N, Layouts as D, Form as me } from "@strapi/strapi/admin";
|
|
5
|
+
import { useMutation as k, useQuery as M, useQueryClient as ue } from "@tanstack/react-query";
|
|
6
|
+
import { u as G, f as be, a as fe, g as t, l as O, e as ye } from "./index-BFzHCJ8V.mjs";
|
|
7
|
+
import { useMemo as we, useRef as Se, useState as Ie, useCallback as U } from "react";
|
|
8
|
+
import Re from "styled-components";
|
|
9
|
+
import { v as Ce } from "./index-D8SWUMcR.mjs";
|
|
10
|
+
const x = ({
|
|
11
|
+
children: d,
|
|
12
12
|
condition: a
|
|
13
|
-
}) => a ? /* @__PURE__ */ e(
|
|
14
|
-
const a =
|
|
13
|
+
}) => a ? /* @__PURE__ */ e(V, { children: d }) : null, Le = (d = {}) => {
|
|
14
|
+
const a = G(), w = k({
|
|
15
15
|
mutationFn: a.settings.update,
|
|
16
|
-
onSuccess:
|
|
17
|
-
onError:
|
|
18
|
-
}), p =
|
|
16
|
+
onSuccess: d.updateSettingsMutationSuccess,
|
|
17
|
+
onError: d.updateSettingsMutationError
|
|
18
|
+
}), p = k({
|
|
19
19
|
mutationFn: a.settings.restore,
|
|
20
|
-
onSuccess:
|
|
21
|
-
onError:
|
|
22
|
-
}),
|
|
20
|
+
onSuccess: d.restoreSettingsMutationSuccess,
|
|
21
|
+
onError: d.restoreSettingsMutationError
|
|
22
|
+
}), S = k({
|
|
23
23
|
mutationFn: a.settings.restart,
|
|
24
|
-
onSuccess:
|
|
25
|
-
onError:
|
|
26
|
-
}), u =
|
|
24
|
+
onSuccess: d.restartStrapiMutationSuccess,
|
|
25
|
+
onError: d.restartStrapiMutationError
|
|
26
|
+
}), u = M({
|
|
27
27
|
queryKey: a.config.getKey(),
|
|
28
28
|
queryFn: a.config.query
|
|
29
|
-
}), b =
|
|
29
|
+
}), b = M({
|
|
30
30
|
queryKey: a.contentTypeBuilder.all.getKey(),
|
|
31
31
|
queryFn: a.contentTypeBuilder.all.query
|
|
32
|
-
}), f =
|
|
32
|
+
}), f = M({
|
|
33
33
|
queryKey: a.roles.getKey(),
|
|
34
34
|
queryFn: a.roles.query
|
|
35
35
|
});
|
|
36
|
-
return
|
|
36
|
+
return we(() => ({
|
|
37
37
|
config: u,
|
|
38
38
|
collectionTypes: b,
|
|
39
39
|
roles: f,
|
|
40
40
|
restoreSettingsMutation: p,
|
|
41
|
-
updateSettingsMutation:
|
|
42
|
-
restartStrapiMutation:
|
|
41
|
+
updateSettingsMutation: w,
|
|
42
|
+
restartStrapiMutation: S
|
|
43
43
|
}), [
|
|
44
44
|
u,
|
|
45
45
|
f,
|
|
46
46
|
b,
|
|
47
47
|
p,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
w,
|
|
49
|
+
S
|
|
50
50
|
]);
|
|
51
|
-
},
|
|
51
|
+
}, Fe = Ce, E = {
|
|
52
52
|
background: "neutral0",
|
|
53
53
|
hasRadius: !0,
|
|
54
54
|
shadow: "filterShadow",
|
|
55
55
|
padding: 6,
|
|
56
56
|
width: "100%"
|
|
57
|
-
},
|
|
57
|
+
}, xe = Re(de)(() => ({
|
|
58
58
|
"[role]": {
|
|
59
59
|
flexDirection: "column"
|
|
60
60
|
}
|
|
61
|
-
})),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
})), Ee = {
|
|
62
|
+
entryLabel: {},
|
|
63
|
+
approvalFlow: [],
|
|
64
|
+
blockedAuthorProps: [],
|
|
65
|
+
reactionsEnabled: !1,
|
|
66
|
+
enabledCollections: [],
|
|
67
|
+
moderatorRoles: [],
|
|
68
|
+
isReactionsPluginInstalled: !1,
|
|
69
|
+
client: { url: "", contactEmail: "" },
|
|
70
|
+
gql: { auth: !1 },
|
|
71
|
+
badWords: void 0
|
|
72
|
+
}, qe = () => {
|
|
73
|
+
const d = Se(null), { toggleNotification: a } = pe(), [w, p] = Ie(!1), { isLoadingForPermissions: S, canSettingsChange: u } = fe(), b = ue(), f = G(), {
|
|
74
|
+
config: I,
|
|
75
|
+
collectionTypes: R,
|
|
76
|
+
roles: C,
|
|
77
|
+
restoreSettingsMutation: z,
|
|
78
|
+
updateSettingsMutation: H,
|
|
79
|
+
restartStrapiMutation: J
|
|
80
|
+
} = Le({
|
|
70
81
|
restoreSettingsMutationSuccess: () => {
|
|
71
82
|
b.invalidateQueries({
|
|
72
83
|
queryKey: f.config.getKey(),
|
|
@@ -85,76 +96,82 @@ const P = ({
|
|
|
85
96
|
exact: !1
|
|
86
97
|
}), p(!0);
|
|
87
98
|
}
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
}, []),
|
|
91
|
-
(
|
|
92
|
-
|
|
93
|
-
...
|
|
94
|
-
blockedAuthorProps:
|
|
99
|
+
}), X = U(() => {
|
|
100
|
+
d.current?.requestSubmit();
|
|
101
|
+
}, []), Y = U(
|
|
102
|
+
(i) => {
|
|
103
|
+
H.mutate({
|
|
104
|
+
...i,
|
|
105
|
+
blockedAuthorProps: i.blockedAuthorProps.split(",").map((l) => l.trim()),
|
|
106
|
+
reactionsEnabled: i.reactionsEnabled
|
|
95
107
|
});
|
|
96
108
|
},
|
|
97
|
-
[
|
|
98
|
-
);
|
|
99
|
-
if (
|
|
109
|
+
[H]
|
|
110
|
+
), c = I.data ?? Ee, Z = R.data ?? [], K = C.data ?? [];
|
|
111
|
+
if (I.status === "pending" || R.status === "pending" || C.status === "pending" || S)
|
|
100
112
|
return t("page.settings.loading");
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
(I.status === "error" || R.status === "error" || C.status === "error") && (a({
|
|
114
|
+
message: t("page.settings.error"),
|
|
115
|
+
type: "danger"
|
|
116
|
+
}), console.error("Failed to fetch configuration. Please try again later."), console.error(I.error), console.error(R.error), console.error(C.error));
|
|
117
|
+
const q = Z.filter((i) => i.uid.includes("api::")), _ = c.enabledCollections.filter(
|
|
118
|
+
(i) => q.some((l) => l.uid === i)
|
|
119
|
+
), $ = O.isNil(c.badWords) ? !0 : c.badWords, ee = !!c.gql?.auth, te = c.moderatorRoles.filter(
|
|
120
|
+
(i) => K.filter((l) => l.code === i)
|
|
121
|
+
), ne = c.client?.url, oe = c.client?.contactEmail, ie = c.blockedAuthorProps ?? [], re = c.reactionsEnabled ?? !1, se = () => p(!1);
|
|
122
|
+
return /* @__PURE__ */ o(V, { children: [
|
|
123
|
+
/* @__PURE__ */ e(N.Title, { children: "Comments - settings" }),
|
|
124
|
+
/* @__PURE__ */ o(N.Main, { children: [
|
|
109
125
|
/* @__PURE__ */ e(
|
|
110
|
-
|
|
126
|
+
D.Header,
|
|
111
127
|
{
|
|
112
128
|
title: t("page.settings.header.title"),
|
|
113
|
-
subtitle: /* @__PURE__ */
|
|
129
|
+
subtitle: /* @__PURE__ */ o(F, { direction: "row", gap: 3, alignItems: "center", justifyContent: "space-between", children: [
|
|
114
130
|
/* @__PURE__ */ e(h, { variant: "epsilon", textColor: "neutral600", tag: "p", children: t("page.settings.header.description") }),
|
|
115
|
-
/* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e(ae, { color: "neutral", minWidth: "fit-content", children: /* @__PURE__ */ o("span", { style: { textTransform: "none" }, children: [
|
|
116
132
|
"v",
|
|
117
|
-
|
|
133
|
+
Fe
|
|
118
134
|
] }) })
|
|
119
135
|
] }),
|
|
120
|
-
primaryAction: /* @__PURE__ */ e(
|
|
136
|
+
primaryAction: /* @__PURE__ */ e(x, { condition: u, children: /* @__PURE__ */ e(P, { type: "submit", startIcon: /* @__PURE__ */ e(ge, {}), onClick: X, children: t("page.settings.actions.submit") }) })
|
|
121
137
|
}
|
|
122
138
|
),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
|
|
139
|
+
/* @__PURE__ */ o(D.Content, { children: [
|
|
140
|
+
w && /* @__PURE__ */ e(m, { marginBottom: 4, children: /* @__PURE__ */ e(
|
|
141
|
+
xe,
|
|
126
142
|
{
|
|
127
143
|
closeLabel: t("page.settings.actions.restart.alert.close"),
|
|
128
144
|
title: t("page.settings.actions.restart.alert.title"),
|
|
129
|
-
onClose:
|
|
130
|
-
action: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
145
|
+
onClose: se,
|
|
146
|
+
action: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(P, { onClick: J.mutate, startIcon: /* @__PURE__ */ e(he, {}), children: t("page.settings.actions.restart") }) }),
|
|
131
147
|
children: /* @__PURE__ */ e(m, { marginTop: 4, children: t("page.settings.actions.restart.alert.description") })
|
|
132
148
|
}
|
|
133
149
|
) }),
|
|
134
150
|
/* @__PURE__ */ e(
|
|
135
|
-
|
|
151
|
+
me,
|
|
136
152
|
{
|
|
137
153
|
method: "POST",
|
|
138
154
|
width: "auto",
|
|
139
155
|
height: "auto",
|
|
140
|
-
ref:
|
|
141
|
-
onSubmit:
|
|
156
|
+
ref: d,
|
|
157
|
+
onSubmit: Y,
|
|
142
158
|
initialValues: {
|
|
143
|
-
enabledCollections:
|
|
144
|
-
moderatorRoles:
|
|
145
|
-
badWords:
|
|
146
|
-
clientEmail:
|
|
147
|
-
clientUrl:
|
|
148
|
-
gqlAuthEnabled:
|
|
149
|
-
approvalFlow:
|
|
150
|
-
entryLabel:
|
|
151
|
-
blockedAuthorProps:
|
|
159
|
+
enabledCollections: _,
|
|
160
|
+
moderatorRoles: te,
|
|
161
|
+
badWords: $,
|
|
162
|
+
clientEmail: oe,
|
|
163
|
+
clientUrl: ne,
|
|
164
|
+
gqlAuthEnabled: ee,
|
|
165
|
+
approvalFlow: c.approvalFlow,
|
|
166
|
+
entryLabel: c.entryLabel,
|
|
167
|
+
blockedAuthorProps: ie.join(", "),
|
|
168
|
+
reactionsEnabled: re
|
|
152
169
|
},
|
|
153
|
-
children: ({ values:
|
|
154
|
-
/* @__PURE__ */
|
|
170
|
+
children: ({ values: i, onChange: l }) => /* @__PURE__ */ o(F, { gap: 4, direction: "column", children: [
|
|
171
|
+
/* @__PURE__ */ o(m, { ...E, children: [
|
|
155
172
|
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.general") }),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */ e(s.Item, { xs: 12, children: /* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ o(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
174
|
+
/* @__PURE__ */ e(s.Item, { xs: 12, children: /* @__PURE__ */ o(
|
|
158
175
|
n.Root,
|
|
159
176
|
{
|
|
160
177
|
width: "100%",
|
|
@@ -162,58 +179,58 @@ const P = ({
|
|
|
162
179
|
children: [
|
|
163
180
|
/* @__PURE__ */ e(n.Label, { htmlFor: "enabledCollections", children: t("page.settings.form.enabledCollections.label") }),
|
|
164
181
|
/* @__PURE__ */ e(
|
|
165
|
-
|
|
182
|
+
T,
|
|
166
183
|
{
|
|
167
184
|
withTags: !0,
|
|
168
185
|
name: "enabledCollections",
|
|
169
|
-
value:
|
|
170
|
-
onChange: (
|
|
171
|
-
l("enabledCollections",
|
|
186
|
+
value: i.enabledCollections,
|
|
187
|
+
onChange: (r) => {
|
|
188
|
+
l("enabledCollections", r);
|
|
172
189
|
},
|
|
173
|
-
children:
|
|
190
|
+
children: q.map((r) => /* @__PURE__ */ e(A, { value: r.uid, children: r.schema.displayName }, r.uid))
|
|
174
191
|
}
|
|
175
192
|
),
|
|
176
193
|
/* @__PURE__ */ e(n.Hint, {})
|
|
177
194
|
]
|
|
178
195
|
}
|
|
179
196
|
) }),
|
|
180
|
-
|
|
197
|
+
i.enabledCollections.length > 0 && /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ o(s.Root, { gap: 4, width: "100%", children: [
|
|
181
198
|
/* @__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:
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
199
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ e(y.Root, { style: { width: "100%" }, children: O.orderBy(i.enabledCollections).map((r) => {
|
|
200
|
+
const W = q.find((L) => L.uid === r);
|
|
201
|
+
if (W) {
|
|
185
202
|
const {
|
|
186
|
-
schema: { displayName:
|
|
187
|
-
} =
|
|
188
|
-
(g) =>
|
|
203
|
+
schema: { displayName: L, attributes: B }
|
|
204
|
+
} = W, Q = Object.keys(B).filter(
|
|
205
|
+
(g) => B[g].type === "string"
|
|
189
206
|
);
|
|
190
|
-
return /* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */ e(y.Header, { children: /* @__PURE__ */ e(y.Trigger, { children: /* @__PURE__ */ e(h, { variant: "epsilon", as: "h3", children:
|
|
192
|
-
/* @__PURE__ */ e(y.Content, { children: /* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */
|
|
207
|
+
return /* @__PURE__ */ o(y.Item, { value: r, children: [
|
|
208
|
+
/* @__PURE__ */ e(y.Header, { children: /* @__PURE__ */ e(y.Trigger, { children: /* @__PURE__ */ e(h, { variant: "epsilon", as: "h3", children: L }) }) }),
|
|
209
|
+
/* @__PURE__ */ e(y.Content, { children: /* @__PURE__ */ o(s.Root, { padding: 6, gap: 4, children: [
|
|
210
|
+
/* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ o(
|
|
194
211
|
n.Root,
|
|
195
212
|
{
|
|
196
213
|
width: "100%",
|
|
197
214
|
hint: t({
|
|
198
215
|
id: "page.settings.form.approvalFlow.hint",
|
|
199
|
-
props: { name:
|
|
216
|
+
props: { name: L }
|
|
200
217
|
}),
|
|
201
218
|
children: [
|
|
202
219
|
/* @__PURE__ */ e(n.Label, { children: t(
|
|
203
220
|
"page.settings.form.approvalFlow.label"
|
|
204
221
|
) }),
|
|
205
222
|
/* @__PURE__ */ e(
|
|
206
|
-
|
|
223
|
+
ce,
|
|
207
224
|
{
|
|
208
225
|
visibleLabels: !0,
|
|
209
226
|
onLabel: t("components.toogle.enabled"),
|
|
210
227
|
offLabel: t("components.toogle.disabled"),
|
|
211
|
-
checked:
|
|
228
|
+
checked: i.approvalFlow.includes(r),
|
|
212
229
|
onCheckedChange: (g) => {
|
|
213
230
|
l(
|
|
214
231
|
"approvalFlow",
|
|
215
|
-
g ? [...
|
|
216
|
-
(
|
|
232
|
+
g ? [...i.approvalFlow, r] : i.approvalFlow.filter(
|
|
233
|
+
(le) => le !== r
|
|
217
234
|
)
|
|
218
235
|
);
|
|
219
236
|
}
|
|
@@ -223,7 +240,7 @@ const P = ({
|
|
|
223
240
|
]
|
|
224
241
|
}
|
|
225
242
|
) }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
243
|
+
/* @__PURE__ */ e(x, { condition: Q.length > 0, children: /* @__PURE__ */ e(s.Item, { children: /* @__PURE__ */ o(
|
|
227
244
|
n.Root,
|
|
228
245
|
{
|
|
229
246
|
width: "100%",
|
|
@@ -235,21 +252,21 @@ const P = ({
|
|
|
235
252
|
"page.settings.form.entryLabel.label"
|
|
236
253
|
) }),
|
|
237
254
|
/* @__PURE__ */ e(
|
|
238
|
-
|
|
255
|
+
T,
|
|
239
256
|
{
|
|
240
257
|
withTags: !0,
|
|
241
258
|
placeholder: t(
|
|
242
259
|
"page.settings.form.entryLabel.placeholder"
|
|
243
260
|
),
|
|
244
261
|
name: "enabledCollections",
|
|
245
|
-
value:
|
|
262
|
+
value: i.entryLabel[r] ?? [],
|
|
246
263
|
onChange: (g) => {
|
|
247
264
|
l("entryLabel", {
|
|
248
|
-
...
|
|
249
|
-
[
|
|
265
|
+
...i.entryLabel,
|
|
266
|
+
[r]: g
|
|
250
267
|
});
|
|
251
268
|
},
|
|
252
|
-
children:
|
|
269
|
+
children: Q.map((g) => /* @__PURE__ */ e(A, { value: g, children: g }, g))
|
|
253
270
|
}
|
|
254
271
|
),
|
|
255
272
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -257,28 +274,28 @@ const P = ({
|
|
|
257
274
|
}
|
|
258
275
|
) }) })
|
|
259
276
|
] }) })
|
|
260
|
-
] },
|
|
277
|
+
] }, r);
|
|
261
278
|
}
|
|
262
279
|
return null;
|
|
263
280
|
}) }) })
|
|
264
281
|
] }) })
|
|
265
282
|
] })
|
|
266
283
|
] }),
|
|
267
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ o(m, { ...E, children: [
|
|
268
285
|
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.additional") }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ o(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
287
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
271
288
|
n.Root,
|
|
272
289
|
{
|
|
273
290
|
width: "100%",
|
|
274
|
-
hint: t("page.settings.form.
|
|
291
|
+
hint: t("page.settings.form.badWords.hint"),
|
|
275
292
|
children: [
|
|
276
|
-
/* @__PURE__ */ e(n.Label, { htmlFor: "
|
|
293
|
+
/* @__PURE__ */ e(n.Label, { htmlFor: "badWords", children: t("page.settings.form.badWords.label") }),
|
|
277
294
|
/* @__PURE__ */ e(
|
|
278
|
-
|
|
295
|
+
v,
|
|
279
296
|
{
|
|
280
297
|
name: "badWords",
|
|
281
|
-
checked:
|
|
298
|
+
checked: i.badWords,
|
|
282
299
|
onChange: l,
|
|
283
300
|
onLabel: t("components.toogle.enabled"),
|
|
284
301
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -289,7 +306,7 @@ const P = ({
|
|
|
289
306
|
]
|
|
290
307
|
}
|
|
291
308
|
) }),
|
|
292
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
293
310
|
n.Root,
|
|
294
311
|
{
|
|
295
312
|
width: "100%",
|
|
@@ -300,7 +317,7 @@ const P = ({
|
|
|
300
317
|
n.Input,
|
|
301
318
|
{
|
|
302
319
|
name: "blockedAuthorProps",
|
|
303
|
-
value:
|
|
320
|
+
value: i.blockedAuthorProps,
|
|
304
321
|
onChange: l
|
|
305
322
|
}
|
|
306
323
|
),
|
|
@@ -308,13 +325,13 @@ const P = ({
|
|
|
308
325
|
]
|
|
309
326
|
}
|
|
310
327
|
) }),
|
|
311
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(n.Root, { width: "100%", hint: t("page.settings.form.gqlAuth.hint"), children: [
|
|
312
329
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.gqlAuth.label") }),
|
|
313
330
|
/* @__PURE__ */ e(
|
|
314
|
-
|
|
331
|
+
v,
|
|
315
332
|
{
|
|
316
333
|
name: "gqlAuthEnabled",
|
|
317
|
-
checked:
|
|
334
|
+
checked: i.gqlAuthEnabled,
|
|
318
335
|
onChange: l,
|
|
319
336
|
onLabel: t("components.toogle.enabled"),
|
|
320
337
|
offLabel: t("components.toogle.disabled"),
|
|
@@ -322,13 +339,35 @@ const P = ({
|
|
|
322
339
|
}
|
|
323
340
|
),
|
|
324
341
|
/* @__PURE__ */ e(n.Hint, {})
|
|
325
|
-
] }) })
|
|
342
|
+
] }) }),
|
|
343
|
+
/* @__PURE__ */ e(x, { condition: c.isReactionsPluginInstalled, children: /* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
344
|
+
n.Root,
|
|
345
|
+
{
|
|
346
|
+
width: "100%",
|
|
347
|
+
hint: t("page.settings.form.reactionsEnabled.hint"),
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.reactionsEnabled.label") }),
|
|
350
|
+
/* @__PURE__ */ e(
|
|
351
|
+
v,
|
|
352
|
+
{
|
|
353
|
+
name: "reactionsEnabled",
|
|
354
|
+
checked: i.reactionsEnabled,
|
|
355
|
+
onChange: l,
|
|
356
|
+
onLabel: t("components.toogle.enabled"),
|
|
357
|
+
offLabel: t("components.toogle.disabled"),
|
|
358
|
+
width: "100%"
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
/* @__PURE__ */ e(n.Hint, {})
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
) }) })
|
|
326
365
|
] })
|
|
327
366
|
] }),
|
|
328
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ o(m, { ...E, children: [
|
|
329
368
|
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.client") }),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ o(s.Root, { gap: 4, marginTop: 4, width: "100%", children: [
|
|
370
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
332
371
|
n.Root,
|
|
333
372
|
{
|
|
334
373
|
width: "100%",
|
|
@@ -340,7 +379,7 @@ const P = ({
|
|
|
340
379
|
]
|
|
341
380
|
}
|
|
342
381
|
) }),
|
|
343
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
344
383
|
n.Root,
|
|
345
384
|
{
|
|
346
385
|
width: "100%",
|
|
@@ -352,7 +391,7 @@ const P = ({
|
|
|
352
391
|
]
|
|
353
392
|
}
|
|
354
393
|
) }),
|
|
355
|
-
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ e(s.Item, { col: 4, xs: 12, alignItems: "start", children: /* @__PURE__ */ o(
|
|
356
395
|
n.Root,
|
|
357
396
|
{
|
|
358
397
|
width: "100%",
|
|
@@ -360,16 +399,16 @@ const P = ({
|
|
|
360
399
|
children: [
|
|
361
400
|
/* @__PURE__ */ e(n.Label, { children: t("page.settings.form.moderatorRoles.label") }),
|
|
362
401
|
/* @__PURE__ */ e(
|
|
363
|
-
|
|
402
|
+
T,
|
|
364
403
|
{
|
|
365
404
|
withTags: !0,
|
|
366
405
|
placeholder: t("page.settings.form.moderatorRoles.placeholder"),
|
|
367
406
|
name: "enabledCollections",
|
|
368
|
-
value:
|
|
369
|
-
onChange: (
|
|
370
|
-
l("moderatorRoles",
|
|
407
|
+
value: i.moderatorRoles,
|
|
408
|
+
onChange: (r) => {
|
|
409
|
+
l("moderatorRoles", r);
|
|
371
410
|
},
|
|
372
|
-
children:
|
|
411
|
+
children: K.map((r) => /* @__PURE__ */ e(A, { value: r.code, children: r.name }, r.code))
|
|
373
412
|
}
|
|
374
413
|
),
|
|
375
414
|
/* @__PURE__ */ e(n.Hint, {})
|
|
@@ -378,29 +417,29 @@ const P = ({
|
|
|
378
417
|
) })
|
|
379
418
|
] })
|
|
380
419
|
] }),
|
|
381
|
-
/* @__PURE__ */ e(
|
|
382
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ e(x, { condition: u, children: /* @__PURE__ */ e(m, { ...E, children: /* @__PURE__ */ o(F, { gap: 4, direction: "column", alignItems: "flex-start", children: [
|
|
421
|
+
/* @__PURE__ */ o(F, { gap: 2, direction: "column", alignItems: "flex-start", children: [
|
|
383
422
|
/* @__PURE__ */ e(h, { variant: "delta", as: "h2", children: t("page.settings.section.restore") }),
|
|
384
423
|
/* @__PURE__ */ e(h, { variant: "pi", as: "h4", children: t("page.settings.section.restore.subtitle") })
|
|
385
424
|
] }),
|
|
386
425
|
/* @__PURE__ */ e(
|
|
387
|
-
|
|
426
|
+
ye,
|
|
388
427
|
{
|
|
389
|
-
Trigger: ({ onClick:
|
|
390
|
-
|
|
428
|
+
Trigger: ({ onClick: r }) => /* @__PURE__ */ e(
|
|
429
|
+
P,
|
|
391
430
|
{
|
|
392
431
|
variant: "danger-light",
|
|
393
|
-
startIcon: /* @__PURE__ */ e(
|
|
394
|
-
onClick:
|
|
432
|
+
startIcon: /* @__PURE__ */ e(j, {}),
|
|
433
|
+
onClick: r,
|
|
395
434
|
children: t("page.settings.actions.restore")
|
|
396
435
|
}
|
|
397
436
|
),
|
|
398
|
-
onConfirm:
|
|
437
|
+
onConfirm: z.mutate,
|
|
399
438
|
title: t("page.settings.actions.restore.confirmation.header"),
|
|
400
439
|
labelConfirm: t(
|
|
401
440
|
"page.settings.actions.restore.confirmation.button.confirm"
|
|
402
441
|
),
|
|
403
|
-
iconConfirm: /* @__PURE__ */ e(
|
|
442
|
+
iconConfirm: /* @__PURE__ */ e(j, {}),
|
|
404
443
|
children: t("page.settings.actions.restore.confirmation.description")
|
|
405
444
|
}
|
|
406
445
|
)
|
|
@@ -411,7 +450,7 @@ const P = ({
|
|
|
411
450
|
] })
|
|
412
451
|
] })
|
|
413
452
|
] });
|
|
414
|
-
},
|
|
453
|
+
}, Be = () => /* @__PURE__ */ e(be, { children: /* @__PURE__ */ e(qe, {}) });
|
|
415
454
|
export {
|
|
416
|
-
|
|
455
|
+
Be as default
|
|
417
456
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";require("node:crypto");require("react");const p=require("@strapi/design-system");require("@strapi/icons");const v=require("styled-components"),o=require("react/jsx-runtime"),a=(e,t="")=>Object.keys(e).reduce((i,n)=>{const l=t.length?`${t}.`:"";return typeof e[n]=="object"&&e[n]!==null&&!Array.isArray(e[n])?Object.assign(i,a(e[n],l+n)):i[l+n]=e[n],i},{}),u=(e,t)=>{if(!t)throw new TypeError("pluginId can't be empty");return Object.keys(e).reduce((i,n)=>(i[`${t}.${n}`]=e[n],i),{})};v.styled(p.Flex)`
|
|
2
|
+
& > * {
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
`;const h="strapi-plugin-comments",b="3.2.5",q={name:"comments",displayName:"Comments"},P=576,$=({width:e=24,height:t=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg",height:`${t}px`,children:o.jsx("g",{style:{transform:`scale(${e/P})`},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"})})}),f=o.jsx($,{}),j=()=>f,r={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"}},c={access:[{action:r.render(r.comments.read),subject:null},{action:r.render(r.reports.read),subject:null},{action:r.render(r.settings.read),subject:null}],moderate:[{action:r.render(r.comments.moderate),subject:null}],reports:[{action:r.render(r.reports.read),subject:null}],reportsReview:[{action:r.render(r.reports.review),subject:null}],settings:[{action:r.render(r.settings.read),subject:null}],settingsChange:[{action:r.render(r.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),m={en:()=>Promise.resolve().then(()=>require("./en-CTX-vxI-.js")),fr:()=>Promise.resolve().then(()=>require("./fr-CJZ1I0cO.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-DV48_kX8.js")),tr:()=>Promise.resolve().then(()=>require("./tr-BMe1cFKp.js")),ru:()=>Promise.resolve().then(()=>require("./ru-BK78F2Vt.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-xMRxrXVG.js")),pl:()=>Promise.resolve().then(()=>require("./pl-clljrMvo.js"))},{name:d,displayName:g}=q,w={register(e){e.registerPlugin({id:d,name:d,injectionZones:{reports:{tableHeaderSource:[],tableRowSource:[]},reviews:{tableHeaderSource:[],tableRowSource:[]},pages:{aiEvaluations:[]},sideNav:{aiEvaluations:[],mobileAiEvaluations:[]}}}),e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:j,intlLabel:{id:`${s}.plugin.name`,defaultMessage:g},Component:()=>Promise.resolve().then(()=>require("./index-Cfy8GjIN.js")),permissions:c.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${g} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-DXgb05uJ.js")),permissions:c.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async t=>t in m?m[t]().then(({default:n})=>({data:u(a(n),s),locale:t})):{data:u(a({}),s),locale:t}))}};exports.index=w;exports.pluginId=s;exports.pluginPermissions=c;exports.version=b;
|
|
@@ -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...",
|
|
@@ -137,6 +141,8 @@ const e = {
|
|
|
137
141
|
"page.settings.form.badWords.hint": "Jeśli jest włączone, każdy post / aktualizacja komentarza będzie sprawdzany pod kątem nieodpowiedniego języka",
|
|
138
142
|
"page.settings.form.gqlAuth.label": "Autoryzacja zapytań GraphQL",
|
|
139
143
|
"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.",
|
|
144
|
+
"page.settings.form.reactionsEnabled.label": "Integracja z pluginem Reakcji",
|
|
145
|
+
"page.settings.form.reactionsEnabled.hint": "Po włączeniu odpowiedzi API komentarzy (REST i GraphQL) zawierają liczniki reakcji. Wymaga zainstalowanego i włączonego pluginu Reakcji.",
|
|
140
146
|
"page.settings.form.approvalFlow.label": "Przebieg zatwierdzania",
|
|
141
147
|
"page.settings.form.approvalFlow.hint": 'Komentarze powiązane z typem zawartości "{name}" będą podlegały ręcznemu procesowi zatwierdzania',
|
|
142
148
|
"page.settings.form.entryLabel.label": "Pola tytułu",
|
|
@@ -160,6 +166,7 @@ const e = {
|
|
|
160
166
|
"page.settings.notification.restart.success": "Aplikacja została pomyślnie uruchomiona ponownie",
|
|
161
167
|
"page.settings.notification.restart.error": "Nie udało się uruchomić aplikacji ponownie. Spróbuj zrobić to ręcznie.",
|
|
162
168
|
"page.settings.loading": "Pobieranie konfiguracji...",
|
|
169
|
+
"page.settings.error": "Nie udało się pobrać konfiguracji. Sprawdź konsolę dla szczegółów.",
|
|
163
170
|
"page.settings.form.author.blockedProps.label": "Zablokowane dane autora",
|
|
164
171
|
"page.settings.form.author.blockedProps.hint": "Określone właściwości zostaną filtrowane z danych autora (oddzielone przecinkiem)",
|
|
165
172
|
"components.confirmation.dialog.header": "Potwierdzenie",
|