@mattisvensson/strapi-plugin-webatlas 0.1.0 → 0.1.3

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.
Files changed (58) hide show
  1. package/README.md +9 -16
  2. package/dist/_chunks/_commonjsHelpers-BxmBWJD2.mjs +1 -0
  3. package/dist/_chunks/_commonjsHelpers-BxmBWJD2.mjs.map +1 -0
  4. package/dist/_chunks/_commonjsHelpers-Cq6wktVC.js +1 -0
  5. package/dist/_chunks/_commonjsHelpers-Cq6wktVC.js.map +1 -0
  6. package/dist/_chunks/en-B4KWt_jN.js +1 -0
  7. package/dist/_chunks/en-B4KWt_jN.js.map +1 -0
  8. package/dist/_chunks/en-Byx4XI2L.mjs +1 -0
  9. package/dist/_chunks/en-Byx4XI2L.mjs.map +1 -0
  10. package/dist/_chunks/index-BN88Lgzs.mjs +48 -0
  11. package/dist/_chunks/index-BN88Lgzs.mjs.map +1 -0
  12. package/dist/_chunks/index-BO-x2JqR.js +773 -0
  13. package/dist/_chunks/index-BO-x2JqR.js.map +1 -0
  14. package/dist/_chunks/index-BlgOvhoB.js +48 -0
  15. package/dist/_chunks/index-BlgOvhoB.js.map +1 -0
  16. package/dist/_chunks/index-BxpNGM75.js +6815 -0
  17. package/dist/_chunks/index-BxpNGM75.js.map +1 -0
  18. package/dist/_chunks/index-C9WMC_E4.mjs +18006 -0
  19. package/dist/_chunks/index-C9WMC_E4.mjs.map +1 -0
  20. package/dist/_chunks/index-CMR1MRav.js +773 -0
  21. package/dist/_chunks/index-CMR1MRav.js.map +1 -0
  22. package/dist/_chunks/index-CWKVE-jr.mjs +18006 -0
  23. package/dist/_chunks/index-CWKVE-jr.mjs.map +1 -0
  24. package/dist/_chunks/index-CX7sNP82.mjs +6815 -0
  25. package/dist/_chunks/index-CX7sNP82.mjs.map +1 -0
  26. package/dist/_chunks/index-CZ17y-Jh.mjs +6815 -0
  27. package/dist/_chunks/index-CZ17y-Jh.mjs.map +1 -0
  28. package/dist/_chunks/index-CoLyO2LL.js +774 -0
  29. package/dist/_chunks/index-CoLyO2LL.js.map +1 -0
  30. package/dist/_chunks/index-D-Td1Ois.mjs +774 -0
  31. package/dist/_chunks/index-D-Td1Ois.mjs.map +1 -0
  32. package/dist/_chunks/index-D-XQl47E.mjs +48 -0
  33. package/dist/_chunks/index-D-XQl47E.mjs.map +1 -0
  34. package/dist/_chunks/index-D2uQoUmx.js +18011 -0
  35. package/dist/_chunks/index-D2uQoUmx.js.map +1 -0
  36. package/dist/_chunks/index-D6j3Fzy1.js +48 -0
  37. package/dist/_chunks/index-D6j3Fzy1.js.map +1 -0
  38. package/dist/_chunks/index-D7gp-xV4.js +6815 -0
  39. package/dist/_chunks/index-D7gp-xV4.js.map +1 -0
  40. package/dist/_chunks/index-DDqPnM_n.js +18018 -0
  41. package/dist/_chunks/index-DDqPnM_n.js.map +1 -0
  42. package/dist/_chunks/index-DjiYUIHu.mjs +775 -0
  43. package/dist/_chunks/index-DjiYUIHu.mjs.map +1 -0
  44. package/dist/_chunks/index-Dswi-nB-.js +6815 -0
  45. package/dist/_chunks/index-Dswi-nB-.js.map +1 -0
  46. package/dist/_chunks/index-_NyTpRNV.js +48 -0
  47. package/dist/_chunks/index-_NyTpRNV.js.map +1 -0
  48. package/dist/_chunks/index-kDu0Msv9.js +18025 -0
  49. package/dist/_chunks/index-kDu0Msv9.js.map +1 -0
  50. package/dist/admin/index.js +2 -1
  51. package/dist/admin/index.js.map +1 -0
  52. package/dist/admin/index.mjs +2 -1
  53. package/dist/admin/index.mjs.map +1 -0
  54. package/dist/server/index.js +11 -10
  55. package/dist/server/index.js.map +1 -0
  56. package/dist/server/index.mjs +11 -10
  57. package/dist/server/index.mjs.map +1 -0
  58. package/package.json +3 -3
