@mattisvensson/strapi-plugin-webatlas 0.2.6 → 0.3.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/README.md +2 -3
- package/dist/_chunks/de-4tL_cJTC.js +104 -0
- package/dist/_chunks/de-C8PE3n3B.mjs +104 -0
- package/dist/_chunks/en-Bg4z3fR7.js +104 -0
- package/dist/_chunks/en-CR1YZvJo.mjs +104 -0
- package/dist/_chunks/{index-D4IHmUrH.js → index-BAqGJ3TM.js} +298 -91
- package/dist/_chunks/{index-BMQSVj43.mjs → index-BBL_eQ0G.mjs} +167 -78
- package/dist/_chunks/{index-B_RPO9ty.mjs → index-BOq-WidK.mjs} +57 -17
- package/dist/_chunks/{index-DIyVy-8D.js → index-C4ou6MTp.js} +57 -17
- package/dist/_chunks/{index-DrlYDm6a.js → index-CKoxbSC0.js} +166 -77
- package/dist/_chunks/{index-uoH_HJQr.mjs → index-CwHhwtOU.mjs} +296 -89
- package/dist/_chunks/index-DZmhgSeq.mjs +92 -0
- package/dist/_chunks/{index-BvXbuF1E.js → index-DsTyLL2l.js} +56 -8
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/URLInfo.d.ts +2 -1
- package/dist/admin/src/components/modals/NavModal.d.ts +2 -1
- package/dist/admin/src/utils/getRouteType.d.ts +2 -0
- package/dist/admin/src/utils/index.d.ts +2 -1
- package/dist/server/index.js +15 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +15 -2
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/en-B4KWt_jN.js +0 -4
- package/dist/_chunks/en-Byx4XI2L.mjs +0 -4
- package/dist/_chunks/index-BMlQpLGa.mjs +0 -44
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { Layouts } from "@strapi/strapi/admin";
|
|
4
|
-
import { Table, Thead, Tr, Th, Typography, VisuallyHidden, Tbody, Td, Flex, LinkButton } from "@strapi/design-system";
|
|
5
|
-
import { Pencil } from "@strapi/icons";
|
|
6
|
-
import { u as useApi } from "./index-BMQSVj43.mjs";
|
|
7
|
-
import { C as Center, E as EmptyBox } from "./EmptyBox-7D4LrvdH.mjs";
|
|
8
|
-
const Routes = () => {
|
|
9
|
-
const { getRoutes } = useApi();
|
|
10
|
-
const [routes, setRoutes] = useState([]);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
async function fetchRoutes() {
|
|
13
|
-
const data = await getRoutes();
|
|
14
|
-
setRoutes(data);
|
|
15
|
-
}
|
|
16
|
-
fetchRoutes();
|
|
17
|
-
}, []);
|
|
18
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx(
|
|
20
|
-
Layouts.Header,
|
|
21
|
-
{
|
|
22
|
-
title: "Routes",
|
|
23
|
-
subtitle: "Overview of all existing routes"
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ jsx(Layouts.Content, { children: routes.length === 0 ? /* @__PURE__ */ jsx(Center, { height: 400, children: /* @__PURE__ */ jsx(EmptyBox, { msg: "No routes found" }) }) : /* @__PURE__ */ jsxs(Table, { colCount: 4, rowCount: routes.length, children: [
|
|
27
|
-
/* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
|
|
28
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "ID" }) }),
|
|
29
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Title" }) }),
|
|
30
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Route" }) }),
|
|
31
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: "Actions" }) })
|
|
32
|
-
] }) }),
|
|
33
|
-
/* @__PURE__ */ jsx(Tbody, { children: routes.map((route) => /* @__PURE__ */ jsxs(Tr, { children: [
|
|
34
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.id }) }),
|
|
35
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.title }) }),
|
|
36
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.fullPath }) }),
|
|
37
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Flex, { gap: 2, justifyContent: "end", children: /* @__PURE__ */ jsx(LinkButton, { variant: "secondary", startIcon: /* @__PURE__ */ jsx(Pencil, {}), href: `/admin/content-manager/collection-types/${route.relatedContentType}/${route.relatedDocumentId}`, children: "Edit" }) }) })
|
|
38
|
-
] }, route.id)) })
|
|
39
|
-
] }) })
|
|
40
|
-
] });
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
Routes as default
|
|
44
|
-
};
|