@mattisvensson/strapi-plugin-webatlas 0.11.8 → 0.12.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.
Files changed (31) hide show
  1. package/README.md +6 -2
  2. package/dist/admin/{FullLoader-Btjb2W2p.mjs → FullLoader-BTZzPY8g.mjs} +11 -1
  3. package/dist/admin/{FullLoader-Da2n70bJ.js → FullLoader-C4hXFaLP.js} +10 -0
  4. package/dist/admin/{RoutePicker-CFqZfjDu.mjs → RoutePicker-h2yWGB6S.mjs} +1 -1
  5. package/dist/admin/{RoutePicker-BEmAG6aK.js → RoutePicker-mEHRtXQ9.js} +1 -1
  6. package/dist/admin/{SettingTitle-DRvX07-B.js → SettingTitle-CBcBCh1h.js} +1 -1
  7. package/dist/admin/{SettingTitle-D_X8W1mC.mjs → SettingTitle-DTXdYICP.mjs} +1 -1
  8. package/dist/admin/WarningBox-CMQuE_Ov.mjs +42 -0
  9. package/dist/admin/WarningBox-DsBtzhs3.js +41 -0
  10. package/dist/admin/{de-B5pRvs13.mjs → de-BFjenpyN.mjs} +16 -1
  11. package/dist/admin/{de-CqU1FU8C.js → de-DhwCZE_m.js} +16 -1
  12. package/dist/admin/{en-C7I90FwV.js → en-C-rPCNd2.js} +16 -1
  13. package/dist/admin/{en-BE-zzIv8.mjs → en-CGCh9ld_.mjs} +16 -1
  14. package/dist/admin/{index-lZ3-1icm.js → index-BYytQZfK.js} +169 -131
  15. package/dist/admin/{index-_8exe5fa.js → index-BZBUZWp1.js} +13 -8
  16. package/dist/admin/{index-CSknqklZ.js → index-Bn_SWdWd.js} +178 -85
  17. package/dist/admin/{index-ClG-B5Tr.js → index-CaFjiS4j.js} +21 -13
  18. package/dist/admin/{index-DZkauelU.mjs → index-Ckaev6xU.mjs} +170 -132
  19. package/dist/admin/{index-B9kmIJ1Y.mjs → index-Do9dOMP-.mjs} +180 -87
  20. package/dist/admin/{index-HCnLKUJN.mjs → index-DuwTQMlZ.mjs} +21 -13
  21. package/dist/admin/index-GZ_b2eve.js +480 -0
  22. package/dist/admin/index-aSdHc104.mjs +480 -0
  23. package/dist/admin/{index-CYF5Yipx.mjs → index-l4-tTCw9.mjs} +13 -8
  24. package/dist/admin/index.js +1 -1
  25. package/dist/admin/index.mjs +2 -2
  26. package/dist/server/index.js +485 -496
  27. package/dist/server/index.mjs +498 -509
  28. package/dist/server/src/index.d.ts +48 -5
  29. package/package.json +1 -1
  30. package/dist/admin/index-CTbP2yjO.js +0 -243
  31. package/dist/admin/index-uD-voTpW.mjs +0 -243
package/README.md CHANGED
@@ -87,7 +87,8 @@ Your schema should contain the following:
87
87
 
88
88
  Use the settings page to configure the plugin.
89
89
 
90
- - **Generate path from:** Select a field from which the slug will automatically be generated. For example, use the 'title' field or a dedicated slug field.
90
+ - **Generate path from:** Select a field from which the slug will automatically be generated. For example, use the 'title' field or a dedicated slug field. Content types without a text field cannot generate a path, so no field can be selected and Webatlas stays disabled for them until you add one.
91
+ - **Default parent route:** Optionally select an entry that new entries of this content type should be placed under by default. Pick the content type first, then the specific entry. For example, set a "News overview" page as the default parent for your "News" collection, so a new article is created at `/news/some-article` without the editor having to select the parent manually. The preselection can still be changed (or reset to the root path) per entry in the content editor. If the selected entry is deleted, the setting is cleared automatically.
91
92
 
92
93
  ## 📖 Usage
93
94
 
@@ -95,7 +96,7 @@ Use the settings page to configure the plugin.
95
96
 
