@akemona-org/strapi-plugin-content-manager 3.7.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/LICENSE +22 -0
- package/README.md +27 -0
- package/admin/src/InjectedComponents/ContentTypeBuilder/ConfigureViewButton/index.js +78 -0
- package/admin/src/assets/images/background_input.svg +1 -0
- package/admin/src/assets/images/icon-cross-blue.svg +1 -0
- package/admin/src/assets/images/icon_remove.svg +19 -0
- package/admin/src/assets/images/logo.svg +1 -0
- package/admin/src/components/AddDropdown/components.js +113 -0
- package/admin/src/components/AddDropdown/index.js +76 -0
- package/admin/src/components/Block/components.js +28 -0
- package/admin/src/components/Block/index.js +45 -0
- package/admin/src/components/ComponentInitializer/P.js +9 -0
- package/admin/src/components/ComponentInitializer/index.js +43 -0
- package/admin/src/components/Container/index.js +7 -0
- package/admin/src/components/CustomInputCheckbox/components.js +77 -0
- package/admin/src/components/CustomInputCheckbox/index.js +53 -0
- package/admin/src/components/CustomTable/ActionCollapse/Delete.js +14 -0
- package/admin/src/components/CustomTable/ActionCollapse/DeleteAll.js +18 -0
- package/admin/src/components/CustomTable/ActionCollapse/Wrapper.js +20 -0
- package/admin/src/components/CustomTable/ActionCollapse/index.js +38 -0
- package/admin/src/components/CustomTable/Headers/Header.js +59 -0
- package/admin/src/components/CustomTable/Headers/Thead.js +35 -0
- package/admin/src/components/CustomTable/Headers/index.js +46 -0
- package/admin/src/components/CustomTable/Row/ActionContainer.js +19 -0
- package/admin/src/components/CustomTable/Row/Cell.js +55 -0
- package/admin/src/components/CustomTable/Row/index.js +112 -0
- package/admin/src/components/CustomTable/index.js +162 -0
- package/admin/src/components/CustomTable/styledComponents.js +85 -0
- package/admin/src/components/DragLayer/index.js +102 -0
- package/admin/src/components/DraggedField/Close/index.js +10 -0
- package/admin/src/components/DraggedField/GrabWrapper.js +38 -0
- package/admin/src/components/DraggedField/Link.js +17 -0
- package/admin/src/components/DraggedField/NameWrapper.js +29 -0
- package/admin/src/components/DraggedField/RemoveWrapper.js +32 -0
- package/admin/src/components/DraggedField/SubWrapper.js +36 -0
- package/admin/src/components/DraggedField/Wrapper.js +134 -0
- package/admin/src/components/DraggedField/index.js +196 -0
- package/admin/src/components/DraggedField/utils/getColor.js +12 -0
- package/admin/src/components/DraggedField/utils/getHeight.js +3 -0
- package/admin/src/components/DraggedFieldWithPreview/Carret.js +24 -0
- package/admin/src/components/DraggedFieldWithPreview/DynamicComponent.js +70 -0
- package/admin/src/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +10 -0
- package/admin/src/components/DraggedFieldWithPreview/Tooltip.js +19 -0
- package/admin/src/components/DraggedFieldWithPreview/Wrapper.js +24 -0
- package/admin/src/components/DraggedFieldWithPreview/index.js +194 -0
- package/admin/src/components/DynamicComponentCard/Wrapper.js +63 -0
- package/admin/src/components/DynamicComponentCard/index.js +49 -0
- package/admin/src/components/DynamicZone/BaselineAlignement.js +11 -0
- package/admin/src/components/DynamicZone/Button.js +31 -0
- package/admin/src/components/DynamicZone/Component/RoundCTA.js +45 -0
- package/admin/src/components/DynamicZone/Component/index.js +79 -0
- package/admin/src/components/DynamicZone/ComponentWrapper.js +44 -0
- package/admin/src/components/DynamicZone/DynamicZoneWrapper.js +12 -0
- package/admin/src/components/DynamicZone/Label.js +42 -0
- package/admin/src/components/DynamicZone/Picker/Category/Banner/Wrapper.js +78 -0
- package/admin/src/components/DynamicZone/Picker/Category/Banner/index.js +33 -0
- package/admin/src/components/DynamicZone/Picker/Category/index.js +53 -0
- package/admin/src/components/DynamicZone/Picker/Wrapper.js +32 -0
- package/admin/src/components/DynamicZone/Picker/index.js +88 -0
- package/admin/src/components/DynamicZone/Wrapper.js +34 -0
- package/admin/src/components/DynamicZone/index.js +238 -0
- package/admin/src/components/DynamicZone/utils/connect.js +12 -0
- package/admin/src/components/DynamicZone/utils/select.js +49 -0
- package/admin/src/components/FieldComponent/ComponentIcon.js +44 -0
- package/admin/src/components/FieldComponent/EmptyComponent.js +19 -0
- package/admin/src/components/FieldComponent/Label.js +10 -0
- package/admin/src/components/FieldComponent/ResetComponent.js +41 -0
- package/admin/src/components/FieldComponent/Wrapper.js +18 -0
- package/admin/src/components/FieldComponent/index.js +171 -0
- package/admin/src/components/FieldComponent/utils/connect.js +12 -0
- package/admin/src/components/FieldComponent/utils/select.js +123 -0
- package/admin/src/components/FieldsReorder/Item.js +249 -0
- package/admin/src/components/FieldsReorder/components.js +8 -0
- package/admin/src/components/FieldsReorder/index.js +102 -0
- package/admin/src/components/FilterOptionsCTA/index.js +14 -0
- package/admin/src/components/FilterPicker/components.js +56 -0
- package/admin/src/components/FilterPicker/index.js +258 -0
- package/admin/src/components/FilterPicker/init.js +25 -0
- package/admin/src/components/FilterPicker/reducer.js +58 -0
- package/admin/src/components/FilterPickerOption/Input.js +58 -0
- package/admin/src/components/FilterPickerOption/Option.js +18 -0
- package/admin/src/components/FilterPickerOption/components.js +60 -0
- package/admin/src/components/FilterPickerOption/index.js +101 -0
- package/admin/src/components/FormTitle/index.js +26 -0
- package/admin/src/components/FormWrapper/index.js +20 -0
- package/admin/src/components/InputJSON/components.js +30 -0
- package/admin/src/components/InputJSON/index.js +184 -0
- package/admin/src/components/InputJSON/jsonlint.js +424 -0
- package/admin/src/components/InputJSONWithErrors/Wrapper.js +32 -0
- package/admin/src/components/InputJSONWithErrors/index.js +168 -0
- package/admin/src/components/InputUID/InputUID.js +26 -0
- package/admin/src/components/InputUID/Options/Option.js +22 -0
- package/admin/src/components/InputUID/Options/OptionsTitle.js +12 -0
- package/admin/src/components/InputUID/Options/RightOptionLabel.js +10 -0
- package/admin/src/components/InputUID/Options/index.js +34 -0
- package/admin/src/components/InputUID/Options/wrapper.js +13 -0
- package/admin/src/components/InputUID/RegenerateButton.js +18 -0
- package/admin/src/components/InputUID/RightContent.js +14 -0
- package/admin/src/components/InputUID/RightContentLabel.js +10 -0
- package/admin/src/components/InputUID/RightLabel.js +42 -0
- package/admin/src/components/InputUID/SubLabel.js +9 -0
- package/admin/src/components/InputUID/Wrapper.js +8 -0
- package/admin/src/components/InputUID/index.js +325 -0
- package/admin/src/components/InputUID/regex.js +3 -0
- package/admin/src/components/Inputs/index.js +283 -0
- package/admin/src/components/Inputs/utils/VALIDATIONS_TO_OMIT.js +12 -0
- package/admin/src/components/Inputs/utils/connect.js +12 -0
- package/admin/src/components/Inputs/utils/generateOptions.js +19 -0
- package/admin/src/components/Inputs/utils/getInputType.js +44 -0
- package/admin/src/components/Inputs/utils/getStep.js +15 -0
- package/admin/src/components/Inputs/utils/index.js +6 -0
- package/admin/src/components/Inputs/utils/select.js +38 -0
- package/admin/src/components/LayoutTitle/index.js +19 -0
- package/admin/src/components/MediaPreviewList/StyledMediaPreviewList.js +171 -0
- package/admin/src/components/MediaPreviewList/index.js +110 -0
- package/admin/src/components/NonRepeatableComponent/index.js +73 -0
- package/admin/src/components/NonRepeatableWrapper/index.js +73 -0
- package/admin/src/components/PlusButton/index.js +52 -0
- package/admin/src/components/PopupForm/index.js +93 -0
- package/admin/src/components/PreviewCarret/components.js +27 -0
- package/admin/src/components/PreviewCarret/index.js +22 -0
- package/admin/src/components/PreviewWysiwyg/Wrapper.js +133 -0
- package/admin/src/components/PreviewWysiwyg/index.js +34 -0
- package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.js +72 -0
- package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.js +16 -0
- package/admin/src/components/RelationPreviewList/CountWrapper.js +7 -0
- package/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js +117 -0
- package/admin/src/components/RelationPreviewList/index.js +111 -0
- package/admin/src/components/RepeatableComponent/AddFieldButton.js +64 -0
- package/admin/src/components/RepeatableComponent/Banner.js +112 -0
- package/admin/src/components/RepeatableComponent/BannerWrapper.js +194 -0
- package/admin/src/components/RepeatableComponent/CarretTop.js +14 -0
- package/admin/src/components/RepeatableComponent/DraggedItem/index.js +245 -0
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/connect.js +11 -0
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/index.js +2 -0
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/select.js +30 -0
- package/admin/src/components/RepeatableComponent/EmptyComponent.js +27 -0
- package/admin/src/components/RepeatableComponent/FormWrapper.js +27 -0
- package/admin/src/components/RepeatableComponent/index.js +187 -0
- package/admin/src/components/RepeatableComponent/reducer.js +73 -0
- package/admin/src/components/RepeatableComponent/utils/connect.js +11 -0
- package/admin/src/components/RepeatableComponent/utils/select.js +12 -0
- package/admin/src/components/Search/index.js +88 -0
- package/admin/src/components/SectionTitle/Title.js +11 -0
- package/admin/src/components/SectionTitle/index.js +29 -0
- package/admin/src/components/SelectMany/ListItem.js +107 -0
- package/admin/src/components/SelectMany/Relation.js +106 -0
- package/admin/src/components/SelectMany/components.js +153 -0
- package/admin/src/components/SelectMany/index.js +159 -0
- package/admin/src/components/SelectOne/SingleValue.js +58 -0
- package/admin/src/components/SelectOne/index.js +71 -0
- package/admin/src/components/SelectWrapper/ClearIndicator.js +15 -0
- package/admin/src/components/SelectWrapper/IndicatorSeparator.js +3 -0
- package/admin/src/components/SelectWrapper/Option.js +76 -0
- package/admin/src/components/SelectWrapper/components.js +14 -0
- package/admin/src/components/SelectWrapper/index.js +393 -0
- package/admin/src/components/SelectWrapper/utils/connect.js +12 -0
- package/admin/src/components/SelectWrapper/utils/index.js +3 -0
- package/admin/src/components/SelectWrapper/utils/select.js +45 -0
- package/admin/src/components/SelectWrapper/utils/styles.js +105 -0
- package/admin/src/components/Separator/index.js +9 -0
- package/admin/src/components/SettingFormWrapper/index.js +9 -0
- package/admin/src/components/SettingsViewWrapper/index.js +283 -0
- package/admin/src/components/SortWrapper/index.js +9 -0
- package/admin/src/components/SortableList/Item.js +126 -0
- package/admin/src/components/SortableList/index.js +60 -0
- package/admin/src/components/State/Wrapper.js +30 -0
- package/admin/src/components/State/index.js +26 -0
- package/admin/src/components/Truncate/index.js +5 -0
- package/admin/src/components/Truncated/index.js +10 -0
- package/admin/src/components/Wysiwyg/EditorWrapper.js +122 -0
- package/admin/src/components/Wysiwyg/MediaLib.js +71 -0
- package/admin/src/components/Wysiwyg/PreviewControlWrapper.js +30 -0
- package/admin/src/components/Wysiwyg/SelectWrapper.js +24 -0
- package/admin/src/components/Wysiwyg/ToggleModeWrapper.js +30 -0
- package/admin/src/components/Wysiwyg/constants.js +98 -0
- package/admin/src/components/Wysiwyg/customSelect.js +39 -0
- package/admin/src/components/Wysiwyg/helpers.js +116 -0
- package/admin/src/components/Wysiwyg/index.js +819 -0
- package/admin/src/components/Wysiwyg/previewControl.js +29 -0
- package/admin/src/components/Wysiwyg/toggleMode.js +44 -0
- package/admin/src/components/Wysiwyg/utils.js +70 -0
- package/admin/src/components/WysiwygBottomControls/components.js +44 -0
- package/admin/src/components/WysiwygBottomControls/index.js +33 -0
- package/admin/src/components/WysiwygDropUpload/Label.js +16 -0
- package/admin/src/components/WysiwygDropUpload/index.js +18 -0
- package/admin/src/components/WysiwygEditor/index.js +26 -0
- package/admin/src/components/WysiwygInlineControls/Button.js +77 -0
- package/admin/src/components/WysiwygInlineControls/StyledButton.js +54 -0
- package/admin/src/components/WysiwygInlineControls/Wrapper.js +25 -0
- package/admin/src/components/WysiwygInlineControls/index.js +66 -0
- package/admin/src/components/WysiwygWithErrors/Wrapper.js +38 -0
- package/admin/src/components/WysiwygWithErrors/index.js +158 -0
- package/admin/src/containers/CollectionTypeFormWrapper/index.js +376 -0
- package/admin/src/containers/CollectionTypeFormWrapper/utils/getRequestUrl.js +5 -0
- package/admin/src/containers/CollectionTypeFormWrapper/utils/index.js +2 -0
- package/admin/src/containers/CollectionTypeRecursivePath/index.js +125 -0
- package/admin/src/containers/ComponentSetttingsView/index.js +55 -0
- package/admin/src/containers/EditSettingsView/index.js +408 -0
- package/admin/src/containers/EditSettingsView/init.js +18 -0
- package/admin/src/containers/EditSettingsView/reducer.js +126 -0
- package/admin/src/containers/EditSettingsView/utils/createPossibleMainFieldsForModelsAndComponents.js +26 -0
- package/admin/src/containers/EditSettingsView/utils/getInputProps.js +30 -0
- package/admin/src/containers/EditSettingsView/utils/index.js +2 -0
- package/admin/src/containers/EditSettingsView/utils/layout.js +98 -0
- package/admin/src/containers/EditView/DeleteLink/index.js +94 -0
- package/admin/src/containers/EditView/DeleteLink/utils/connect.js +12 -0
- package/admin/src/containers/EditView/DeleteLink/utils/index.js +2 -0
- package/admin/src/containers/EditView/DeleteLink/utils/select.js +21 -0
- package/admin/src/containers/EditView/Header/index.js +258 -0
- package/admin/src/containers/EditView/Header/utils/connect.js +12 -0
- package/admin/src/containers/EditView/Header/utils/getDraftRelations.js +62 -0
- package/admin/src/containers/EditView/Header/utils/index.js +3 -0
- package/admin/src/containers/EditView/Header/utils/select.js +31 -0
- package/admin/src/containers/EditView/InformationCard.js +100 -0
- package/admin/src/containers/EditView/components.js +74 -0
- package/admin/src/containers/EditView/index.js +297 -0
- package/admin/src/containers/EditView/utils/createAttributesLayout.js +39 -0
- package/admin/src/containers/EditView/utils/getFieldsActionMatchingPermissions.js +23 -0
- package/admin/src/containers/EditView/utils/index.js +3 -0
- package/admin/src/containers/EditViewDataManagerProvider/index.js +519 -0
- package/admin/src/containers/EditViewDataManagerProvider/reducer.js +218 -0
- package/admin/src/containers/EditViewDataManagerProvider/utils/cleanData.js +88 -0
- package/admin/src/containers/EditViewDataManagerProvider/utils/getYupInnerErrors.js +17 -0
- package/admin/src/containers/EditViewDataManagerProvider/utils/index.js +3 -0
- package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +368 -0
- package/admin/src/containers/EditViewLayoutManager/Permissions.js +30 -0
- package/admin/src/containers/EditViewLayoutManager/actions.js +9 -0
- package/admin/src/containers/EditViewLayoutManager/constants.js +2 -0
- package/admin/src/containers/EditViewLayoutManager/index.js +44 -0
- package/admin/src/containers/EditViewLayoutManager/reducer.js +30 -0
- package/admin/src/containers/EditViewLayoutManager/selectors.js +5 -0
- package/admin/src/containers/LayoutDndProvider/index.js +75 -0
- package/admin/src/containers/ListSettingsView/DragWrapper.js +21 -0
- package/admin/src/containers/ListSettingsView/DropdownButton.js +8 -0
- package/admin/src/containers/ListSettingsView/Label.js +91 -0
- package/admin/src/containers/ListSettingsView/MenuDropdown.js +41 -0
- package/admin/src/containers/ListSettingsView/Toggle.js +51 -0
- package/admin/src/containers/ListSettingsView/forms.json +64 -0
- package/admin/src/containers/ListSettingsView/index.js +298 -0
- package/admin/src/containers/ListSettingsView/init.js +11 -0
- package/admin/src/containers/ListSettingsView/reducer.js +77 -0
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/StyledLink.js +28 -0
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/Wrapper.js +8 -0
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/index.js +29 -0
- package/admin/src/containers/ListView/FieldPicker/Field/Wrapper.js +15 -0
- package/admin/src/containers/ListView/FieldPicker/Field/index.js +24 -0
- package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +18 -0
- package/admin/src/containers/ListView/FieldPicker/Fields/index.js +27 -0
- package/admin/src/containers/ListView/FieldPicker/Header/Reset.js +8 -0
- package/admin/src/containers/ListView/FieldPicker/Header/index.js +42 -0
- package/admin/src/containers/ListView/FieldPicker/Wrapper.js +9 -0
- package/admin/src/containers/ListView/FieldPicker/index.js +46 -0
- package/admin/src/containers/ListView/Filter.js +83 -0
- package/admin/src/containers/ListView/Footer.js +60 -0
- package/admin/src/containers/ListView/actions.js +91 -0
- package/admin/src/containers/ListView/components.js +138 -0
- package/admin/src/containers/ListView/constants.js +16 -0
- package/admin/src/containers/ListView/index.js +573 -0
- package/admin/src/containers/ListView/reducer.js +182 -0
- package/admin/src/containers/ListView/selectors.js +24 -0
- package/admin/src/containers/ListView/utils/buildQueryString.js +26 -0
- package/admin/src/containers/ListView/utils/createPluginsFilter.js +13 -0
- package/admin/src/containers/ListView/utils/getAllAllowedHeaders.js +17 -0
- package/admin/src/containers/ListView/utils/getFirstSortableHeader.js +14 -0
- package/admin/src/containers/ListView/utils/index.js +3 -0
- package/admin/src/containers/ListViewLayoutManager/Permissions.js +29 -0
- package/admin/src/containers/ListViewLayoutManager/index.js +60 -0
- package/admin/src/containers/ListViewProvider/index.js +16 -0
- package/admin/src/containers/Main/actions.js +13 -0
- package/admin/src/containers/Main/constants.js +3 -0
- package/admin/src/containers/Main/index.js +100 -0
- package/admin/src/containers/Main/reducer.js +37 -0
- package/admin/src/containers/Main/selectors.js +20 -0
- package/admin/src/containers/RBACManager/actions.js +14 -0
- package/admin/src/containers/RBACManager/constants.js +2 -0
- package/admin/src/containers/RBACManager/reducer.js +32 -0
- package/admin/src/containers/RBACManager/useSyncRbac.js +28 -0
- package/admin/src/containers/SingleTypeFormWrapper/index.js +317 -0
- package/admin/src/containers/SingleTypeFormWrapper/utils/getRequestUrl.js +5 -0
- package/admin/src/containers/SingleTypeFormWrapper/utils/index.js +2 -0
- package/admin/src/containers/SingleTypeRecursivePath/index.js +84 -0
- package/admin/src/containers/WysiwygProvider/index.js +16 -0
- package/admin/src/contexts/ContentTypeLayout.js +5 -0
- package/admin/src/contexts/LayoutDnd.js +5 -0
- package/admin/src/contexts/ListView.js +5 -0
- package/admin/src/contexts/Wysiwyg.js +5 -0
- package/admin/src/contexts/index.js +4 -0
- package/admin/src/hooks/index.js +6 -0
- package/admin/src/hooks/useContentTypeLayout/index.js +19 -0
- package/admin/src/hooks/useFetchContentTypeLayout/index.js +83 -0
- package/admin/src/hooks/useFetchContentTypeLayout/reducer.js +56 -0
- package/admin/src/hooks/useFetchContentTypeLayout/utils/formatLayouts.js +235 -0
- package/admin/src/hooks/useFindRedirectionLink/index.js +14 -0
- package/admin/src/hooks/useFindRedirectionLink/selectors.js +7 -0
- package/admin/src/hooks/useFindRedirectionLink/utils/getRedirectionLink.js +45 -0
- package/admin/src/hooks/useLayoutDnd.js +6 -0
- package/admin/src/hooks/useListView.js +6 -0
- package/admin/src/hooks/useWysiwyg.js +6 -0
- package/admin/src/icons/Bold/index.js +22 -0
- package/admin/src/icons/Code/index.js +13 -0
- package/admin/src/icons/Cross/index.js +33 -0
- package/admin/src/icons/Italic/index.js +23 -0
- package/admin/src/icons/Link/index.js +21 -0
- package/admin/src/icons/Media/index.js +14 -0
- package/admin/src/icons/Na/index.js +58 -0
- package/admin/src/icons/Ol/index.js +13 -0
- package/admin/src/icons/Quote/index.js +13 -0
- package/admin/src/icons/Striked/index.js +24 -0
- package/admin/src/icons/Ul/index.js +15 -0
- package/admin/src/icons/Underline/index.js +22 -0
- package/admin/src/index.js +52 -0
- package/admin/src/lifecycles.js +19 -0
- package/admin/src/permissions.js +27 -0
- package/admin/src/pluginId.js +5 -0
- package/admin/src/reducers.js +16 -0
- package/admin/src/selectors.js +6 -0
- package/admin/src/sharedReducers/crudReducer/actions.js +44 -0
- package/admin/src/sharedReducers/crudReducer/constants.js +7 -0
- package/admin/src/sharedReducers/crudReducer/reducer.js +75 -0
- package/admin/src/sharedReducers/crudReducer/selectors.js +5 -0
- package/admin/src/testUtils/data.js +305 -0
- package/admin/src/testUtils/index.js +4 -0
- package/admin/src/translations/ar.json +94 -0
- package/admin/src/translations/cs.json +130 -0
- package/admin/src/translations/de.json +177 -0
- package/admin/src/translations/dk.json +180 -0
- package/admin/src/translations/en.json +177 -0
- package/admin/src/translations/es.json +177 -0
- package/admin/src/translations/fr.json +162 -0
- package/admin/src/translations/id.json +175 -0
- package/admin/src/translations/index.js +53 -0
- package/admin/src/translations/it.json +177 -0
- package/admin/src/translations/ja.json +94 -0
- package/admin/src/translations/ko.json +110 -0
- package/admin/src/translations/ms.json +148 -0
- package/admin/src/translations/nl.json +94 -0
- package/admin/src/translations/pl.json +142 -0
- package/admin/src/translations/pt-BR.json +94 -0
- package/admin/src/translations/pt.json +94 -0
- package/admin/src/translations/ru.json +177 -0
- package/admin/src/translations/sk.json +172 -0
- package/admin/src/translations/th.json +155 -0
- package/admin/src/translations/tr.json +177 -0
- package/admin/src/translations/uk.json +148 -0
- package/admin/src/translations/vi.json +110 -0
- package/admin/src/translations/zh-Hans.json +177 -0
- package/admin/src/translations/zh.json +94 -0
- package/admin/src/utils/ItemTypes.js +7 -0
- package/admin/src/utils/checkIfAttributeIsDisplayable.js +13 -0
- package/admin/src/utils/createDefaultForm.js +50 -0
- package/admin/src/utils/dateFormats.js +18 -0
- package/admin/src/utils/formatFiltersFromQuery.js +55 -0
- package/admin/src/utils/formatFiltersToQuery.js +27 -0
- package/admin/src/utils/formatLayoutToApi.js +44 -0
- package/admin/src/utils/generatePermissionsObject.js +20 -0
- package/admin/src/utils/getComponents.js +50 -0
- package/admin/src/utils/getDisplayedValue.js +61 -0
- package/admin/src/utils/getFieldName.js +6 -0
- package/admin/src/utils/getMaxTempKey.js +12 -0
- package/admin/src/utils/getRequestUrl.js +5 -0
- package/admin/src/utils/getTrad.js +5 -0
- package/admin/src/utils/index.js +17 -0
- package/admin/src/utils/mergeMetasWithSchema.js +20 -0
- package/admin/src/utils/removeKeyInObject.js +45 -0
- package/admin/src/utils/removePasswordFieldsFromData.js +54 -0
- package/config/admin.json +5 -0
- package/config/functions/bootstrap.js +9 -0
- package/config/policies/has-draft-and-publish.js +19 -0
- package/config/policies/hasPermissions.js +34 -0
- package/config/policies/routing.js +27 -0
- package/config/routes.json +275 -0
- package/controllers/collection-types.js +282 -0
- package/controllers/components.js +66 -0
- package/controllers/content-types.js +112 -0
- package/controllers/relations.js +63 -0
- package/controllers/single-types.js +170 -0
- package/controllers/uid.js +41 -0
- package/controllers/validation/index.js +104 -0
- package/controllers/validation/model-configuration.js +114 -0
- package/oas.yml +757 -0
- package/package.json +77 -0
- package/services/components.js +92 -0
- package/services/configuration.js +79 -0
- package/services/content-types.js +73 -0
- package/services/data-mapper.js +98 -0
- package/services/entity-manager.js +140 -0
- package/services/metrics.js +34 -0
- package/services/permission-checker.js +69 -0
- package/services/permission.js +95 -0
- package/services/uid.js +63 -0
- package/services/utils/configuration/attributes.js +175 -0
- package/services/utils/configuration/index.js +43 -0
- package/services/utils/configuration/layouts.js +185 -0
- package/services/utils/configuration/metadatas.js +142 -0
- package/services/utils/configuration/settings.js +52 -0
- package/services/utils/store.js +93 -0
- package/utils/index.js +16 -0
- package/utils/pick-writable-attributes.js +6 -0
- package/utils/wrap-bad-request.js +15 -0
- package/validation/policies/hasPermissions.js +17 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* SET THE HOOKS TO ENABLE THE MAGIC OF STRAPI.
|
|
4
|
+
* -------------------------------------------
|
|
5
|
+
*
|
|
6
|
+
* Secure, customise and enhance your project by setting
|
|
7
|
+
* the hooks via this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
function lifecycles() {
|
|
12
|
+
// Set hooks for the AdminPage container.
|
|
13
|
+
// Note: we don't need to specify the first argument because we already know what "willSecure" refers to.
|
|
14
|
+
// this.setHooks({
|
|
15
|
+
// didGetSecuredData,
|
|
16
|
+
// });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default lifecycles;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const pluginPermissions = {
|
|
2
|
+
// This permission regards the main component (App) and is used to tell
|
|
3
|
+
// If the plugin link should be displayed in the menu
|
|
4
|
+
// And also if the plugin is accessible. This use case is found when a user types the url of the
|
|
5
|
+
// plugin directly in the browser
|
|
6
|
+
main: [],
|
|
7
|
+
collectionTypesConfigurations: [
|
|
8
|
+
{
|
|
9
|
+
action: 'plugins::content-manager.collection-types.configure-view',
|
|
10
|
+
subject: null,
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
componentsConfigurations: [
|
|
14
|
+
{
|
|
15
|
+
action: 'plugins::content-manager.components.configure-layout',
|
|
16
|
+
subject: null,
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
singleTypesConfigurations: [
|
|
20
|
+
{
|
|
21
|
+
action: 'plugins::content-manager.single-types.configure-view',
|
|
22
|
+
subject: null,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default pluginPermissions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import mainReducer from './containers/Main/reducer';
|
|
2
|
+
import editViewLayoutManagerReducer from './containers/EditViewLayoutManager/reducer';
|
|
3
|
+
import listViewReducer from './containers/ListView/reducer';
|
|
4
|
+
import rbacManagerReducer from './containers/RBACManager/reducer';
|
|
5
|
+
import editViewCrudReducer from './sharedReducers/crudReducer/reducer';
|
|
6
|
+
import pluginId from './pluginId';
|
|
7
|
+
|
|
8
|
+
const reducers = {
|
|
9
|
+
[`${pluginId}_main`]: mainReducer,
|
|
10
|
+
[`${pluginId}_listView`]: listViewReducer,
|
|
11
|
+
[`${pluginId}_rbacManager`]: rbacManagerReducer,
|
|
12
|
+
[`${pluginId}_editViewLayoutManager`]: editViewLayoutManagerReducer,
|
|
13
|
+
[`${pluginId}_editViewCrudReducer`]: editViewCrudReducer,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default reducers;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GET_DATA,
|
|
3
|
+
GET_DATA_SUCCEEDED,
|
|
4
|
+
INIT_FORM,
|
|
5
|
+
RESET_PROPS,
|
|
6
|
+
SET_DATA_STRUCTURES,
|
|
7
|
+
SET_STATUS,
|
|
8
|
+
SUBMIT_SUCCEEDED,
|
|
9
|
+
} from './constants';
|
|
10
|
+
|
|
11
|
+
export const getData = () => {
|
|
12
|
+
return {
|
|
13
|
+
type: GET_DATA,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const getDataSucceeded = data => ({
|
|
18
|
+
type: GET_DATA_SUCCEEDED,
|
|
19
|
+
data,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const initForm = (rawQuery, isSingleType = false) => ({
|
|
23
|
+
type: INIT_FORM,
|
|
24
|
+
rawQuery,
|
|
25
|
+
isSingleType,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const resetProps = () => ({ type: RESET_PROPS });
|
|
29
|
+
|
|
30
|
+
export const setDataStructures = (componentsDataStructure, contentTypeDataStructure) => ({
|
|
31
|
+
type: SET_DATA_STRUCTURES,
|
|
32
|
+
componentsDataStructure,
|
|
33
|
+
contentTypeDataStructure,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const setStatus = status => ({
|
|
37
|
+
type: SET_STATUS,
|
|
38
|
+
status,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const submitSucceeded = data => ({
|
|
42
|
+
type: SUBMIT_SUCCEEDED,
|
|
43
|
+
data,
|
|
44
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const GET_DATA = 'ContentManager/CrudReducer/GET_DATA';
|
|
2
|
+
export const GET_DATA_SUCCEEDED = 'ContentManager/CrudReducer/GET_DATA_SUCCEEDED';
|
|
3
|
+
export const INIT_FORM = 'ContentManager/CrudReducer/INIT_FORM';
|
|
4
|
+
export const RESET_PROPS = 'ContentManager/CrudReducer/RESET_PROPS';
|
|
5
|
+
export const SET_DATA_STRUCTURES = 'ContentManager/CrudReducer/SET_DATA_STRUCTURES';
|
|
6
|
+
export const SET_STATUS = 'ContentManager/CrudReducer/SET_STATUS';
|
|
7
|
+
export const SUBMIT_SUCCEEDED = 'ContentManager/CrudReducer/SUBMIT_SUCCEEDED';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* eslint-disable consistent-return */
|
|
2
|
+
import produce from 'immer';
|
|
3
|
+
|
|
4
|
+
// NOTE: instead of creating a shared reducer here, we could also create a hook
|
|
5
|
+
// that returns the dispatch and the state, however it will mess with the linter
|
|
6
|
+
// and force us to either disable the linter for the hooks dependencies array rule or
|
|
7
|
+
// require us to add the dispatch to the array wich is not wanted. This refacto does not require us to
|
|
8
|
+
// to do any of this.
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
GET_DATA,
|
|
12
|
+
GET_DATA_SUCCEEDED,
|
|
13
|
+
INIT_FORM,
|
|
14
|
+
RESET_PROPS,
|
|
15
|
+
SET_DATA_STRUCTURES,
|
|
16
|
+
SET_STATUS,
|
|
17
|
+
SUBMIT_SUCCEEDED,
|
|
18
|
+
} from './constants';
|
|
19
|
+
|
|
20
|
+
const crudInitialState = {
|
|
21
|
+
componentsDataStructure: {},
|
|
22
|
+
contentTypeDataStructure: {},
|
|
23
|
+
isLoading: true,
|
|
24
|
+
data: {},
|
|
25
|
+
status: 'resolved',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const crudReducer = (state = crudInitialState, action) =>
|
|
29
|
+
produce(state, draftState => {
|
|
30
|
+
switch (action.type) {
|
|
31
|
+
case GET_DATA: {
|
|
32
|
+
draftState.isLoading = true;
|
|
33
|
+
draftState.data = {};
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
case GET_DATA_SUCCEEDED: {
|
|
37
|
+
draftState.isLoading = false;
|
|
38
|
+
draftState.data = action.data;
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
case INIT_FORM: {
|
|
42
|
+
if (action.data) {
|
|
43
|
+
draftState.isLoading = false;
|
|
44
|
+
draftState.data = action.data;
|
|
45
|
+
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
draftState.isLoading = false;
|
|
50
|
+
draftState.data = state.contentTypeDataStructure;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case RESET_PROPS: {
|
|
54
|
+
return crudInitialState;
|
|
55
|
+
}
|
|
56
|
+
case SET_DATA_STRUCTURES: {
|
|
57
|
+
draftState.componentsDataStructure = action.componentsDataStructure;
|
|
58
|
+
draftState.contentTypeDataStructure = action.contentTypeDataStructure;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case SET_STATUS: {
|
|
62
|
+
draftState.status = action.status;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case SUBMIT_SUCCEEDED: {
|
|
66
|
+
draftState.data = action.data;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
default:
|
|
70
|
+
return draftState;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export default crudReducer;
|
|
75
|
+
export { crudInitialState };
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
const testData = {
|
|
2
|
+
contentType: {
|
|
3
|
+
uid: 'application::test.test',
|
|
4
|
+
apiID: 'test',
|
|
5
|
+
attributes: {
|
|
6
|
+
created_at: { type: 'timestamp' },
|
|
7
|
+
dz: { type: 'dynamiczone', components: ['compos.test-compo', 'compos.sub-compo'] },
|
|
8
|
+
id: { type: 'integer' },
|
|
9
|
+
name: { type: 'string' },
|
|
10
|
+
notrepeatable: {
|
|
11
|
+
type: 'component',
|
|
12
|
+
repeatable: false,
|
|
13
|
+
component: 'compos.test-compo',
|
|
14
|
+
},
|
|
15
|
+
password: { type: 'password' },
|
|
16
|
+
repeatable: { type: 'component', repeatable: true, component: 'compos.test-compo' },
|
|
17
|
+
updated_at: { type: 'timestamp' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
components: {
|
|
21
|
+
'compos.sub-compo': {
|
|
22
|
+
uid: 'compos.sub-compo',
|
|
23
|
+
category: 'compos',
|
|
24
|
+
attributes: {
|
|
25
|
+
id: { type: 'integer' },
|
|
26
|
+
name: { type: 'string' },
|
|
27
|
+
password: { type: 'password' },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
'compos.test-compo': {
|
|
31
|
+
uid: 'compos.test-compo',
|
|
32
|
+
category: 'compos',
|
|
33
|
+
attributes: {
|
|
34
|
+
id: { type: 'integer' },
|
|
35
|
+
name: { type: 'string' },
|
|
36
|
+
password: { type: 'password' },
|
|
37
|
+
subcomponotrepeatable: {
|
|
38
|
+
type: 'component',
|
|
39
|
+
repeatable: false,
|
|
40
|
+
component: 'compos.sub-compo',
|
|
41
|
+
},
|
|
42
|
+
subrepeatable: {
|
|
43
|
+
type: 'component',
|
|
44
|
+
repeatable: true,
|
|
45
|
+
component: 'compos.sub-compo',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
modifiedData: {
|
|
51
|
+
created_at: '2020-04-28T13:22:13.033Z',
|
|
52
|
+
dz: [
|
|
53
|
+
{ __component: 'compos.sub-compo', id: 7, name: 'name', password: 'password' },
|
|
54
|
+
{
|
|
55
|
+
id: 4,
|
|
56
|
+
name: 'name',
|
|
57
|
+
password: 'password',
|
|
58
|
+
subcomponotrepeatable: null,
|
|
59
|
+
subrepeatable: [],
|
|
60
|
+
__component: 'compos.test-compo',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 5,
|
|
64
|
+
name: 'name',
|
|
65
|
+
password: 'password',
|
|
66
|
+
subcomponotrepeatable: { id: 9, name: 'name', password: 'password' },
|
|
67
|
+
subrepeatable: [{ id: 8, name: 'name', password: 'password' }],
|
|
68
|
+
__component: 'compos.test-compo',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 6,
|
|
72
|
+
name: null,
|
|
73
|
+
password: null,
|
|
74
|
+
subcomponotrepeatable: null,
|
|
75
|
+
subrepeatable: [],
|
|
76
|
+
__component: 'compos.test-compo',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
id: 1,
|
|
80
|
+
name: 'name',
|
|
81
|
+
notrepeatable: {
|
|
82
|
+
id: 1,
|
|
83
|
+
name: 'name',
|
|
84
|
+
password: 'password',
|
|
85
|
+
subcomponotrepeatable: { id: 4, name: 'name', password: 'password' },
|
|
86
|
+
subrepeatable: [
|
|
87
|
+
{ id: 1, name: 'name', password: 'password' },
|
|
88
|
+
{ id: 2, name: 'name', password: 'password' },
|
|
89
|
+
{ id: 3, name: 'name', password: 'password' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
password: 'password',
|
|
93
|
+
repeatable: [
|
|
94
|
+
{
|
|
95
|
+
id: 2,
|
|
96
|
+
name: 'name',
|
|
97
|
+
password: 'password',
|
|
98
|
+
subrepeatable: [{ id: 5, name: 'name', password: 'password' }],
|
|
99
|
+
subcomponotrepeatable: { id: 6, name: 'name', password: 'password' },
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 3,
|
|
103
|
+
name: 'name',
|
|
104
|
+
password: 'password',
|
|
105
|
+
subrepeatable: [],
|
|
106
|
+
subcomponotrepeatable: null,
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
updated_at: '2020-04-28T13:22:13.033Z',
|
|
110
|
+
},
|
|
111
|
+
expectedModifiedData: {
|
|
112
|
+
created_at: '2020-04-28T13:22:13.033Z',
|
|
113
|
+
dz: [
|
|
114
|
+
{ __component: 'compos.sub-compo', id: 7, name: 'name' },
|
|
115
|
+
{
|
|
116
|
+
id: 4,
|
|
117
|
+
name: 'name',
|
|
118
|
+
subcomponotrepeatable: null,
|
|
119
|
+
subrepeatable: [],
|
|
120
|
+
__component: 'compos.test-compo',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 5,
|
|
124
|
+
name: 'name',
|
|
125
|
+
subcomponotrepeatable: { id: 9, name: 'name' },
|
|
126
|
+
subrepeatable: [{ id: 8, name: 'name' }],
|
|
127
|
+
__component: 'compos.test-compo',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 6,
|
|
131
|
+
name: null,
|
|
132
|
+
subcomponotrepeatable: null,
|
|
133
|
+
subrepeatable: [],
|
|
134
|
+
__component: 'compos.test-compo',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
id: 1,
|
|
138
|
+
name: 'name',
|
|
139
|
+
notrepeatable: {
|
|
140
|
+
id: 1,
|
|
141
|
+
name: 'name',
|
|
142
|
+
subcomponotrepeatable: { id: 4, name: 'name' },
|
|
143
|
+
subrepeatable: [
|
|
144
|
+
{ id: 1, name: 'name' },
|
|
145
|
+
{ id: 2, name: 'name' },
|
|
146
|
+
{ id: 3, name: 'name' },
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
repeatable: [
|
|
150
|
+
{
|
|
151
|
+
id: 2,
|
|
152
|
+
name: 'name',
|
|
153
|
+
subrepeatable: [{ id: 5, name: 'name' }],
|
|
154
|
+
subcomponotrepeatable: { id: 6, name: 'name' },
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 3,
|
|
158
|
+
name: 'name',
|
|
159
|
+
subrepeatable: [],
|
|
160
|
+
subcomponotrepeatable: null,
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
updated_at: '2020-04-28T13:22:13.033Z',
|
|
164
|
+
},
|
|
165
|
+
expectedNoFieldsModifiedData: {
|
|
166
|
+
dz: [
|
|
167
|
+
{ __component: 'compos.sub-compo', name: 'name', password: 'password' },
|
|
168
|
+
{
|
|
169
|
+
name: 'name',
|
|
170
|
+
password: 'password',
|
|
171
|
+
subcomponotrepeatable: null,
|
|
172
|
+
subrepeatable: [],
|
|
173
|
+
__component: 'compos.test-compo',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'name',
|
|
177
|
+
password: 'password',
|
|
178
|
+
subcomponotrepeatable: { name: 'name', password: 'password' },
|
|
179
|
+
subrepeatable: [{ name: 'name', password: 'password' }],
|
|
180
|
+
__component: 'compos.test-compo',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: null,
|
|
184
|
+
password: null,
|
|
185
|
+
subcomponotrepeatable: null,
|
|
186
|
+
subrepeatable: [],
|
|
187
|
+
__component: 'compos.test-compo',
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: 'name',
|
|
191
|
+
notrepeatable: {
|
|
192
|
+
name: 'name',
|
|
193
|
+
password: 'password',
|
|
194
|
+
subcomponotrepeatable: { name: 'name', password: 'password' },
|
|
195
|
+
subrepeatable: [
|
|
196
|
+
{ name: 'name', password: 'password' },
|
|
197
|
+
{ name: 'name', password: 'password' },
|
|
198
|
+
{ name: 'name', password: 'password' },
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
password: 'password',
|
|
202
|
+
repeatable: [
|
|
203
|
+
{
|
|
204
|
+
name: 'name',
|
|
205
|
+
password: 'password',
|
|
206
|
+
subrepeatable: [{ name: 'name', password: 'password' }],
|
|
207
|
+
subcomponotrepeatable: { name: 'name', password: 'password' },
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'name',
|
|
211
|
+
password: 'password',
|
|
212
|
+
subrepeatable: [],
|
|
213
|
+
subcomponotrepeatable: null,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const permissions = [
|
|
220
|
+
{
|
|
221
|
+
id: 11,
|
|
222
|
+
action: 'plugins::content-manager.explorer.read',
|
|
223
|
+
subject: 'application::article.article',
|
|
224
|
+
properties: {
|
|
225
|
+
fields: ['name', 'description'],
|
|
226
|
+
},
|
|
227
|
+
conditions: ['admin::is-creator'],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: 12,
|
|
231
|
+
action: 'plugins::content-manager.explorer.update',
|
|
232
|
+
subject: 'application::article.article',
|
|
233
|
+
properties: {
|
|
234
|
+
fields: ['name', 'description'],
|
|
235
|
+
},
|
|
236
|
+
conditions: ['admin::is-creator'],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
id: 22,
|
|
240
|
+
action: 'plugins::content-manager.explorer.read',
|
|
241
|
+
subject: 'plugins::users-permissions.user',
|
|
242
|
+
properties: {
|
|
243
|
+
fields: [
|
|
244
|
+
'username',
|
|
245
|
+
'email',
|
|
246
|
+
'provider',
|
|
247
|
+
'password',
|
|
248
|
+
'resetPasswordToken',
|
|
249
|
+
'confirmed',
|
|
250
|
+
'blocked',
|
|
251
|
+
'role',
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
conditions: [],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: 24,
|
|
258
|
+
action: 'plugins::content-manager.explorer.update',
|
|
259
|
+
subject: 'plugins::users-permissions.user',
|
|
260
|
+
properties: {
|
|
261
|
+
fields: [
|
|
262
|
+
'username',
|
|
263
|
+
'email',
|
|
264
|
+
'provider',
|
|
265
|
+
'password',
|
|
266
|
+
'resetPasswordToken',
|
|
267
|
+
'confirmed',
|
|
268
|
+
'blocked',
|
|
269
|
+
'role',
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
conditions: [],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
id: 28,
|
|
276
|
+
action: 'plugins::upload.read',
|
|
277
|
+
subject: null,
|
|
278
|
+
properties: {
|
|
279
|
+
fields: null,
|
|
280
|
+
},
|
|
281
|
+
conditions: [],
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: 39,
|
|
285
|
+
action: 'plugins::users-permissions.roles.update',
|
|
286
|
+
subject: null,
|
|
287
|
+
properties: {
|
|
288
|
+
fields: null,
|
|
289
|
+
},
|
|
290
|
+
conditions: [],
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
{
|
|
294
|
+
id: 63,
|
|
295
|
+
action: 'plugins::content-manager.explorer.read',
|
|
296
|
+
subject: 'application::article.article',
|
|
297
|
+
properties: {
|
|
298
|
+
fields: ['name', 'description', 'test'],
|
|
299
|
+
},
|
|
300
|
+
conditions: [],
|
|
301
|
+
},
|
|
302
|
+
];
|
|
303
|
+
|
|
304
|
+
export default testData;
|
|
305
|
+
export { permissions };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"EditRelations.title": "البيانات العلائقية",
|
|
3
|
+
"components.AddFilterCTA.add": "مرشحات",
|
|
4
|
+
"components.AddFilterCTA.hide": "مرشحات",
|
|
5
|
+
"components.DraggableAttr.edit": "اضغط لتعديل",
|
|
6
|
+
"components.EmptyAttributesBlock.button": "الذهاب الى صفحة الإعدادات",
|
|
7
|
+
"components.EmptyAttributesBlock.description": "يمكنك تغيير إعداداتك",
|
|
8
|
+
"components.FilterOptions.button.apply": "تطبيق",
|
|
9
|
+
"components.FiltersPickWrapper.PluginHeader.actions.apply": "تطبيق",
|
|
10
|
+
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "مسح الكل",
|
|
11
|
+
"components.FiltersPickWrapper.PluginHeader.description": "عيّن الشروط لتطبيقها على ترشيح الإدخالات",
|
|
12
|
+
"components.FiltersPickWrapper.PluginHeader.title.filter": "مرشحات",
|
|
13
|
+
"components.FiltersPickWrapper.hide": "اخفاء",
|
|
14
|
+
"components.LimitSelect.itemsPerPage": "عنصر بالصفحة",
|
|
15
|
+
"components.Search.placeholder": "البحث عن مدخل...",
|
|
16
|
+
"components.TableDelete.delete": "حذف الكل",
|
|
17
|
+
"components.TableDelete.deleteSelected": "احذف المختار",
|
|
18
|
+
"components.TableDelete.entries.plural": "{number} مدخلات محددة",
|
|
19
|
+
"components.TableDelete.entries.singular": "{number} مدخل محدد",
|
|
20
|
+
"components.TableEmpty.withFilters": "لا يوجد {contentType} مع المرشحات المطبق...",
|
|
21
|
+
"components.TableEmpty.withSearch": "لا يوجد {contentType} مطابق للبحث ({search})...",
|
|
22
|
+
"components.TableEmpty.withoutFilter": "لا يوجد {contentType}...",
|
|
23
|
+
"containers.Edit.addAnItem": "اضافة عنصر...",
|
|
24
|
+
"containers.Edit.clickToJump": "انقر للانتقال إلى الإدخال",
|
|
25
|
+
"containers.Edit.delete": "حذف",
|
|
26
|
+
"containers.Edit.editing": "التعديل...",
|
|
27
|
+
"containers.Edit.reset": "إعادة",
|
|
28
|
+
"containers.Edit.returnList": "العودة للقائمة",
|
|
29
|
+
"containers.Edit.seeDetails": "التفاصيل",
|
|
30
|
+
"containers.Edit.submit": "حفظ",
|
|
31
|
+
"containers.Home.introduction": "لتعديل الإدخالات انتقل إلى الرابط المحدد في القائمة اليمنى. لا يحتوي هذه الإضافة على طريقة مناسبة لتعديل الإعدادات ولا يزال قيد التطوير.",
|
|
32
|
+
"containers.Home.pluginHeaderDescription": "إدارة إدخالاتك من خلال واجهة قوية وجميلة.",
|
|
33
|
+
"containers.Home.pluginHeaderTitle": "مدير المحتوى",
|
|
34
|
+
"containers.List.addAnEntry": "مدخل جديد {entity}",
|
|
35
|
+
"containers.List.errorFetchRecords": "خطأ",
|
|
36
|
+
"containers.List.pluginHeaderDescription": "{label} مدخل تم العثور عليه",
|
|
37
|
+
"containers.List.pluginHeaderDescription.singular": "{label} مدخل عثر",
|
|
38
|
+
"containers.ListPage.displayedFields": "اظهار الحقول",
|
|
39
|
+
"containers.SettingPage.attributes": "حقول السمات",
|
|
40
|
+
"containers.SettingPage.attributes.description": "حدد ترتيب السمات",
|
|
41
|
+
"containers.SettingPage.editSettings.description": "اسحب الحقول وأفلتها لإنشاء التخطيط",
|
|
42
|
+
"containers.SettingPage.editSettings.title": "التعديل - الإعدادات",
|
|
43
|
+
"containers.SettingPage.listSettings.title": "قائمة( إعدادات)",
|
|
44
|
+
"containers.SettingPage.relations": "المجالات العلائقية",
|
|
45
|
+
"containers.SettingsPage.Block.contentType.description": "تكوين الإعدادات المحددة",
|
|
46
|
+
"containers.SettingsPage.Block.generalSettings.title": "عام",
|
|
47
|
+
"emptyAttributes.title": "لا توجد حقول بعد",
|
|
48
|
+
"error.attribute.key.taken": "هذه القيمة موجودة مسبقًا",
|
|
49
|
+
"error.attribute.sameKeyAndName": "لا تتطابق",
|
|
50
|
+
"error.attribute.taken": "اسم الحقل هذا موجود مسبقًا",
|
|
51
|
+
"error.contentTypeName.taken": "هذا الأسم موجود مسبقًا",
|
|
52
|
+
"error.model.fetch": "حدث خطأ أثناء إجراء عملية تكوين النماذج.",
|
|
53
|
+
"error.record.create": "حدث خطأ أثناء إنشاء السجل.",
|
|
54
|
+
"error.record.delete": "حدث خطأ أثناء حذف السجل.",
|
|
55
|
+
"error.record.fetch": "حدث خطأ أثناء تسجيل الجلب.",
|
|
56
|
+
"error.record.update": "حدث خطأ أثناء تحديث السجل.",
|
|
57
|
+
"error.records.count": "حدث خطأ أثناء إحضار عدد السجلات.",
|
|
58
|
+
"error.records.fetch": "حدث خطأ أثناء جلب السجلات.",
|
|
59
|
+
"error.schema.generation": "حدث خطأ أثناء توليد المخطط.",
|
|
60
|
+
"error.validation.json": "هذا ليس JSON",
|
|
61
|
+
"error.validation.max": "هذه القيمة عالية جدًا.",
|
|
62
|
+
"error.validation.maxLength": "هذه القيمة طويلة جدًا.",
|
|
63
|
+
"error.validation.min": "هذه القيمة قليل جدًا.",
|
|
64
|
+
"error.validation.minLength": "هذه القيمة قصيرة جدًا.",
|
|
65
|
+
"error.validation.minSupMax": "لا يمكن أن تكون متفوقة",
|
|
66
|
+
"error.validation.regex": "هذه القيمة لا تطابق regex.",
|
|
67
|
+
"error.validation.required": "قيمة هذا الحقل مطلوبة.",
|
|
68
|
+
"form.Input.bulkActions": "تمكين الإجراءات المجمعة",
|
|
69
|
+
"form.Input.defaultSort": "سمة الفرز الافتراضي",
|
|
70
|
+
"form.Input.description": "الوصف",
|
|
71
|
+
"form.Input.description.placeholder": "عرض الإسم في الملف الشخصي",
|
|
72
|
+
"form.Input.editable": "حقل قابل للتعديل",
|
|
73
|
+
"form.Input.filters": "تفعيل الترشيح",
|
|
74
|
+
"form.Input.label": "تسميه",
|
|
75
|
+
"form.Input.label.inputDescription": "تتجاوز هذه القيمة التسمية المعروضة في رأس الجدول",
|
|
76
|
+
"form.Input.pageEntries": "مدخلات في الصفحة",
|
|
77
|
+
"form.Input.placeholder": "العنصر النائب",
|
|
78
|
+
"form.Input.placeholder.placeholder": "قيمتي الرائعة",
|
|
79
|
+
"form.Input.search": "تفعيل البحث",
|
|
80
|
+
"form.Input.search.field": "تفعيل البحث في هذا الحقل",
|
|
81
|
+
"form.Input.sort.field": "تمكين الفرز في هذا الحقل",
|
|
82
|
+
"notification.error.displayedFields": "أنت بحاجة إلى حقل معروض واحد على الأقل",
|
|
83
|
+
"notification.error.relationship.fetch": "حدث خطأ أثناء جلب العلاقة.",
|
|
84
|
+
"notification.info.SettingPage.disableSort": "يجب أن يكون لديك سمة واحدة مع الفرز المسموح به",
|
|
85
|
+
"pageNotFound": "الصفحة غير موجود",
|
|
86
|
+
"plugin.description.long": "طريقة سريعة لمشاهدة وتحرير وحذف البيانات في قاعدة البيانات الخاصة بك.",
|
|
87
|
+
"plugin.description.short": "طريقة سريعة لمشاهدة وتحرير وحذف البيانات في قاعدة البيانات الخاصة بك.",
|
|
88
|
+
"popUpWarning.bodyMessage.contentType.delete": "هل انت متأكد من حذف هذا المدخل؟",
|
|
89
|
+
"popUpWarning.bodyMessage.contentType.delete.all": "هل أنت متأكد من أنك تريد حذف هذه الأدخالات؟",
|
|
90
|
+
"popUpWarning.warning.cancelAllSettings": "هل أنت متأكد من أنك تريد إلغاء التعديلاتك؟",
|
|
91
|
+
"popUpWarning.warning.updateAllSettings": "سيؤدي ذلك إلى تعديل جميع إعداداتك",
|
|
92
|
+
"success.record.delete": "حُذف",
|
|
93
|
+
"success.record.save": "حُفظ"
|
|
94
|
+
}
|