@strapi/admin 4.6.1 → 4.6.2
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/admin/src/StrapiApp.js +1 -1
- package/admin/src/assets/images/onboarding-preview.png +0 -0
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +3 -7
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +1 -2
- package/admin/src/components/GuidedTour/Homepage/components/Step.js +1 -3
- package/admin/src/components/GuidedTour/Homepage/components/Stepper.js +1 -1
- package/admin/src/components/GuidedTour/Homepage/index.js +2 -6
- package/admin/src/components/GuidedTour/Modal/components/Content.js +1 -3
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +2 -8
- package/admin/src/components/GuidedTour/Modal/components/StepNumberWithPadding.js +1 -1
- package/admin/src/components/GuidedTour/Modal/components/Stepper.js +2 -5
- package/admin/src/components/GuidedTour/Stepper/StepLine.js +1 -1
- package/admin/src/components/GuidedTour/Stepper/StepNumber.js +2 -4
- package/admin/src/components/LeftMenu/index.js +3 -8
- package/admin/src/components/Notifications/Notification/index.js +2 -2
- package/admin/src/components/Notifications/index.js +1 -1
- package/admin/src/components/Theme/index.js +1 -1
- package/admin/src/components/UpgradePlanModal/index.js +3 -10
- package/admin/src/content-manager/components/AttributeFilter/Filters.js +2 -3
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +4 -14
- package/admin/src/content-manager/components/ComponentInitializer/index.js +2 -5
- package/admin/src/content-manager/components/DynamicTable/CellContent/Media/FileWrapper.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/CellContent/Media/index.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/CellContent/MultipleMedias.js +1 -1
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js +15 -12
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationSingle/index.js +1 -1
- package/admin/src/content-manager/components/DynamicTable/CellContent/RepeatableComponent/index.js +1 -4
- package/admin/src/content-manager/components/DynamicTable/CellContent/SingleComponent/index.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/CellContent/index.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +10 -7
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +10 -7
- package/admin/src/content-manager/components/DynamicTable/TableRows/index.js +3 -9
- package/admin/src/content-manager/components/DynamicTable/index.js +1 -2
- package/admin/src/content-manager/components/DynamicZone/components/AddComponentButton.js +2 -5
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +1 -3
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCategory.js +1 -2
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker.js +1 -4
- package/admin/src/content-manager/components/DynamicZone/components/DynamicZoneLabel.js +1 -3
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +39 -9
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js +9 -15
- package/admin/src/content-manager/components/FieldComponent/Label.js +1 -3
- package/admin/src/content-manager/components/FieldComponent/index.js +2 -5
- package/admin/src/content-manager/components/FieldTypeIcon/index.js +15 -13
- package/admin/src/content-manager/components/Hint/index.js +1 -1
- package/admin/src/content-manager/components/InjectionZoneList/index.js +1 -1
- package/admin/src/content-manager/components/InputUID/endActionStyle.js +1 -3
- package/admin/src/content-manager/components/InputUID/index.js +2 -6
- package/admin/src/content-manager/components/NonRepeatableComponent/index.js +1 -3
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +16 -12
- package/admin/src/content-manager/components/RelationInput/components/Option.js +1 -2
- package/admin/src/content-manager/components/RelationInput/components/Relation.js +1 -2
- package/admin/src/content-manager/components/RelationInput/components/RelationList.js +1 -1
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +4 -12
- package/admin/src/content-manager/components/Wysiwyg/WysiwygFooter.js +2 -4
- package/admin/src/content-manager/components/Wysiwyg/WysiwygNav.js +24 -18
- package/admin/src/content-manager/components/Wysiwyg/WysiwygStyles.js +1 -2
- package/admin/src/content-manager/components/Wysiwyg/index.js +1 -3
- package/admin/src/content-manager/pages/App/LeftMenu/index.js +1 -1
- package/admin/src/content-manager/pages/App/index.js +1 -2
- package/admin/src/content-manager/pages/App/useModels.js +1 -1
- package/admin/src/content-manager/pages/App/utils/generateModelsLinks.js +9 -8
- package/admin/src/content-manager/pages/CollectionTypeRecursivePath/components/ErrorFallback.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js +2 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFieldButton.js +2 -4
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +2 -7
- package/admin/src/content-manager/pages/EditSettingsView/components/FieldButtonContent.js +2 -6
- package/admin/src/content-manager/pages/EditSettingsView/components/FormModal.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/GenericInput.js +1 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/LinkToCTB.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/ModalForm.js +1 -2
- package/admin/src/content-manager/pages/EditSettingsView/components/RowsLayout.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/index.js +15 -11
- package/admin/src/content-manager/pages/EditView/DeleteLink/index.js +8 -10
- package/admin/src/content-manager/pages/EditView/DraftAndPublishBadge/index.js +3 -5
- package/admin/src/content-manager/pages/EditView/GridRow/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/Header/index.js +12 -10
- package/admin/src/content-manager/pages/EditView/index.js +2 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +2 -6
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +2 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/EditFieldForm.js +8 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +10 -6
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +10 -7
- package/admin/src/content-manager/pages/ListSettingsView/index.js +10 -7
- package/admin/src/content-manager/pages/ListView/FieldPicker/index.js +1 -2
- package/admin/src/content-manager/pages/ListView/PaginationFooter/index.js +1 -2
- package/admin/src/content-manager/pages/ListView/index.js +18 -21
- package/admin/src/content-manager/pages/NoContentType/index.js +2 -5
- package/admin/src/content-manager/pages/NoPermissions/index.js +1 -2
- package/admin/src/hooks/useMenu/reducer.js +1 -3
- package/admin/src/layouts/AppLayout/index.js +1 -3
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +1 -1
- package/admin/src/layouts/UnauthenticatedLayout/index.js +1 -2
- package/admin/src/pages/Admin/Onboarding/constants.js +46 -0
- package/admin/src/pages/Admin/Onboarding/index.js +172 -87
- package/admin/src/pages/Admin/index.js +5 -2
- package/admin/src/pages/App/index.js +1 -1
- package/admin/src/pages/AuthPage/components/FieldActionWrapper/index.js +1 -1
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +1 -7
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +11 -10
- package/admin/src/pages/AuthPage/components/Oops/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Register/index.js +13 -11
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +2 -9
- package/admin/src/pages/HomePage/ContentBlocks.js +2 -5
- package/admin/src/pages/HomePage/HomeHeader.js +3 -6
- package/admin/src/pages/HomePage/SocialLinks.js +33 -30
- package/admin/src/pages/HomePage/index.js +1 -4
- package/admin/src/pages/InstalledPluginsPage/Plugins.js +14 -5
- package/admin/src/pages/InternalErrorPage/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/EmptyNpmPackageGrid.js +1 -2
- package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/MissingPluginBanner/index.js +2 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/CardButton.js +2 -4
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/InstallPluginButton.js +2 -4
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +2 -7
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +3 -9
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FilterSelect.js +1 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +1 -4
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/NpmPackagesGrid/index.js +1 -1
- package/admin/src/pages/MarketplacePage/components/PageHeader/index.js +3 -3
- package/admin/src/pages/MarketplacePage/components/SortSelect/index.js +1 -2
- package/admin/src/pages/MarketplacePage/index.js +15 -8
- package/admin/src/pages/NotFoundPage/index.js +2 -5
- package/admin/src/pages/ProfilePage/index.js +17 -14
- package/admin/src/pages/SettingsPage/components/Filters/index.js +2 -3
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +16 -3
- package/admin/src/pages/SettingsPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/CheckBoxWrapper.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/index.js +13 -8
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ContenTypesSection/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ContentBox/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +11 -7
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormBody/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormHead/index.js +2 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/LoadingView/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/DeleteButton/index.js +2 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/ReadButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/UpdateButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/CustomizationInfos/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/index.js +8 -5
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/AddLogoDialog.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +13 -9
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromUrlForm.js +1 -4
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/ImageCardAsset.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/PendingLogoDialog.js +1 -5
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +56 -70
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/CollapseLabel/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsButton/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/index.js +5 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/index.js +2 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/CarretIcon/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/Header/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/utils/activeStyle.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypes/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Curve/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Permissions/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Permissions/utils/formatLayoutForSettingsAndPlugins.js +12 -16
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/Row/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/index.js +1 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +11 -8
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RowLabelWithCheckbox/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +2 -6
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js +1 -5
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js +16 -10
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +12 -9
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js +11 -8
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +9 -7
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +9 -5
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/MagicLinkWrapper.js +3 -20
- package/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/EventRow.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/Combobox.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +11 -8
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +2 -8
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +11 -9
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +26 -18
- package/admin/src/pages/UseCasePage/index.js +12 -9
- package/admin/src/permissions/defaultPermissions.js +2 -15
- package/admin/src/translations/ar.json +4 -4
- package/admin/src/translations/ca.json +4 -4
- package/admin/src/translations/cs.json +4 -4
- package/admin/src/translations/de.json +4 -4
- package/admin/src/translations/dk.json +4 -4
- package/admin/src/translations/en.json +10 -5
- package/admin/src/translations/es.json +4 -4
- package/admin/src/translations/eu.json +4 -4
- package/admin/src/translations/fr.json +4 -4
- package/admin/src/translations/gu.json +4 -4
- package/admin/src/translations/he.json +4 -4
- package/admin/src/translations/hi.json +4 -4
- package/admin/src/translations/hu.json +4 -4
- package/admin/src/translations/id.json +4 -4
- package/admin/src/translations/it.json +4 -4
- package/admin/src/translations/ja.json +4 -4
- package/admin/src/translations/ko.json +4 -4
- package/admin/src/translations/ml.json +4 -4
- package/admin/src/translations/ms.json +4 -4
- package/admin/src/translations/nl.json +4 -4
- package/admin/src/translations/no.json +4 -4
- package/admin/src/translations/pl.json +4 -4
- package/admin/src/translations/pt-BR.json +4 -4
- package/admin/src/translations/pt.json +4 -4
- package/admin/src/translations/ru.json +785 -789
- package/admin/src/translations/sa.json +4 -4
- package/admin/src/translations/sk.json +4 -4
- package/admin/src/translations/sv.json +4 -4
- package/admin/src/translations/th.json +4 -4
- package/admin/src/translations/tr.json +4 -4
- package/admin/src/translations/uk.json +4 -4
- package/admin/src/translations/vi.json +4 -4
- package/admin/src/translations/zh-Hans.json +4 -4
- package/admin/src/translations/zh.json +4 -4
- package/build/{8633.00ccd382.chunk.js → 1341.5d48c79b.chunk.js} +1 -1
- package/build/19eb2dfcf2603eb55733.png +0 -0
- package/build/2637.679b590b.chunk.js +1 -0
- package/build/4318.9b1ac9bc.chunk.js +30 -0
- package/build/4849.7abafe52.chunk.js +98 -0
- package/build/6487.83e219bf.chunk.js +14 -0
- package/build/{5015.8e3fe50b.chunk.js → 8469.853c822b.chunk.js} +1 -6
- package/build/9816.01ee964f.chunk.js +2 -0
- package/build/Admin-authenticatedApp.dd16edad.chunk.js +79 -0
- package/build/Admin_InternalErrorPage.4ad8b0df.chunk.js +1 -0
- package/build/Admin_homePage.4b878f04.chunk.js +72 -0
- package/build/Admin_marketplace.a8ea585f.chunk.js +22 -0
- package/build/Admin_pluginsPage.15e3b0fd.chunk.js +1 -0
- package/build/Admin_profilePage.b27e40f6.chunk.js +15 -0
- package/build/Admin_settingsPage.3cd54156.chunk.js +178 -0
- package/build/Upload_ConfigureTheView.34dde278.chunk.js +1 -0
- package/build/admin-app.3a084127.chunk.js +112 -0
- package/build/admin-edit-roles-page.fd041d89.chunk.js +1 -0
- package/build/admin-edit-users.08a60ea2.chunk.js +10 -0
- package/build/admin-users.74f5629d.chunk.js +11 -0
- package/build/{api-tokens-create-page.d248362d.chunk.js → api-tokens-create-page.a31c7fba.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.8516fa20.chunk.js → api-tokens-edit-page.64fef287.chunk.js} +1 -1
- package/build/api-tokens-list-page.370459ba.chunk.js +16 -0
- package/build/ar-json.39e54aba.chunk.js +1 -0
- package/build/audit-logs-settings-page.bc1784fe.chunk.js +1 -0
- package/build/{ca-json.f6a0f472.chunk.js → ca-json.4d999055.chunk.js} +1 -1
- package/build/content-manager.d04b738f.chunk.js +1139 -0
- package/build/content-type-builder-list-view.c2f917b6.chunk.js +191 -0
- package/build/content-type-builder.b7fb1e65.chunk.js +126 -0
- package/build/cs-json.4b44411c.chunk.js +1 -0
- package/build/{de-json.30e1f35b.chunk.js → de-json.866f8a28.chunk.js} +1 -1
- package/build/{dk-json.e6d9ffa4.chunk.js → dk-json.10f7b1d1.chunk.js} +1 -1
- package/build/email-settings-page.884cfb8b.chunk.js +3 -0
- package/build/en-json.9cada7f3.chunk.js +1 -0
- package/build/es-json.ea15c957.chunk.js +1 -0
- package/build/{eu-json.fceecd8b.chunk.js → eu-json.3bc24d60.chunk.js} +1 -1
- package/build/{fr-json.78545ef8.chunk.js → fr-json.e88fbdfd.chunk.js} +1 -1
- package/build/{gu-json.676518f2.chunk.js → gu-json.94f0d242.chunk.js} +1 -1
- package/build/{he-json.ad22e8cc.chunk.js → he-json.f0de8cdb.chunk.js} +1 -1
- package/build/{hi-json.19b51c09.chunk.js → hi-json.df3a7be2.chunk.js} +1 -1
- package/build/{hu-json.f947088f.chunk.js → hu-json.680e6eef.chunk.js} +1 -1
- package/build/i18n-settings-page.c7bc29fc.chunk.js +1 -0
- package/build/{id-json.504daa84.chunk.js → id-json.e0d83d41.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/{it-json.2fd90f4d.chunk.js → it-json.8be59205.chunk.js} +1 -1
- package/build/{ja-json.c9f12d0b.chunk.js → ja-json.97ee41ba.chunk.js} +1 -1
- package/build/{ko-json.ef463065.chunk.js → ko-json.4cbbf4f2.chunk.js} +1 -1
- package/build/main.9c01de7f.js +3929 -0
- package/build/{ml-json.490f666c.chunk.js → ml-json.e3747091.chunk.js} +1 -1
- package/build/ms-json.0eddffd9.chunk.js +1 -0
- package/build/{nl-json.c416295a.chunk.js → nl-json.371a15ee.chunk.js} +1 -1
- package/build/{no-json.1a2258ba.chunk.js → no-json.9b3cd181.chunk.js} +1 -1
- package/build/{pl-json.8cf0c871.chunk.js → pl-json.e535cbce.chunk.js} +1 -1
- package/build/{pt-BR-json.51fab8d0.chunk.js → pt-BR-json.e5fafa46.chunk.js} +1 -1
- package/build/pt-json.ee554a41.chunk.js +1 -0
- package/build/{ru-json.aa5cd123.chunk.js → ru-json.866f0ff1.chunk.js} +1 -1
- package/build/{runtime~main.a20d633b.js → runtime~main.bb1389c9.js} +2 -2
- package/build/{sa-json.f3fa5407.chunk.js → sa-json.7efeb257.chunk.js} +1 -1
- package/build/{sk-json.9ec60d9f.chunk.js → sk-json.7bbeb0af.chunk.js} +1 -1
- package/build/sso-settings-page.82d84043.chunk.js +1 -0
- package/build/{sv-json.c6b0c237.chunk.js → sv-json.dc40951f.chunk.js} +1 -1
- package/build/{th-json.6e68155c.chunk.js → th-json.f664b96d.chunk.js} +1 -1
- package/build/{tr-json.9f41dc08.chunk.js → tr-json.b79eae31.chunk.js} +1 -1
- package/build/uk-json.b7e38370.chunk.js +1 -0
- package/build/upload-settings.c18b010f.chunk.js +1 -0
- package/build/upload.0876ab69.chunk.js +13 -0
- package/build/users-advanced-settings-page.677e1973.chunk.js +1 -0
- package/build/users-email-settings-page.a3c80419.chunk.js +1 -0
- package/build/users-providers-settings-page.87a9c77d.chunk.js +1 -0
- package/build/users-roles-settings-page.79c19845.chunk.js +30 -0
- package/build/vi-json.ee4c5537.chunk.js +1 -0
- package/build/webhook-edit-page.cfbdd3fd.chunk.js +23 -0
- package/build/webhook-list-page.3daa4fe2.chunk.js +1 -0
- package/build/{zh-Hans-json.9c0eac99.chunk.js → zh-Hans-json.30a18940.chunk.js} +1 -1
- package/build/{zh-json.f88f563d.chunk.js → zh-json.49d84433.chunk.js} +1 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +1 -5
- package/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js +1 -4
- package/ee/admin/pages/AuthPage/components/Providers/index.js +1 -8
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionBody.js +1 -6
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionItem.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/index.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/PaginationFooter/index.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/TableRows/index.js +2 -5
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +15 -11
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +16 -10
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +15 -9
- package/ee/admin/permissions/customPermissions.js +4 -0
- package/package.json +15 -15
- package/server/config/admin-actions.js +0 -16
- package/server/controllers/admin.js +0 -55
- package/server/routes/admin.js +0 -28
- package/webpack.alias.js +0 -1
- package/webpack.config.js +0 -3
- package/build/1412.936ed920.chunk.js +0 -159
- package/build/1683.c8aa7b7c.chunk.js +0 -268
- package/build/2607.2e48dbf8.chunk.js +0 -66
- package/build/2743.6d1632f9.chunk.js +0 -45
- package/build/3075.dc3894fe.chunk.js +0 -108
- package/build/3632.0317b618.chunk.js +0 -138
- package/build/4318.f96a9d4d.chunk.js +0 -30
- package/build/4855.bd092921.chunk.js +0 -209
- package/build/9707.7290fd92.chunk.js +0 -96
- package/build/Admin-authenticatedApp.ce646f66.chunk.js +0 -75
- package/build/Admin_InternalErrorPage.157152a8.chunk.js +0 -1
- package/build/Admin_homePage.b1730882.chunk.js +0 -77
- package/build/Admin_marketplace.ea0316c2.chunk.js +0 -26
- package/build/Admin_pluginsPage.5c24f963.chunk.js +0 -6
- package/build/Admin_profilePage.59af1978.chunk.js +0 -15
- package/build/Admin_settingsPage.d1493824.chunk.js +0 -178
- package/build/Upload_ConfigureTheView.3f2b6e6a.chunk.js +0 -1
- package/build/admin-app.25934eaa.chunk.js +0 -112
- package/build/admin-edit-roles-page.446b69dc.chunk.js +0 -1
- package/build/admin-edit-users.2ed69bfd.chunk.js +0 -10
- package/build/admin-users.fc003b10.chunk.js +0 -11
- package/build/api-tokens-list-page.44a79fda.chunk.js +0 -16
- package/build/ar-json.932794f7.chunk.js +0 -1
- package/build/audit-logs-settings-page.c3dce30d.chunk.js +0 -1
- package/build/content-manager.35ff9726.chunk.js +0 -1139
- package/build/content-type-builder-list-view.79e84b36.chunk.js +0 -193
- package/build/content-type-builder.855db321.chunk.js +0 -126
- package/build/cs-json.79879fb6.chunk.js +0 -1
- package/build/email-settings-page.d1fcc7a3.chunk.js +0 -10
- package/build/en-json.1f137a90.chunk.js +0 -1
- package/build/es-json.e275481d.chunk.js +0 -1
- package/build/i18n-settings-page.b8d8753e.chunk.js +0 -60
- package/build/main.7b151630.js +0 -4377
- package/build/ms-json.db87d8d3.chunk.js +0 -1
- package/build/pt-json.62927d1e.chunk.js +0 -1
- package/build/sso-settings-page.b85ad080.chunk.js +0 -41
- package/build/uk-json.b2fcd567.chunk.js +0 -1
- package/build/upload-settings.ef64bbf9.chunk.js +0 -84
- package/build/upload.c5730dfa.chunk.js +0 -33
- package/build/users-advanced-settings-page.fce9908e.chunk.js +0 -8
- package/build/users-email-settings-page.343d0ad2.chunk.js +0 -23
- package/build/users-providers-settings-page.e5a9a3f1.chunk.js +0 -99
- package/build/users-roles-settings-page.66312f31.chunk.js +0 -30
- package/build/vi-json.f08d7d03.chunk.js +0 -1
- package/build/webhook-edit-page.73e51e64.chunk.js +0 -75
- package/build/webhook-list-page.1134f130.chunk.js +0 -42
|
@@ -1,92 +1,104 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
import { useAppInfos } from '@strapi/helper-plugin';
|
|
5
|
+
import {
|
|
6
|
+
Box,
|
|
7
|
+
Button,
|
|
8
|
+
Divider,
|
|
9
|
+
Flex,
|
|
10
|
+
FocusTrap,
|
|
11
|
+
Icon,
|
|
12
|
+
Portal,
|
|
13
|
+
PopoverPrimitives,
|
|
14
|
+
Stack,
|
|
15
|
+
Typography,
|
|
16
|
+
VisuallyHidden,
|
|
17
|
+
} from '@strapi/design-system';
|
|
18
|
+
import { Cross, Message, Play, Question } from '@strapi/icons';
|
|
19
|
+
|
|
20
|
+
import onboardingPreview from '../../../assets/images/onboarding-preview.png';
|
|
21
|
+
import { VIDEO_LINKS, DOCUMENTATION_LINKS, WATCH_MORE } from './constants';
|
|
22
|
+
|
|
23
|
+
// TODO: use new Button props derived from Box props with next DS release
|
|
24
|
+
const HelperButton = styled(Button)`
|
|
21
25
|
border-radius: 50%;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
+
padding: ${({ theme }) => theme.spaces[3]};
|
|
27
|
+
/* Resetting 2rem height defined by Button component */
|
|
28
|
+
height: 100%;
|
|
26
29
|
`;
|
|
27
30
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
min-width: ${200 / 16}rem;
|
|
31
|
-
position: absolute;
|
|
32
|
-
right: 0;
|
|
31
|
+
const IconWrapper = styled(Flex)`
|
|
32
|
+
transform: translate(-50%, -50%);
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const VideoLinkWrapper = styled(Flex)`
|
|
36
36
|
text-decoration: none;
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
:focus-visible {
|
|
39
|
+
outline-offset: ${({ theme }) => `-${theme.spaces[1]}`};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
background: ${({ theme }) => theme.colors.neutral100};
|
|
42
|
+
:hover {
|
|
43
|
+
background: ${({ theme }) => theme.colors.primary100};
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
/* Hover style for the number displayed */
|
|
46
|
+
${Typography}:first-child {
|
|
47
|
+
color: ${({ theme }) => theme.colors.primary500};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/* Hover style for the label */
|
|
51
|
+
${Typography}:nth-child(1) {
|
|
52
|
+
color: ${({ theme }) => theme.colors.primary600};
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
`;
|
|
55
56
|
|
|
57
|
+
const Preview = styled.img`
|
|
58
|
+
width: ${({ theme }) => theme.spaces[10]};
|
|
59
|
+
height: ${({ theme }) => theme.spaces[8]};
|
|
60
|
+
/* Same overlay used in ModalLayout */
|
|
61
|
+
background: ${({ theme }) => `${theme.colors.neutral800}1F`};
|
|
62
|
+
border-radius: ${({ theme }) => theme.borderRadius};
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
const TypographyLineHeight = styled(Typography)`
|
|
66
|
+
/* line height of label and watch more to 1 so they can be better aligned visually */
|
|
67
|
+
line-height: 1;
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
const TextLink = styled(TypographyLineHeight)`
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
|
|
73
|
+
:hover {
|
|
74
|
+
text-decoration: underline;
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
|
|
56
78
|
const Onboarding = () => {
|
|
79
|
+
const triggerRef = useRef();
|
|
57
80
|
const [isOpen, setIsOpen] = useState(false);
|
|
58
81
|
const { formatMessage } = useIntl();
|
|
59
|
-
const {
|
|
82
|
+
const { communityEdition } = useAppInfos();
|
|
60
83
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
84
|
+
const handlePopoverVisibility = () => {
|
|
85
|
+
setIsOpen((prev) => !prev);
|
|
86
|
+
};
|
|
64
87
|
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
Icon: <Book />,
|
|
68
|
-
label: formatMessage({
|
|
69
|
-
id: 'global.documentation',
|
|
70
|
-
defaultMessage: 'Documentation',
|
|
71
|
-
}),
|
|
72
|
-
destination: 'https://docs.strapi.io',
|
|
73
|
-
},
|
|
88
|
+
const docLinks = [
|
|
89
|
+
...DOCUMENTATION_LINKS,
|
|
74
90
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
label: { id: 'Settings.application.get-help', defaultMessage: 'Get help' },
|
|
92
|
+
icon: Message,
|
|
93
|
+
href: communityEdition
|
|
94
|
+
? 'https://discord.strapi.io'
|
|
95
|
+
: 'https://support.strapi.io/support/home',
|
|
78
96
|
},
|
|
79
97
|
];
|
|
80
98
|
|
|
81
|
-
const handleClick = () => {
|
|
82
|
-
setIsOpen((prev) => !prev);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
99
|
return (
|
|
86
|
-
<
|
|
87
|
-
<
|
|
88
|
-
as="button"
|
|
89
|
-
id="onboarding"
|
|
100
|
+
<Box as="aside" position="fixed" bottom={2} right={2}>
|
|
101
|
+
<HelperButton
|
|
90
102
|
aria-label={formatMessage(
|
|
91
103
|
isOpen
|
|
92
104
|
? {
|
|
@@ -98,37 +110,110 @@ const Onboarding = () => {
|
|
|
98
110
|
defaultMessage: 'Open help menu',
|
|
99
111
|
}
|
|
100
112
|
)}
|
|
101
|
-
onClick={
|
|
113
|
+
onClick={handlePopoverVisibility}
|
|
114
|
+
ref={triggerRef}
|
|
102
115
|
>
|
|
103
|
-
<Icon as={isOpen ? Cross : Question}
|
|
104
|
-
</
|
|
116
|
+
<Icon as={isOpen ? Cross : Question} color="buttonNeutral0" />
|
|
117
|
+
</HelperButton>
|
|
105
118
|
|
|
106
|
-
{/* FIX ME - replace with popover when overflow popover is fixed
|
|
107
|
-
+ when v4 mockups for onboarding component are ready */}
|
|
108
119
|
{isOpen && (
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
<Portal>
|
|
121
|
+
<PopoverPrimitives.Content
|
|
122
|
+
padding={0}
|
|
123
|
+
source={triggerRef}
|
|
124
|
+
placement="top-end"
|
|
125
|
+
spacing={12}
|
|
126
|
+
>
|
|
127
|
+
<FocusTrap onEscape={handlePopoverVisibility}>
|
|
128
|
+
<Flex
|
|
129
|
+
justifyContent="space-between"
|
|
130
|
+
paddingBottom={5}
|
|
131
|
+
paddingRight={6}
|
|
132
|
+
paddingLeft={6}
|
|
133
|
+
paddingTop={6}
|
|
121
134
|
>
|
|
122
|
-
<
|
|
123
|
-
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
135
|
+
<TypographyLineHeight fontWeight="bold">
|
|
136
|
+
{formatMessage({
|
|
137
|
+
id: 'app.components.Onboarding.title',
|
|
138
|
+
defaultMessage: 'Get started videos',
|
|
139
|
+
})}
|
|
140
|
+
</TypographyLineHeight>
|
|
141
|
+
<TextLink
|
|
142
|
+
as="a"
|
|
143
|
+
href={WATCH_MORE.href}
|
|
144
|
+
target="_blank"
|
|
145
|
+
rel="noreferrer noopener"
|
|
146
|
+
variant="pi"
|
|
147
|
+
textColor="primary600"
|
|
148
|
+
>
|
|
149
|
+
{formatMessage(WATCH_MORE.label)}
|
|
150
|
+
</TextLink>
|
|
151
|
+
</Flex>
|
|
152
|
+
<Divider />
|
|
153
|
+
{VIDEO_LINKS.map(({ href, duration, label }, index) => (
|
|
154
|
+
<VideoLinkWrapper
|
|
155
|
+
as="a"
|
|
156
|
+
href={href}
|
|
157
|
+
target="_blank"
|
|
158
|
+
rel="noreferrer noopener"
|
|
159
|
+
key={href}
|
|
160
|
+
hasRadius
|
|
161
|
+
paddingTop={4}
|
|
162
|
+
paddingBottom={4}
|
|
163
|
+
paddingLeft={6}
|
|
164
|
+
paddingRight={11}
|
|
165
|
+
>
|
|
166
|
+
<Box paddingRight={5}>
|
|
167
|
+
<Typography textColor="neutral200" variant="alpha">
|
|
168
|
+
{index + 1}
|
|
169
|
+
</Typography>
|
|
170
|
+
</Box>
|
|
171
|
+
<Box position="relative">
|
|
172
|
+
<Preview src={onboardingPreview} alt="" />
|
|
173
|
+
<IconWrapper
|
|
174
|
+
position="absolute"
|
|
175
|
+
top="50%"
|
|
176
|
+
left="50%"
|
|
177
|
+
background="primary600"
|
|
178
|
+
borderRadius="50%"
|
|
179
|
+
justifyContent="center"
|
|
180
|
+
width={6}
|
|
181
|
+
height={6}
|
|
182
|
+
>
|
|
183
|
+
<Icon as={Play} color="buttonNeutral0" width={3} height={3} />
|
|
184
|
+
</IconWrapper>
|
|
185
|
+
</Box>
|
|
186
|
+
<Flex direction="column" alignItems="start" paddingLeft={4}>
|
|
187
|
+
<Typography fontWeight="bold">{formatMessage(label)}</Typography>
|
|
188
|
+
<VisuallyHidden>:</VisuallyHidden>
|
|
189
|
+
<Typography textColor="neutral600" variant="pi">
|
|
190
|
+
{duration}
|
|
191
|
+
</Typography>
|
|
192
|
+
</Flex>
|
|
193
|
+
</VideoLinkWrapper>
|
|
194
|
+
))}
|
|
195
|
+
<Stack spacing={2} paddingLeft={5} paddingTop={2} paddingBottom={5}>
|
|
196
|
+
{docLinks.map(({ label, href, icon }) => (
|
|
197
|
+
<Stack horizontal spacing={3} key={href}>
|
|
198
|
+
<Icon as={icon} color="primary600" />
|
|
199
|
+
<TextLink
|
|
200
|
+
as="a"
|
|
201
|
+
href={href}
|
|
202
|
+
target="_blank"
|
|
203
|
+
rel="noreferrer noopener"
|
|
204
|
+
variant="sigma"
|
|
205
|
+
textColor="primary700"
|
|
206
|
+
>
|
|
207
|
+
{formatMessage(label)}
|
|
208
|
+
</TextLink>
|
|
209
|
+
</Stack>
|
|
210
|
+
))}
|
|
211
|
+
</Stack>
|
|
212
|
+
</FocusTrap>
|
|
213
|
+
</PopoverPrimitives.Content>
|
|
214
|
+
</Portal>
|
|
130
215
|
)}
|
|
131
|
-
</
|
|
216
|
+
</Box>
|
|
132
217
|
);
|
|
133
218
|
};
|
|
134
219
|
|
|
@@ -10,10 +10,11 @@ import { useTracking, LoadingIndicatorPage, useStrapiApp } from '@strapi/helper-
|
|
|
10
10
|
import { useDispatch, useSelector } from 'react-redux';
|
|
11
11
|
import { DndProvider } from 'react-dnd';
|
|
12
12
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
13
|
+
|
|
13
14
|
import GuidedTourModal from '../../components/GuidedTour/Modal';
|
|
14
15
|
import LeftMenu from '../../components/LeftMenu';
|
|
15
16
|
import AppLayout from '../../layouts/AppLayout';
|
|
16
|
-
import { useMenu } from '../../hooks';
|
|
17
|
+
import { useMenu, useConfigurations } from '../../hooks';
|
|
17
18
|
import { createRoute } from '../../utils';
|
|
18
19
|
import { SET_APP_RUNTIME_STATUS } from '../App/constants';
|
|
19
20
|
import Onboarding from './Onboarding';
|
|
@@ -65,6 +66,7 @@ const Admin = () => {
|
|
|
65
66
|
useTrackUsage();
|
|
66
67
|
const { isLoading, generalSectionLinks, pluginsSectionLinks } = useMenu();
|
|
67
68
|
const { menu } = useStrapiApp();
|
|
69
|
+
const { showTutorials } = useConfigurations();
|
|
68
70
|
|
|
69
71
|
const routes = useMemo(() => {
|
|
70
72
|
return menu
|
|
@@ -106,7 +108,8 @@ const Admin = () => {
|
|
|
106
108
|
</Switch>
|
|
107
109
|
</Suspense>
|
|
108
110
|
<GuidedTourModal />
|
|
109
|
-
|
|
111
|
+
|
|
112
|
+
{showTutorials && <Onboarding />}
|
|
110
113
|
</AppLayout>
|
|
111
114
|
</DndProvider>
|
|
112
115
|
);
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useFetchClient,
|
|
18
18
|
} from '@strapi/helper-plugin';
|
|
19
19
|
import axios from 'axios';
|
|
20
|
-
import { SkipToContent } from '@strapi/design-system
|
|
20
|
+
import { SkipToContent } from '@strapi/design-system';
|
|
21
21
|
import { useIntl } from 'react-intl';
|
|
22
22
|
import PrivateRoute from '../../components/PrivateRoute';
|
|
23
23
|
import { createRoute, makeUniqueRoutes } from '../../utils';
|
|
@@ -2,13 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Form, Link } from '@strapi/helper-plugin';
|
|
5
|
-
import { Box } from '@strapi/design-system
|
|
6
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
7
|
-
import { Main } from '@strapi/design-system/Main';
|
|
8
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { Button } from '@strapi/design-system/Button';
|
|
10
|
-
import { TextInput } from '@strapi/design-system/TextInput';
|
|
11
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
5
|
+
import { Box, Stack, Main, Flex, Button, TextInput, Typography } from '@strapi/design-system';
|
|
12
6
|
import { Formik } from 'formik';
|
|
13
7
|
import UnauthenticatedLayout, {
|
|
14
8
|
Column,
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { Link } from '@strapi/helper-plugin';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
5
|
-
import { Main } from '@strapi/design-system/Main';
|
|
6
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Box, Main, Flex, Typography } from '@strapi/design-system';
|
|
8
5
|
import UnauthenticatedLayout, {
|
|
9
6
|
Column,
|
|
10
7
|
LayoutContent,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Form, Link } from '@strapi/helper-plugin';
|
|
3
|
-
import EyeStriked from '@strapi/icons
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { EyeStriked, Eye } from '@strapi/icons';
|
|
4
|
+
import {
|
|
5
|
+
Box,
|
|
6
|
+
Stack,
|
|
7
|
+
Main,
|
|
8
|
+
Flex,
|
|
9
|
+
Button,
|
|
10
|
+
TextInput,
|
|
11
|
+
Checkbox,
|
|
12
|
+
Typography,
|
|
13
|
+
} from '@strapi/design-system';
|
|
13
14
|
import PropTypes from 'prop-types';
|
|
14
15
|
import { useIntl } from 'react-intl';
|
|
15
16
|
import styled from 'styled-components';
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useQuery, Link } from '@strapi/helper-plugin';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
5
|
-
import { Main } from '@strapi/design-system/Main';
|
|
6
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Box, Main, Flex, Typography } from '@strapi/design-system';
|
|
8
5
|
import UnauthenticatedLayout, {
|
|
9
6
|
Column,
|
|
10
7
|
LayoutContent,
|
|
@@ -15,17 +15,19 @@ import {
|
|
|
15
15
|
getYupInnerErrors,
|
|
16
16
|
Link,
|
|
17
17
|
} from '@strapi/helper-plugin';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
import {
|
|
19
|
+
Box,
|
|
20
|
+
Stack,
|
|
21
|
+
Main,
|
|
22
|
+
Flex,
|
|
23
|
+
Button,
|
|
24
|
+
TextInput,
|
|
25
|
+
Checkbox,
|
|
26
|
+
Grid,
|
|
27
|
+
GridItem,
|
|
28
|
+
Typography,
|
|
29
|
+
} from '@strapi/design-system';
|
|
30
|
+
import { EyeStriked, Eye } from '@strapi/icons';
|
|
29
31
|
import UnauthenticatedLayout, {
|
|
30
32
|
Column,
|
|
31
33
|
LayoutContent,
|
|
@@ -4,15 +4,8 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { Formik } from 'formik';
|
|
6
6
|
import { Form, Link } from '@strapi/helper-plugin';
|
|
7
|
-
import { Box } from '@strapi/design-system
|
|
8
|
-
import {
|
|
9
|
-
import { Main } from '@strapi/design-system/Main';
|
|
10
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
11
|
-
import { Button } from '@strapi/design-system/Button';
|
|
12
|
-
import { TextInput } from '@strapi/design-system/TextInput';
|
|
13
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
14
|
-
import EyeStriked from '@strapi/icons/EyeStriked';
|
|
15
|
-
import Eye from '@strapi/icons/Eye';
|
|
7
|
+
import { Box, Stack, Main, Flex, Button, TextInput, Typography } from '@strapi/design-system';
|
|
8
|
+
import { EyeStriked, Eye } from '@strapi/icons';
|
|
16
9
|
import UnauthenticatedLayout, {
|
|
17
10
|
Column,
|
|
18
11
|
LayoutContent,
|
|
@@ -2,11 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { ContentBox, useTracking } from '@strapi/helper-plugin';
|
|
5
|
-
import { Stack } from '@strapi/design-system
|
|
6
|
-
import InformationSquare from '@strapi/icons
|
|
7
|
-
import CodeSquare from '@strapi/icons/CodeSquare';
|
|
8
|
-
import PlaySquare from '@strapi/icons/PlaySquare';
|
|
9
|
-
import FeatherSquare from '@strapi/icons/FeatherSquare';
|
|
5
|
+
import { Stack } from '@strapi/design-system';
|
|
6
|
+
import { InformationSquare, CodeSquare, PlaySquare, FeatherSquare } from '@strapi/icons';
|
|
10
7
|
|
|
11
8
|
const BlockLink = styled.a`
|
|
12
9
|
text-decoration: none;
|
|
@@ -2,12 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import { Typography } from '@strapi/design-system
|
|
6
|
-
import { Link } from '@strapi/design-system/v2
|
|
7
|
-
import {
|
|
8
|
-
import { Box } from '@strapi/design-system/Box';
|
|
9
|
-
import { Button } from '@strapi/design-system/Button';
|
|
10
|
-
import ArrowRight from '@strapi/icons/ArrowRight';
|
|
5
|
+
import { Typography, Stack, Box, Button } from '@strapi/design-system';
|
|
6
|
+
import { Link } from '@strapi/design-system/v2';
|
|
7
|
+
import { ArrowRight } from '@strapi/icons';
|
|
11
8
|
|
|
12
9
|
const WordWrap = styled(Typography)`
|
|
13
10
|
word-break: break-word;
|
|
@@ -6,19 +6,10 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import {
|
|
10
|
-
import { Box } from '@strapi/design-system
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { LinkButton } from '@strapi/design-system/v2/LinkButton';
|
|
14
|
-
import { Link } from '@strapi/design-system/v2/Link';
|
|
15
|
-
import ExternalLink from '@strapi/icons/ExternalLink';
|
|
16
|
-
import Github from '@strapi/icons/Github';
|
|
17
|
-
import Discord from '@strapi/icons/Discord';
|
|
18
|
-
import Reddit from '@strapi/icons/Reddit';
|
|
19
|
-
import Strapi from '@strapi/icons/Strapi';
|
|
20
|
-
import Twitter from '@strapi/icons/Twitter';
|
|
21
|
-
import Discourse from '@strapi/icons/Discourse';
|
|
9
|
+
import { useAppInfos } from '@strapi/helper-plugin';
|
|
10
|
+
import { Typography, Box, Stack, Grid, GridItem } from '@strapi/design-system';
|
|
11
|
+
import { Link, LinkButton } from '@strapi/design-system/v2';
|
|
12
|
+
import { ExternalLink, Github, Discord, Reddit, Strapi, Twitter, Discourse } from '@strapi/icons';
|
|
22
13
|
|
|
23
14
|
const StyledDiscord = styled(Discord)`
|
|
24
15
|
path {
|
|
@@ -72,43 +63,46 @@ const StyledDiscourse = styled(Discourse)`
|
|
|
72
63
|
|
|
73
64
|
const socialLinks = [
|
|
74
65
|
{
|
|
75
|
-
name: 'Github',
|
|
66
|
+
name: { id: 'app.components.HomePage.community.links.github', defaultMessage: 'Github' },
|
|
76
67
|
link: 'https://github.com/strapi/strapi/',
|
|
77
68
|
icon: <Github fill="#7289DA" />,
|
|
78
69
|
alt: 'github',
|
|
79
70
|
},
|
|
80
71
|
{
|
|
81
|
-
name: 'Discord',
|
|
72
|
+
name: { id: 'app.components.HomePage.community.links.discord', defaultMessage: 'Discord' },
|
|
82
73
|
link: 'https://discord.strapi.io/',
|
|
83
74
|
icon: <StyledDiscord />,
|
|
84
75
|
alt: 'discord',
|
|
85
76
|
},
|
|
86
77
|
{
|
|
87
|
-
name: 'Reddit',
|
|
78
|
+
name: { id: 'app.components.HomePage.community.links.reddit', defaultMessage: 'Reddit' },
|
|
88
79
|
link: 'https://www.reddit.com/r/Strapi/',
|
|
89
80
|
icon: <StyledReddit />,
|
|
90
81
|
alt: 'reddit',
|
|
91
82
|
},
|
|
92
83
|
{
|
|
93
|
-
name: 'Twitter',
|
|
84
|
+
name: { id: 'app.components.HomePage.community.links.twitter', defaultMessage: 'Twitter' },
|
|
94
85
|
link: 'https://twitter.com/strapijs',
|
|
95
86
|
icon: <StyledTwitter />,
|
|
96
87
|
alt: 'twitter',
|
|
97
88
|
},
|
|
98
89
|
{
|
|
99
|
-
name: 'Forum',
|
|
90
|
+
name: { id: 'app.components.HomePage.community.links.forum', defaultMessage: 'Forum' },
|
|
100
91
|
link: 'https://forum.strapi.io',
|
|
101
92
|
icon: <StyledDiscourse />,
|
|
102
93
|
alt: 'forum',
|
|
103
94
|
},
|
|
104
95
|
{
|
|
105
|
-
name: 'Blog',
|
|
96
|
+
name: { id: 'app.components.HomePage.community.links.blog', defaultMessage: 'Blog' },
|
|
106
97
|
link: 'https://strapi.io/blog?utm_source=referral&utm_medium=admin&utm_campaign=career%20page',
|
|
107
98
|
icon: <StyledStrapi />,
|
|
108
99
|
alt: 'blog',
|
|
109
100
|
},
|
|
110
101
|
{
|
|
111
|
-
name:
|
|
102
|
+
name: {
|
|
103
|
+
id: 'app.components.HomePage.community.links.career',
|
|
104
|
+
defaultMessage: 'We are hiring!',
|
|
105
|
+
},
|
|
112
106
|
link: 'https://strapi.io/careers?utm_source=referral&utm_medium=admin&utm_campaign=blog',
|
|
113
107
|
icon: <StyledStrapi />,
|
|
114
108
|
alt: 'career',
|
|
@@ -137,6 +131,21 @@ const GridGap = styled(Grid)`
|
|
|
137
131
|
|
|
138
132
|
const SocialLinks = () => {
|
|
139
133
|
const { formatMessage } = useIntl();
|
|
134
|
+
const { communityEdition } = useAppInfos();
|
|
135
|
+
|
|
136
|
+
const socialLinksExtended = [
|
|
137
|
+
...socialLinks,
|
|
138
|
+
{
|
|
139
|
+
icon: <StyledStrapi />,
|
|
140
|
+
link: communityEdition
|
|
141
|
+
? 'https://discord.strapi.io'
|
|
142
|
+
: 'https://support.strapi.io/support/home',
|
|
143
|
+
name: {
|
|
144
|
+
id: 'Settings.application.get-help',
|
|
145
|
+
defaultMessage: 'Get help',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
];
|
|
140
149
|
|
|
141
150
|
return (
|
|
142
151
|
<Box
|
|
@@ -176,17 +185,11 @@ const SocialLinks = () => {
|
|
|
176
185
|
</Stack>
|
|
177
186
|
</Box>
|
|
178
187
|
<GridGap>
|
|
179
|
-
{
|
|
188
|
+
{socialLinksExtended.map(({ icon, link, name }) => {
|
|
180
189
|
return (
|
|
181
|
-
<GridItem col={6} s={12} key={
|
|
182
|
-
<LinkCustom
|
|
183
|
-
|
|
184
|
-
startIcon={socialLink.icon}
|
|
185
|
-
variant="tertiary"
|
|
186
|
-
href={socialLink.link}
|
|
187
|
-
isExternal
|
|
188
|
-
>
|
|
189
|
-
{socialLink.name}
|
|
190
|
+
<GridItem col={6} s={12} key={name}>
|
|
191
|
+
<LinkCustom size="L" startIcon={icon} variant="tertiary" href={link} isExternal>
|
|
192
|
+
{formatMessage(name)}
|
|
190
193
|
</LinkCustom>
|
|
191
194
|
</GridItem>
|
|
192
195
|
);
|
|
@@ -9,10 +9,7 @@ import styled from 'styled-components';
|
|
|
9
9
|
import { Helmet } from 'react-helmet';
|
|
10
10
|
import { useHistory } from 'react-router-dom';
|
|
11
11
|
import { LoadingIndicatorPage, useGuidedTour } from '@strapi/helper-plugin';
|
|
12
|
-
import { Layout } from '@strapi/design-system
|
|
13
|
-
import { Main } from '@strapi/design-system/Main';
|
|
14
|
-
import { Box } from '@strapi/design-system/Box';
|
|
15
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
12
|
+
import { Layout, Main, Box, Grid, GridItem } from '@strapi/design-system';
|
|
16
13
|
import cornerOrnamentPath from './assets/corner-ornament.svg';
|
|
17
14
|
import { useModels } from '../../hooks';
|
|
18
15
|
import isGuidedTourCompleted from '../../components/GuidedTour/utils/isGuidedTourCompleted';
|