96
97
  After selecting the source field for path generation in settings, you'll see the webatlas panel in the content editor sidebar:
97
98
 
98
- **Parent Hierarchy (Place under)**: Select a parent page to create nested URLs (e.g., placing "Services" under "About" creates `/about/services`)
99
+ **Parent Hierarchy (Place under)**: Select a parent page to create nested URLs (e.g., placing "Services" under "About" creates `/about/services`). If a default parent route is configured for the content type in the settings, it is preselected for new entries and can be changed or reset to the root path at any time.
99
100
 
100
101
  **Generated Path (Path)**: Automatically created from your selected field (e.g., "About Us" → `/about-us`)
101
102
 
@@ -124,9 +125,12 @@ Query parameters:
124
125
  - `populateDeepDepth` (string, optional): Depth for deep population.
125
126
  - `fields` (string, optional): Comma-separated list of fields to include in the response.
126
127
  - `status` (string, optional): `draft` or `published`. Default is `published`. Returns the draft or published version of the entity.
128
+ - `breadcrumb` (string, optional): Pass `false` to omit the breadcrumb from the response. Enabled by default.
127
129
 
128
130
  The response contains the entity's content type and a `webatlas` object with additional information about the path, including the canonical path, uidPath and slug. The `webatlas` object is also available in the Content API responses of entities with webatlas enabled.
129
131
 
132
+ The `webatlas` object also contains a `breadcrumb` array, ordered from the root to the requested page, with the requested page as its last entry. Each entry provides `path`, `canonicalPath`, `slug`, `uidPath` and `title`, so it can be looped over directly. The hierarchy is derived from the canonical path, which is based on the content structure — an overridden path does not change the breadcrumb's hierarchy, but each entry still carries its own `path`.
133
+
130
134
  #### Fetch navigation
131
135
 
132
136
  `GET /api/webatlas/navigation`
@@ -1,5 +1,14 @@
1
+ import { useCallback } from "react";
2
+ import { useAPIErrorHandler, isFetchError } from "@strapi/strapi/admin";
1
3
  import { jsx } from "react/jsx-runtime";
2
4
  import { Flex, Loader } from "@strapi/design-system";
