strapi-plugin-navigation 2.5.3 → 3.0.0-beta.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/README.md +41 -63
- package/admin/api/client.js +107 -0
- package/admin/api/index.js +1 -0
- package/admin/api/validators.js +248 -0
- package/admin/components/ConfirmationDialog/index.js +21 -0
- package/admin/components/Initializer.js +10 -0
- package/admin/components/RestartAlert/index.js +7 -0
- package/admin/components/TextArrayInput/index.js +18 -0
- package/admin/components/icons/index.js +1 -0
- package/admin/components/icons/navigation.js +9 -0
- package/admin/components/icons/pluginIcon.js +9 -0
- package/admin/index.js +48 -0
- package/admin/pages/App.js +10 -0
- package/admin/pages/HomePage/components/AdditionalFieldInput/index.js +58 -0
- package/admin/pages/HomePage/components/CollapseButton/index.js +15 -0
- package/admin/{src → pages/HomePage}/components/DragButton/index.js +9 -16
- package/admin/pages/HomePage/components/I18nCopyNavigationItems/index.js +9 -0
- package/admin/pages/HomePage/components/NavigationContentHeader/index.js +5 -0
- package/admin/pages/HomePage/components/NavigationHeader/hooks.js +14 -0
- package/admin/pages/HomePage/components/NavigationHeader/index.js +29 -0
- package/admin/pages/HomePage/components/NavigationHeader/styles.js +11 -0
- package/admin/pages/HomePage/components/NavigationItemForm/index.js +277 -0
- package/admin/pages/HomePage/components/NavigationItemForm/types.js +1 -0
- package/admin/pages/HomePage/components/NavigationItemForm/utils/form.js +105 -0
- package/admin/pages/HomePage/components/NavigationItemForm/utils/hooks.js +12 -0
- package/admin/pages/HomePage/components/NavigationItemForm/utils/properties.js +51 -0
- package/admin/pages/HomePage/components/NavigationItemList/Wrapper.js +21 -0
- package/admin/pages/HomePage/components/NavigationItemList/index.js +6 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/ItemCardBadge/index.js +20 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/ItemCardHeader/Wrapper.js +14 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/ItemCardHeader/icons.js +6 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/ItemCardHeader/index.js +19 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/ItemCardRemovedOverlay/index.js +11 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/Wrapper.js +38 -0
- package/admin/pages/HomePage/components/NavigationItemListItem/index.js +165 -0
- package/admin/pages/HomePage/components/NavigationItemPopup/NavigationItemPopupFooter.js +11 -0
- package/admin/pages/HomePage/components/NavigationItemPopup/NavigationItemPopupHeader.js +12 -0
- package/admin/pages/HomePage/components/NavigationItemPopup/index.js +34 -0
- package/admin/pages/HomePage/components/NavigationManager/AllNavigations/icons.js +5 -0
- package/admin/pages/HomePage/components/NavigationManager/AllNavigations/index.js +79 -0
- package/admin/pages/HomePage/components/NavigationManager/DeletionConfirm/index.js +25 -0
- package/admin/pages/HomePage/components/NavigationManager/ErrorDetails/index.js +29 -0
- package/admin/pages/HomePage/components/NavigationManager/Footer/index.js +6 -0
- package/admin/pages/HomePage/components/NavigationManager/Form/hooks.js +19 -0
- package/admin/pages/HomePage/components/NavigationManager/Form/index.js +26 -0
- package/admin/pages/HomePage/components/NavigationManager/NavigationUpdate/index.js +32 -0
- package/admin/pages/HomePage/components/NavigationManager/NewNavigation/index.js +35 -0
- package/admin/pages/HomePage/components/NavigationManager/PurgeCacheConfirm/index.js +25 -0
- package/admin/pages/HomePage/components/NavigationManager/index.js +236 -0
- package/admin/pages/HomePage/components/NavigationManager/types.js +1 -0
- package/admin/pages/HomePage/components/Search/index.js +58 -0
- package/admin/pages/HomePage/components/index.js +1 -0
- package/admin/pages/HomePage/hooks/index.js +165 -0
- package/admin/pages/HomePage/index.js +231 -0
- package/admin/pages/HomePage/utils/index.js +16 -0
- package/admin/pages/HomePage/utils/parsers.js +187 -0
- package/admin/pages/SettingsPage/common/const.js +1 -0
- package/admin/pages/SettingsPage/common/index.js +1 -0
- package/admin/pages/SettingsPage/components/CustomFieldForm/hooks/index.js +10 -0
- package/admin/pages/SettingsPage/components/CustomFieldForm/index.js +36 -0
- package/admin/pages/SettingsPage/components/CustomFieldModal/index.js +16 -0
- package/admin/pages/SettingsPage/components/CustomFieldTable/index.js +45 -0
- package/admin/pages/SettingsPage/hooks/index.js +111 -0
- package/admin/pages/SettingsPage/index.js +189 -0
- package/admin/pages/SettingsPage/types.js +1 -0
- package/admin/pages/SettingsPage/utils/index.js +25 -0
- package/admin/pluginId.js +1 -0
- package/admin/schemas/config.js +53 -0
- package/admin/schemas/content-type.js +14 -0
- package/admin/schemas/index.js +2 -0
- package/admin/{src/translations → translations}/en.json +7 -9
- package/admin/translations/index.js +15 -0
- package/admin/types.js +1 -0
- package/admin/utils/constants.js +1 -0
- package/admin/utils/getTranslation.js +4 -0
- package/admin/utils/permissions.js +16 -0
- package/admin/utils/prefixPluginTranslations.js +3 -0
- package/package.json +13 -11
- package/server/app-errors.js +20 -0
- package/server/bootstrap.js +13 -0
- package/server/cache/index.js +34 -15
- package/server/config/index.js +7 -5
- package/server/config/{setupStrategy.js → setup.js} +30 -26
- package/server/content-types/audience/index.js +0 -1
- package/server/content-types/audience/schema.js +0 -1
- package/server/content-types/index.js +4 -7
- package/server/content-types/navigation/index.js +0 -1
- package/server/content-types/navigation/lifecycles.js +1 -2
- package/server/content-types/navigation/schema.js +29 -32
- package/server/content-types/navigation-item/index.js +0 -1
- package/server/content-types/navigation-item/lifecycles.js +1 -2
- package/server/content-types/navigation-item/schema.js +51 -58
- package/server/controllers/admin.js +119 -158
- package/server/controllers/client.js +71 -60
- package/server/controllers/index.js +1 -3
- package/server/controllers/utils.js +22 -0
- package/{admin/src/hooks/useNavigationManager.js → server/controllers/validators.js} +23 -16
- package/server/destroy.js +3 -2
- package/{types/i18n.js → server/dtos/config.js} +0 -1
- package/server/{navigation → dtos}/index.js +3 -2
- package/server/dtos/navigation-item.js +2 -0
- package/{admin/src/pages/SettingsPage/types.js → server/dtos/navigation.js} +0 -1
- package/server/graphql/config.js +14 -16
- package/server/graphql/index.js +1 -2
- package/server/graphql/queries/index.js +8 -4
- package/server/graphql/queries/render-navigation-child.js +19 -8
- package/server/graphql/queries/render-navigation.js +30 -14
- package/server/graphql/resolvers-config.js +4 -2
- package/server/graphql/{setupStrategy.js → setup.js} +4 -5
- package/server/graphql/types/content-types-name-fields.js +10 -9
- package/server/graphql/types/content-types.js +15 -15
- package/server/graphql/types/create-navigation-item.js +16 -16
- package/server/graphql/types/create-navigation-related.js +7 -7
- package/server/graphql/types/create-navigation.js +6 -6
- package/server/graphql/types/index.js +35 -15
- package/server/graphql/types/navigation-config.js +8 -8
- package/server/graphql/types/navigation-details.js +2 -2
- package/server/graphql/types/navigation-item-additional-field-media.js +10 -10
- package/server/graphql/types/navigation-item-related-data.js +6 -6
- package/server/graphql/types/navigation-item-related.js +3 -3
- package/server/graphql/types/navigation-item.js +30 -27
- package/server/graphql/types/navigation-render-type.js +4 -5
- package/server/graphql/types/navigation.js +8 -8
- package/server/i18n/index.js +29 -20
- package/server/index.js +15 -8
- package/server/middlewares/index.js +3 -0
- package/server/permissions/index.js +10 -0
- package/{permissions.js → server/permissions/permissions.js} +0 -1
- package/server/permissions/setup.js +32 -0
- package/server/permissions.js +39 -0
- package/server/policies/index.js +3 -0
- package/server/register.js +6 -0
- package/server/repositories/audience.js +12 -0
- package/server/repositories/generic.js +20 -0
- package/server/repositories/index.js +11 -0
- package/server/repositories/navigation-item.js +51 -0
- package/server/repositories/navigation.js +65 -0
- package/server/routes/admin.js +86 -79
- package/server/routes/client.js +0 -1
- package/server/routes/index.js +0 -1
- package/server/schemas/config.js +68 -0
- package/server/schemas/content-type.js +140 -0
- package/{admin/src/pages/SettingsPage/common → server/schemas}/index.js +3 -2
- package/server/schemas/navigation.js +107 -0
- package/server/services/admin/admin.js +483 -0
- package/server/{content-types/navigations-items-related → services/admin}/index.js +2 -5
- package/{admin/src/pages/View/components/NavigationItemForm → server/services/admin}/types.js +0 -1
- package/server/services/admin/utils.js +84 -0
- package/server/services/client/client.js +397 -0
- package/server/services/client/index.js +7 -0
- package/{admin/src/pages/View/components/NavigationManager → server/services/client}/types.js +0 -1
- package/server/services/client/utils.js +88 -0
- package/server/services/common/common.js +307 -0
- package/server/services/common/index.js +7 -0
- package/{admin/src/components/AdditionalFieldInput → server/services/common}/types.js +0 -1
- package/server/services/common/utils.js +24 -0
- package/server/services/index.js +4 -6
- package/server/types.js +2 -0
- package/server/utils/constants.js +35 -0
- package/server/utils/functions.js +71 -299
- package/server/utils/index.js +1 -2
- package/strapi-admin.js +5 -8
- package/strapi-server.js +3 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/admin/src/components/AdditionalFieldInput/index.d.ts +0 -5
- package/admin/src/components/AdditionalFieldInput/index.js +0 -99
- package/admin/src/components/AdditionalFieldInput/types.d.ts +0 -15
- package/admin/src/components/Alert/styles.d.ts +0 -2
- package/admin/src/components/Alert/styles.js +0 -14
- package/admin/src/components/CollapseButton/index.d.ts +0 -7
- package/admin/src/components/CollapseButton/index.js +0 -30
- package/admin/src/components/ConfirmationDialog/index.d.ts +0 -28
- package/admin/src/components/ConfirmationDialog/index.js +0 -34
- package/admin/src/components/DragButton/index.d.ts +0 -6
- package/admin/src/components/EmptyView/index.d.ts +0 -3
- package/admin/src/components/EmptyView/index.js +0 -30
- package/admin/src/components/Item/ItemCardBadge/index.d.ts +0 -3
- package/admin/src/components/Item/ItemCardBadge/index.js +0 -26
- package/admin/src/components/Item/ItemCardHeader/Wrapper.d.ts +0 -3
- package/admin/src/components/Item/ItemCardHeader/Wrapper.js +0 -21
- package/admin/src/components/Item/ItemCardHeader/icons.d.ts +0 -5
- package/admin/src/components/Item/ItemCardHeader/icons.js +0 -13
- package/admin/src/components/Item/ItemCardHeader/index.d.ts +0 -17
- package/admin/src/components/Item/ItemCardHeader/index.js +0 -38
- package/admin/src/components/Item/ItemCardRemovedOverlay/index.d.ts +0 -2
- package/admin/src/components/Item/ItemCardRemovedOverlay/index.js +0 -18
- package/admin/src/components/Item/Wrapper.d.ts +0 -3
- package/admin/src/components/Item/Wrapper.js +0 -43
- package/admin/src/components/Item/index.d.ts +0 -31
- package/admin/src/components/Item/index.js +0 -188
- package/admin/src/components/NavigationItemList/Wrapper.d.ts +0 -3
- package/admin/src/components/NavigationItemList/Wrapper.js +0 -26
- package/admin/src/components/NavigationItemList/index.d.ts +0 -36
- package/admin/src/components/NavigationItemList/index.js +0 -32
- package/admin/src/components/RestartAlert/index.d.ts +0 -3
- package/admin/src/components/RestartAlert/index.js +0 -13
- package/admin/src/components/Search/index.d.ts +0 -12
- package/admin/src/components/Search/index.js +0 -97
- package/admin/src/components/TextArrayInput/index.d.ts +0 -15
- package/admin/src/components/TextArrayInput/index.js +0 -45
- package/admin/src/components/icons/navigation.d.ts +0 -6
- package/admin/src/components/icons/navigation.js +0 -12
- package/admin/src/contexts/DataManagerContext.d.ts +0 -3
- package/admin/src/contexts/DataManagerContext.js +0 -6
- package/admin/src/hooks/useAllContentTypes.d.ts +0 -3
- package/admin/src/hooks/useAllContentTypes.js +0 -8
- package/admin/src/hooks/useDataManager.d.ts +0 -3
- package/admin/src/hooks/useDataManager.js +0 -10
- package/admin/src/hooks/useI18nCopyNavigationItemsModal.d.ts +0 -9
- package/admin/src/hooks/useI18nCopyNavigationItemsModal.js +0 -51
- package/admin/src/hooks/useNavigationConfig.d.ts +0 -10
- package/admin/src/hooks/useNavigationConfig.js +0 -54
- package/admin/src/hooks/useNavigationManager.d.ts +0 -6
- package/admin/src/index.d.ts +0 -14
- package/admin/src/index.js +0 -87
- package/admin/src/pages/App/index.d.ts +0 -3
- package/admin/src/pages/App/index.js +0 -43
- package/admin/src/pages/DataManagerProvider/actions.d.ts +0 -21
- package/admin/src/pages/DataManagerProvider/actions.js +0 -24
- package/admin/src/pages/DataManagerProvider/index.d.ts +0 -12
- package/admin/src/pages/DataManagerProvider/index.js +0 -382
- package/admin/src/pages/DataManagerProvider/init.d.ts +0 -3
- package/admin/src/pages/DataManagerProvider/init.js +0 -7
- package/admin/src/pages/DataManagerProvider/reducer.d.ts +0 -20
- package/admin/src/pages/DataManagerProvider/reducer.js +0 -132
- package/admin/src/pages/NoAccessPage/index.d.ts +0 -3
- package/admin/src/pages/NoAccessPage/index.js +0 -31
- package/admin/src/pages/SettingsPage/common/const.d.ts +0 -2
- package/admin/src/pages/SettingsPage/common/const.js +0 -5
- package/admin/src/pages/SettingsPage/common/index.d.ts +0 -2
- package/admin/src/pages/SettingsPage/components/CustomFieldForm/index.d.ts +0 -12
- package/admin/src/pages/SettingsPage/components/CustomFieldForm/index.js +0 -129
- package/admin/src/pages/SettingsPage/components/CustomFieldModal/index.d.ts +0 -12
- package/admin/src/pages/SettingsPage/components/CustomFieldModal/index.js +0 -20
- package/admin/src/pages/SettingsPage/components/CustomFieldTable/index.d.ts +0 -11
- package/admin/src/pages/SettingsPage/components/CustomFieldTable/index.js +0 -105
- package/admin/src/pages/SettingsPage/components/DisableI18nModal/index.d.ts +0 -23
- package/admin/src/pages/SettingsPage/components/DisableI18nModal/index.js +0 -86
- package/admin/src/pages/SettingsPage/index.d.ts +0 -3
- package/admin/src/pages/SettingsPage/index.js +0 -321
- package/admin/src/pages/SettingsPage/types.d.ts +0 -35
- package/admin/src/pages/SettingsPage/utils/form.d.ts +0 -20
- package/admin/src/pages/SettingsPage/utils/form.js +0 -37
- package/admin/src/pages/SettingsPage/utils/functions.d.ts +0 -3
- package/admin/src/pages/SettingsPage/utils/functions.js +0 -26
- package/admin/src/pages/View/components/I18nCopyNavigationItems/index.d.ts +0 -14
- package/admin/src/pages/View/components/I18nCopyNavigationItems/index.js +0 -15
- package/admin/src/pages/View/components/NavigationContentHeader/index.d.ts +0 -6
- package/admin/src/pages/View/components/NavigationContentHeader/index.js +0 -14
- package/admin/src/pages/View/components/NavigationHeader/index.d.ts +0 -14
- package/admin/src/pages/View/components/NavigationHeader/index.js +0 -92
- package/admin/src/pages/View/components/NavigationHeader/styles.d.ts +0 -2
- package/admin/src/pages/View/components/NavigationHeader/styles.js +0 -18
- package/admin/src/pages/View/components/NavigationItemForm/index.d.ts +0 -5
- package/admin/src/pages/View/components/NavigationItemForm/index.js +0 -470
- package/admin/src/pages/View/components/NavigationItemForm/types.d.ts +0 -99
- package/admin/src/pages/View/components/NavigationItemForm/utils/form.d.ts +0 -28
- package/admin/src/pages/View/components/NavigationItemForm/utils/form.js +0 -123
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupFooter.d.ts +0 -25
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupFooter.js +0 -31
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupHeader.d.ts +0 -5
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupHeader.js +0 -20
- package/admin/src/pages/View/components/NavigationItemPopup/index.d.ts +0 -33
- package/admin/src/pages/View/components/NavigationItemPopup/index.js +0 -90
- package/admin/src/pages/View/components/NavigationManager/AllNavigations/icons.d.ts +0 -4
- package/admin/src/pages/View/components/NavigationManager/AllNavigations/icons.js +0 -12
- package/admin/src/pages/View/components/NavigationManager/AllNavigations/index.d.ts +0 -8
- package/admin/src/pages/View/components/NavigationManager/AllNavigations/index.js +0 -151
- package/admin/src/pages/View/components/NavigationManager/DeletionConfirm/index.d.ts +0 -8
- package/admin/src/pages/View/components/NavigationManager/DeletionConfirm/index.js +0 -34
- package/admin/src/pages/View/components/NavigationManager/ErrorDetails/index.d.ts +0 -8
- package/admin/src/pages/View/components/NavigationManager/ErrorDetails/index.js +0 -53
- package/admin/src/pages/View/components/NavigationManager/Footer/index.d.ts +0 -24
- package/admin/src/pages/View/components/NavigationManager/Footer/index.js +0 -13
- package/admin/src/pages/View/components/NavigationManager/Form/index.d.ts +0 -19
- package/admin/src/pages/View/components/NavigationManager/Form/index.js +0 -103
- package/admin/src/pages/View/components/NavigationManager/NavigationUpdate/index.d.ts +0 -8
- package/admin/src/pages/View/components/NavigationManager/NavigationUpdate/index.js +0 -59
- package/admin/src/pages/View/components/NavigationManager/NewNavigation/index.d.ts +0 -9
- package/admin/src/pages/View/components/NavigationManager/NewNavigation/index.js +0 -62
- package/admin/src/pages/View/components/NavigationManager/PurgeCacheConfirm/index.d.ts +0 -8
- package/admin/src/pages/View/components/NavigationManager/PurgeCacheConfirm/index.js +0 -34
- package/admin/src/pages/View/components/NavigationManager/index.d.ts +0 -10
- package/admin/src/pages/View/components/NavigationManager/index.js +0 -203
- package/admin/src/pages/View/components/NavigationManager/types.d.ts +0 -44
- package/admin/src/pages/View/index.d.ts +0 -4
- package/admin/src/pages/View/index.js +0 -269
- package/admin/src/pages/View/utils/form.d.ts +0 -2
- package/admin/src/pages/View/utils/form.js +0 -16
- package/admin/src/pages/View/utils/index.d.ts +0 -2
- package/admin/src/pages/View/utils/index.js +0 -11
- package/admin/src/pages/View/utils/parsers.d.ts +0 -51
- package/admin/src/pages/View/utils/parsers.js +0 -272
- package/admin/src/pages/View/utils/types.d.ts +0 -3
- package/admin/src/pages/View/utils/types.js +0 -3
- package/admin/src/permissions.d.ts +0 -16
- package/admin/src/permissions.js +0 -13
- package/admin/src/pluginId.d.ts +0 -3
- package/admin/src/pluginId.js +0 -5
- package/admin/src/translations/index.d.ts +0 -15
- package/admin/src/translations/index.js +0 -21
- package/admin/src/utils/api.d.ts +0 -9
- package/admin/src/utils/api.js +0 -20
- package/admin/src/utils/enums.d.ts +0 -25
- package/admin/src/utils/enums.js +0 -30
- package/admin/src/utils/functions.d.ts +0 -16
- package/admin/src/utils/functions.js +0 -46
- package/admin/src/utils/index.d.ts +0 -4
- package/admin/src/utils/index.js +0 -20
- package/permissions.d.ts +0 -10
- package/server/bootstrap/index.d.ts +0 -4
- package/server/bootstrap/index.js +0 -50
- package/server/cache/index.d.ts +0 -2
- package/server/cache/serviceEnhancers.d.ts +0 -3
- package/server/cache/serviceEnhancers.js +0 -16
- package/server/cache/setupStrategy.d.ts +0 -3
- package/server/cache/setupStrategy.js +0 -38
- package/server/cache/types.d.ts +0 -11
- package/server/cache/types.js +0 -3
- package/server/cache/utils.d.ts +0 -11
- package/server/cache/utils.js +0 -19
- package/server/config/index.d.ts +0 -5
- package/server/config/setupStrategy.d.ts +0 -3
- package/server/content-types/audience/index.d.ts +0 -27
- package/server/content-types/audience/schema.d.ts +0 -25
- package/server/content-types/index.d.ts +0 -244
- package/server/content-types/navigation/index.d.ts +0 -59
- package/server/content-types/navigation/lifecycles.d.ts +0 -3
- package/server/content-types/navigation/schema.d.ts +0 -56
- package/server/content-types/navigation-item/index.d.ts +0 -111
- package/server/content-types/navigation-item/lifecycles.d.ts +0 -3
- package/server/content-types/navigation-item/schema.d.ts +0 -108
- package/server/content-types/navigations-items-related/index.d.ts +0 -51
- package/server/content-types/navigations-items-related/schema.d.ts +0 -49
- package/server/content-types/navigations-items-related/schema.js +0 -50
- package/server/controllers/admin.d.ts +0 -4
- package/server/controllers/client.d.ts +0 -4
- package/server/controllers/index.d.ts +0 -4
- package/server/destroy.d.ts +0 -3
- package/server/graphql/config.d.ts +0 -4
- package/server/graphql/index.d.ts +0 -2
- package/server/graphql/queries/index.d.ts +0 -3
- package/server/graphql/queries/render-navigation-child.d.ts +0 -15
- package/server/graphql/queries/render-navigation.d.ts +0 -21
- package/server/graphql/resolvers-config.d.ts +0 -10
- package/server/graphql/setupStrategy.d.ts +0 -3
- package/server/graphql/types/content-types-name-fields.d.ts +0 -6
- package/server/graphql/types/content-types.d.ts +0 -5
- package/server/graphql/types/create-navigation-item.d.ts +0 -5
- package/server/graphql/types/create-navigation-related.d.ts +0 -5
- package/server/graphql/types/create-navigation.d.ts +0 -5
- package/server/graphql/types/index.d.ts +0 -3
- package/server/graphql/types/navigation-config.d.ts +0 -5
- package/server/graphql/types/navigation-details.d.ts +0 -5
- package/server/graphql/types/navigation-item-additional-field-media.d.ts +0 -5
- package/server/graphql/types/navigation-item-related-data.d.ts +0 -5
- package/server/graphql/types/navigation-item-related.d.ts +0 -7
- package/server/graphql/types/navigation-item.d.ts +0 -6
- package/server/graphql/types/navigation-render-type.d.ts +0 -5
- package/server/graphql/types/navigation.d.ts +0 -5
- package/server/i18n/constant.d.ts +0 -2
- package/server/i18n/constant.js +0 -5
- package/server/i18n/errors.d.ts +0 -7
- package/server/i18n/errors.js +0 -14
- package/server/i18n/graphQLEnhancers.d.ts +0 -10
- package/server/i18n/graphQLEnhancers.js +0 -10
- package/server/i18n/index.d.ts +0 -8
- package/server/i18n/navigationSetupStrategy.d.ts +0 -3
- package/server/i18n/navigationSetupStrategy.js +0 -147
- package/server/i18n/serviceEnhancers.d.ts +0 -13
- package/server/i18n/serviceEnhancers.js +0 -156
- package/server/i18n/types.d.ts +0 -60
- package/server/i18n/types.js +0 -3
- package/server/i18n/utils.d.ts +0 -13
- package/server/i18n/utils.js +0 -33
- package/server/index.d.ts +0 -262
- package/server/navigation/index.d.ts +0 -2
- package/server/navigation/setupStrategy.d.ts +0 -3
- package/server/navigation/setupStrategy.js +0 -39
- package/server/register/index.d.ts +0 -3
- package/server/register/index.js +0 -4
- package/server/routes/admin.d.ts +0 -4
- package/server/routes/client.d.ts +0 -4
- package/server/routes/index.d.ts +0 -6
- package/server/services/admin.d.ts +0 -5
- package/server/services/admin.js +0 -347
- package/server/services/client.d.ts +0 -5
- package/server/services/client.js +0 -335
- package/server/services/common.d.ts +0 -5
- package/server/services/common.js +0 -385
- package/server/services/index.d.ts +0 -7
- package/server/utils/constant.d.ts +0 -27
- package/server/utils/constant.js +0 -43
- package/server/utils/functions.d.ts +0 -157
- package/server/utils/index.d.ts +0 -3
- package/strapi-admin.d.ts +0 -3
- package/strapi-server.d.ts +0 -262
- package/types/bootstrap.d.ts +0 -16
- package/types/bootstrap.js +0 -3
- package/types/config.d.ts +0 -27
- package/types/config.js +0 -3
- package/types/contentTypes.d.ts +0 -112
- package/types/contentTypes.js +0 -3
- package/types/controllers.d.ts +0 -65
- package/types/controllers.js +0 -5
- package/types/graphQL.d.ts +0 -3
- package/types/graphQL.js +0 -3
- package/types/i18n.d.ts +0 -9
- package/types/index.d.ts +0 -10
- package/types/index.js +0 -26
- package/types/lifecycle.d.ts +0 -22
- package/types/lifecycle.js +0 -3
- package/types/services.d.ts +0 -106
- package/types/services.js +0 -3
- package/types/utils.d.ts +0 -72
- package/types/utils.js +0 -41
- package/utils/InvalidParamNavigationError.d.ts +0 -4
- package/utils/InvalidParamNavigationError.js +0 -8
- package/utils/NavigationError.d.ts +0 -5
- package/utils/NavigationError.js +0 -11
- /package/admin/{src/translations → translations}/ca.json +0 -0
- /package/admin/{src/translations → translations}/fr.json +0 -0
package/server/cache/index.js
CHANGED
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
exports.setupCacheStrategy = void 0;
|
|
7
|
+
const router_1 = __importDefault(require("@koa/router"));
|
|
8
|
+
const client_1 = __importDefault(require("../routes/client"));
|
|
9
|
+
const utils_1 = require("../services/admin/utils");
|
|
10
|
+
const setupCacheStrategy = async ({ strapi }) => {
|
|
11
|
+
const { enabled, hasCachePlugin } = await (0, utils_1.getCacheStatus)({ strapi });
|
|
12
|
+
if (hasCachePlugin && enabled) {
|
|
13
|
+
const cachePlugin = strapi.plugin('rest-cache');
|
|
14
|
+
const createCacheMiddleware = cachePlugin?.middleware('recv');
|
|
15
|
+
if (!createCacheMiddleware) {
|
|
16
|
+
console.warn('Cache middleware not present in cache plugin. Stopping');
|
|
17
|
+
console.warn('Notify strapi-navigation-plugin-team');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const pluginOption = strapi.config.get('plugin::rest-cache');
|
|
21
|
+
const router = new router_1.default();
|
|
22
|
+
const buildPathFrom = (route) => `/api/${route.info?.pluginName ?? 'navigation'}${route.path}`;
|
|
23
|
+
const buildFrom = (route) => ({
|
|
24
|
+
maxAge: pluginOption.strategy?.maxAge ?? 6 * 60 * 1000,
|
|
25
|
+
path: buildPathFrom(route),
|
|
26
|
+
method: 'GET',
|
|
27
|
+
paramNames: ['idOrSlug', 'childUIKey'],
|
|
28
|
+
keys: { useHeaders: [], useQueryParams: true },
|
|
29
|
+
hitpass: false,
|
|
30
|
+
});
|
|
31
|
+
client_1.default.routes.forEach((route) => {
|
|
32
|
+
router.get(buildPathFrom(route), createCacheMiddleware({ cacheRouteConfig: buildFrom(route) }, { strapi }));
|
|
33
|
+
});
|
|
34
|
+
strapi.server.router.use(router.routes());
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.setupCacheStrategy = setupCacheStrategy;
|
package/server/config/index.js
CHANGED
|
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const utils_1 = require("../utils");
|
|
18
|
+
__exportStar(require("./setup"), exports);
|
|
19
|
+
exports.default = {
|
|
19
20
|
default: {
|
|
20
21
|
additionalFields: [],
|
|
21
22
|
allowedLevels: 2,
|
|
@@ -29,9 +30,10 @@ const config = {
|
|
|
29
30
|
pathDefaultFields: {},
|
|
30
31
|
pruneObsoleteI18nNavigations: false,
|
|
31
32
|
cascadeMenuAttached: true,
|
|
32
|
-
isCacheEnabled: false,
|
|
33
33
|
preferCustomContentTypes: false,
|
|
34
|
+
isCacheEnabled: false,
|
|
35
|
+
},
|
|
36
|
+
validator(config) {
|
|
37
|
+
(0, utils_1.assertConfig)(config);
|
|
34
38
|
},
|
|
35
39
|
};
|
|
36
|
-
exports.default = config;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
6
|
+
exports.configSetup = void 0;
|
|
7
|
+
const _1 = __importDefault(require("."));
|
|
8
|
+
const schemas_1 = require("../schemas");
|
|
5
9
|
const utils_1 = require("../utils");
|
|
6
|
-
const
|
|
10
|
+
const configSetup = async ({ strapi }) => {
|
|
7
11
|
const pluginStore = strapi.store({
|
|
8
|
-
type:
|
|
9
|
-
name:
|
|
10
|
-
});
|
|
11
|
-
const getFromPluginDefaults = await strapi.plugin("navigation").config;
|
|
12
|
-
const hasI18nPlugin = !!strapi.plugin("i18n");
|
|
13
|
-
let config = await pluginStore.get({
|
|
14
|
-
key: "config",
|
|
12
|
+
type: 'plugin',
|
|
13
|
+
name: 'navigation',
|
|
15
14
|
});
|
|
15
|
+
const getFromPluginDefaults = await strapi.plugin('navigation').config;
|
|
16
|
+
const configRaw = {
|
|
17
|
+
..._1.default.default,
|
|
18
|
+
...((await pluginStore.get({
|
|
19
|
+
key: 'config',
|
|
20
|
+
})) ?? _1.default.default),
|
|
21
|
+
};
|
|
22
|
+
let config = schemas_1.configSchema.parse(configRaw);
|
|
16
23
|
const getWithFallback = getWithFallbackFactory(config, getFromPluginDefaults);
|
|
17
24
|
config = {
|
|
18
|
-
additionalFields: getWithFallback(
|
|
19
|
-
contentTypes: getWithFallback(
|
|
20
|
-
contentTypesNameFields: getWithFallback(
|
|
21
|
-
contentTypesPopulate: getWithFallback(
|
|
22
|
-
allowedLevels: getWithFallback(
|
|
23
|
-
gql: getWithFallback(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
isCacheEnabled: getWithFallback("isCacheEnabled"),
|
|
29
|
-
preferCustomContentTypes: getWithFallback("isCacheEnabled"),
|
|
25
|
+
additionalFields: getWithFallback('additionalFields'),
|
|
26
|
+
contentTypes: getWithFallback('contentTypes'),
|
|
27
|
+
contentTypesNameFields: getWithFallback('contentTypesNameFields'),
|
|
28
|
+
contentTypesPopulate: getWithFallback('contentTypesPopulate'),
|
|
29
|
+
allowedLevels: getWithFallback('allowedLevels'),
|
|
30
|
+
gql: getWithFallback('gql'),
|
|
31
|
+
pathDefaultFields: getWithFallback('pathDefaultFields'),
|
|
32
|
+
cascadeMenuAttached: getWithFallback('cascadeMenuAttached'),
|
|
33
|
+
preferCustomContentTypes: getWithFallback('preferCustomContentTypes'),
|
|
34
|
+
isCacheEnabled: getWithFallback('isCacheEnabled'),
|
|
30
35
|
};
|
|
31
36
|
handleDeletedContentTypes(config, { strapi });
|
|
32
37
|
(0, utils_1.validateAdditionalFields)(config.additionalFields);
|
|
33
38
|
await pluginStore.set({
|
|
34
|
-
key:
|
|
39
|
+
key: 'config',
|
|
35
40
|
value: config,
|
|
36
41
|
});
|
|
37
42
|
return config;
|
|
38
43
|
};
|
|
39
|
-
exports.
|
|
44
|
+
exports.configSetup = configSetup;
|
|
40
45
|
const getWithFallbackFactory = (config, fallback) => (key) => {
|
|
41
46
|
const value = config?.[key] ?? fallback(key);
|
|
42
|
-
(0,
|
|
47
|
+
(0, utils_1.assertNotEmpty)(value, new Error(`[Navigation] Config "${key}" is undefined`));
|
|
43
48
|
return value;
|
|
44
49
|
};
|
|
45
50
|
const handleDeletedContentTypes = (config, { strapi }) => {
|
|
@@ -52,4 +57,3 @@ const handleDeletedContentTypes = (config, { strapi }) => {
|
|
|
52
57
|
config.contentTypesNameFields = Object.fromEntries(Object.entries(config.contentTypesNameFields).filter(([contentType]) => !notAvailableContentTypes.includes(contentType)));
|
|
53
58
|
config.gql.navigationItemRelated = config.gql.navigationItemRelated.filter((contentType) => !notAvailableContentTypesGraphQL.includes(contentType));
|
|
54
59
|
};
|
|
55
|
-
//# sourceMappingURL=setupStrategy.js.map
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const navigations_items_related_1 = __importDefault(require("./navigations-items-related"));
|
|
7
|
-
const navigation_item_1 = __importDefault(require("./navigation-item"));
|
|
8
|
-
const navigation_1 = __importDefault(require("./navigation"));
|
|
9
6
|
const audience_1 = __importDefault(require("./audience"));
|
|
7
|
+
const navigation_1 = __importDefault(require("./navigation"));
|
|
8
|
+
const navigation_item_1 = __importDefault(require("./navigation-item"));
|
|
10
9
|
exports.default = {
|
|
11
10
|
audience: audience_1.default,
|
|
12
11
|
navigation: navigation_1.default,
|
|
13
|
-
|
|
14
|
-
"navigations-items-related": navigations_items_related_1.default
|
|
12
|
+
'navigation-item': navigation_item_1.default,
|
|
15
13
|
};
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("../../utils");
|
|
4
|
-
exports.default = (0, utils_1.buildAllHookListeners)(
|
|
4
|
+
exports.default = (0, utils_1.buildAllHookListeners)('navigation', {
|
|
5
5
|
strapi,
|
|
6
6
|
});
|
|
7
|
-
//# sourceMappingURL=lifecycles.js.map
|
|
@@ -1,57 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
collectionName:
|
|
4
|
+
collectionName: 'navigations',
|
|
5
5
|
info: {
|
|
6
|
-
singularName:
|
|
7
|
-
pluralName:
|
|
8
|
-
displayName:
|
|
9
|
-
name:
|
|
6
|
+
singularName: 'navigation',
|
|
7
|
+
pluralName: 'navigations',
|
|
8
|
+
displayName: 'Navigation',
|
|
9
|
+
name: 'navigation',
|
|
10
10
|
},
|
|
11
11
|
options: {
|
|
12
|
-
|
|
13
|
-
comment: ""
|
|
12
|
+
comment: '',
|
|
14
13
|
},
|
|
15
14
|
pluginOptions: {
|
|
16
|
-
|
|
17
|
-
visible: false
|
|
15
|
+
'content-manager': {
|
|
16
|
+
visible: false,
|
|
17
|
+
},
|
|
18
|
+
'content-type-builder': {
|
|
19
|
+
visible: false,
|
|
20
|
+
},
|
|
21
|
+
i18n: {
|
|
22
|
+
localized: true,
|
|
18
23
|
},
|
|
19
|
-
"content-type-builder": {
|
|
20
|
-
visible: false
|
|
21
|
-
}
|
|
22
24
|
},
|
|
23
25
|
attributes: {
|
|
24
26
|
name: {
|
|
25
|
-
type:
|
|
27
|
+
type: 'text',
|
|
26
28
|
configurable: false,
|
|
27
|
-
required: true
|
|
29
|
+
required: true,
|
|
28
30
|
},
|
|
29
31
|
slug: {
|
|
30
|
-
type:
|
|
31
|
-
target:
|
|
32
|
+
type: 'uid',
|
|
33
|
+
target: 'name',
|
|
32
34
|
configurable: false,
|
|
33
|
-
required: true
|
|
35
|
+
required: true,
|
|
34
36
|
},
|
|
35
37
|
visible: {
|
|
36
|
-
type:
|
|
38
|
+
type: 'boolean',
|
|
37
39
|
default: false,
|
|
38
|
-
configurable: false
|
|
40
|
+
configurable: false,
|
|
39
41
|
},
|
|
40
42
|
items: {
|
|
41
|
-
type:
|
|
42
|
-
relation:
|
|
43
|
-
target:
|
|
43
|
+
type: 'relation',
|
|
44
|
+
relation: 'oneToMany',
|
|
45
|
+
target: 'plugin::navigation.navigation-item',
|
|
44
46
|
configurable: false,
|
|
45
|
-
mappedBy:
|
|
46
|
-
},
|
|
47
|
-
localizations: {
|
|
48
|
-
type: "relation",
|
|
49
|
-
relation: "oneToMany",
|
|
50
|
-
target: "plugin::navigation.navigation",
|
|
47
|
+
mappedBy: 'master',
|
|
51
48
|
},
|
|
52
49
|
localeCode: {
|
|
53
|
-
type:
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
type: 'string',
|
|
51
|
+
configurable: false,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
56
54
|
};
|
|
57
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("../../utils");
|
|
4
|
-
exports.default = (0, utils_1.buildAllHookListeners)(
|
|
4
|
+
exports.default = (0, utils_1.buildAllHookListeners)('navigation-item', {
|
|
5
5
|
strapi,
|
|
6
6
|
});
|
|
7
|
-
//# sourceMappingURL=lifecycles.js.map
|
|
@@ -1,113 +1,106 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
collectionName:
|
|
4
|
+
collectionName: 'navigations_items',
|
|
5
5
|
info: {
|
|
6
|
-
singularName:
|
|
7
|
-
pluralName:
|
|
8
|
-
displayName:
|
|
9
|
-
name:
|
|
6
|
+
singularName: 'navigation-item',
|
|
7
|
+
pluralName: 'navigation-items',
|
|
8
|
+
displayName: 'Navigation Item',
|
|
9
|
+
name: 'navigation-item',
|
|
10
10
|
},
|
|
11
11
|
options: {
|
|
12
12
|
increments: true,
|
|
13
13
|
timestamps: true,
|
|
14
|
-
comment:
|
|
14
|
+
comment: 'Navigation Item',
|
|
15
15
|
},
|
|
16
16
|
pluginOptions: {
|
|
17
|
-
|
|
18
|
-
visible: false
|
|
17
|
+
'content-manager': {
|
|
18
|
+
visible: false,
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
visible: false
|
|
20
|
+
'content-type-builder': {
|
|
21
|
+
visible: false,
|
|
22
22
|
},
|
|
23
23
|
i18n: {
|
|
24
|
-
localized: false
|
|
25
|
-
}
|
|
24
|
+
localized: false,
|
|
25
|
+
},
|
|
26
26
|
},
|
|
27
27
|
attributes: {
|
|
28
28
|
title: {
|
|
29
|
-
type:
|
|
29
|
+
type: 'text',
|
|
30
30
|
configurable: false,
|
|
31
31
|
required: true,
|
|
32
32
|
pluginOptions: {
|
|
33
33
|
i18n: {
|
|
34
|
-
localized: false
|
|
35
|
-
}
|
|
36
|
-
}
|
|
34
|
+
localized: false,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
37
|
},
|
|
38
38
|
type: {
|
|
39
|
-
type:
|
|
40
|
-
enum: [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"WRAPPER"
|
|
44
|
-
],
|
|
45
|
-
default: "INTERNAL",
|
|
46
|
-
configurable: false
|
|
39
|
+
type: 'enumeration',
|
|
40
|
+
enum: ['INTERNAL', 'EXTERNAL', 'WRAPPER'],
|
|
41
|
+
default: 'INTERNAL',
|
|
42
|
+
configurable: false,
|
|
47
43
|
},
|
|
48
44
|
path: {
|
|
49
|
-
type:
|
|
50
|
-
targetField:
|
|
51
|
-
configurable: false
|
|
45
|
+
type: 'text',
|
|
46
|
+
targetField: 'title',
|
|
47
|
+
configurable: false,
|
|
52
48
|
},
|
|
53
49
|
externalPath: {
|
|
54
|
-
type:
|
|
55
|
-
configurable: false
|
|
50
|
+
type: 'text',
|
|
51
|
+
configurable: false,
|
|
56
52
|
},
|
|
57
53
|
uiRouterKey: {
|
|
58
|
-
type:
|
|
59
|
-
configurable: false
|
|
54
|
+
type: 'string',
|
|
55
|
+
configurable: false,
|
|
60
56
|
},
|
|
61
57
|
menuAttached: {
|
|
62
|
-
type:
|
|
58
|
+
type: 'boolean',
|
|
63
59
|
default: false,
|
|
64
|
-
configurable: false
|
|
60
|
+
configurable: false,
|
|
65
61
|
},
|
|
66
62
|
order: {
|
|
67
|
-
type:
|
|
63
|
+
type: 'integer',
|
|
68
64
|
default: 0,
|
|
69
|
-
configurable: false
|
|
65
|
+
configurable: false,
|
|
70
66
|
},
|
|
71
67
|
collapsed: {
|
|
72
|
-
type:
|
|
68
|
+
type: 'boolean',
|
|
73
69
|
default: false,
|
|
74
|
-
configurable: false
|
|
70
|
+
configurable: false,
|
|
75
71
|
},
|
|
76
72
|
autoSync: {
|
|
77
|
-
type:
|
|
73
|
+
type: 'boolean',
|
|
78
74
|
default: true,
|
|
79
|
-
configurable: false
|
|
75
|
+
configurable: false,
|
|
80
76
|
},
|
|
81
77
|
related: {
|
|
82
|
-
type:
|
|
83
|
-
|
|
84
|
-
target: "plugin::navigation.navigations-items-related",
|
|
85
|
-
configurable: false
|
|
78
|
+
type: 'string',
|
|
79
|
+
configurable: false,
|
|
86
80
|
},
|
|
87
81
|
parent: {
|
|
88
|
-
type:
|
|
89
|
-
relation:
|
|
90
|
-
target:
|
|
82
|
+
type: 'relation',
|
|
83
|
+
relation: 'oneToOne',
|
|
84
|
+
target: 'plugin::navigation.navigation-item',
|
|
91
85
|
configurable: false,
|
|
92
|
-
default: null
|
|
86
|
+
default: null,
|
|
93
87
|
},
|
|
94
88
|
master: {
|
|
95
|
-
type:
|
|
96
|
-
relation:
|
|
97
|
-
target:
|
|
89
|
+
type: 'relation',
|
|
90
|
+
relation: 'manyToOne',
|
|
91
|
+
target: 'plugin::navigation.navigation',
|
|
98
92
|
configurable: false,
|
|
99
|
-
inversedBy:
|
|
93
|
+
inversedBy: 'items',
|
|
100
94
|
},
|
|
101
95
|
audience: {
|
|
102
|
-
type:
|
|
103
|
-
relation:
|
|
104
|
-
target:
|
|
96
|
+
type: 'relation',
|
|
97
|
+
relation: 'oneToMany',
|
|
98
|
+
target: 'plugin::navigation.audience',
|
|
105
99
|
},
|
|
106
100
|
additionalFields: {
|
|
107
|
-
type:
|
|
101
|
+
type: 'json',
|
|
108
102
|
require: false,
|
|
109
103
|
default: {},
|
|
110
|
-
}
|
|
111
|
-
}
|
|
104
|
+
},
|
|
105
|
+
},
|
|
112
106
|
};
|
|
113
|
-
//# sourceMappingURL=schema.js.map
|