@mattisvensson/strapi-plugin-webatlas 0.4.2 → 0.6.0
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/EmptyBox-BM4IscSk.mjs +1 -0
- package/dist/_chunks/EmptyBox-BM4IscSk.mjs.map +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js.map +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js.map +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs.map +1 -0
- package/dist/_chunks/{de-RiCps8UH.js → de-CL1TIZPg.js} +5 -1
- package/dist/_chunks/de-CL1TIZPg.js.map +1 -0
- package/dist/_chunks/{de-Dn24NwJf.mjs → de-CzVD4dbZ.mjs} +5 -1
- package/dist/_chunks/de-CzVD4dbZ.mjs.map +1 -0
- package/dist/_chunks/{en-JLW5S3ZC.js → en-Du-Ap60j.js} +5 -1
- package/dist/_chunks/en-Du-Ap60j.js.map +1 -0
- package/dist/_chunks/{en-D9Lxaugc.mjs → en-Nk6QcTdr.mjs} +5 -1
- package/dist/_chunks/en-Nk6QcTdr.mjs.map +1 -0
- package/dist/_chunks/{index-CtJ_9-RB.mjs → index-B5u3q4DO.mjs} +6 -6
- package/dist/_chunks/index-Bxhu-TNT.js +4177 -0
- package/dist/_chunks/index-Bxhu-TNT.js.map +1 -0
- package/dist/_chunks/{index-CSYue_D0.js → index-C1HfYOU_.js} +6 -6
- package/dist/_chunks/index-CDqKPoLF.mjs +12200 -0
- package/dist/_chunks/index-CDqKPoLF.mjs.map +1 -0
- package/dist/_chunks/{index-Clikpy91.js → index-CcwGhk4b.js} +1724 -673
- package/dist/_chunks/index-Cw8m9qME.js +282 -0
- package/dist/_chunks/index-Cw8m9qME.js.map +1 -0
- package/dist/_chunks/index-DKWn1eh9.mjs +282 -0
- package/dist/_chunks/index-DKWn1eh9.mjs.map +1 -0
- package/dist/_chunks/{index-9db80XRS.mjs → index-DLfJwkbe.mjs} +1 -1
- package/dist/_chunks/index-DShP5BtK.mjs +127 -0
- package/dist/_chunks/index-DShP5BtK.mjs.map +1 -0
- package/dist/_chunks/index-DWcVnOi0.js +12200 -0
- package/dist/_chunks/index-DWcVnOi0.js.map +1 -0
- package/dist/_chunks/{index-CVj7qbwh.mjs → index-Dl3NwmwH.mjs} +1 -1
- package/dist/_chunks/index-DohcUdej.mjs +4161 -0
- package/dist/_chunks/index-DohcUdej.mjs.map +1 -0
- package/dist/_chunks/index-Dryo1JuH.js +127 -0
- package/dist/_chunks/index-Dryo1JuH.js.map +1 -0
- package/dist/_chunks/{index-CiY-8z8F.js → index-Dy2LLMda.js} +1 -1
- package/dist/_chunks/{index-B4pe6Yuh.mjs → index-Upva9LaE.mjs} +1725 -674
- package/dist/_chunks/{index-IHvD3566.js → index-xhAxCOze.js} +1 -1
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/hooks/useApi.d.ts +1 -1
- package/dist/admin/src/pages/Navigation/Page.d.ts +2 -0
- package/dist/admin/src/pages/Navigation/RouteItem.d.ts +1 -0
- package/dist/admin/src/pages/Navigation/SortableRouteItem.d.ts +1 -1
- package/dist/admin/src/pages/Navigation/index.d.ts +2 -2
- package/dist/server/index.js +13 -1
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +13 -1
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/services/admin.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyBox-BM4IscSk.mjs","sources":["../../admin/src/components/UI/EmptyBox.tsx"],"sourcesContent":["import { EmptyDocuments } from '@strapi/icons/symbols';\nimport { Box, Typography } from '@strapi/design-system';\n\ntype EmptyNavProps = {\n msg: string;\n}\n\nexport default function EmptyBox ({ msg }: EmptyNavProps) {\n\n return (\n <>\n <EmptyDocuments width=\"10rem\" height=\"6rem\"/>\n <Box padding={4}>\n <Typography variant=\"beta\" textColor=\"neutral600\">{msg}</Typography>\n </Box>\n </>\n )\n}"],"names":[],"mappings":";;;AAOwB,SAAA,SAAU,EAAE,OAAsB;AAExD,SAEI,qBAAA,UAAA,EAAA,UAAA;AAAA,IAAA,oBAAC,gBAAe,EAAA,OAAM,SAAQ,QAAO,QAAM;AAAA,IAC3C,oBAAC,KAAI,EAAA,SAAS,GACZ,UAAA,oBAAC,YAAW,EAAA,SAAQ,QAAO,WAAU,cAAc,UAAA,IAAA,CAAI,EACzD,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyBox-T8t29l25.js","sources":["../../admin/src/components/UI/EmptyBox.tsx"],"sourcesContent":["import { EmptyDocuments } from '@strapi/icons/symbols';\nimport { Box, Typography } from '@strapi/design-system';\n\ntype EmptyNavProps = {\n msg: string;\n}\n\nexport default function EmptyBox ({ msg }: EmptyNavProps) {\n\n return (\n <>\n <EmptyDocuments width=\"10rem\" height=\"6rem\"/>\n <Box padding={4}>\n <Typography variant=\"beta\" textColor=\"neutral600\">{msg}</Typography>\n </Box>\n </>\n )\n}"],"names":["jsxs","Fragment","jsx","EmptyDocuments","Box","Typography"],"mappings":";;;;AAOwB,SAAA,SAAU,EAAE,OAAsB;AAExD,SAEIA,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IAAAC,2BAAA,IAACC,QAAe,gBAAA,EAAA,OAAM,SAAQ,QAAO,QAAM;AAAA,IAC3CD,2BAAA,IAACE,aAAI,KAAA,EAAA,SAAS,GACZ,UAAAF,2BAAAA,IAACG,aAAAA,YAAW,EAAA,SAAQ,QAAO,WAAU,cAAc,UAAA,IAAA,CAAI,EACzD,CAAA;AAAA,EAAA,GACF;AAEJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullLoader-Cmsf8xS6.js","sources":["../../admin/src/components/UI/Center.tsx","../../admin/src/components/UI/FullLoader.tsx"],"sourcesContent":["import { Flex } from '@strapi/design-system';\n\nexport default function Center({ height = 400, children }: { height?: number, children: React.ReactNode }) {\n\n return (\n <Flex direction=\"column\" minHeight={`${height}px`} justifyContent=\"center\">\n {children}\n </Flex>\n )\n}","import { Loader, Box } from '@strapi/design-system';\nimport Center from './Center';\n\nexport default function FullLoader({ height }: { height?: number }) {\n return (\n <Center height={height}>\n <Loader>Loading...</Loader>\n </Center>\n );\n}"],"names":["jsx","Flex","Loader"],"mappings":";;;AAEA,SAAwB,OAAO,EAAE,SAAS,KAAK,YAA4D;AAGvG,SAAAA,2BAAA,IAACC,aAAK,MAAA,EAAA,WAAU,UAAS,WAAW,GAAG,MAAM,MAAM,gBAAe,UAC/D,SACH,CAAA;AAEJ;ACNwB,SAAA,WAAW,EAAE,UAA+B;AAClE,wCACG,QAAO,EAAA,QACN,UAACD,+BAAAE,aAAAA,QAAA,EAAO,wBAAU,EACpB,CAAA;AAEJ;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullLoader-CrPED_dY.mjs","sources":["../../admin/src/components/UI/Center.tsx","../../admin/src/components/UI/FullLoader.tsx"],"sourcesContent":["import { Flex } from '@strapi/design-system';\n\nexport default function Center({ height = 400, children }: { height?: number, children: React.ReactNode }) {\n\n return (\n <Flex direction=\"column\" minHeight={`${height}px`} justifyContent=\"center\">\n {children}\n </Flex>\n )\n}","import { Loader, Box } from '@strapi/design-system';\nimport Center from './Center';\n\nexport default function FullLoader({ height }: { height?: number }) {\n return (\n <Center height={height}>\n <Loader>Loading...</Loader>\n </Center>\n );\n}"],"names":[],"mappings":";;AAEA,SAAwB,OAAO,EAAE,SAAS,KAAK,YAA4D;AAGvG,SAAA,oBAAC,MAAK,EAAA,WAAU,UAAS,WAAW,GAAG,MAAM,MAAM,gBAAe,UAC/D,SACH,CAAA;AAEJ;ACNwB,SAAA,WAAW,EAAE,UAA+B;AAClE,6BACG,QAAO,EAAA,QACN,UAAC,oBAAA,QAAA,EAAO,wBAAU,EACpB,CAAA;AAEJ;"}
|
|
@@ -104,11 +104,15 @@ const de = {
|
|
|
104
104
|
"webatlas.draft": "Entwurf",
|
|
105
105
|
"webatlas.modified": "Geändert",
|
|
106
106
|
"webatlas.deleted": "Gelöscht",
|
|
107
|
+
"webatlas.restore": "Wiederherstellen",
|
|
107
108
|
"webatlas.notification.error": "Ein Fehler ist aufgetreten",
|
|
108
109
|
"webatlas.notification.settings.saved": "Einstellungen erfolgreich gespeichert",
|
|
109
110
|
"webatlas.notification.routes.fetchFailed": "Routen konnten nicht abgerufen werden",
|
|
110
111
|
"webatlas.notification.navigation.saveNavigationFailed": "Fehler beim Aktualisieren des Navigationselements",
|
|
111
112
|
"webatlas.notification.navigation.navigationSaved": "Navigation erfolgreich aktualisiert",
|
|
112
|
-
"webatlas.notification.navigation.fetchFailed": "Fehler beim Abrufen der Navigationen"
|
|
113
|
+
"webatlas.notification.navigation.fetchFailed": "Fehler beim Abrufen der Navigationen",
|
|
114
|
+
"webatlas.notification.navigation.notFound": "Navigation nicht gefunden. Zur Navigation weitergeleitet",
|
|
115
|
+
"webatlas.notification.navigation.creationFailed": "Erstellung der Navigation fehlgeschlagen"
|
|
113
116
|
};
|
|
114
117
|
exports.default = de;
|
|
118
|
+
//# sourceMappingURL=de-CL1TIZPg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de-CL1TIZPg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -102,13 +102,17 @@ const de = {
|
|
|
102
102
|
"webatlas.draft": "Entwurf",
|
|
103
103
|
"webatlas.modified": "Geändert",
|
|
104
104
|
"webatlas.deleted": "Gelöscht",
|
|
105
|
+
"webatlas.restore": "Wiederherstellen",
|
|
105
106
|
"webatlas.notification.error": "Ein Fehler ist aufgetreten",
|
|
106
107
|
"webatlas.notification.settings.saved": "Einstellungen erfolgreich gespeichert",
|
|
107
108
|
"webatlas.notification.routes.fetchFailed": "Routen konnten nicht abgerufen werden",
|
|
108
109
|
"webatlas.notification.navigation.saveNavigationFailed": "Fehler beim Aktualisieren des Navigationselements",
|
|
109
110
|
"webatlas.notification.navigation.navigationSaved": "Navigation erfolgreich aktualisiert",
|
|
110
|
-
"webatlas.notification.navigation.fetchFailed": "Fehler beim Abrufen der Navigationen"
|
|
111
|
+
"webatlas.notification.navigation.fetchFailed": "Fehler beim Abrufen der Navigationen",
|
|
112
|
+
"webatlas.notification.navigation.notFound": "Navigation nicht gefunden. Zur Navigation weitergeleitet",
|
|
113
|
+
"webatlas.notification.navigation.creationFailed": "Erstellung der Navigation fehlgeschlagen"
|
|
111
114
|
};
|
|
112
115
|
export {
|
|
113
116
|
de as default
|
|
114
117
|
};
|
|
118
|
+
//# sourceMappingURL=de-CzVD4dbZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de-CzVD4dbZ.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -104,11 +104,15 @@ const en = {
|
|
|
104
104
|
"webatlas.draft": "Draft",
|
|
105
105
|
"webatlas.modified": "Modified",
|
|
106
106
|
"webatlas.deleted": "Deleted",
|
|
107
|
+
"webatlas.restore": "Restore",
|
|
107
108
|
"webatlas.notification.error": "An error occurred",
|
|
108
109
|
"webatlas.notification.settings.saved": "Settings saved successfully",
|
|
109
110
|
"webatlas.notification.routes.fetchFailed": "Failed to fetch routes",
|
|
110
111
|
"webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
|
|
111
112
|
"webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
|
|
112
|
-
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations"
|
|
113
|
+
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations",
|
|
114
|
+
"webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
|
|
115
|
+
"webatlas.notification.navigation.creationFailed": "Creation of navigation failed"
|
|
113
116
|
};
|
|
114
117
|
exports.default = en;
|
|
118
|
+
//# sourceMappingURL=en-Du-Ap60j.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-Du-Ap60j.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -102,13 +102,17 @@ const en = {
|
|
|
102
102
|
"webatlas.draft": "Draft",
|
|
103
103
|
"webatlas.modified": "Modified",
|
|
104
104
|
"webatlas.deleted": "Deleted",
|
|
105
|
+
"webatlas.restore": "Restore",
|
|
105
106
|
"webatlas.notification.error": "An error occurred",
|
|
106
107
|
"webatlas.notification.settings.saved": "Settings saved successfully",
|
|
107
108
|
"webatlas.notification.routes.fetchFailed": "Failed to fetch routes",
|
|
108
109
|
"webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
|
|
109
110
|
"webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
|
|
110
|
-
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations"
|
|
111
|
+
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations",
|
|
112
|
+
"webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
|
|
113
|
+
"webatlas.notification.navigation.creationFailed": "Creation of navigation failed"
|
|
111
114
|
};
|
|
112
115
|
export {
|
|
113
116
|
en as default
|
|
114
117
|
};
|
|
118
|
+
//# sourceMappingURL=en-Nk6QcTdr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-Nk6QcTdr.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -23,7 +23,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
const version = "0.
|
|
26
|
+
const version = "0.5.0";
|
|
27
27
|
const keywords = [];
|
|
28
28
|
const type = "commonjs";
|
|
29
29
|
const exports = {
|
|
@@ -158,7 +158,7 @@ const Initializer = ({ setPlugin }) => {
|
|
|
158
158
|
const RouteIcon = () => /* @__PURE__ */ jsx(Link, {});
|
|
159
159
|
const NavigationIcon = () => /* @__PURE__ */ jsx(List, {});
|
|
160
160
|
function useApi() {
|
|
161
|
-
const { get,
|
|
161
|
+
const { get, put, del } = useFetchClient();
|
|
162
162
|
const fetchAllContentTypes = async () => {
|
|
163
163
|
const { data } = await get("/content-manager/content-types");
|
|
164
164
|
return data.data;
|
|
@@ -4059,7 +4059,7 @@ const index = {
|
|
|
4059
4059
|
defaultMessage: "Routes"
|
|
4060
4060
|
},
|
|
4061
4061
|
Component: async () => {
|
|
4062
|
-
const component = await import("./index-
|
|
4062
|
+
const component = await import("./index-DLfJwkbe.mjs");
|
|
4063
4063
|
return { default: component.default };
|
|
4064
4064
|
},
|
|
4065
4065
|
permissions: [
|
|
@@ -4078,7 +4078,7 @@ const index = {
|
|
|
4078
4078
|
defaultMessage: "Navigation"
|
|
4079
4079
|
},
|
|
4080
4080
|
Component: async () => {
|
|
4081
|
-
const component = await import("./index-
|
|
4081
|
+
const component = await import("./index-Upva9LaE.mjs");
|
|
4082
4082
|
return { default: component.default };
|
|
4083
4083
|
},
|
|
4084
4084
|
permissions: [
|
|
@@ -4107,7 +4107,7 @@ const index = {
|
|
|
4107
4107
|
Component: async () => {
|
|
4108
4108
|
return await import(
|
|
4109
4109
|
/* webpackChunkName: "webatlas-settings-page" */
|
|
4110
|
-
"./index-
|
|
4110
|
+
"./index-Dl3NwmwH.mjs"
|
|
4111
4111
|
);
|
|
4112
4112
|
},
|
|
4113
4113
|
permissions: [
|
|
@@ -4136,7 +4136,7 @@ const index = {
|
|
|
4136
4136
|
return Promise.all(
|
|
4137
4137
|
locales.map(async (locale) => {
|
|
4138
4138
|
try {
|
|
4139
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => import("./de-
|
|
4139
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => import("./de-CzVD4dbZ.mjs"), "./translations/en.json": () => import("./en-Nk6QcTdr.mjs") }), `./translations/${locale}.json`, 3);
|
|
4140
4140
|
return { data, locale };
|
|
4141
4141
|
} catch {
|
|
4142
4142
|
return { data: {}, locale };
|