package/README.md CHANGED
@@ -24,9 +24,8 @@ This plugin is still in the early stages of development. Many features are plann
24
24
 
25
25
  ## 💎 Versions
26
26
 
27
- - **Strapi v5** - [v1.x (work in progress)](https://github.com/mattisvensson/strapi-plugin-webatlas/tree/main)
28
- - **Strapi v4** - [v1.x (Archived – no further updates)](https://github.com/mattisvensson/strapi-plugin-webatlas/tree/main)
29
-
27
+ - **Strapi v5** - [v0.x.x (work in progress - beta)](https://github.com/mattisvensson/strapi-plugin-webatlas/tree/main)
28
+ - **Strapi v4** - not supported
30
29
  ## ✨ Features
31
30
 
32
31
  - **🚀 Automatic Slug Generation:** Automatically generate clean, SEO-friendly slugs based on your content fields. No more manual slug writing — just choose the field, and the plugin takes care of the rest. Slugs are unique and easily customizable.
@@ -38,22 +37,17 @@ This plugin is still in the early stages of development. Many features are plann
38
37
  ## ⏳ Installation
39
38
 
40
39
  ### Via command line
41
-
42
- (Use **yarn** to install this plugin within your Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)
43
-
40
+ Install Webatlas via command line with a package manager of your choice.
41
+ Using NPM:
44
42
  ```bash
45
- yarn add strapi-plugin-webatlas@latest
43
+ npm install strapi-plugin-webatlas@beta
46
44
  ```
47
45
 
48
- After successful installation you've to re-build your Strapi instance. To archive that simply use:
49
-
46
+ Using Yarn:
50
47
  ```bash
51
- yarn build
52
- yarn develop
48
+ yarn add strapi-plugin-webatlas@beta
53
49
  ```
54
50
 
55
- **Webatlas** should appear in the **Plugins** section of Strapi sidebar after you run app again.
56
-
57
51
  As a next step you must configure your the plugin by the way you want to. See [**Configuration**](#🔧-configuration) section.
58
52
 
59
53
  All done. Enjoy 🎉
@@ -99,7 +93,6 @@ For each selected content type, you have the following settings:
99
93
 
100
94
  ## 🧩 Roadmap
101
95
 
102
- - v5 compatibility
103
96
  - RBAC
104
97
  - User action feedback
105
98
  - Internationalization
@@ -109,7 +102,6 @@ For each selected content type, you have the following settings:
109
102
  - Filters
110
103
  - Nested url structure
111
104
  - Entity page
112
- - Show all routes for entity
113
105
  - Add to navigation from entity
114
106
  - Settings
115
107
  - Navigation settings
@@ -122,6 +114,7 @@ For each selected content type, you have the following settings:
122
114
  - Item search
123
115
  - Collapse items
124
116
  - Multi action for items
117
+ - Redirects management
125
118
 
126
119
  ---
127
120
 
@@ -131,7 +124,7 @@ This plugin is still in the early stages of development. Many features are plann
131
124
 
132
125
  ## 📝 License
133
126
 
134
- [MIT License](LICENSE.md) Copyright (c) [Matti Svensson](https://mattisvensson.com/)
127
+ [MIT License](LICENSE.md) Copyright (c) [Matti Svensson](https://mattisvensson.dev/)
135
128
 
136
129
  Webatlas v5 is based on the [plugin boilerplate](https://github.com/pluginpal/strapi-plugin-boilerplate#readme) by [PluginPal](https://www.pluginpal.io/).
137
130
 
@@ -31,3 +31,4 @@ export {
31
31
  commonjsGlobal as c,
32
32
  getAugmentedNamespace as g
33
33
  };
34
+ //# sourceMappingURL=_commonjsHelpers-BxmBWJD2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjsHelpers-BxmBWJD2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -30,3 +30,4 @@ function getAugmentedNamespace(n) {
30
30
  exports.commonjsGlobal = commonjsGlobal;
31
31
  exports.getAugmentedNamespace = getAugmentedNamespace;
32
32
  exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
33
+ //# sourceMappingURL=_commonjsHelpers-Cq6wktVC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjsHelpers-Cq6wktVC.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,3 +2,4 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const en = {};
4
4
  exports.default = en;
5
+ //# sourceMappingURL=en-B4KWt_jN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-B4KWt_jN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -2,3 +2,4 @@ const en = {};
2
2
  export {
3
3
  en as default
4
4
  };
5
+ //# sourceMappingURL=en-Byx4XI2L.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-Byx4XI2L.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,48 @@
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-D-Td1Ois.mjs";
7
+ const Routes = () => {
8
+ const { getRoutes } = useApi();
9
+ const [routes, setRoutes] = useState([]);
10
+ useEffect(() => {
11
+ async function fetchRoutes() {
12
+ const data = await getRoutes();
13
+ setRoutes(data);
14
+ }
15
+ fetchRoutes();
16
+ }, []);
17
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
18
+ /* @__PURE__ */ jsx(
19
+ Layouts.Header,
20
+ {
21
+ title: "Routes",
22
+ subtitle: "Overview of all existing routes"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsxs(Table, { colCount: 6, rowCount: routes.length, children: [
26
+ /* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
27
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "ID" }) }),
28
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Title" }) }),
29
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Route" }) }),
30
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Internal" }) }),
31
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Active" }) }),
32
+ /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: "Actions" }) })
33
+ ] }) }),
34
+ /* @__PURE__ */ jsx(Tbody, { children: routes.map((route) => /* @__PURE__ */ jsxs(Tr, { children: [
35
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.id }) }),
36
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.title }) }),
37
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.fullPath }) }),
38
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.internal ? "Yes" : "No" }) }),
39
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { textColor: "neutral800", children: route.active ? "Yes" : "No" }) }),
40
+ /* @__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.relatedId}`, children: "Edit" }) }) })
41
+ ] }, route.id)) })
42
+ ] }) })
43
+ ] });
44
+ };
45
+ export {
46
+ Routes as default
47
+ };
48
+ //# sourceMappingURL=index-BN88Lgzs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BN88Lgzs.mjs","sources":["../../admin/src/pages/Routes/index.tsx"],"sourcesContent":["/*\n *\n * Routes\n * This file contains the Routes page of the Webatlas plugin for Strapi.\n * It displays a table of all existing routes with their details and allows editing.\n *\n*/\n\nimport { useState, useEffect } from 'react';\nimport { useFetchClient, Layouts } from '@strapi/strapi/admin';\nimport { Flex, Typography, Table, Thead, Tbody, Tr, Td, Th, VisuallyHidden, LinkButton } from '@strapi/design-system';\nimport { Pencil } from '@strapi/icons';\nimport { Route } from '../../../../types';\nimport { useApi } from '../../hooks';\n\nconst Routes = () => {\n const { getRoutes } = useApi();\n\n const [routes, setRoutes] = useState([]);\n\n useEffect(() => {\n async function fetchRoutes() {\n const data = await getRoutes();\n setRoutes(data);\n }\n fetchRoutes();\n }, [])\n\n return (\n <>\n <Layouts.Header\n title='Routes'\n subtitle='Overview of all existing routes'\n />\n <Layouts.Content>\n <Table colCount={6} rowCount={routes.length}>\n <Thead>\n <Tr>\n <Th>\n <Typography variant=\"sigma\">ID</Typography>\n </Th>\n <Th>\n <Typography variant=\"sigma\">Title</Typography>\n </Th>\n <Th>\n <Typography variant=\"sigma\">Route</Typography>\n </Th>\n <Th>\n <Typography variant=\"sigma\">Internal</Typography>\n </Th>\n <Th>\n <Typography variant=\"sigma\">Active</Typography>\n </Th>\n <Th>\n <VisuallyHidden>Actions</VisuallyHidden>\n </Th>\n </Tr>\n </Thead>\n <Tbody>\n {routes.map((route: Route) => <Tr key={route.id}>\n <Td>\n <Typography textColor=\"neutral800\">{route.id}</Typography>\n </Td>\n <Td>\n <Typography textColor=\"neutral800\">{route.title}</Typography>\n </Td>\n <Td>\n <Typography textColor=\"neutral800\">{route.fullPath}</Typography>\n </Td>\n <Td>\n <Typography textColor=\"neutral800\">{route.internal ? 'Yes' : 'No'}</Typography>\n </Td>\n <Td>\n <Typography textColor=\"neutral800\">{route.active ? 'Yes' : 'No'}</Typography>\n </Td>\n <Td>\n <Flex gap={2} justifyContent=\"end\">\n {/* <Button variant=\"secondary\">More info</Button> */}\n <LinkButton variant=\"secondary\" startIcon={<Pencil />} href={`/admin/content-manager/collection-types/${route.relatedContentType}/${route.relatedId}`}>Edit</LinkButton>\n </Flex>\n </Td>\n </Tr>)}\n </Tbody>\n </Table>\n </Layouts.Content>\n </>\n );\n};\n\nexport default Routes;"],"names":[],"mappings":";;;;;;AAeA,MAAM,SAAS,MAAM;AACb,QAAA,EAAE,UAAU,IAAI,OAAO;AAE7B,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,CAAA,CAAE;AAEvC,YAAU,MAAM;A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