@mattisvensson/strapi-plugin-webatlas 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/PageWrapper-Bp9vGwpG.js +54 -0
- package/dist/_chunks/PageWrapper-BvOY7VCN.mjs +55 -0
- package/dist/_chunks/PageWrapper-BzDrMm2d.js +55 -0
- package/dist/_chunks/PageWrapper-BzDrMm2d.js.map +1 -0
- package/dist/_chunks/PageWrapper-oLhcg9BA.mjs +56 -0
- package/dist/_chunks/PageWrapper-oLhcg9BA.mjs.map +1 -0
- package/dist/_chunks/{de-BZc1BkzH.js → de-CDBoUBzw.js} +5 -2
- package/dist/_chunks/{en-Deg4n_IM.js.map → de-CDBoUBzw.js.map} +1 -1
- package/dist/_chunks/{de-oxxH8hft.mjs → de-Dt80IqMG.mjs} +5 -2
- package/dist/_chunks/{en-DqC5aDzA.mjs.map → de-Dt80IqMG.mjs.map} +1 -1
- package/dist/_chunks/{en-DqC5aDzA.mjs → en-BHxDiueo.mjs} +5 -2
- package/dist/_chunks/{de-oxxH8hft.mjs.map → en-BHxDiueo.mjs.map} +1 -1
- package/dist/_chunks/{en-Deg4n_IM.js → en-DfvURaup.js} +5 -2
- package/dist/_chunks/{de-BZc1BkzH.js.map → en-DfvURaup.js.map} +1 -1
- package/dist/_chunks/{index-dzRHjemo.js → index--oj1eNcM.js} +2 -2
- package/dist/_chunks/{index-CHB_8c7e.js.map → index--oj1eNcM.js.map} +1 -1
- package/dist/_chunks/index-BBn1ZvsE.mjs +123 -0
- package/dist/_chunks/index-BCPgfhBx.js +124 -0
- package/dist/_chunks/index-BCPgfhBx.js.map +1 -0
- package/dist/_chunks/{index-CHB_8c7e.js → index-BKdvSgDB.js} +1 -1
- package/dist/_chunks/{index-DzqTj_0f.mjs → index-CAged_xE.mjs} +2 -2
- package/dist/_chunks/{index-KC82xDAD.mjs.map → index-CAged_xE.mjs.map} +1 -1
- package/dist/_chunks/index-CHRBu9Xy.mjs +124 -0
- package/dist/_chunks/index-CHRBu9Xy.mjs.map +1 -0
- package/dist/_chunks/{index-C6Dorrjz.mjs → index-CTA8agp7.mjs} +40 -13
- package/dist/_chunks/{index-BFMLU2kR.mjs → index-CUlRMqGG.mjs} +57 -60
- package/dist/_chunks/{index-C6e9wLau.js → index-CbW6k4FH.js} +41 -12
- package/dist/_chunks/index-CbW6k4FH.js.map +1 -0
- package/dist/_chunks/{index-B79--vLg.js → index-CtFERXkl.js} +91 -119
- package/dist/_chunks/index-CtFERXkl.js.map +1 -0
- package/dist/_chunks/{index-D5Uc0GLu.mjs → index-D29zBs5w.mjs} +58 -59
- package/dist/_chunks/index-D29zBs5w.mjs.map +1 -0
- package/dist/_chunks/index-D72CZ5b7.js +123 -0
- package/dist/_chunks/{index-DcFYhqke.mjs → index-DJBXRNlE.mjs} +95 -123
- package/dist/_chunks/index-DJBXRNlE.mjs.map +1 -0
- package/dist/_chunks/{index-DY1ICa5c.mjs → index-DMpiX4hP.mjs} +41 -12
- package/dist/_chunks/index-DMpiX4hP.mjs.map +1 -0
- package/dist/_chunks/{index-DeCgextE.js → index-DTPDMxs_.js} +57 -59
- package/dist/_chunks/{index-NZpDoHIv.js → index-DUgh4AJb.js} +90 -120
- package/dist/_chunks/{index-2J9mPFyV.js → index-Dxn0NT06.js} +40 -13
- package/dist/_chunks/{index-DLZJ_sUK.mjs → index-Nx4IRYIK.mjs} +94 -124
- package/dist/_chunks/{index-KC82xDAD.mjs → index-Rfm9O167.mjs} +1 -1
- package/dist/_chunks/{index-DCejsR9X.js → index-YzPuPn68.js} +58 -60
- package/dist/_chunks/index-YzPuPn68.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/modals/NavEdit.d.ts +1 -1
- package/dist/admin/src/components/modals/fields/Visibility.d.ts +5 -0
- package/dist/admin/src/components/modals/fields/index.d.ts +2 -0
- package/dist/admin/src/hooks/usePluginConfig.d.ts +1 -1
- package/dist/admin/src/pages/Settings/{ContentTypeAccordion.d.ts → General/ContentTypeAccordion.d.ts} +1 -1
- package/dist/admin/src/pages/Settings/Navigation/index.d.ts +2 -0
- package/dist/admin/src/pages/Settings/PageWrapper.d.ts +3 -4
- package/dist/admin/src/utils/dnd.d.ts +1 -1
- package/dist/server/index.js +32 -14
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +32 -14
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/services/admin.d.ts +2 -2
- package/dist/server/src/services/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/_chunks/index-2J9mPFyV.js.map +0 -1
- package/dist/_chunks/index-B79--vLg.js.map +0 -1
- package/dist/_chunks/index-BFMLU2kR.mjs.map +0 -1
- package/dist/_chunks/index-C6Dorrjz.mjs.map +0 -1
- package/dist/_chunks/index-C6e9wLau.js.map +0 -1
- package/dist/_chunks/index-D5Uc0GLu.mjs.map +0 -1
- package/dist/_chunks/index-DCejsR9X.js.map +0 -1
- package/dist/_chunks/index-DLZJ_sUK.mjs.map +0 -1
- package/dist/_chunks/index-DY1ICa5c.mjs.map +0 -1
- package/dist/_chunks/index-DcFYhqke.mjs.map +0 -1
- package/dist/_chunks/index-DeCgextE.js.map +0 -1
- package/dist/_chunks/index-DzqTj_0f.mjs.map +0 -1
- package/dist/_chunks/index-NZpDoHIv.js.map +0 -1
- package/dist/_chunks/index-dzRHjemo.js.map +0 -1
- /package/dist/admin/src/pages/Settings/{index.d.ts → General/index.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ import { Box, Typography, Dialog, Button, Modal, Flex, SingleSelect, SingleSelec
|
|
|
5
5
|
import { useState, useEffect, createContext, useRef, useContext, useReducer, useCallback, useMemo, forwardRef } from "react";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-
|
|
8
|
+
import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo, b as usePluginConfig } from "./index-CTA8agp7.mjs";
|
|
9
9
|
import { useFetchClient, useNotification, Page, Layouts } from "@strapi/strapi/admin";
|
|
10
10
|
import { C as Center, F as FullLoader } from "./FullLoader-CrPED_dY.mjs";
|
|
11
11
|
import { EmptyDocuments } from "@strapi/icons/symbols";
|
|
@@ -231,23 +231,21 @@ function NavCreate() {
|
|
|
231
231
|
setLoading(true);
|
|
232
232
|
try {
|
|
233
233
|
const { data } = await post("/webatlas/navigation", { name, isActive });
|
|
234
|
-
if (data.documentId)
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
} else {
|
|
238
|
-
toggleNotification({
|
|
239
|
-
type: "danger",
|
|
240
|
-
message: formatMessage({
|
|
241
|
-
id: getTranslation("notification.navigation.creationFailed"),
|
|
242
|
-
defaultMessage: "Creation of navigation failed"
|
|
243
|
-
})
|
|
244
|
-
});
|
|
245
|
-
}
|
|
234
|
+
if (!data.documentId) throw new Error("No documentId returned");
|
|
235
|
+
navigate(`/plugins/webatlas/navigation/${data.documentId}`);
|
|
236
|
+
setModalType("");
|
|
246
237
|
} catch (err) {
|
|
247
238
|
console.log(err);
|
|
239
|
+
toggleNotification({
|
|
240
|
+
type: "danger",
|
|
241
|
+
message: formatMessage({
|
|
242
|
+
id: getTranslation("notification.navigation.creationFailed"),
|
|
243
|
+
defaultMessage: "Creation of navigation failed"
|
|
244
|
+
})
|
|
245
|
+
});
|
|
248
246
|
} finally {
|
|
247
|
+
setLoading(false);
|
|
249
248
|
}
|
|
250
|
-
setLoading(false);
|
|
251
249
|
};
|
|
252
250
|
return /* @__PURE__ */ jsx(
|
|
253
251
|
NavModal,
|
|
@@ -282,14 +280,22 @@ function NavEdit({ item, onEdit }) {
|
|
|
282
280
|
const [loading, setLoading] = useState(false);
|
|
283
281
|
const { updateNavigation } = useApi();
|
|
284
282
|
const { formatMessage } = useIntl();
|
|
283
|
+
const { toggleNotification } = useNotification();
|
|
285
284
|
const updateNav = async () => {
|
|
286
285
|
setLoading(true);
|
|
287
286
|
try {
|
|
288
287
|
await updateNavigation(item.documentId, { name, visible });
|
|
289
288
|
setModalType("NavOverview");
|
|
290
|
-
onEdit();
|
|
289
|
+
onEdit({ ...item, name, visible });
|
|
291
290
|
} catch (err) {
|
|
292
291
|
console.log(err);
|
|
292
|
+
toggleNotification({
|
|
293
|
+
type: "danger",
|
|
294
|
+
message: formatMessage({
|
|
295
|
+
id: getTranslation("notification.navigation.updateFailed"),
|
|
296
|
+
defaultMessage: "Updating navigation failed"
|
|
297
|
+
})
|
|
298
|
+
});
|
|
293
299
|
} finally {
|
|
294
300
|
setLoading(false);
|
|
295
301
|
}
|
|
@@ -303,17 +309,6 @@ function NavEdit({ item, onEdit }) {
|
|
|
303
309
|
loadingText: formatMessage({ id: getTranslation("modal.navEdit.loadingText"), defaultMessage: "Updating" }),
|
|
304
310
|
onConfirm: updateNav,
|
|
305
311
|
loading,
|
|
306
|
-
modalToOpen: "NavOverview",
|
|
307
|
-
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
308
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => setModalType("NavOverview"), variant: "tertiary", children: formatMessage({
|
|
309
|
-
id: getTranslation("modal.navEdit.closeText"),
|
|
310
|
-
defaultMessage: "Cancel"
|
|
311
|
-
}) }),
|
|
312
|
-
/* @__PURE__ */ jsx(Button, { children: formatMessage({
|
|
313
|
-
id: getTranslation("modal.navEdit.confirmText"),
|
|
314
|
-
defaultMessage: "Update"
|
|
315
|
-
}) })
|
|
316
|
-
] }),
|
|
317
312
|
children: /* @__PURE__ */ jsxs(Grid.Root, { gap: 4, children: [
|
|
318
313
|
/* @__PURE__ */ jsx(Grid.Item, { s: 12, m: 6, children: /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
319
314
|
/* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
|
|
@@ -4649,31 +4644,30 @@ function ItemCreateComponent({
|
|
|
4649
4644
|
}, [path.needsUrlCheck, entityRoute?.documentId]);
|
|
4650
4645
|
useEffect(() => {
|
|
4651
4646
|
async function fetchRoute() {
|
|
4652
|
-
if (selectedContentType?.contentType
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
}
|
|
4647
|
+
if (!selectedContentType?.contentType || !selectedEntity?.documentId) return;
|
|
4648
|
+
setLoadingRoute(true);
|
|
4649
|
+
try {
|
|
4650
|
+
const route = await getRelatedRoute(selectedEntity.documentId);
|
|
4651
|
+
if (!route) throw new Error("No route found for the selected entity");
|
|
4652
|
+
dispatchPath({ type: "NO_URL_CHECK", payload: route.fullPath });
|
|
4653
|
+
dispatchPath({ type: "SET_UIDPATH", payload: route.uidPath });
|
|
4654
|
+
dispatchPath({ type: "SET_INITIALPATH", payload: route.fullPath });
|
|
4655
|
+
dispatchItemState({ type: "SET_TITLE", payload: route.title });
|
|
4656
|
+
dispatchItemState({ type: "SET_ACTIVE", payload: route.active });
|
|
4657
|
+
dispatchItemState({ type: "SET_INTERNAL", payload: route.internal });
|
|
4658
|
+
dispatchItemState({ type: "SET_OVERRIDE", payload: route.isOverride });
|
|
4659
|
+
initialState.current = {
|
|
4660
|
+
title: route.title,
|
|
4661
|
+
slug: route.fullPath,
|
|
4662
|
+
active: route.active,
|
|
4663
|
+
internal: route.internal,
|
|
4664
|
+
isOverride: route.isOverride
|
|
4665
|
+
};
|
|
4666
|
+
setEntityRoute(route);
|
|
4667
|
+
} catch (err) {
|
|
4668
|
+
console.log(err);
|
|
4669
|
+
} finally {
|
|
4670
|
+
setLoadingRoute(false);
|
|
4677
4671
|
}
|
|
4678
4672
|
}
|
|
4679
4673
|
fetchRoute();
|
|
@@ -10586,7 +10580,7 @@ const measuring = {
|
|
|
10586
10580
|
}
|
|
10587
10581
|
};
|
|
10588
10582
|
const indentationWidth = 48;
|
|
10589
|
-
function getProjection(items, activeId, overId, dragOffset) {
|
|
10583
|
+
function getProjection(items, activeId, overId, dragOffset, maxDepthValue) {
|
|
10590
10584
|
if (!items) return { depth: 0, maxDepth: 0, minDepth: 0 };
|
|
10591
10585
|
const overItemIndex = items.findIndex(({ id }) => id === overId);
|
|
10592
10586
|
const activeItemIndex = items.findIndex(({ id }) => id === activeId);
|
|
@@ -10595,7 +10589,7 @@ function getProjection(items, activeId, overId, dragOffset) {
|
|
|
10595
10589
|
const previousItem = newItems[overItemIndex - 1];
|
|
10596
10590
|
const dragDepth = getDragDepth(dragOffset, indentationWidth);
|
|
10597
10591
|
const projectedDepth = activeItem && typeof activeItem.depth === "number" ? activeItem.depth + dragDepth : 0;
|
|
10598
|
-
let maxDepth = getMaxDepth({ previousItem });
|
|
10592
|
+
let maxDepth = getMaxDepth({ previousItem, maxDepthValue });
|
|
10599
10593
|
let minDepth = 0;
|
|
10600
10594
|
let depth = projectedDepth;
|
|
10601
10595
|
if (projectedDepth >= maxDepth) {
|
|
@@ -10605,9 +10599,9 @@ function getProjection(items, activeId, overId, dragOffset) {
|
|
|
10605
10599
|
}
|
|
10606
10600
|
return { depth, maxDepth, minDepth };
|
|
10607
10601
|
}
|
|
10608
|
-
function getMaxDepth({ previousItem }) {
|
|
10602
|
+
function getMaxDepth({ previousItem, maxDepthValue }) {
|
|
10609
10603
|
if (previousItem && typeof previousItem.depth === "number") {
|
|
10610
|
-
return previousItem.depth + 1;
|
|
10604
|
+
return Math.min(previousItem.depth + 1, maxDepthValue - 1);
|
|
10611
10605
|
}
|
|
10612
10606
|
return 0;
|
|
10613
10607
|
}
|
|
@@ -11838,6 +11832,7 @@ const Navigation = () => {
|
|
|
11838
11832
|
const [isSavingNavigation, setIsSavingNavigation] = useState(false);
|
|
11839
11833
|
const [loading, setLoading] = useState(true);
|
|
11840
11834
|
const cachedNavigations = useRef(null);
|
|
11835
|
+
const { config } = usePluginConfig();
|
|
11841
11836
|
const [projected, setProjected] = useState(null);
|
|
11842
11837
|
const [activeItem, setActiveItem] = useState();
|
|
11843
11838
|
const [activeId, setActiveId] = useState(null);
|
|
@@ -12027,7 +12022,8 @@ const Navigation = () => {
|
|
|
12027
12022
|
navigationItems,
|
|
12028
12023
|
activeId,
|
|
12029
12024
|
overId,
|
|
12030
|
-
offsetLeft
|
|
12025
|
+
offsetLeft,
|
|
12026
|
+
config?.navigation.maxDepth || 3
|
|
12031
12027
|
) : null;
|
|
12032
12028
|
setProjected(projection);
|
|
12033
12029
|
}, [activeId, overId, offsetLeft, navigationItems]);
|
|
@@ -12124,7 +12120,7 @@ const Navigation = () => {
|
|
|
12124
12120
|
{
|
|
12125
12121
|
variant: "NavDelete",
|
|
12126
12122
|
item: actionItem,
|
|
12127
|
-
onDelete:
|
|
12123
|
+
onDelete: (deletedItem) => {
|
|
12128
12124
|
cachedNavigations.current = null;
|
|
12129
12125
|
setNavigations((navs) => navs.filter((nav) => nav.id !== deletedItem.id));
|
|
12130
12126
|
navigate("/plugins/webatlas/navigation");
|
|
@@ -12135,7 +12131,10 @@ const Navigation = () => {
|
|
|
12135
12131
|
NavEdit,
|
|
12136
12132
|
{
|
|
12137
12133
|
item: actionItem,
|
|
12138
|
-
onEdit: () => {
|
|
12134
|
+
onEdit: (editedNavigation) => {
|
|
12135
|
+
setNavigations(
|
|
12136
|
+
(navs) => navs?.map((nav) => nav.id === editedNavigation.id ? editedNavigation : nav)
|
|
12137
|
+
);
|
|
12139
12138
|
}
|
|
12140
12139
|
}
|
|
12141
12140
|
),
|
|
@@ -12165,7 +12164,6 @@ const Navigation = () => {
|
|
|
12165
12164
|
{
|
|
12166
12165
|
item: actionItem,
|
|
12167
12166
|
onEdit: (editedItem) => {
|
|
12168
|
-
console.log(editedItem);
|
|
12169
12167
|
setNavigationItems(
|
|
12170
12168
|
(items) => items?.map((item) => item.id === editedItem.id ? editedItem : item)
|
|
12171
12169
|
);
|
|
@@ -12227,4 +12225,3 @@ const App = () => {
|
|
|
12227
12225
|
export {
|
|
12228
12226
|
App as default
|
|
12229
12227
|
};
|
|
12230
|
-
//# sourceMappingURL=index-BFMLU2kR.mjs.map
|
|
@@ -41,7 +41,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
41
41
|
);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
const version = "0.
|
|
44
|
+
const version = "0.8.1";
|
|
45
45
|
const keywords = [];
|
|
46
46
|
const type = "commonjs";
|
|
47
47
|
const exports$1 = {
|
|
@@ -312,6 +312,10 @@ function usePluginConfig() {
|
|
|
312
312
|
config2 = { ...config2, selectedContentTypes: activeContentTypes };
|
|
313
313
|
await setConfig(config2);
|
|
314
314
|
}
|
|
315
|
+
if (config2.navigation?.maxDepth === void 0) {
|
|
316
|
+
config2.navigation = { ...config2.navigation, maxDepth: 3 };
|
|
317
|
+
await setConfig(config2);
|
|
318
|
+
}
|
|
315
319
|
setConfigData(config2);
|
|
316
320
|
} catch (error) {
|
|
317
321
|
setFetchError(error.message);
|
|
@@ -3636,7 +3640,7 @@ const $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003
|
|
|
3636
3640
|
function Tooltip({ description: description2 }) {
|
|
3637
3641
|
return /* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$2881499e37b75b9a, { children: /* @__PURE__ */ jsxRuntime.jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { children: [
|
|
3638
3642
|
/* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(icons.Information, { "aria-hidden": "true" }) }),
|
|
3639
|
-
/* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$7c6e2c02157bb7d2, { sideOffset: 5, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3643
|
+
/* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntime.jsx($a093c7e1ec25a057$export$7c6e2c02157bb7d2, { sideOffset: 5, style: { zIndex: 9999 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3640
3644
|
designSystem.Box,
|
|
3641
3645
|
{
|
|
3642
3646
|
padding: 2,
|
|
@@ -4077,7 +4081,7 @@ const index = {
|
|
|
4077
4081
|
defaultMessage: "Routes"
|
|
4078
4082
|
},
|
|
4079
4083
|
Component: async () => {
|
|
4080
|
-
const component = await Promise.resolve().then(() => require("./index
|
|
4084
|
+
const component = await Promise.resolve().then(() => require("./index--oj1eNcM.js"));
|
|
4081
4085
|
return { default: component.default };
|
|
4082
4086
|
},
|
|
4083
4087
|
permissions: [
|
|
@@ -4096,7 +4100,7 @@ const index = {
|
|
|
4096
4100
|
defaultMessage: "Navigation"
|
|
4097
4101
|
},
|
|
4098
4102
|
Component: async () => {
|
|
4099
|
-
const component = await Promise.resolve().then(() => require("./index-
|
|
4103
|
+
const component = await Promise.resolve().then(() => require("./index-YzPuPn68.js"));
|
|
4100
4104
|
return { default: component.default };
|
|
4101
4105
|
},
|
|
4102
4106
|
permissions: [
|
|
@@ -4112,20 +4116,44 @@ const index = {
|
|
|
4112
4116
|
id: PLUGIN_ID,
|
|
4113
4117
|
intlLabel: {
|
|
4114
4118
|
id: `${PLUGIN_ID}.settings.section`,
|
|
4115
|
-
defaultMessage:
|
|
4119
|
+
defaultMessage: PLUGIN_NAME
|
|
4116
4120
|
}
|
|
4117
4121
|
},
|
|
4118
4122
|
{
|
|
4119
4123
|
intlLabel: {
|
|
4120
|
-
id: `${PLUGIN_ID}.settings.section`,
|
|
4121
|
-
defaultMessage: "
|
|
4124
|
+
id: `${PLUGIN_ID}.settings.section.general`,
|
|
4125
|
+
defaultMessage: "General"
|
|
4122
4126
|
},
|
|
4123
|
-
id: PLUGIN_ID
|
|
4124
|
-
to: `/settings/${PLUGIN_ID}/
|
|
4127
|
+
id: `${PLUGIN_ID}-general`,
|
|
4128
|
+
to: `/settings/${PLUGIN_ID}/general`,
|
|
4129
|
+
Component: async () => {
|
|
4130
|
+
return await Promise.resolve().then(() => require(
|
|
4131
|
+
/* webpackChunkName: "webatlas-settings-general-page" */
|
|
4132
|
+
"./index-CtFERXkl.js"
|
|
4133
|
+
));
|
|
4134
|
+
},
|
|
4135
|
+
permissions: [
|
|
4136
|
+
// Uncomment to set the permissions of the plugin here
|
|
4137
|
+
// {
|
|
4138
|
+
// action: '', // the action name should be plugin::plugin-name.actionType
|
|
4139
|
+
// subject: null,
|
|
4140
|
+
// },
|
|
4141
|
+
]
|
|
4142
|
+
}
|
|
4143
|
+
);
|
|
4144
|
+
app.addSettingsLink(
|
|
4145
|
+
PLUGIN_ID,
|
|
4146
|
+
{
|
|
4147
|
+
intlLabel: {
|
|
4148
|
+
id: `${PLUGIN_ID}.settings.navigation`,
|
|
4149
|
+
defaultMessage: "Navigation"
|
|
4150
|
+
},
|
|
4151
|
+
id: `${PLUGIN_ID}-navigation`,
|
|
4152
|
+
to: `/settings/${PLUGIN_ID}/navigation`,
|
|
4125
4153
|
Component: async () => {
|
|
4126
4154
|
return await Promise.resolve().then(() => require(
|
|
4127
|
-
/* webpackChunkName: "webatlas-settings-page" */
|
|
4128
|
-
"./index-
|
|
4155
|
+
/* webpackChunkName: "webatlas-settings-navigation-page" */
|
|
4156
|
+
"./index-BCPgfhBx.js"
|
|
4129
4157
|
));
|
|
4130
4158
|
},
|
|
4131
4159
|
permissions: [
|
|
@@ -4154,7 +4182,7 @@ const index = {
|
|
|
4154
4182
|
return Promise.all(
|
|
4155
4183
|
locales.map(async (locale) => {
|
|
4156
4184
|
try {
|
|
4157
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-
|
|
4185
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-CDBoUBzw.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-DfvURaup.js")) }), `./translations/${locale}.json`, 3);
|
|
4158
4186
|
return { data, locale };
|
|
4159
4187
|
} catch {
|
|
4160
4188
|
return { data: {}, locale };
|
|
@@ -4174,3 +4202,4 @@ exports.transformToUrl = transformToUrl;
|
|
|
4174
4202
|
exports.useAllContentTypes = useAllContentTypes;
|
|
4175
4203
|
exports.useApi = useApi;
|
|
4176
4204
|
exports.usePluginConfig = usePluginConfig;
|
|
4205
|
+
//# sourceMappingURL=index-CbW6k4FH.js.map
|