strapi-plugin-dynamic-zone-tools 1.0.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/CHANGELOG.md +12 -0
- package/CONTRIBUTING.md +38 -0
- package/LICENSE +21 -0
- package/README.md +186 -0
- package/admin/custom.d.ts +2 -0
- package/admin/src/components/DynamicZoneComponentDuplicateInjector.tsx +604 -0
- package/admin/src/components/DynamicZoneEditViewExtensions.tsx +7 -0
- package/admin/src/components/DynamicZoneToolsPanel.tsx +1027 -0
- package/admin/src/components/FillFromRecord.tsx +36 -0
- package/admin/src/components/Initializer.tsx +19 -0
- package/admin/src/components/PluginIcon.tsx +5 -0
- package/admin/src/index.ts +61 -0
- package/admin/src/pages/App.tsx +15 -0
- package/admin/src/pages/HomePage.tsx +16 -0
- package/admin/src/pluginId.ts +1 -0
- package/admin/src/translations/en.json +51 -0
- package/admin/src/utils/createRowActionButton.ts +57 -0
- package/admin/src/utils/createRowActionMenu.ts +276 -0
- package/admin/src/utils/dynamicZoneClipboard.ts +134 -0
- package/admin/src/utils/dynamicZonePaths.ts +236 -0
- package/admin/src/utils/getTranslation.ts +5 -0
- package/admin/src/utils/prepareDynamicZoneData.ts +625 -0
- package/admin/src/utils/relationQueryParams.ts +19 -0
- package/admin/tsconfig.build.json +10 -0
- package/admin/tsconfig.json +12 -0
- package/dist/admin/en-Ce0ZP0MJ.js +54 -0
- package/dist/admin/en-DrSdJbJW.mjs +54 -0
- package/dist/admin/index.js +2161 -0
- package/dist/admin/index.mjs +2159 -0
- package/dist/admin/src/index.d.ts +12 -0
- package/dist/server/index.js +137 -0
- package/dist/server/index.mjs +137 -0
- package/dist/server/src/index.d.ts +55 -0
- package/package.json +112 -0
- package/server/src/bootstrap.ts +18 -0
- package/server/src/config/index.ts +4 -0
- package/server/src/content-types/index.ts +1 -0
- package/server/src/controllers/controller.ts +85 -0
- package/server/src/controllers/index.ts +5 -0
- package/server/src/destroy.ts +7 -0
- package/server/src/index.ts +30 -0
- package/server/src/middlewares/index.ts +1 -0
- package/server/src/policies/index.ts +1 -0
- package/server/src/register.ts +7 -0
- package/server/src/routes/admin-api.ts +18 -0
- package/server/src/routes/content-api.ts +1 -0
- package/server/src/routes/index.ts +15 -0
- package/server/src/services/index.ts +5 -0
- package/server/src/services/service.ts +9 -0
- package/server/tsconfig.build.json +10 -0
- package/server/tsconfig.json +11 -0
- package/strapi-admin.js +3 -0
- package/strapi-server.js +3 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const en = {
|
|
4
|
+
"dynamic-zone-tools.fill-from-record.title": "Fill From Record",
|
|
5
|
+
"dynamic-zone-tools.fill-from-record.description": "Fill this dynamic zone with content from another record.",
|
|
6
|
+
"dynamic-zone-tools.fill-from-record.content-type": "Content Type",
|
|
7
|
+
"dynamic-zone-tools.fill-from-record.source-zone": "Source Dynamic Zone",
|
|
8
|
+
"dynamic-zone-tools.fill-from-record.source-record": "Source Record",
|
|
9
|
+
"dynamic-zone-tools.fill-from-record.button": "Fill In",
|
|
10
|
+
"dynamic-zone-tools.panel.title": "Dynamic Zone Tools",
|
|
11
|
+
"dynamic-zone-tools.panel.description": "Copy content from another dynamic zone into this entry.",
|
|
12
|
+
"dynamic-zone-tools.button.open": "Open tools",
|
|
13
|
+
"dynamic-zone-tools.modal.title": "Dynamic Zone Tools",
|
|
14
|
+
"dynamic-zone-tools.modal.warning": "Your current content will be erased and filled by the content of the selected dynamic zone:",
|
|
15
|
+
"dynamic-zone-tools.modal.cancel": "No, cancel",
|
|
16
|
+
"dynamic-zone-tools.modal.confirm": "Yes, fill in",
|
|
17
|
+
"dynamic-zone-tools.target-zone.label": "Target Dynamic Zone",
|
|
18
|
+
"dynamic-zone-tools.target-zone.placeholder": "Select zone to fill",
|
|
19
|
+
"dynamic-zone-tools.source-collection.label": "Source Collection",
|
|
20
|
+
"dynamic-zone-tools.source-collection.placeholder": "Select source collection",
|
|
21
|
+
"dynamic-zone-tools.source-zone.label": "Source Dynamic Zone",
|
|
22
|
+
"dynamic-zone-tools.source-zone.placeholder": "Select zone to copy from",
|
|
23
|
+
"dynamic-zone-tools.source-record.label": "Source Record",
|
|
24
|
+
"dynamic-zone-tools.source-record.placeholder": "Select record to copy from",
|
|
25
|
+
"dynamic-zone-tools.permission.denied": "You do not have permission to use the dynamic zone tools.",
|
|
26
|
+
"dynamic-zone-tools.success.message": "Dynamic zone content copied successfully!",
|
|
27
|
+
"dynamic-zone-tools.error.fetch-source": "Failed to fetch source content",
|
|
28
|
+
"dynamic-zone-tools.error.update-target": "Failed to update target content",
|
|
29
|
+
"dynamic-zone-tools.component-duplicate.action": "Duplicate component",
|
|
30
|
+
"dynamic-zone-tools.component-duplicate.success": "Component duplicated. Save the document to keep it.",
|
|
31
|
+
"dynamic-zone-tools.component-duplicate.error": "Could not duplicate this component.",
|
|
32
|
+
"dynamic-zone-tools.component-copy.action": "Copy block",
|
|
33
|
+
"dynamic-zone-tools.component-copy.success": "Block copied.",
|
|
34
|
+
"dynamic-zone-tools.component-copy.error": "Could not copy this block.",
|
|
35
|
+
"dynamic-zone-tools.component-insert.menu": "Insert",
|
|
36
|
+
"dynamic-zone-tools.component-paste.above": "Paste above",
|
|
37
|
+
"dynamic-zone-tools.component-paste.below": "Paste below",
|
|
38
|
+
"dynamic-zone-tools.component-paste.unavailable": "No compatible copied block found. Copy a block first.",
|
|
39
|
+
"dynamic-zone-tools.component-paste.success.above": "Block pasted above. Save the document to keep it.",
|
|
40
|
+
"dynamic-zone-tools.component-paste.success.below": "Block pasted below. Save the document to keep it.",
|
|
41
|
+
"dynamic-zone-tools.component-paste.error": "Could not paste the copied block.",
|
|
42
|
+
"dynamic-zone-tools.fill-mode.label": "Copy mode",
|
|
43
|
+
"dynamic-zone-tools.fill-mode.replace": "Replace current zone",
|
|
44
|
+
"dynamic-zone-tools.fill-mode.append": "Append to current zone",
|
|
45
|
+
"dynamic-zone-tools.modal.append-info": "Selected blocks will be appended to the end of the target dynamic zone.",
|
|
46
|
+
"dynamic-zone-tools.notification.append-success": "Selected blocks appended successfully!",
|
|
47
|
+
"dynamic-zone-tools.source-blocks.label": "Blocks to copy",
|
|
48
|
+
"dynamic-zone-tools.source-blocks.select-all": "Select all",
|
|
49
|
+
"dynamic-zone-tools.source-blocks.clear-all": "Clear all",
|
|
50
|
+
"dynamic-zone-tools.source-blocks.loading": "Loading source blocks...",
|
|
51
|
+
"dynamic-zone-tools.source-blocks.empty": "No blocks found in the selected source zone.",
|
|
52
|
+
"dynamic-zone-tools.source-blocks.not-allowed": "not allowed in target zone"
|
|
53
|
+
};
|
|
54
|
+
exports.default = en;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const en = {
|
|
2
|
+
"dynamic-zone-tools.fill-from-record.title": "Fill From Record",
|
|
3
|
+
"dynamic-zone-tools.fill-from-record.description": "Fill this dynamic zone with content from another record.",
|
|
4
|
+
"dynamic-zone-tools.fill-from-record.content-type": "Content Type",
|
|
5
|
+
"dynamic-zone-tools.fill-from-record.source-zone": "Source Dynamic Zone",
|
|
6
|
+
"dynamic-zone-tools.fill-from-record.source-record": "Source Record",
|
|
7
|
+
"dynamic-zone-tools.fill-from-record.button": "Fill In",
|
|
8
|
+
"dynamic-zone-tools.panel.title": "Dynamic Zone Tools",
|
|
9
|
+
"dynamic-zone-tools.panel.description": "Copy content from another dynamic zone into this entry.",
|
|
10
|
+
"dynamic-zone-tools.button.open": "Open tools",
|
|
11
|
+
"dynamic-zone-tools.modal.title": "Dynamic Zone Tools",
|
|
12
|
+
"dynamic-zone-tools.modal.warning": "Your current content will be erased and filled by the content of the selected dynamic zone:",
|
|
13
|
+
"dynamic-zone-tools.modal.cancel": "No, cancel",
|
|
14
|
+
"dynamic-zone-tools.modal.confirm": "Yes, fill in",
|
|
15
|
+
"dynamic-zone-tools.target-zone.label": "Target Dynamic Zone",
|
|
16
|
+
"dynamic-zone-tools.target-zone.placeholder": "Select zone to fill",
|
|
17
|
+
"dynamic-zone-tools.source-collection.label": "Source Collection",
|
|
18
|
+
"dynamic-zone-tools.source-collection.placeholder": "Select source collection",
|
|
19
|
+
"dynamic-zone-tools.source-zone.label": "Source Dynamic Zone",
|
|
20
|
+
"dynamic-zone-tools.source-zone.placeholder": "Select zone to copy from",
|
|
21
|
+
"dynamic-zone-tools.source-record.label": "Source Record",
|
|
22
|
+
"dynamic-zone-tools.source-record.placeholder": "Select record to copy from",
|
|
23
|
+
"dynamic-zone-tools.permission.denied": "You do not have permission to use the dynamic zone tools.",
|
|
24
|
+
"dynamic-zone-tools.success.message": "Dynamic zone content copied successfully!",
|
|
25
|
+
"dynamic-zone-tools.error.fetch-source": "Failed to fetch source content",
|
|
26
|
+
"dynamic-zone-tools.error.update-target": "Failed to update target content",
|
|
27
|
+
"dynamic-zone-tools.component-duplicate.action": "Duplicate component",
|
|
28
|
+
"dynamic-zone-tools.component-duplicate.success": "Component duplicated. Save the document to keep it.",
|
|
29
|
+
"dynamic-zone-tools.component-duplicate.error": "Could not duplicate this component.",
|
|
30
|
+
"dynamic-zone-tools.component-copy.action": "Copy block",
|
|
31
|
+
"dynamic-zone-tools.component-copy.success": "Block copied.",
|
|
32
|
+
"dynamic-zone-tools.component-copy.error": "Could not copy this block.",
|
|
33
|
+
"dynamic-zone-tools.component-insert.menu": "Insert",
|
|
34
|
+
"dynamic-zone-tools.component-paste.above": "Paste above",
|
|
35
|
+
"dynamic-zone-tools.component-paste.below": "Paste below",
|
|
36
|
+
"dynamic-zone-tools.component-paste.unavailable": "No compatible copied block found. Copy a block first.",
|
|
37
|
+
"dynamic-zone-tools.component-paste.success.above": "Block pasted above. Save the document to keep it.",
|
|
38
|
+
"dynamic-zone-tools.component-paste.success.below": "Block pasted below. Save the document to keep it.",
|
|
39
|
+
"dynamic-zone-tools.component-paste.error": "Could not paste the copied block.",
|
|
40
|
+
"dynamic-zone-tools.fill-mode.label": "Copy mode",
|
|
41
|
+
"dynamic-zone-tools.fill-mode.replace": "Replace current zone",
|
|
42
|
+
"dynamic-zone-tools.fill-mode.append": "Append to current zone",
|
|
43
|
+
"dynamic-zone-tools.modal.append-info": "Selected blocks will be appended to the end of the target dynamic zone.",
|
|
44
|
+
"dynamic-zone-tools.notification.append-success": "Selected blocks appended successfully!",
|
|
45
|
+
"dynamic-zone-tools.source-blocks.label": "Blocks to copy",
|
|
46
|
+
"dynamic-zone-tools.source-blocks.select-all": "Select all",
|
|
47
|
+
"dynamic-zone-tools.source-blocks.clear-all": "Clear all",
|
|
48
|
+
"dynamic-zone-tools.source-blocks.loading": "Loading source blocks...",
|
|
49
|
+
"dynamic-zone-tools.source-blocks.empty": "No blocks found in the selected source zone.",
|
|
50
|
+
"dynamic-zone-tools.source-blocks.not-allowed": "not allowed in target zone"
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
en as default
|
|
54
|
+
};
|