@mattisvensson/strapi-plugin-webatlas 0.11.6 → 0.11.7
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/package.json +1 -1
- package/dist/admin/FullLoader-Btjb2W2p.mjs +0 -15
- package/dist/admin/FullLoader-Da2n70bJ.js +0 -14
- package/dist/admin/RoutePicker-C6omysLv.mjs +0 -101
- package/dist/admin/RoutePicker-CZKBOemS.js +0 -101
- package/dist/admin/SettingTitle-Bu_8jLRE.mjs +0 -71
- package/dist/admin/SettingTitle-DcQMSkno.js +0 -70
- package/dist/admin/de-B5pRvs13.mjs +0 -128
- package/dist/admin/de-CqU1FU8C.js +0 -128
- package/dist/admin/en-BE-zzIv8.mjs +0 -128
- package/dist/admin/en-C7I90FwV.js +0 -128
- package/dist/admin/index-Bp-XFH1V.mjs +0 -244
- package/dist/admin/index-CbllvYIN.js +0 -139
- package/dist/admin/index-CoLBgxOP.js +0 -9529
- package/dist/admin/index-DLMGEpc0.mjs +0 -139
- package/dist/admin/index-DjLi4gIu.mjs +0 -9529
- package/dist/admin/index-Dok2SBFT.js +0 -243
- package/dist/admin/index-DqA1gNsu.mjs +0 -243
- package/dist/admin/index-OkabmPb4.mjs +0 -4275
- package/dist/admin/index-e8zVLBgW.js +0 -244
- package/dist/admin/index-ik3u6iCE.js +0 -4291
- package/dist/admin/index.js +0 -4
- package/dist/admin/index.mjs +0 -4
- package/dist/admin/src/index.d.ts +0 -12
- package/dist/server/index.js +0 -6314
- package/dist/server/index.mjs +0 -6314
- package/dist/server/src/index.d.ts +0 -308
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"webatlas.navigation.page.title": "Navigation",
|
|
3
|
-
"webatlas.navigation.page.subtitle.noNavigationSelected": "No navigation selected",
|
|
4
|
-
"webatlas.navigation.page.emptyNavigation": "You have no navigations yet...",
|
|
5
|
-
"webatlas.navigation.page.createNewNavigation": "Create new navigation",
|
|
6
|
-
"webatlas.navigation.page.createNewItem": "Create new item",
|
|
7
|
-
"webatlas.navigation.page.newItemButton": "New Item",
|
|
8
|
-
"webatlas.navigation.page.selectNavigation": "Select Navigation",
|
|
9
|
-
"webatlas.navigation.page.navItem.addChildren": "Add children",
|
|
10
|
-
"webatlas.navigation.page.navItem.viewEntity": "View entity",
|
|
11
|
-
"webatlas.paths.page.title": "Paths",
|
|
12
|
-
"webatlas.paths.page.subtitle": "Overview of all existing paths",
|
|
13
|
-
"webatlas.paths.page.emptyPaths": "No paths found",
|
|
14
|
-
"webatlas.paths.page.column.type": "Type",
|
|
15
|
-
"webatlas.paths.page.searchPlaceholder": "Search paths",
|
|
16
|
-
"webatlas.settings.page.general.subtitle": "Configure general settings",
|
|
17
|
-
"webatlas.settings.page.general.webatlasVersion": "Webatlas Version",
|
|
18
|
-
"webatlas.settings.page.general.contentTypes": "Content Types",
|
|
19
|
-
"webatlas.settings.page.general.details": "Details",
|
|
20
|
-
"webatlas.settings.page.general.noContentTypesEnabled": "No content types are enabled for Webatlas. Please enable at least one content type to use this plugin.",
|
|
21
|
-
"webatlas.settings.page.general.noContentTypesEnabled.moreInfo": "More info",
|
|
22
|
-
"webatlas.settings.page.contentTypeSettings": "Content Type settings",
|
|
23
|
-
"webatlas.settings.page.generate": "Generate paths from",
|
|
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
|
-
"webatlas.settings.page.generate.error": "Please select a default field",
|
|
26
|
-
"webatlas.settings.page.navigation.subtitle": "Configure navigation settings",
|
|
27
|
-
"webatlas.settings.page.navigation.navigation": "Navigation",
|
|
28
|
-
"webatlas.settings.page.navigation.maxNavDepth.label": "Max depth of navigation tree",
|
|
29
|
-
"webatlas.modal.navOverview.confirmText": "New navigation",
|
|
30
|
-
"webatlas.modal.navOverview.closeText": "Cancel",
|
|
31
|
-
"webatlas.modal.navOverview.titleText": "Navigation overview",
|
|
32
|
-
"webatlas.modal.navOverview.loadingText": "Creating",
|
|
33
|
-
"webatlas.modal.navModal.internalItem": "Internal item",
|
|
34
|
-
"webatlas.modal.navModal.externalItem": "External item",
|
|
35
|
-
"webatlas.modal.navModal.wrapperItem": "Wrapper item",
|
|
36
|
-
"webatlas.modal.navEdit.confirmText": "Update",
|
|
37
|
-
"webatlas.modal.navEdit.closeText": "Cancel",
|
|
38
|
-
"webatlas.modal.navEdit.titleText": "Edit navigation:",
|
|
39
|
-
"webatlas.modal.navEdit.loadingText": "Updating",
|
|
40
|
-
"webatlas.modal.delete.cancelText": "No, keep",
|
|
41
|
-
"webatlas.modal.delete.confirmText": "Yes, delete",
|
|
42
|
-
"webatlas.modal.delete.message.start": "You are about to delete the following",
|
|
43
|
-
"webatlas.modal.delete.message.navItem": "navigation item",
|
|
44
|
-
"webatlas.modal.delete.message.navigation": "navigation",
|
|
45
|
-
"webatlas.modal.delete.message.end": "This can not be undone. Are you sure?",
|
|
46
|
-
"webatlas.modal.nameField.label": "Name",
|
|
47
|
-
"webatlas.modal.activeField.label": "Active",
|
|
48
|
-
"webatlas.modal.activeField.onLabel": "Yes",
|
|
49
|
-
"webatlas.modal.activeField.offLabel": "No",
|
|
50
|
-
"webatlas.modal.wrapperItem.titleText.create": "Create new wrapper item",
|
|
51
|
-
"webatlas.modal.wrapperItem.titleText.edit": "Edit wrapper item:",
|
|
52
|
-
"webatlas.modal.wrapperItem.loadingText.create": "Adding",
|
|
53
|
-
"webatlas.modal.wrapperItem.loadingText.edit": "Saving",
|
|
54
|
-
"webatlas.modal.wrapperItem.titleField.label": "Title",
|
|
55
|
-
"webatlas.modal.wrapperItem.titleField.placeholder": "e.g. About us",
|
|
56
|
-
"webatlas.modal.internalItem.titleText.create": "Add new navigation item",
|
|
57
|
-
"webatlas.modal.internalItem.loadingText.create": "Creating",
|
|
58
|
-
"webatlas.modal.internalItem.contentType.label": "Content Type",
|
|
59
|
-
"webatlas.modal.internalItem.contentType.placeholder": "Select a content type",
|
|
60
|
-
"webatlas.modal.internalItem.entity.label": "Entity",
|
|
61
|
-
"webatlas.modal.internalItem.entity.placeholder": "Select an entity",
|
|
62
|
-
"webatlas.modal.internalItem.loadingText.edit": "Saving",
|
|
63
|
-
"webatlas.modal.externalItem.titleText.create": "Create new external item",
|
|
64
|
-
"webatlas.modal.externalItem.loadingText.create": "Adding",
|
|
65
|
-
"webatlas.modal.externalItem.titleText.edit": "Edit external path",
|
|
66
|
-
"webatlas.modal.externalItem.loadingText.edit": "Saving",
|
|
67
|
-
"webatlas.modal.externalItem.pathField.placeholder": "e.g. https://example.com",
|
|
68
|
-
"webatlas.modal.item.titleField.label": "Title",
|
|
69
|
-
"webatlas.modal.item.canonicalPathField.label": "Canonical Path",
|
|
70
|
-
"webatlas.modal.item.canonicalPathField.tooltip": "Based on content hierarchy",
|
|
71
|
-
"webatlas.modal.item.slugField.label": "Slug",
|
|
72
|
-
"webatlas.modal.item.navigationPosition.label": "Navigation Position",
|
|
73
|
-
"webatlas.modal.item.pathField.label": "Path",
|
|
74
|
-
"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}"',
|
|
76
|
-
"webatlas.modal.item.routeAlreadyUsed.info": "Changing the path for this item will also update the path in the existing item.",
|
|
77
|
-
"webatlas.components.pathInfo.checking": "Checking if path is available...",
|
|
78
|
-
"webatlas.components.pathInfo.available": "Path is available",
|
|
79
|
-
"webatlas.components.pathInfo.notAvailable": "Path is not available. Replaced with",
|
|
80
|
-
"webatlas.components.CMEditViewAside.path.input.tooltip": "The following characters are valid: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
|
|
81
|
-
"webatlas.components.CMEditViewAside.path.input.label": "Path",
|
|
82
|
-
"webatlas.components.CMEditViewAside.path.input.start": "Edit the",
|
|
83
|
-
"webatlas.components.CMEditViewAside.path.input.end": "field to generate a path",
|
|
84
|
-
"webatlas.components.CMEditViewAside.path.overrideCheckbox": "Override automatic path generation",
|
|
85
|
-
"webatlas.components.CMEditViewAside.path.uidPath.hint": "Permanent UID path, cannot be changed",
|
|
86
|
-
"webatlas.components.CMEditViewAside.path.newPathInfo": "A new path will be created upon saving this entry.",
|
|
87
|
-
"webatlas.components.CMEditViewAside.path.input.noSourceField": "Use the override option to set a custom Path.",
|
|
88
|
-
"webatlas.components.CMEditViewAside.path.input.parentSelect.label": "Place under",
|
|
89
|
-
"webatlas.components.CMEditViewAside.path.input.parentSelect.rootPath": "None (root path)",
|
|
90
|
-
"webatlas.components.CMEditViewAside.canonicalPath.input.label": "Canonical Path",
|
|
91
|
-
"webatlas.components.CMEditViewAside.canonicalPath.input.tooltip": "The path determined by your content's natural hierarchy, independent of where it appears in navigation menus.",
|
|
92
|
-
"webatlas.path.type.internal": "Internal",
|
|
93
|
-
"webatlas.path.type.external": "External",
|
|
94
|
-
"webatlas.path.type.wrapper": "Wrapper",
|
|
95
|
-
"webatlas.link.navigation": "Navigation",
|
|
96
|
-
"webatlas.link.paths": "Paths",
|
|
97
|
-
"webatlas.title": "Title",
|
|
98
|
-
"webatlas.path": "Path",
|
|
99
|
-
"webatlas.actions": "Actions",
|
|
100
|
-
"webatlas.delete": "Delete",
|
|
101
|
-
"webatlas.edit": "Edit",
|
|
102
|
-
"webatlas.add": "Add",
|
|
103
|
-
"webatlas.cancel": "Cancel",
|
|
104
|
-
"webatlas.save": "Save",
|
|
105
|
-
"webatlas.select": "Select",
|
|
106
|
-
"webatlas.manage": "Manage",
|
|
107
|
-
"webatlas.published": "Published",
|
|
108
|
-
"webatlas.draft": "Draft",
|
|
109
|
-
"webatlas.modified": "Modified",
|
|
110
|
-
"webatlas.deleted": "Deleted",
|
|
111
|
-
"webatlas.restore.metadata": "Restore Metadata",
|
|
112
|
-
"webatlas.loading": "Loading...",
|
|
113
|
-
"webatlas.version": "Version",
|
|
114
|
-
"webatlas.notification.error": "An error occurred",
|
|
115
|
-
"webatlas.notification.settings.saved": "Settings saved successfully",
|
|
116
|
-
"webatlas.notification.paths.fetchFailed": "Failed to fetch paths",
|
|
117
|
-
"webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
|
|
118
|
-
"webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
|
|
119
|
-
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations",
|
|
120
|
-
"webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
|
|
121
|
-
"webatlas.notification.navigation.creationFailed": "Creation of navigation failed",
|
|
122
|
-
"webatlas.notification.navigation.updateFailed": "Updating navigation failed",
|
|
123
|
-
"webatlas.settings.section.general": "General",
|
|
124
|
-
"webatlas.settings.section.navigation": "Navigation"
|
|
125
|
-
};
|
|
126
|
-
export {
|
|
127
|
-
en as default
|
|
128
|
-
};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"webatlas.navigation.page.title": "Navigation",
|
|
5
|
-
"webatlas.navigation.page.subtitle.noNavigationSelected": "No navigation selected",
|
|
6
|
-
"webatlas.navigation.page.emptyNavigation": "You have no navigations yet...",
|
|
7
|
-
"webatlas.navigation.page.createNewNavigation": "Create new navigation",
|
|
8
|
-
"webatlas.navigation.page.createNewItem": "Create new item",
|
|
9
|
-
"webatlas.navigation.page.newItemButton": "New Item",
|
|
10
|
-
"webatlas.navigation.page.selectNavigation": "Select Navigation",
|
|
11
|
-
"webatlas.navigation.page.navItem.addChildren": "Add children",
|
|
12
|
-
"webatlas.navigation.page.navItem.viewEntity": "View entity",
|
|
13
|
-
"webatlas.paths.page.title": "Paths",
|
|
14
|
-
"webatlas.paths.page.subtitle": "Overview of all existing paths",
|
|
15
|
-
"webatlas.paths.page.emptyPaths": "No paths found",
|
|
16
|
-
"webatlas.paths.page.column.type": "Type",
|
|
17
|
-
"webatlas.paths.page.searchPlaceholder": "Search paths",
|
|
18
|
-
"webatlas.settings.page.general.subtitle": "Configure general settings",
|
|
19
|
-
"webatlas.settings.page.general.webatlasVersion": "Webatlas Version",
|
|
20
|
-
"webatlas.settings.page.general.contentTypes": "Content Types",
|
|
21
|
-
"webatlas.settings.page.general.details": "Details",
|
|
22
|
-
"webatlas.settings.page.general.noContentTypesEnabled": "No content types are enabled for Webatlas. Please enable at least one content type to use this plugin.",
|
|
23
|
-
"webatlas.settings.page.general.noContentTypesEnabled.moreInfo": "More info",
|
|
24
|
-
"webatlas.settings.page.contentTypeSettings": "Content Type settings",
|
|
25
|
-
"webatlas.settings.page.generate": "Generate paths from",
|
|
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
|
-
"webatlas.settings.page.generate.error": "Please select a default field",
|
|
28
|
-
"webatlas.settings.page.navigation.subtitle": "Configure navigation settings",
|
|
29
|
-
"webatlas.settings.page.navigation.navigation": "Navigation",
|
|
30
|
-
"webatlas.settings.page.navigation.maxNavDepth.label": "Max depth of navigation tree",
|
|
31
|
-
"webatlas.modal.navOverview.confirmText": "New navigation",
|
|
32
|
-
"webatlas.modal.navOverview.closeText": "Cancel",
|
|
33
|
-
"webatlas.modal.navOverview.titleText": "Navigation overview",
|
|
34
|
-
"webatlas.modal.navOverview.loadingText": "Creating",
|
|
35
|
-
"webatlas.modal.navModal.internalItem": "Internal item",
|
|
36
|
-
"webatlas.modal.navModal.externalItem": "External item",
|
|
37
|
-
"webatlas.modal.navModal.wrapperItem": "Wrapper item",
|
|
38
|
-
"webatlas.modal.navEdit.confirmText": "Update",
|
|
39
|
-
"webatlas.modal.navEdit.closeText": "Cancel",
|
|
40
|
-
"webatlas.modal.navEdit.titleText": "Edit navigation:",
|
|
41
|
-
"webatlas.modal.navEdit.loadingText": "Updating",
|
|
42
|
-
"webatlas.modal.delete.cancelText": "No, keep",
|
|
43
|
-
"webatlas.modal.delete.confirmText": "Yes, delete",
|
|
44
|
-
"webatlas.modal.delete.message.start": "You are about to delete the following",
|
|
45
|
-
"webatlas.modal.delete.message.navItem": "navigation item",
|
|
46
|
-
"webatlas.modal.delete.message.navigation": "navigation",
|
|
47
|
-
"webatlas.modal.delete.message.end": "This can not be undone. Are you sure?",
|
|
48
|
-
"webatlas.modal.nameField.label": "Name",
|
|
49
|
-
"webatlas.modal.activeField.label": "Active",
|
|
50
|
-
"webatlas.modal.activeField.onLabel": "Yes",
|
|
51
|
-
"webatlas.modal.activeField.offLabel": "No",
|
|
52
|
-
"webatlas.modal.wrapperItem.titleText.create": "Create new wrapper item",
|
|
53
|
-
"webatlas.modal.wrapperItem.titleText.edit": "Edit wrapper item:",
|
|
54
|
-
"webatlas.modal.wrapperItem.loadingText.create": "Adding",
|
|
55
|
-
"webatlas.modal.wrapperItem.loadingText.edit": "Saving",
|
|
56
|
-
"webatlas.modal.wrapperItem.titleField.label": "Title",
|
|
57
|
-
"webatlas.modal.wrapperItem.titleField.placeholder": "e.g. About us",
|
|
58
|
-
"webatlas.modal.internalItem.titleText.create": "Add new navigation item",
|
|
59
|
-
"webatlas.modal.internalItem.loadingText.create": "Creating",
|
|
60
|
-
"webatlas.modal.internalItem.contentType.label": "Content Type",
|
|
61
|
-
"webatlas.modal.internalItem.contentType.placeholder": "Select a content type",
|
|
62
|
-
"webatlas.modal.internalItem.entity.label": "Entity",
|
|
63
|
-
"webatlas.modal.internalItem.entity.placeholder": "Select an entity",
|
|
64
|
-
"webatlas.modal.internalItem.loadingText.edit": "Saving",
|
|
65
|
-
"webatlas.modal.externalItem.titleText.create": "Create new external item",
|
|
66
|
-
"webatlas.modal.externalItem.loadingText.create": "Adding",
|
|
67
|
-
"webatlas.modal.externalItem.titleText.edit": "Edit external path",
|
|
68
|
-
"webatlas.modal.externalItem.loadingText.edit": "Saving",
|
|
69
|
-
"webatlas.modal.externalItem.pathField.placeholder": "e.g. https://example.com",
|
|
70
|
-
"webatlas.modal.item.titleField.label": "Title",
|
|
71
|
-
"webatlas.modal.item.canonicalPathField.label": "Canonical Path",
|
|
72
|
-
"webatlas.modal.item.canonicalPathField.tooltip": "Based on content hierarchy",
|
|
73
|
-
"webatlas.modal.item.slugField.label": "Slug",
|
|
74
|
-
"webatlas.modal.item.navigationPosition.label": "Navigation Position",
|
|
75
|
-
"webatlas.modal.item.pathField.label": "Path",
|
|
76
|
-
"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}"',
|
|
78
|
-
"webatlas.modal.item.routeAlreadyUsed.info": "Changing the path for this item will also update the path in the existing item.",
|
|
79
|
-
"webatlas.components.pathInfo.checking": "Checking if path is available...",
|
|
80
|
-
"webatlas.components.pathInfo.available": "Path is available",
|
|
81
|
-
"webatlas.components.pathInfo.notAvailable": "Path is not available. Replaced with",
|
|
82
|
-
"webatlas.components.CMEditViewAside.path.input.tooltip": "The following characters are valid: A-Z, a-z, 0-9, /, -, _, $, ., +, !, *, ', (, )",
|
|
83
|
-
"webatlas.components.CMEditViewAside.path.input.label": "Path",
|
|
84
|
-
"webatlas.components.CMEditViewAside.path.input.start": "Edit the",
|
|
85
|
-
"webatlas.components.CMEditViewAside.path.input.end": "field to generate a path",
|
|
86
|
-
"webatlas.components.CMEditViewAside.path.overrideCheckbox": "Override automatic path generation",
|
|
87
|
-
"webatlas.components.CMEditViewAside.path.uidPath.hint": "Permanent UID path, cannot be changed",
|
|
88
|
-
"webatlas.components.CMEditViewAside.path.newPathInfo": "A new path will be created upon saving this entry.",
|
|
89
|
-
"webatlas.components.CMEditViewAside.path.input.noSourceField": "Use the override option to set a custom Path.",
|
|
90
|
-
"webatlas.components.CMEditViewAside.path.input.parentSelect.label": "Place under",
|
|
91
|
-
"webatlas.components.CMEditViewAside.path.input.parentSelect.rootPath": "None (root path)",
|
|
92
|
-
"webatlas.components.CMEditViewAside.canonicalPath.input.label": "Canonical Path",
|
|
93
|
-
"webatlas.components.CMEditViewAside.canonicalPath.input.tooltip": "The path determined by your content's natural hierarchy, independent of where it appears in navigation menus.",
|
|
94
|
-
"webatlas.path.type.internal": "Internal",
|
|
95
|
-
"webatlas.path.type.external": "External",
|
|
96
|
-
"webatlas.path.type.wrapper": "Wrapper",
|
|
97
|
-
"webatlas.link.navigation": "Navigation",
|
|
98
|
-
"webatlas.link.paths": "Paths",
|
|
99
|
-
"webatlas.title": "Title",
|
|
100
|
-
"webatlas.path": "Path",
|
|
101
|
-
"webatlas.actions": "Actions",
|
|
102
|
-
"webatlas.delete": "Delete",
|
|
103
|
-
"webatlas.edit": "Edit",
|
|
104
|
-
"webatlas.add": "Add",
|
|
105
|
-
"webatlas.cancel": "Cancel",
|
|
106
|
-
"webatlas.save": "Save",
|
|
107
|
-
"webatlas.select": "Select",
|
|
108
|
-
"webatlas.manage": "Manage",
|
|
109
|
-
"webatlas.published": "Published",
|
|
110
|
-
"webatlas.draft": "Draft",
|
|
111
|
-
"webatlas.modified": "Modified",
|
|
112
|
-
"webatlas.deleted": "Deleted",
|
|
113
|
-
"webatlas.restore.metadata": "Restore Metadata",
|
|
114
|
-
"webatlas.loading": "Loading...",
|
|
115
|
-
"webatlas.version": "Version",
|
|
116
|
-
"webatlas.notification.error": "An error occurred",
|
|
117
|
-
"webatlas.notification.settings.saved": "Settings saved successfully",
|
|
118
|
-
"webatlas.notification.paths.fetchFailed": "Failed to fetch paths",
|
|
119
|
-
"webatlas.notification.navigation.saveNavigationFailed": "Error updating navigation item",
|
|
120
|
-
"webatlas.notification.navigation.navigationSaved": "Navigation updated successfully",
|
|
121
|
-
"webatlas.notification.navigation.fetchFailed": "Failed to fetch navigations",
|
|
122
|
-
"webatlas.notification.navigation.notFound": "Navigation not found. Redirected to navigation",
|
|
123
|
-
"webatlas.notification.navigation.creationFailed": "Creation of navigation failed",
|
|
124
|
-
"webatlas.notification.navigation.updateFailed": "Updating navigation failed",
|
|
125
|
-
"webatlas.settings.section.general": "General",
|
|
126
|
-
"webatlas.settings.section.navigation": "Navigation"
|
|
127
|
-
};
|
|
128
|
-
exports.default = en;
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect, useMemo } from "react";
|
|
3
|
-
import { g as getTranslation, u as useApi, d as debounce, p as pluginPermissions } from "./index-OkabmPb4.mjs";
|
|
4
|
-
import { Page, Layouts, useNotification } from "@strapi/strapi/admin";
|
|
5
|
-
import { Grid, Box, Field, Thead, Tr, Th, Typography, VisuallyHidden, Td, Flex, LinkButton, Table, Tbody, EmptyStateLayout } from "@strapi/design-system";
|
|
6
|
-
import "@strapi/icons/symbols";
|
|
7
|
-
import { F as FullLoader } from "./FullLoader-Btjb2W2p.mjs";
|
|
8
|
-
import { useIntl } from "react-intl";
|
|
9
|
-
import { useSearchParams } from "react-router-dom";
|
|
10
|
-
import { Cross, ChevronDown, Pencil } from "@strapi/icons";
|
|
11
|
-
function PageWrapper({ children }) {
|
|
12
|
-
const { formatMessage } = useIntl();
|
|
13
|
-
return /* @__PURE__ */ jsxs(Page.Main, { children: [
|
|
14
|
-
/* @__PURE__ */ jsx(
|
|
15
|
-
Layouts.Header,
|
|
16
|
-
{
|
|
17
|
-
title: formatMessage({
|
|
18
|
-
id: getTranslation("paths.page.title"),
|
|
19
|
-
defaultMessage: "Paths"
|
|
20
|
-
}),
|
|
21
|
-
subtitle: formatMessage({
|
|
22
|
-
id: getTranslation("paths.page.subtitle"),
|
|
23
|
-
defaultMessage: "Overview of all existing paths"
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(Fragment, { children }) })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
30
|
-
function compareBy(field, direction) {
|
|
31
|
-
if (!field) {
|
|
32
|
-
return () => 0;
|
|
33
|
-
}
|
|
34
|
-
if (field === "type") {
|
|
35
|
-
return (a, b) => {
|
|
36
|
-
return direction === "asc" ? a.type.localeCompare(b.type) : b.type.localeCompare(a.type);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return (a, b) => {
|
|
40
|
-
const aValue = a[field];
|
|
41
|
-
const bValue = b[field];
|
|
42
|
-
if (aValue == null && bValue == null) {
|
|
43
|
-
return 0;
|
|
44
|
-
}
|
|
45
|
-
if (aValue == null) {
|
|
46
|
-
return direction === "asc" ? 1 : -1;
|
|
47
|
-
}
|
|
48
|
-
if (bValue == null) {
|
|
49
|
-
return direction === "asc" ? -1 : 1;
|
|
50
|
-
}
|
|
51
|
-
if (typeof aValue === "string" && typeof bValue === "string") {
|
|
52
|
-
return direction === "asc" ? aValue.localeCompare(bValue) : bValue.localeCompare(aValue);
|
|
53
|
-
}
|
|
54
|
-
return 0;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function SearchInput({
|
|
58
|
-
searchQuery,
|
|
59
|
-
handleSearchChange
|
|
60
|
-
}) {
|
|
61
|
-
const { formatMessage } = useIntl();
|
|
62
|
-
return /* @__PURE__ */ jsx(Grid.Root, { style: { marginBottom: "16px" }, children: /* @__PURE__ */ jsx(Grid.Item, { col: 4, s: 12, children: /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsx(Field.Root, { children: /* @__PURE__ */ jsx(
|
|
63
|
-
Field.Input,
|
|
64
|
-
{
|
|
65
|
-
name: "search",
|
|
66
|
-
placeholder: formatMessage({
|
|
67
|
-
id: getTranslation("paths.page.searchPlaceholder"),
|
|
68
|
-
defaultMessage: "Search paths"
|
|
69
|
-
}),
|
|
70
|
-
value: searchQuery,
|
|
71
|
-
onChange: handleSearchChange,
|
|
72
|
-
endAction: searchQuery ? /* @__PURE__ */ jsx(
|
|
73
|
-
"button",
|
|
74
|
-
{
|
|
75
|
-
type: "button",
|
|
76
|
-
onClick: () => handleSearchChange({
|
|
77
|
-
target: { value: "" }
|
|
78
|
-
}),
|
|
79
|
-
style: {
|
|
80
|
-
color: "inherit",
|
|
81
|
-
background: "none",
|
|
82
|
-
border: "none",
|
|
83
|
-
cursor: "pointer"
|
|
84
|
-
},
|
|
85
|
-
"aria-label": "Clear search",
|
|
86
|
-
children: /* @__PURE__ */ jsx(Cross, {})
|
|
87
|
-
}
|
|
88
|
-
) : null
|
|
89
|
-
}
|
|
90
|
-
) }) }) }) });
|
|
91
|
-
}
|
|
92
|
-
function TableHeader({
|
|
93
|
-
sortKey,
|
|
94
|
-
handleSort
|
|
95
|
-
}) {
|
|
96
|
-
const { formatMessage } = useIntl();
|
|
97
|
-
return /* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
|
|
98
|
-
/* @__PURE__ */ jsxs(Th, { onClick: () => handleSort("title"), cursor: "pointer", children: [
|
|
99
|
-
/* @__PURE__ */ jsx(Typography, { variant: "sigma", children: formatMessage({
|
|
100
|
-
id: getTranslation("title"),
|
|
101
|
-
defaultMessage: "Title"
|
|
102
|
-
}) }),
|
|
103
|
-
sortKey === "title" && /* @__PURE__ */ jsx(ChevronDown, {})
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ jsxs(Th, { onClick: () => handleSort("canonicalPath"), cursor: "pointer", children: [
|
|
106
|
-
/* @__PURE__ */ jsx(Typography, { variant: "sigma", children: formatMessage({
|
|
107
|
-
id: getTranslation("canonicalPath"),
|
|
108
|
-
defaultMessage: "Canonical Path"
|
|
109
|
-
}) }),
|
|
110
|
-
sortKey === "canonicalPath" && /* @__PURE__ */ jsx(ChevronDown, {})
|
|
111
|
-
] }),
|
|
112
|
-
/* @__PURE__ */ jsxs(Th, { onClick: () => handleSort("path"), cursor: "pointer", children: [
|
|
113
|
-
/* @__PURE__ */ jsx(Typography, { variant: "sigma", children: formatMessage({
|
|
114
|
-
id: getTranslation("path"),
|
|
115
|
-
defaultMessage: "Path"
|
|
116
|
-
}) }),
|
|
117
|
-
sortKey === "path" && /* @__PURE__ */ jsx(ChevronDown, {})
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ jsxs(Th, { onClick: () => handleSort("type"), cursor: "pointer", children: [
|
|
120
|
-
/* @__PURE__ */ jsx(Typography, { variant: "sigma", children: formatMessage({
|
|
121
|
-
id: getTranslation("paths.page.column.type"),
|
|
122
|
-
defaultMessage: "Type"
|
|
123
|
-
}) }),
|
|
124
|
-
sortKey === "type" && /* @__PURE__ */ jsx(ChevronDown, {})
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: formatMessage({
|
|
127
|
-
id: getTranslation("actions"),
|
|
128
|
-
defaultMessage: "Actions"
|
|
129
|
-
}) }) })
|
|
130
|
-
] }) });
|
|
131
|
-
}
|
|
132
|
-
function TableRow({ route }) {
|
|
133
|
-
const { formatMessage } = useIntl();
|
|
134
|
-
return /* @__PURE__ */ jsxs(Tr, { children: [
|
|
135
|
-
[route.title, route.canonicalPath, route.path].map((field, index) => /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { title: field, textColor: "neutral800", children: field || "-" }) }, index)),
|
|
136
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { title: route.type, textColor: "neutral800", children: formatMessage({
|
|
137
|
-
id: getTranslation(`path.type.${route.type}`),
|
|
138
|
-
defaultMessage: "-"
|
|
139
|
-
}) }) }),
|
|
140
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Flex, { gap: 2, justifyContent: "end", children: route.type === "internal" && /* @__PURE__ */ jsx(
|
|
141
|
-
LinkButton,
|
|
142
|
-
{
|
|
143
|
-
variant: "secondary",
|
|
144
|
-
startIcon: /* @__PURE__ */ jsx(Pencil, {}),
|
|
145
|
-
href: `/admin/content-manager/collection-types/${route.relatedContentType}/${route.relatedDocumentId}`,
|
|
146
|
-
children: formatMessage({
|
|
147
|
-
id: getTranslation("edit"),
|
|
148
|
-
defaultMessage: "Edit"
|
|
149
|
-
})
|
|
150
|
-
}
|
|
151
|
-
) }) })
|
|
152
|
-
] });
|
|
153
|
-
}
|
|
154
|
-
function PathTable({
|
|
155
|
-
routes,
|
|
156
|
-
sortKey,
|
|
157
|
-
handleSort
|
|
158
|
-
}) {
|
|
159
|
-
const { formatMessage } = useIntl();
|
|
160
|
-
const TABLE_COL_COUNT = 5;
|
|
161
|
-
return /* @__PURE__ */ jsxs(Table, { colCount: TABLE_COL_COUNT, rowCount: routes.length, children: [
|
|
162
|
-
/* @__PURE__ */ jsx(TableHeader, { sortKey, handleSort }),
|
|
163
|
-
/* @__PURE__ */ jsx(Tbody, { children: routes.length > 0 ? routes.map((route) => /* @__PURE__ */ jsx(TableRow, { route }, route.id)) : /* @__PURE__ */ jsx(Tr, { children: /* @__PURE__ */ jsx(Td, { colSpan: TABLE_COL_COUNT, children: /* @__PURE__ */ jsx(
|
|
164
|
-
EmptyStateLayout,
|
|
165
|
-
{
|
|
166
|
-
shadow: "none",
|
|
167
|
-
content: formatMessage({
|
|
168
|
-
id: getTranslation("paths.page.emptyPaths"),
|
|
169
|
-
defaultMessage: "No paths found"
|
|
170
|
-
})
|
|
171
|
-
}
|
|
172
|
-
) }) }) })
|
|
173
|
-
] });
|
|
174
|
-
}
|
|
175
|
-
const Paths = () => {
|
|
176
|
-
const { getAllRoutes } = useApi();
|
|
177
|
-
const { formatMessage } = useIntl();
|
|
178
|
-
const { toggleNotification } = useNotification();
|
|
179
|
-
const [allRoutes, setAllRoutes] = useState([]);
|
|
180
|
-
const [routes, setRoutes] = useState([]);
|
|
181
|
-
const [loading, setLoading] = useState(true);
|
|
182
|
-
const [searchParams, setSearchParams] = useSearchParams();
|
|
183
|
-
const initialQuery = searchParams.get("search") || "";
|
|
184
|
-
const [searchQuery, setSearchQuery] = useState(initialQuery);
|
|
185
|
-
const [sortKey, setSortKey] = useState("canonicalPath");
|
|
186
|
-
const [sortDirection, setSortDirection] = useState("asc");
|
|
187
|
-
useEffect(() => {
|
|
188
|
-
const query = searchQuery.toLowerCase();
|
|
189
|
-
setRoutes(
|
|
190
|
-
allRoutes.filter(
|
|
191
|
-
(route) => JSON.stringify(route.id).toLowerCase().includes(query) || route.title.toLowerCase().includes(query) || route.path.toLowerCase().includes(query) || route.relatedDocumentId.toLowerCase().includes(query) || route.relatedContentType.toLowerCase().includes(query)
|
|
192
|
-
)
|
|
193
|
-
);
|
|
194
|
-
}, [searchQuery, allRoutes]);
|
|
195
|
-
const debouncedSetSearchParams = useMemo(
|
|
196
|
-
() => debounce((value) => {
|
|
197
|
-
value ? setSearchParams({ search: value }) : setSearchParams({});
|
|
198
|
-
}, 300),
|
|
199
|
-
[setSearchParams]
|
|
200
|
-
);
|
|
201
|
-
const handleSearchChange = (e) => {
|
|
202
|
-
const value = e.target.value;
|
|
203
|
-
setSearchQuery(value);
|
|
204
|
-
debouncedSetSearchParams(value);
|
|
205
|
-
};
|
|
206
|
-
useEffect(() => {
|
|
207
|
-
async function fetchRoutes() {
|
|
208
|
-
try {
|
|
209
|
-
const data = await getAllRoutes();
|
|
210
|
-
setAllRoutes(data);
|
|
211
|
-
setRoutes(data);
|
|
212
|
-
} catch (err) {
|
|
213
|
-
strapi.log.error("Failed to fetch paths:", err);
|
|
214
|
-
toggleNotification({
|
|
215
|
-
type: "danger",
|
|
216
|
-
message: formatMessage({
|
|
217
|
-
id: getTranslation("notification.paths.fetchFailed"),
|
|
218
|
-
defaultMessage: "Failed to fetch paths"
|
|
219
|
-
})
|
|
220
|
-
});
|
|
221
|
-
} finally {
|
|
222
|
-
setLoading(false);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
fetchRoutes();
|
|
226
|
-
}, []);
|
|
227
|
-
const handleSort = (key) => {
|
|
228
|
-
setSortDirection((prev) => prev === "asc" ? "desc" : "asc");
|
|
229
|
-
setSortKey(key);
|
|
230
|
-
};
|
|
231
|
-
const sortedRoutes = useMemo(() => {
|
|
232
|
-
return sortKey ? [...routes].sort(compareBy(sortKey, sortDirection)) : routes;
|
|
233
|
-
}, [routes, sortKey, sortDirection]);
|
|
234
|
-
if (loading) {
|
|
235
|
-
return /* @__PURE__ */ jsx(PageWrapper, { children: /* @__PURE__ */ jsx(FullLoader, {}) });
|
|
236
|
-
}
|
|
237
|
-
return /* @__PURE__ */ jsx(Page.Protect, { permissions: pluginPermissions["page.routes"], children: /* @__PURE__ */ jsxs(PageWrapper, { children: [
|
|
238
|
-
/* @__PURE__ */ jsx(SearchInput, { handleSearchChange, searchQuery }),
|
|
239
|
-
/* @__PURE__ */ jsx(PathTable, { routes: sortedRoutes, sortKey, handleSort })
|
|
240
|
-
] }) });
|
|
241
|
-
};
|
|
242
|
-
export {
|
|
243
|
-
Paths as default
|
|
244
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const designSystem = require("@strapi/design-system");
|
|
6
|
-
const admin = require("@strapi/strapi/admin");
|
|
7
|
-
const index = require("./index-ik3u6iCE.js");
|
|
8
|
-
const reactIntl = require("react-intl");
|
|
9
|
-
require("@strapi/icons/symbols");
|
|
10
|
-
const FullLoader = require("./FullLoader-Da2n70bJ.js");
|
|
11
|
-
const SettingTitle = require("./SettingTitle-DcQMSkno.js");
|
|
12
|
-
function reducer(newConfig, action) {
|
|
13
|
-
switch (action.type) {
|
|
14
|
-
case "SET_MAX_DEPTH":
|
|
15
|
-
if (!newConfig) return null;
|
|
16
|
-
return {
|
|
17
|
-
...newConfig,
|
|
18
|
-
navigation: { ...newConfig.navigation, maxDepth: action.payload },
|
|
19
|
-
selectedContentTypes: newConfig.selectedContentTypes || []
|
|
20
|
-
};
|
|
21
|
-
case "SET_CONFIG":
|
|
22
|
-
return action.payload;
|
|
23
|
-
default:
|
|
24
|
-
throw new Error();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const Settings = () => {
|
|
28
|
-
const { config: fetchedConfig, setConfig, loading, fetchError } = index.usePluginConfig();
|
|
29
|
-
const [config, dispatch] = React.useReducer(reducer, fetchedConfig);
|
|
30
|
-
const { toggleNotification } = admin.useNotification();
|
|
31
|
-
const { formatMessage } = reactIntl.useIntl();
|
|
32
|
-
const [isSaving, setIsSaving] = React.useState(false);
|
|
33
|
-
const initialConfig = React.useRef(fetchedConfig);
|
|
34
|
-
React.useEffect(() => {
|
|
35
|
-
initialConfig.current = fetchedConfig;
|
|
36
|
-
if (fetchedConfig) dispatch({ type: "SET_CONFIG", payload: fetchedConfig });
|
|
37
|
-
}, [fetchedConfig]);
|
|
38
|
-
React.useEffect(() => {
|
|
39
|
-
if (fetchError) {
|
|
40
|
-
toggleNotification({
|
|
41
|
-
type: "danger",
|
|
42
|
-
message: formatMessage({
|
|
43
|
-
id: index.getTranslation("notification.error"),
|
|
44
|
-
defaultMessage: "An error occurred"
|
|
45
|
-
}) + ": " + fetchError
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}, [fetchError, toggleNotification, formatMessage]);
|
|
49
|
-
async function save() {
|
|
50
|
-
if (!config) return;
|
|
51
|
-
setIsSaving(true);
|
|
52
|
-
try {
|
|
53
|
-
await setConfig({ navigation: config.navigation });
|
|
54
|
-
initialConfig.current = config;
|
|
55
|
-
toggleNotification({
|
|
56
|
-
type: "success",
|
|
57
|
-
message: formatMessage({
|
|
58
|
-
id: index.getTranslation("notification.settings.saved"),
|
|
59
|
-
defaultMessage: "Settings saved successfully"
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
setIsSaving(false);
|
|
63
|
-
} catch (err) {
|
|
64
|
-
setIsSaving(false);
|
|
65
|
-
toggleNotification({
|
|
66
|
-
type: "danger",
|
|
67
|
-
message: formatMessage({
|
|
68
|
-
id: index.getTranslation("notification.error"),
|
|
69
|
-
defaultMessage: "An error occurred"
|
|
70
|
-
}) + ": " + err
|
|
71
|
-
});
|
|
72
|
-
strapi.log.error(err);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (loading) {
|
|
76
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
|
-
SettingTitle.PageWrapper,
|
|
78
|
-
{
|
|
79
|
-
isSaving,
|
|
80
|
-
subtitle: formatMessage({
|
|
81
|
-
id: index.getTranslation("loading"),
|
|
82
|
-
defaultMessage: "Loading..."
|
|
83
|
-
}),
|
|
84
|
-
disabledCondition: true,
|
|
85
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(FullLoader.FullLoader, { height: 200 })
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(admin.Page.Protect, { permissions: index.pluginPermissions["settings.navigation"], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
SettingTitle.PageWrapper,
|
|
91
|
-
{
|
|
92
|
-
save,
|
|
93
|
-
isSaving,
|
|
94
|
-
subtitle: formatMessage({
|
|
95
|
-
id: index.getTranslation("settings.page.navigation.subtitle"),
|
|
96
|
-
defaultMessage: "Configure navigation settings"
|
|
97
|
-
}),
|
|
98
|
-
disabledCondition: JSON.stringify(config) === JSON.stringify(initialConfig.current),
|
|
99
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
-
SettingTitle.ContentBox,
|
|
101
|
-
{
|
|
102
|
-
title: formatMessage({
|
|
103
|
-
id: index.getTranslation("settings.page.navigation.navigation"),
|
|
104
|
-
defaultMessage: "Navigation"
|
|
105
|
-
}),
|
|
106
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "maxNavDepth", children: [
|
|
107
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: /* @__PURE__ */ jsxRuntime.jsx(SettingTitle.SettingTitle, { children: formatMessage({
|
|
108
|
-
id: index.getTranslation("settings.page.navigation.maxNavDepth.label"),
|
|
109
|
-
defaultMessage: "Max depth of navigation tree"
|
|
110
|
-
}) }) }),
|
|
111
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
-
designSystem.Field.Input,
|
|
113
|
-
{
|
|
114
|
-
id: "maxNavDepth",
|
|
115
|
-
type: "number",
|
|
116
|
-
min: 0,
|
|
117
|
-
step: 1,
|
|
118
|
-
value: config?.navigation?.maxDepth !== void 0 ? config.navigation.maxDepth + 1 : "",
|
|
119
|
-
onChange: (e) => dispatch({
|
|
120
|
-
type: "SET_MAX_DEPTH",
|
|
121
|
-
payload: Number(e.target.value) - 1
|
|
122
|
-
}),
|
|
123
|
-
onBlur: (e) => {
|
|
124
|
-
if (e.target.value === "") return;
|
|
125
|
-
dispatch({
|
|
126
|
-
type: "SET_MAX_DEPTH",
|
|
127
|
-
payload: Number(e.target.value) - 1
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
|
|
133
|
-
] })
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
) });
|
|
138
|
-
};
|
|
139
|
-
exports.default = Settings;
|