5
+ function useErrorMessage() {
6
+ const { formatAPIError } = useAPIErrorHandler();
7
+ return useCallback(
8
+ (error, fallback) => isFetchError(error) ? formatAPIError(error) : fallback,
9
+ [formatAPIError]
10
+ );
11
+ }
3
12
  function Center({
4
13
  height = 400,
5
14
  children
@@ -11,5 +20,6 @@ function FullLoader({ height }) {
11
20
  }
12
21
  export {
13
22
  Center as C,
14
- FullLoader as F
23
+ FullLoader as F,
24
+ useErrorMessage as u
15
25
  };
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
+ const React = require("react");
3
+ const admin = require("@strapi/strapi/admin");
2
4
  const jsxRuntime = require("react/jsx-runtime");
3
5
  const designSystem = require("@strapi/design-system");
6
+ function useErrorMessage() {
7
+ const { formatAPIError } = admin.useAPIErrorHandler();
8
+ return React.useCallback(
9
+ (error, fallback) => admin.isFetchError(error) ? formatAPIError(error) : fallback,
10
+ [formatAPIError]
11
+ );
12
+ }
4
13
  function Center({
5
14
  height = 400,
6
15
  children
@@ -12,3 +21,4 @@ function FullLoader({ height }) {
12
21
  }
13
22
  exports.Center = Center;
14
23
  exports.FullLoader = FullLoader;
24
+ exports.useErrorMessage = useErrorMessage;
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useEffect } from "react";
3
3
  import { Field, Combobox, ComboboxOption, Box } from "@strapi/design-system";
4
4
  import { ExternalLink, Link } from "@strapi/icons";
5
- import { u as useApi } from "./index-DZkauelU.mjs";
5
+ import { u as useApi } from "./index-Ckaev6xU.mjs";
6
6
  import "@strapi/strapi/admin";
7
7
  const Input = forwardRef((props, ref) => {
8
8
  const { attribute, disabled, placeholder, label, name, onChange, required, value, hint } = props;
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const icons = require("@strapi/icons");
7
- const index = require("./index-lZ3-1icm.js");
7
+ const index = require("./index-BYytQZfK.js");
8
8
  require("@strapi/strapi/admin");
9
9
  const Input = React.forwardRef((props, ref) => {
10
10
  const { attribute, disabled, placeholder, label, name, onChange, required, value, hint } = props;
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const designSystem = require("@strapi/design-system");
4
4
  const admin = require("@strapi/strapi/admin");
5
- const index = require("./index-lZ3-1icm.js");
5
+ const index = require("./index-BYytQZfK.js");
6
6
  const reactIntl = require("react-intl");
7
7
  const icons = require("@strapi/icons");
8
8
  function PageWrapper({
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Button, Flex, Typography, Box } from "@strapi/design-system";
3
3
  import { Page, Layouts } from "@strapi/strapi/admin";
4
- import { f as PLUGIN_NAME, g as getTranslation } from "./index-DZkauelU.mjs";
4
+ import { f as PLUGIN_NAME, g as getTranslation } from "./index-Ckaev6xU.mjs";
5
5
  import { useIntl } from "react-intl";
6
6
  import { Check } from "@strapi/icons";
7
7
  function PageWrapper({
@@ -0,0 +1,42 @@
1
+ import { useState, useEffect } from "react";
2
+ import { u as useApi, i as isAbortError } from "./index-Ckaev6xU.mjs";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Badge, Flex, Typography } from "@strapi/design-system";
5
+ import { WarningCircle } from "@strapi/icons";
6
+ const useAllEntities = () => {
7
+ const { fetchAllEntities } = useApi();
8
+ const [entities, setEntities] = useState([]);
9
+ const [loading, setLoading] = useState(true);
10
+ const [error, setError] = useState(null);
11
+ useEffect(() => {
12
+ const fetchEntities = async () => {
13
+ try {
14
+ const result = await fetchAllEntities();
15
+ setEntities(result);
16
+ setLoading(false);
17
+ } catch (err) {
18
+ if (isAbortError(err)) return;
19
+ setError(err);
20
+ setLoading(false);
21
+ }
22
+ };
23
+ fetchEntities();
24
+ }, []);
25
+ return { entities, loading, error };
26
+ };
27
+ function WarningBox({
28
+ title,
29
+ description
30
+ }) {
31
+ return /* @__PURE__ */ jsx(Badge, { variant: "warning", minWidth: "100%", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "center", gap: 2, children: [
32
+ /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 2, children: [
33
+ /* @__PURE__ */ jsx(WarningCircle, {}),
34
+ /* @__PURE__ */ jsx(Typography, { children: title })
35
+ ] }),
36
+ description && /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: description })
37
+ ] }) });
38
+ }
39
+ export {
40
+ WarningBox as W,
41
+ useAllEntities as u
42
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ const React = require("react");
3
+ const index = require("./index-BYytQZfK.js");
4
+ const jsxRuntime = require("react/jsx-runtime");
5
+ const designSystem = require("@strapi/design-system");
6
+ const icons = require("@strapi/icons");
7
+ const useAllEntities = () => {
8
+ const { fetchAllEntities } = index.useApi();
9
+ const [entities, setEntities] = React.useState([]);
10
+ const [loading, setLoading] = React.useState(true);
11
+ const [error, setError] = React.useState(null);
12
+ React.useEffect(() => {
13
+ const fetchEntities = async () => {
14
+ try {
15
+ const result = await fetchAllEntities();
16
+ setEntities(result);
17
+ setLoading(false);
18
+ } catch (err) {
19
+ if (index.isAbortError(err)) return;
20
+ setError(err);
21
+ setLoading(false);
22
+ }
23
+ };
24
+ fetchEntities();
25
+ }, []);
26
+ return { entities, loading, error };
27
+ };
28
+ function WarningBox({
29
+ title,
30
+ description
31
+ }) {
32
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Badge, { variant: "warning", minWidth: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 2, children: [
33
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 2, children: [
34
+ /* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, {}),
35
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: title })
36
+ ] }),
37
+ description && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: description })
38
+ ] }) });
39
+ }
40
+ exports.WarningBox = WarningBox;
41
+ exports.useAllEntities = useAllEntities;
@@ -23,6 +23,15 @@ const de = {
23
23
  "webatlas.settings.page.generate": "Generiere Pfade aus",
24
24
  "webatlas.settings.page.generate.hint": 'Das ausgewählte Feld aus dem Inhaltstyp wird verwendet, um den Pfad zu generieren. Verwenden Sie ein Feld, das einzigartig und beschreibend ist, wie z.B. "Titel" oder "Name".',
25
25
  "webatlas.settings.page.generate.error": "Bitte wählen Sie ein Standardfeld aus",
26
+ "webatlas.settings.page.blacklist.label": "URL-Blacklist",
27
+ "webatlas.settings.page.blacklist.placeholder": "Kommagetrennte URL-Segmente eingeben, die gesperrt werden sollen",
28
+ "webatlas.settings.page.blacklist.hint": 'Geben Sie eine kommagetrennte Liste von URL-Segmenten ein, die nicht in generierten Pfaden verwendet werden dürfen. Wenn Sie z. B. "admin, login" eingeben, wird jeder generierte Pfad blockiert, der mit "/admin" oder "/login" beginnt, während Pfade wie "/admin-guide" weiterhin erlaubt sind. Die Blacklist gilt nur für Routen, die nach dem Speichern angelegt oder geändert werden — bestehende Routen bleiben unberührt.',
29
+ "webatlas.settings.page.generate.warning.title": "Kein Routen-Quellfeld verfügbar",
30
+ "webatlas.settings.page.generate.warning.description": "Bitte fügen Sie ein String-Feld zum Inhaltstyp hinzu, um diesen Inhaltstyp mit Webatlas zu verwenden.",
31
+ "webatlas.settings.page.defaultParentRoute": "Standard-Elternpfad",
32
+ "webatlas.settings.page.defaultParentRoute.hint": "Wählen Sie einen Standard-Elternpfad für den Inhaltstyp aus. Beim Erstellen eines neuen Eintrags wird der Standard-Elternpfad vorab ausgewählt.",
33
+ "webatlas.settings.page.defaultParentRoute.contentType.placeholder": "Wählen Sie einen Inhaltstyp aus",
34
+ "webatlas.settings.page.defaultParentRoute.entity.placeholder": "Wählen Sie eine Entität aus",
26
35
  "webatlas.settings.page.navigation.subtitle": "Konfigurieren Sie Navigationseinstellungen",
27
36
  "webatlas.settings.page.navigation.navigation": "Navigation",
28
37
  "webatlas.settings.page.navigation.maxNavDepth.label": "Maximale Tiefe des Navigationsbaums",
@@ -72,11 +81,12 @@ const de = {
72
81
  "webatlas.modal.item.navigationPosition.label": "Navigationsposition",
73
82
  "webatlas.modal.item.pathField.label": "Pfad",
74
83
  "webatlas.modal.item.canonicalPathMismatch": "Warnung: Der kanonische Pfad stimmt nicht mit dem Navigationspfad überein",
75
- "webatlas.modal.item.routeAlreadyUsed": 'Warnung: Diese Route wird bereits in der Navigation "{navigationName}" verwendet',
84
+ "webatlas.modal.item.routeAlreadyUsed": 'Warnung: Dieser Pfad wird bereits in der Navigation "{navigationName}" verwendet',
76
85
  "webatlas.modal.item.routeAlreadyUsed.info": "Wenn Sie den Pfad für dieses Element ändern, wird der Pfad im vorhandenen Element ebenfalls aktualisiert.",
77
86
  "webatlas.components.pathInfo.checking": "Überprüfe, ob der Pfad verfügbar ist...",
78
87
  "webatlas.components.pathInfo.available": "Pfad ist verfügbar",
79
88
  "webatlas.components.pathInfo.notAvailable": "Pfad ist nicht verfügbar. Ersetzt durch",
89
+ "webatlas.components.pathInfo.blacklisted": "Dieser Pfad ist durch die URL-Blacklist gesperrt und kann nicht gespeichert werden.",
80
90
  "webatlas.components.CMEditViewAside.path.input.tooltip": "Die folgenden Zeichen sind gültig: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
81
91
  "webatlas.components.CMEditViewAside.path.input.label": "Pfad",
82
92
  "webatlas.components.CMEditViewAside.path.input.start": "Bearbeiten Sie das",
@@ -111,8 +121,11 @@ const de = {
111
121
  "webatlas.restore.metadata": "Metadaten wiederherstellen",
112
122
  "webatlas.loading": "Laden...",
113
123
  "webatlas.version": "Version",
124
+ "webatlas.contentType": "Inhaltstyp",
125
+ "webatlas.entity": "Entität",
114
126
  "webatlas.notification.error": "Ein Fehler ist aufgetreten",
115
127
  "webatlas.notification.settings.saved": "Einstellungen erfolgreich gespeichert",
128
+ "webatlas.notification.settings.fetchFailed": "Content-Types konnten nicht geladen werden",
116
129
  "webatlas.notification.paths.fetchFailed": "Pfade konnten nicht abgerufen werden",
117
130
  "webatlas.notification.navigation.saveNavigationFailed": "Fehler beim Aktualisieren des Navigationselements",
118
131
  "webatlas.notification.navigation.navigationSaved": "Navigation erfolgreich aktualisiert",
@@ -120,6 +133,8 @@ const de = {
120
133
  "webatlas.notification.navigation.notFound": "Navigation nicht gefunden. Zur Navigation weitergeleitet",
121
134
  "webatlas.notification.navigation.creationFailed": "Erstellung der Navigation fehlgeschlagen",
122
135
  "webatlas.notification.navigation.updateFailed": "Fehler beim Aktualisieren der Navigation",
136
+ "webatlas.notification.navigation.deleteFailed": "Löschen fehlgeschlagen",
137
+ "webatlas.notification.navigation.relatedRouteFetchFailed": "Route des ausgewählten Eintrags konnte nicht geladen werden",
123
138
  "webatlas.settings.section.general": "Allgemein",
124
139
  "webatlas.settings.section.navigation": "Navigation"
125
140
  };
@@ -25,6 +25,15 @@ const de = {
25
25
  "webatlas.settings.page.generate": "Generiere Pfade aus",
26
26
  "webatlas.settings.page.generate.hint": 'Das ausgewählte Feld aus dem Inhaltstyp wird verwendet, um den Pfad zu generieren. Verwenden Sie ein Feld, das einzigartig und beschreibend ist, wie z.B. "Titel" oder "Name".',
27
27
  "webatlas.settings.page.generate.error": "Bitte wählen Sie ein Standardfeld aus",
28
+ "webatlas.settings.page.blacklist.label": "URL-Blacklist",
29
+ "webatlas.settings.page.blacklist.placeholder": "Kommagetrennte URL-Segmente eingeben, die gesperrt werden sollen",
30
+ "webatlas.settings.page.blacklist.hint": 'Geben Sie eine kommagetrennte Liste von URL-Segmenten ein, die nicht in generierten Pfaden verwendet werden dürfen. Wenn Sie z. B. "admin, login" eingeben, wird jeder generierte Pfad blockiert, der mit "/admin" oder "/login" beginnt, während Pfade wie "/admin-guide" weiterhin erlaubt sind. Die Blacklist gilt nur für Routen, die nach dem Speichern angelegt oder geändert werden — bestehende Routen bleiben unberührt.',
31
+ "webatlas.settings.page.generate.warning.title": "Kein Routen-Quellfeld verfügbar",
32
+ "webatlas.settings.page.generate.warning.description": "Bitte fügen Sie ein String-Feld zum Inhaltstyp hinzu, um diesen Inhaltstyp mit Webatlas zu verwenden.",
33
+ "webatlas.settings.page.defaultParentRoute": "Standard-Elternpfad",
34
+ "webatlas.settings.page.defaultParentRoute.hint": "Wählen Sie einen Standard-Elternpfad für den Inhaltstyp aus. Beim Erstellen eines neuen Eintrags wird der Standard-Elternpfad vorab ausgewählt.",
35
+ "webatlas.settings.page.defaultParentRoute.contentType.placeholder": "Wählen Sie einen Inhaltstyp aus",
36
+ "webatlas.settings.page.defaultParentRoute.entity.placeholder": "Wählen Sie eine Entität aus",
28
37
  "webatlas.settings.page.navigation.subtitle": "Konfigurieren Sie Navigationseinstellungen",
29
38
  "webatlas.settings.page.navigation.navigation": "Navigation",
30
39
  "webatlas.settings.page.navigation.maxNavDepth.label": "Maximale Tiefe des Navigationsbaums",
@@ -74,11 +83,12 @@ const de = {
74
83
  "webatlas.modal.item.navigationPosition.label": "Navigationsposition",
75
84
  "webatlas.modal.item.pathField.label": "Pfad",
76
85
  "webatlas.modal.item.canonicalPathMismatch": "Warnung: Der kanonische Pfad stimmt nicht mit dem Navigationspfad überein",
77
- "webatlas.modal.item.routeAlreadyUsed": 'Warnung: Diese Route wird bereits in der Navigation "{navigationName}" verwendet',
86
+ "webatlas.modal.item.routeAlreadyUsed": 'Warnung: Dieser Pfad wird bereits in der Navigation "{navigationName}" verwendet',
78
87
  "webatlas.modal.item.routeAlreadyUsed.info": "Wenn Sie den Pfad für dieses Element ändern, wird der Pfad im vorhandenen Element ebenfalls aktualisiert.",
79
88
  "webatlas.components.pathInfo.checking": "Überprüfe, ob der Pfad verfügbar ist...",
80
89
  "webatlas.components.pathInfo.available": "Pfad ist verfügbar",
81
90
  "webatlas.components.pathInfo.notAvailable": "Pfad ist nicht verfügbar. Ersetzt durch",
91
+ "webatlas.components.pathInfo.blacklisted": "Dieser Pfad ist durch die URL-Blacklist gesperrt und kann nicht gespeichert werden.",
82
92
  "webatlas.components.CMEditViewAside.path.input.tooltip": "Die folgenden Zeichen sind gültig: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
83
93
  "webatlas.components.CMEditViewAside.path.input.label": "Pfad",
84
94
  "webatlas.components.CMEditViewAside.path.input.start": "Bearbeiten Sie das",
@@ -113,8 +123,11 @@ const de = {
113
123
  "webatlas.restore.metadata": "Metadaten wiederherstellen",
114
124
  "webatlas.loading": "Laden...",
115
125
  "webatlas.version": "Version",
126
+ "webatlas.contentType": "Inhaltstyp",
127
+ "webatlas.entity": "Entität",
116
128
  "webatlas.notification.error": "Ein Fehler ist aufgetreten",
117
129
  "webatlas.notification.settings.saved": "Einstellungen erfolgreich gespeichert",
130
+ "webatlas.notification.settings.fetchFailed": "Content-Types konnten nicht geladen werden",
118
131
  "webatlas.notification.paths.fetchFailed": "Pfade konnten nicht abgerufen werden",
119
132
  "webatlas.notification.navigation.saveNavigationFailed": "Fehler beim Aktualisieren des Navigationselements",
120
133
  "webatlas.notification.navigation.navigationSaved": "Navigation erfolgreich aktualisiert",
@@ -122,6 +135,8 @@ const de = {
122
135
  "webatlas.notification.navigation.notFound": "Navigation nicht gefunden. Zur Navigation weitergeleitet",
123
136
  "webatlas.notification.navigation.creationFailed": "Erstellung der Navigation fehlgeschlagen",
124
137
  "webatlas.notification.navigation.updateFailed": "Fehler beim Aktualisieren der Navigation",
138
+ "webatlas.notification.navigation.deleteFailed": "Löschen fehlgeschlagen",
139
+ "webatlas.notification.navigation.relatedRouteFetchFailed": "Route des ausgewählten Eintrags konnte nicht geladen werden",
125
140
  "webatlas.settings.section.general": "Allgemein",
126
141
  "webatlas.settings.section.navigation": "Navigation"
127
142
  };
@@ -25,6 +25,15 @@ const en = {
25
25
  "webatlas.settings.page.generate": "Generate paths from",
26
26
  "webatlas.settings.page.generate.hint": 'The selected field from the content type will be used to generate the path. Use a field that is unique and descriptive, such as a "title" or "name".',
27
27
  "webatlas.settings.page.generate.error": "Please select a default field",
28
+ "webatlas.settings.page.blacklist.label": "URL Blacklist",
29
+ "webatlas.settings.page.blacklist.placeholder": "Enter comma-separated URL segments to block",
30
+ "webatlas.settings.page.blacklist.hint": 'Enter a comma-separated list of URL segments that should be blocked from being used in generated paths. For example, if you enter "admin, login", then any generated path that starts with "/admin" or "/login" will be blocked, while paths like "/admin-guide" stay allowed. The blacklist only applies to routes that are created or updated after saving — it does not affect existing routes.',
31
+ "webatlas.settings.page.generate.warning.title": "No route source field available",
32
+ "webatlas.settings.page.generate.warning.description": "Please add a string field to the content type in order to use this content type with Webatlas.",
33
+ "webatlas.settings.page.defaultParentRoute": "Default parent path",
34
+ "webatlas.settings.page.defaultParentRoute.hint": "Select an entry as the default parent path for the content type. When creating a new entry, the default parent path will be pre-selected. You can always change the parent path when creating or editing an entry.",
35
+ "webatlas.settings.page.defaultParentRoute.contentType.placeholder": "Select a content type",
36
+ "webatlas.settings.page.defaultParentRoute.entity.placeholder": "Select an entity",
28
37
  "webatlas.settings.page.navigation.subtitle": "Configure navigation settings",
29
38
  "webatlas.settings.page.navigation.navigation": "Navigation",
30
39
  "webatlas.settings.page.navigation.maxNavDepth.label": "Max depth of navigation tree",
@@ -74,11 +83,12 @@ const en = {
74
83
  "webatlas.modal.item.navigationPosition.label": "Navigation Position",
75
84
  "webatlas.modal.item.pathField.label": "Path",
76
85
  "webatlas.modal.item.canonicalPathMismatch": "Warning: Canonical Path does not match navigation path",
77
- "webatlas.modal.item.routeAlreadyUsed": 'Warning: This route is already used in the navigation "{navigationName}"',
86
+ "webatlas.modal.item.routeAlreadyUsed": 'Warning: This path is already used in the navigation "{navigationName}"',
78
87
  "webatlas.modal.item.routeAlreadyUsed.info": "Changing the path for this item will also update the path in the existing item.",
79
88
  "webatlas.components.pathInfo.checking": "Checking if path is available...",
80
89
  "webatlas.components.pathInfo.available": "Path is available",
81
90
  "webatlas.components.pathInfo.notAvailable": "Path is not available. Replaced with",
91
+ "webatlas.components.pathInfo.blacklisted": "This path is blocked by the URL blacklist and cannot be saved.",
82
92
  "webatlas.components.CMEditViewAside.path.input.tooltip": "The following characters are valid: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
83
93
  "webatlas.components.CMEditViewAside.path.input.label": "Path",
84
94
  "webatlas.components.CMEditViewAside.path.input.start": "Edit the",
@@ -113,8 +123,11 @@ const en = {
113
123
  "webatlas.restore.metadata": "Restore Metadata",
114
124
  "webatlas.loading": "Loading...",
115
125
  "webatlas.version": "Version",
126
+ "webatlas.contentType": "Content Type",
127
+ "webatlas.entity": "Entity",
116
128
  "webatlas.notification.error": "An error occurred",
117
129
  "webatlas.notification.settings.saved": "Settings saved successfully",
130
+ "webatlas.notification.settings.fetchFailed": "Failed to load content types",
118
131
  "webatlas.notification.paths.fetchFailed": "Failed to fetch paths",
119
132
  "webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
120
133
  "webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
@@ -122,6 +135,8 @@ const en = {
122
135
  "webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
123
136
  "webatlas.notification.navigation.creationFailed": "Creation of navigation failed",
124
137
  "webatlas.notification.navigation.updateFailed": "Updating navigation failed",
138
+ "webatlas.notification.navigation.deleteFailed": "Deleting failed",
139
+ "webatlas.notification.navigation.relatedRouteFetchFailed": "Failed to load the route of the selected entry",
125
140
  "webatlas.settings.section.general": "General",
126
141
  "webatlas.settings.section.navigation": "Navigation"
127
142
  };
@@ -23,6 +23,15 @@ const en = {
23
23
  "webatlas.settings.page.generate": "Generate paths from",
24
24
  "webatlas.settings.page.generate.hint": 'The selected field from the content type will be used to generate the path. Use a field that is unique and descriptive, such as a "title" or "name".',
25
25
  "webatlas.settings.page.generate.error": "Please select a default field",
26
+ "webatlas.settings.page.blacklist.label": "URL Blacklist",
27
+ "webatlas.settings.page.blacklist.placeholder": "Enter comma-separated URL segments to block",
28
+ "webatlas.settings.page.blacklist.hint": 'Enter a comma-separated list of URL segments that should be blocked from being used in generated paths. For example, if you enter "admin, login", then any generated path that starts with "/admin" or "/login" will be blocked, while paths like "/admin-guide" stay allowed. The blacklist only applies to routes that are created or updated after saving — it does not affect existing routes.',
29
+ "webatlas.settings.page.generate.warning.title": "No route source field available",
30
+ "webatlas.settings.page.generate.warning.description": "Please add a string field to the content type in order to use this content type with Webatlas.",
31
+ "webatlas.settings.page.defaultParentRoute": "Default parent path",
32
+ "webatlas.settings.page.defaultParentRoute.hint": "Select an entry as the default parent path for the content type. When creating a new entry, the default parent path will be pre-selected. You can always change the parent path when creating or editing an entry.",
33
+ "webatlas.settings.page.defaultParentRoute.contentType.placeholder": "Select a content type",
34
+ "webatlas.settings.page.defaultParentRoute.entity.placeholder": "Select an entity",
26
35
  "webatlas.settings.page.navigation.subtitle": "Configure navigation settings",
27
36
  "webatlas.settings.page.navigation.navigation": "Navigation",
28
37
  "webatlas.settings.page.navigation.maxNavDepth.label": "Max depth of navigation tree",
@@ -72,11 +81,12 @@ const en = {
72
81
  "webatlas.modal.item.navigationPosition.label": "Navigation Position",
73
82
  "webatlas.modal.item.pathField.label": "Path",
74
83
  "webatlas.modal.item.canonicalPathMismatch": "Warning: Canonical Path does not match navigation path",
75
- "webatlas.modal.item.routeAlreadyUsed": 'Warning: This route is already used in the navigation "{navigationName}"',
84
+ "webatlas.modal.item.routeAlreadyUsed": 'Warning: This path is already used in the navigation "{navigationName}"',
76
85
  "webatlas.modal.item.routeAlreadyUsed.info": "Changing the path for this item will also update the path in the existing item.",
77
86
  "webatlas.components.pathInfo.checking": "Checking if path is available...",
78
87
  "webatlas.components.pathInfo.available": "Path is available",
79
88
  "webatlas.components.pathInfo.notAvailable": "Path is not available. Replaced with",
89
+ "webatlas.components.pathInfo.blacklisted": "This path is blocked by the URL blacklist and cannot be saved.",
80
90
  "webatlas.components.CMEditViewAside.path.input.tooltip": "The following characters are valid: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
81
91
  "webatlas.components.CMEditViewAside.path.input.label": "Path",
82
92
  "webatlas.components.CMEditViewAside.path.input.start": "Edit the",
@@ -111,8 +121,11 @@ const en = {
111
121
  "webatlas.restore.metadata": "Restore Metadata",
112
122
  "webatlas.loading": "Loading...",
113
123
  "webatlas.version": "Version",
124
+ "webatlas.contentType": "Content Type",
125
+ "webatlas.entity": "Entity",
114
126
  "webatlas.notification.error": "An error occurred",
115
127
  "webatlas.notification.settings.saved": "Settings saved successfully",
128
+ "webatlas.notification.settings.fetchFailed": "Failed to load content types",
116
129
  "webatlas.notification.paths.fetchFailed": "Failed to fetch paths",
117
130
  "webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
118
131
  "webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
@@ -120,6 +133,8 @@ const en = {
120
133
  "webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
121
134
  "webatlas.notification.navigation.creationFailed": "Creation of navigation failed",
122
135
  "webatlas.notification.navigation.updateFailed": "Updating navigation failed",
136
+ "webatlas.notification.navigation.deleteFailed": "Deleting failed",
137
+ "webatlas.notification.navigation.relatedRouteFetchFailed": "Failed to load the route of the selected entry",
123
138
  "webatlas.settings.section.general": "General",
124
139
  "webatlas.settings.section.navigation": "Navigation"
125
140
  };