@plone/volto 18.1.2 → 18.2.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/.eslintignore +1 -1
- package/.eslintrc +8 -1
- package/.eslintrc.core.js +42 -0
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/actions/content/content.js +1 -1
- package/src/actions/language/language.js +2 -2
- package/src/actions/search/search.js +7 -1
- package/src/actions/workflow/workflow.js +1 -1
- package/src/components/manage/Actions/Actions.jsx +8 -3
- package/src/components/manage/Add/Add.jsx +26 -26
- package/src/components/manage/Aliases/Aliases.jsx +9 -7
- package/src/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +5 -7
- package/src/components/manage/AnchorPlugin/useLinkEditor.jsx +1 -1
- package/src/components/manage/BlockChooser/BlockChooser.jsx +6 -3
- package/src/components/manage/BlockChooser/BlockChooserButton.jsx +4 -3
- package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +1 -1
- package/src/components/manage/Blocks/Block/BlocksForm.jsx +8 -7
- package/src/components/manage/Blocks/Block/DefaultEdit.jsx +1 -1
- package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
- package/src/components/manage/Blocks/Block/Edit.jsx +7 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +3 -3
- package/src/components/manage/Blocks/Block/Order/Item.jsx +3 -3
- package/src/components/manage/Blocks/Block/Order/Order.jsx +2 -1
- package/src/components/manage/Blocks/Block/Order/utilities.js +2 -2
- package/src/components/manage/Blocks/Block/StyleWrapper.jsx +1 -1
- package/src/components/manage/Blocks/Container/Edit.jsx +3 -3
- package/src/components/manage/Blocks/Container/EditBlockWrapper.jsx +2 -2
- package/src/components/manage/Blocks/Container/NewBlockAddButton.jsx +3 -2
- package/src/components/manage/Blocks/Container/SimpleContainerToolbar.jsx +1 -1
- package/src/components/manage/Blocks/Grid/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Grid/View.jsx +2 -2
- package/src/components/manage/Blocks/Grid/templates.js +1 -1
- package/src/components/manage/Blocks/HTML/Edit.jsx +2 -2
- package/src/components/manage/Blocks/Image/Edit.jsx +4 -6
- package/src/components/manage/Blocks/Image/ImageSidebar.jsx +3 -2
- package/src/components/manage/Blocks/Image/View.jsx +3 -6
- package/src/components/manage/Blocks/LeadImage/Edit.jsx +2 -1
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx +3 -2
- package/src/components/manage/Blocks/LeadImage/View.jsx +1 -1
- package/src/components/manage/Blocks/Listing/DefaultTemplate.jsx +3 -3
- package/src/components/manage/Blocks/Listing/Edit.jsx +5 -7
- package/src/components/manage/Blocks/Listing/ImageGallery.jsx +2 -2
- package/src/components/manage/Blocks/Listing/ListingBody.jsx +2 -2
- package/src/components/manage/Blocks/Listing/SummaryTemplate.jsx +3 -3
- package/src/components/manage/Blocks/Listing/View.jsx +2 -2
- package/src/components/manage/Blocks/Listing/getAsyncData.js +2 -2
- package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +4 -2
- package/src/components/manage/Blocks/Maps/Edit.jsx +4 -2
- package/src/components/manage/Blocks/Maps/MapsSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Maps/View.jsx +1 -1
- package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +3 -3
- package/src/components/manage/Blocks/Search/SearchBlockView.jsx +3 -2
- package/src/components/manage/Blocks/Search/components/DateRangeFacet.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/FilterList.jsx +3 -3
- package/src/components/manage/Blocks/Search/components/SearchInput.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/SortOn.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/base.js +1 -1
- package/src/components/manage/Blocks/Search/hocs/withQueryString.jsx +1 -1
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +2 -2
- package/src/components/manage/Blocks/Search/schema.js +1 -1
- package/src/components/manage/Blocks/Search/widgets/SelectMetadataField.jsx +4 -1
- package/src/components/manage/Blocks/Teaser/Data.jsx +6 -7
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +3 -3
- package/src/components/manage/Blocks/Teaser/Edit.jsx +2 -2
- package/src/components/manage/Blocks/Teaser/View.jsx +1 -1
- package/src/components/manage/Blocks/Teaser/adapter.js +1 -1
- package/src/components/manage/Blocks/ToC/Edit.jsx +1 -1
- package/src/components/manage/Blocks/ToC/View.jsx +2 -2
- package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +3 -3
- package/src/components/manage/Blocks/ToC/variations/HorizontalMenu.jsx +2 -2
- package/src/components/manage/Blocks/Video/Body.jsx +1 -1
- package/src/components/manage/Blocks/Video/Edit.jsx +4 -2
- package/src/components/manage/Blocks/Video/VideoSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Video/View.jsx +1 -1
- package/src/components/manage/ConditionalLink/ConditionalLink.jsx +1 -1
- package/src/components/manage/Contents/Contents.jsx +26 -28
- package/src/components/manage/Contents/ContentsBreadcrumbs.jsx +1 -1
- package/src/components/manage/Contents/ContentsItem.jsx +6 -3
- package/src/components/manage/Contents/ContentsPropertiesModal.jsx +4 -3
- package/src/components/manage/Contents/ContentsRenameModal.jsx +5 -3
- package/src/components/manage/Contents/ContentsTagsModal.jsx +3 -3
- package/src/components/manage/Contents/ContentsUploadModal.jsx +7 -4
- package/src/components/manage/Contents/ContentsWorkflowModal.jsx +10 -3
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +6 -4
- package/src/components/manage/Controlpanels/Aliases.jsx +7 -5
- package/src/components/manage/Controlpanels/ContentType.jsx +12 -4
- package/src/components/manage/Controlpanels/ContentTypeLayout.jsx +11 -7
- package/src/components/manage/Controlpanels/ContentTypeSchema.jsx +7 -4
- package/src/components/manage/Controlpanels/ContentTypes.jsx +7 -5
- package/src/components/manage/Controlpanels/ContentTypesActions.jsx +1 -1
- package/src/components/manage/Controlpanels/Controlpanel.jsx +9 -4
- package/src/components/manage/Controlpanels/Controlpanels.jsx +11 -3
- package/src/components/manage/Controlpanels/DatabaseInformation.jsx +5 -4
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +16 -19
- package/src/components/manage/Controlpanels/Groups/RenderGroups.jsx +2 -2
- package/src/components/manage/Controlpanels/ModerateComments.jsx +7 -3
- package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +4 -4
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +7 -5
- package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +7 -4
- package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +7 -5
- package/src/components/manage/Controlpanels/Rules/AddRule.jsx +9 -3
- package/src/components/manage/Controlpanels/Rules/ConfigureRule.jsx +7 -4
- package/src/components/manage/Controlpanels/Rules/EditRule.jsx +6 -3
- package/src/components/manage/Controlpanels/Rules/Rules.jsx +6 -4
- package/src/components/manage/Controlpanels/Rules/components/VariableModal.jsx +1 -1
- package/src/components/manage/Controlpanels/UndoControlpanel.jsx +9 -4
- package/src/components/manage/Controlpanels/UpgradeControlPanel.jsx +7 -5
- package/src/components/manage/Controlpanels/Users/RenderUsers.jsx +5 -3
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx +9 -6
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipListing.jsx +9 -5
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +4 -3
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +17 -20
- package/src/components/manage/Controlpanels/VersionOverview.jsx +1 -1
- package/src/components/manage/Controlpanels/index.tsx +5 -2
- package/src/components/manage/Delete/Delete.jsx +7 -3
- package/src/components/manage/Diff/Diff.jsx +13 -11
- package/src/components/manage/Diff/DiffField.jsx +4 -3
- package/src/components/manage/Display/Display.jsx +9 -4
- package/src/components/manage/DragDropList/DragDropList.jsx +1 -1
- package/src/components/manage/Edit/Edit.jsx +20 -23
- package/src/components/manage/Form/BlockDataForm.jsx +1 -1
- package/src/components/manage/Form/BlocksToolbar.jsx +10 -5
- package/src/components/manage/Form/Form.jsx +18 -20
- package/src/components/manage/Form/InlineForm.jsx +5 -3
- package/src/components/manage/Form/InlineFormState.js +1 -1
- package/src/components/manage/Form/ModalForm.jsx +4 -3
- package/src/components/manage/Form/UndoToolbar.jsx +2 -2
- package/src/components/manage/History/History.jsx +16 -11
- package/src/components/manage/LinkMore/LinkMore.jsx +3 -3
- package/src/components/manage/LinksToItem/LinksToItem.jsx +11 -11
- package/src/components/manage/LockingToastsFactory/LockingToastsFactory.jsx +2 -1
- package/src/components/manage/Messages/Messages.jsx +2 -2
- package/src/components/manage/Multilingual/CompareLanguages.jsx +3 -2
- package/src/components/manage/Multilingual/CreateTranslation.jsx +5 -6
- package/src/components/manage/Multilingual/ManageTranslations.jsx +9 -6
- package/src/components/manage/Multilingual/TranslationObject.jsx +5 -5
- package/src/components/manage/Pluggable/index.js +1 -1
- package/src/components/manage/Preferences/ChangePassword.jsx +8 -5
- package/src/components/manage/Preferences/PersonalInformation.jsx +4 -3
- package/src/components/manage/Preferences/PersonalPreferences.jsx +5 -4
- package/src/components/manage/Rules/Rules.jsx +6 -5
- package/src/components/manage/Sharing/Sharing.jsx +12 -5
- package/src/components/manage/Sidebar/AlignBlock.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowser.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowserNav.jsx +2 -1
- package/src/components/manage/Sidebar/Sidebar.jsx +4 -3
- package/src/components/manage/Sidebar/SidebarPopup.jsx +1 -1
- package/src/components/manage/TextLineEdit/TextLineEdit.jsx +1 -1
- package/src/components/manage/Toolbar/More.jsx +9 -10
- package/src/components/manage/Toolbar/PersonalTools.jsx +3 -3
- package/src/components/manage/Toolbar/StandardWrapper.jsx +1 -1
- package/src/components/manage/Toolbar/Toolbar.jsx +12 -15
- package/src/components/manage/Toolbar/Types.jsx +7 -2
- package/src/components/manage/Widgets/ArrayWidget.jsx +4 -3
- package/src/components/manage/Widgets/ButtonsWidget.jsx +1 -1
- package/src/components/manage/Widgets/ColorPickerWidget.tsx +2 -1
- package/src/components/manage/Widgets/DatetimeWidget.jsx +2 -2
- package/src/components/manage/Widgets/FileWidget.jsx +4 -2
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +2 -2
- package/src/components/manage/Widgets/IdWidget.jsx +7 -3
- package/src/components/manage/Widgets/ImageWidget.jsx +6 -5
- package/src/components/manage/Widgets/InternalUrlWidget.jsx +6 -2
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +5 -1
- package/src/components/manage/Widgets/ObjectListWidget.jsx +4 -2
- package/src/components/manage/Widgets/ObjectListWidget.stories.js +1 -1
- package/src/components/manage/Widgets/ObjectWidget.stories.jsx +1 -1
- package/src/components/manage/Widgets/QuerySortOnWidget.jsx +3 -1
- package/src/components/manage/Widgets/QueryWidget.jsx +8 -3
- package/src/components/manage/Widgets/RecurrenceWidget/ByDayField.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +7 -3
- package/src/components/manage/Widgets/RecurrenceWidget/SelectInput.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.jsx +1 -1
- package/src/components/manage/Widgets/ReferenceWidget.jsx +11 -3
- package/src/components/manage/Widgets/RegistryImageWidget.jsx +3 -2
- package/src/components/manage/Widgets/SchemaWidget.jsx +7 -1
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +5 -2
- package/src/components/manage/Widgets/SelectStyling.jsx +1 -1
- package/src/components/manage/Widgets/SelectUtils.js +4 -2
- package/src/components/manage/Widgets/SelectWidget.jsx +6 -3
- package/src/components/manage/Widgets/SelectWidget.stories.jsx +1 -1
- package/src/components/manage/Widgets/TextWidget.jsx +1 -1
- package/src/components/manage/Widgets/TokenWidget.jsx +2 -2
- package/src/components/manage/Widgets/UrlWidget.jsx +2 -2
- package/src/components/manage/Widgets/VocabularyTermsWidget.jsx +6 -3
- package/src/components/manage/Workflow/Workflow.jsx +7 -6
- package/src/components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory.jsx +3 -3
- package/src/components/theme/Anontools/Anontools.jsx +1 -1
- package/src/components/theme/App/App.jsx +17 -24
- package/src/components/theme/Avatar/Avatar.jsx +1 -1
- package/src/components/theme/Breadcrumbs/Breadcrumbs.jsx +4 -3
- package/src/components/theme/Comments/CommentEditModal.jsx +2 -2
- package/src/components/theme/Comments/Comments.jsx +5 -8
- package/src/components/theme/ContactForm/ContactForm.jsx +7 -4
- package/src/components/theme/ContentMetadataTags/ContentMetadataTags.jsx +4 -7
- package/src/components/theme/EventDetails/EventDetails.jsx +2 -2
- package/src/components/theme/Footer/Footer.jsx +3 -3
- package/src/components/theme/Header/Header.jsx +5 -7
- package/src/components/theme/Icon/Icon.stories.jsx +1 -1
- package/src/components/theme/Image/Image.jsx +1 -1
- package/src/components/theme/LanguageSelector/LanguageSelector.jsx +6 -7
- package/src/components/theme/Login/Login.jsx +6 -5
- package/src/components/theme/Logo/Logo.jsx +3 -6
- package/src/components/theme/Logout/Logout.jsx +3 -2
- package/src/components/theme/MultilingualRedirector/MultilingualRedirector.jsx +2 -2
- package/src/components/theme/Navigation/ContextNavigation.jsx +3 -2
- package/src/components/theme/Navigation/NavItem.jsx +2 -1
- package/src/components/theme/Navigation/Navigation.jsx +4 -2
- package/src/components/theme/Navigation/withContentNavigation.js +2 -2
- package/src/components/theme/NotFound/NotFound.jsx +6 -3
- package/src/components/theme/Pagination/Pagination.jsx +2 -2
- package/src/components/theme/PasswordReset/PasswordReset.jsx +2 -2
- package/src/components/theme/PasswordReset/RequestPasswordReset.jsx +3 -2
- package/src/components/theme/Register/Register.jsx +4 -3
- package/src/components/theme/Search/Search.jsx +7 -5
- package/src/components/theme/Search/SearchTags.jsx +1 -1
- package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -3
- package/src/components/theme/Sitemap/Sitemap.jsx +4 -3
- package/src/components/theme/Unauthorized/Unauthorized.jsx +1 -1
- package/src/components/theme/View/AlbumView.jsx +2 -1
- package/src/components/theme/View/DefaultView.jsx +4 -3
- package/src/components/theme/View/EventDatesInfo.jsx +1 -1
- package/src/components/theme/View/EventView.jsx +3 -2
- package/src/components/theme/View/FileView.jsx +1 -1
- package/src/components/theme/View/ImageView.jsx +1 -1
- package/src/components/theme/View/LinkView.jsx +2 -2
- package/src/components/theme/View/ListingView.jsx +1 -1
- package/src/components/theme/View/NewsItemView.jsx +2 -1
- package/src/components/theme/View/RenderBlocks.jsx +6 -5
- package/src/components/theme/View/SummaryView.jsx +1 -1
- package/src/components/theme/View/TabularView.jsx +1 -1
- package/src/components/theme/View/View.jsx +9 -13
- package/src/components/theme/Widgets/BooleanWidget.jsx +1 -1
- package/src/components/theme/Widgets/DateWidget.jsx +1 -1
- package/src/components/theme/Widgets/DatetimeWidget.jsx +1 -1
- package/src/components/theme/Widgets/EmailWidget.jsx +1 -1
- package/src/components/theme/Widgets/FileWidget.jsx +2 -2
- package/src/components/theme/Widgets/ImageWidget.jsx +1 -1
- package/src/components/theme/Widgets/RelationWidget.jsx +4 -4
- package/src/components/theme/Widgets/TokenWidget.jsx +1 -1
- package/src/components/theme/Widgets/UrlWidget.jsx +1 -1
- package/src/config/Blocks.jsx +1 -1
- package/src/config/Components.jsx +3 -1
- package/src/config/index.js +1 -1
- package/src/config/slots.js +1 -1
- package/src/express-middleware/files.js +1 -1
- package/src/express-middleware/images.js +1 -1
- package/src/express-middleware/robotstxt.js +1 -1
- package/src/helpers/Api/Api.js +1 -1
- package/src/helpers/AsyncConnect/AsyncConnect.test.js +4 -1
- package/src/helpers/AuthToken/AuthToken.js +2 -2
- package/src/helpers/Blocks/Blocks.js +9 -3
- package/src/helpers/Blocks/cloneBlocks.test.js +1 -1
- package/src/helpers/Content/Content.js +7 -1
- package/src/helpers/Extensions/withBlockSchemaEnhancer.jsx +2 -1
- package/src/helpers/FormValidation/FormValidation.jsx +4 -1
- package/src/helpers/Html/Html.jsx +1 -1
- package/src/helpers/Loadable/Loadable.jsx +2 -2
- package/src/helpers/Site/index.js +1 -1
- package/src/helpers/Sitemap/Sitemap.js +2 -2
- package/src/helpers/Url/Url.js +5 -1
- package/src/helpers/User/User.js +1 -1
- package/src/helpers/Utils/UseDetectClickOutside.stories.jsx +1 -1
- package/src/helpers/Utils/Utils.jsx +5 -1
- package/src/helpers/Utils/useDetectClickOutside.js +1 -1
- package/src/helpers/Utils/usePagination.js +2 -1
- package/src/helpers/Workflows/Workflows.js +2 -1
- package/src/hooks/user/useUser.js +1 -1
- package/src/middleware/api.js +7 -4
- package/src/middleware/storeProtectLoadUtils.js +1 -1
- package/src/reducers/actions/actions.js +2 -5
- package/src/reducers/breadcrumbs/breadcrumbs.js +3 -6
- package/src/reducers/content/content.js +4 -2
- package/src/reducers/controlpanels/controlpanels.js +1 -1
- package/src/reducers/messages/messages.js +3 -1
- package/src/reducers/navigation/navigation.js +3 -6
- package/src/reducers/navroot/navroot.js +2 -5
- package/src/reducers/querystringsearch/querystringsearch.js +3 -2
- package/src/reducers/schema/schema.js +7 -1
- package/src/reducers/search/search.js +3 -2
- package/src/reducers/sidebar/sidebar.js +1 -1
- package/src/reducers/types/types.js +2 -5
- package/src/reducers/users/users.js +1 -1
- package/src/reducers/workingcopy/workingcopy.js +1 -1
- package/src/routes.js +24 -26
- package/src/server.jsx +7 -7
- package/src/start-client.jsx +3 -1
- package/src/storybook.jsx +1 -1
- package/types/config/Components.d.ts +3 -3
|
@@ -4,9 +4,9 @@ import { toast } from 'react-toastify';
|
|
|
4
4
|
import { useSelector } from 'react-redux';
|
|
5
5
|
import { useLocation } from 'react-router-dom';
|
|
6
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
7
|
-
import
|
|
8
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
9
|
-
import
|
|
7
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
8
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
9
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
10
10
|
import config from '@plone/volto/registry';
|
|
11
11
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import { Link } from 'react-router-dom';
|
|
3
3
|
import { Menu } from 'semantic-ui-react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
5
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
6
6
|
import config from '@plone/volto/registry';
|
|
7
7
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
8
8
|
|
|
@@ -8,7 +8,8 @@ import jwtDecode from 'jwt-decode';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
import { compose } from 'redux';
|
|
11
|
-
import { asyncConnect
|
|
11
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
12
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
12
13
|
import { Segment } from 'semantic-ui-react';
|
|
13
14
|
import { renderRoutes } from 'react-router-config';
|
|
14
15
|
import { Slide, ToastContainer, toast } from 'react-toastify';
|
|
@@ -23,29 +24,21 @@ import { injectIntl } from 'react-intl';
|
|
|
23
24
|
|
|
24
25
|
import Error from '@plone/volto/error';
|
|
25
26
|
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from '@plone/volto/
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} from '@plone/volto/helpers';
|
|
42
|
-
import {
|
|
43
|
-
getBreadcrumbs,
|
|
44
|
-
getContent,
|
|
45
|
-
getNavigation,
|
|
46
|
-
getTypes,
|
|
47
|
-
getWorkflow,
|
|
48
|
-
} from '@plone/volto/actions';
|
|
27
|
+
import Breadcrumbs from '@plone/volto/components/theme/Breadcrumbs/Breadcrumbs';
|
|
28
|
+
import Footer from '@plone/volto/components/theme/Footer/Footer';
|
|
29
|
+
import Header from '@plone/volto/components/theme/Header/Header';
|
|
30
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
31
|
+
import OutdatedBrowser from '@plone/volto/components/theme/OutdatedBrowser/OutdatedBrowser';
|
|
32
|
+
import AppExtras from '@plone/volto/components/theme/AppExtras/AppExtras';
|
|
33
|
+
import SkipLinks from '@plone/volto/components/theme/SkipLinks/SkipLinks';
|
|
34
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
35
|
+
import { getBaseUrl, getView, isCmsUi } from '@plone/volto/helpers/Url/Url';
|
|
36
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
37
|
+
import { getBreadcrumbs } from '@plone/volto/actions/breadcrumbs/breadcrumbs';
|
|
38
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
39
|
+
import { getNavigation } from '@plone/volto/actions/navigation/navigation';
|
|
40
|
+
import { getTypes } from '@plone/volto/actions/types/types';
|
|
41
|
+
import { getWorkflow } from '@plone/volto/actions/workflow/workflow';
|
|
49
42
|
|
|
50
43
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
51
44
|
import MultilingualRedirector from '@plone/volto/components/theme/MultilingualRedirector/MultilingualRedirector';
|
|
@@ -5,9 +5,10 @@ import { Breadcrumb, Container, Segment } from 'semantic-ui-react';
|
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
7
7
|
|
|
8
|
-
import { getBreadcrumbs } from '@plone/volto/actions';
|
|
9
|
-
import { getBaseUrl
|
|
10
|
-
import {
|
|
8
|
+
import { getBreadcrumbs } from '@plone/volto/actions/breadcrumbs/breadcrumbs';
|
|
9
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
10
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
11
12
|
import homeSVG from '@plone/volto/icons/home.svg';
|
|
12
13
|
|
|
13
14
|
const messages = defineMessages({
|
|
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
|
|
6
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
7
|
-
import { updateComment } from '@plone/volto/actions';
|
|
6
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
7
|
+
import { updateComment } from '@plone/volto/actions/comments/comments';
|
|
8
8
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
9
9
|
|
|
10
10
|
const messages = defineMessages({
|
|
@@ -12,16 +12,13 @@ import {
|
|
|
12
12
|
deleteComment,
|
|
13
13
|
listComments,
|
|
14
14
|
listMoreComments,
|
|
15
|
-
} from '@plone/volto/actions';
|
|
16
|
-
import
|
|
15
|
+
} from '@plone/volto/actions/comments/comments';
|
|
16
|
+
import Avatar from '@plone/volto/components/theme/Avatar/Avatar';
|
|
17
17
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
18
18
|
import { CommentEditModal } from '@plone/volto/components/theme/Comments';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
getColor,
|
|
23
|
-
usePrevious,
|
|
24
|
-
} from '@plone/volto/helpers';
|
|
19
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
20
|
+
import { getColor } from '@plone/volto/helpers/Utils/Utils';
|
|
21
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
25
22
|
|
|
26
23
|
const messages = defineMessages({
|
|
27
24
|
comment: {
|
|
@@ -5,12 +5,15 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
5
5
|
import { Link, useHistory, useLocation } from 'react-router-dom';
|
|
6
6
|
import { toast } from 'react-toastify';
|
|
7
7
|
|
|
8
|
-
import { emailNotification } from '@plone/volto/actions';
|
|
8
|
+
import { emailNotification } from '@plone/volto/actions/emailNotification/emailNotification';
|
|
9
9
|
import { useDispatch, useSelector } from 'react-redux';
|
|
10
|
-
import
|
|
10
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
11
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
11
12
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
12
|
-
import { getBaseUrl
|
|
13
|
-
import
|
|
13
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
14
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
15
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
16
|
+
import { useClient } from '@plone/volto/hooks/client/useClient';
|
|
14
17
|
|
|
15
18
|
const messages = defineMessages({
|
|
16
19
|
send: {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getBaseUrl,
|
|
7
|
-
} from '@plone/volto/helpers';
|
|
8
|
-
import { getNavroot } from '@plone/volto/actions';
|
|
2
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
3
|
+
import { toPublicURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
4
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
5
|
+
import { getNavroot } from '@plone/volto/actions/navroot/navroot';
|
|
9
6
|
import config from '@plone/volto/registry';
|
|
10
7
|
import { useDispatch, useSelector } from 'react-redux';
|
|
11
8
|
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
When,
|
|
6
6
|
Recurrence,
|
|
7
7
|
} from '@plone/volto/components/theme/View/EventDatesInfo';
|
|
8
|
-
import
|
|
9
|
-
import { expandToBackendURL } from '@plone/volto/helpers';
|
|
8
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
9
|
+
import { expandToBackendURL } from '@plone/volto/helpers/Url/Url';
|
|
10
10
|
|
|
11
11
|
import calendarSVG from '@plone/volto/icons/calendar.svg';
|
|
12
12
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { Container, List, Segment } from 'semantic-ui-react';
|
|
8
|
-
import
|
|
8
|
+
import map from 'lodash/map';
|
|
9
9
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
10
10
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
11
|
-
import
|
|
12
|
-
import { flattenToAppURL, addAppURL } from '@plone/volto/helpers';
|
|
11
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
12
|
+
import { flattenToAppURL, addAppURL } from '@plone/volto/helpers/Url/Url';
|
|
13
13
|
|
|
14
14
|
const messages = defineMessages({
|
|
15
15
|
copyright: {
|
|
@@ -2,13 +2,11 @@ import { Container, Segment } from 'semantic-ui-react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
SearchWidget,
|
|
11
|
-
} from '@plone/volto/components';
|
|
5
|
+
import Anontools from '@plone/volto/components/theme/Anontools/Anontools';
|
|
6
|
+
import LanguageSelector from '@plone/volto/components/theme/LanguageSelector/LanguageSelector';
|
|
7
|
+
import Logo from '@plone/volto/components/theme/Logo/Logo';
|
|
8
|
+
import Navigation from '@plone/volto/components/theme/Navigation/Navigation';
|
|
9
|
+
import SearchWidget from '@plone/volto/components/theme/SearchWidget/SearchWidget';
|
|
12
10
|
|
|
13
11
|
const Header = ({ pathname }) => {
|
|
14
12
|
const token = useSelector((state) => state.userSession.token, shallowEqual);
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
// You can load icons from Volto using the `Icon` component:
|
|
34
34
|
|
|
35
35
|
// ```jsx static
|
|
36
|
-
// import
|
|
36
|
+
// import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
37
37
|
// import addIcon from '@plone/volto/icons/add.svg';
|
|
38
38
|
|
|
39
39
|
// const IconTest = () => <Icon name={addIcon} size="18px" />;
|
|
@@ -9,14 +9,13 @@ import { Link } from 'react-router-dom';
|
|
|
9
9
|
|
|
10
10
|
import { useSelector } from 'react-redux';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import
|
|
12
|
+
import find from 'lodash/find';
|
|
13
|
+
import map from 'lodash/map';
|
|
13
14
|
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
toReactIntlLang,
|
|
19
|
-
} from '@plone/volto/helpers';
|
|
15
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
16
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
17
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
18
|
+
import { toReactIntlLang } from '@plone/volto/helpers/Utils/Utils';
|
|
20
19
|
|
|
21
20
|
import config from '@plone/volto/registry';
|
|
22
21
|
|
|
@@ -12,17 +12,18 @@ import {
|
|
|
12
12
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
13
13
|
import qs from 'query-string';
|
|
14
14
|
|
|
15
|
-
import
|
|
15
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
16
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
16
17
|
import config from '@plone/volto/registry';
|
|
17
|
-
import
|
|
18
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
18
19
|
import {
|
|
19
20
|
login,
|
|
20
21
|
logout,
|
|
21
22
|
resetLoginRequest,
|
|
22
|
-
|
|
23
|
-
} from '@plone/volto/actions';
|
|
23
|
+
} from '@plone/volto/actions/userSession/userSession';
|
|
24
|
+
import { purgeMessages } from '@plone/volto/actions/messages/messages';
|
|
24
25
|
import { toast } from 'react-toastify';
|
|
25
|
-
import
|
|
26
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
26
27
|
import aheadSVG from '@plone/volto/icons/ahead.svg';
|
|
27
28
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
28
29
|
|
|
@@ -8,12 +8,9 @@ import { Image } from 'semantic-ui-react';
|
|
|
8
8
|
import LogoImage from '@plone/volto/components/theme/Logo/Logo.svg';
|
|
9
9
|
import { useSelector, useDispatch } from 'react-redux';
|
|
10
10
|
import { Link, useLocation } from 'react-router-dom';
|
|
11
|
-
import { getNavroot } from '@plone/volto/actions';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
hasApiExpander,
|
|
15
|
-
getBaseUrl,
|
|
16
|
-
} from '@plone/volto/helpers';
|
|
11
|
+
import { getNavroot } from '@plone/volto/actions/navroot/navroot';
|
|
12
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
13
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
17
14
|
|
|
18
15
|
/**
|
|
19
16
|
* Logo component class.
|
|
@@ -3,8 +3,9 @@ import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
import qs from 'query-string';
|
|
6
|
-
import
|
|
7
|
-
import { logout
|
|
6
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
7
|
+
import { logout } from '@plone/volto/actions/userSession/userSession';
|
|
8
|
+
import { purgeMessages } from '@plone/volto/actions/messages/messages';
|
|
8
9
|
import { toast } from 'react-toastify';
|
|
9
10
|
|
|
10
11
|
const messages = defineMessages({
|
|
@@ -3,8 +3,8 @@ import { Redirect } from 'react-router-dom';
|
|
|
3
3
|
import { useDispatch } from 'react-redux';
|
|
4
4
|
import { useCookies } from 'react-cookie';
|
|
5
5
|
import config from '@plone/volto/registry';
|
|
6
|
-
import { changeLanguage } from '@plone/volto/actions';
|
|
7
|
-
import { toGettextLang } from '@plone/volto/helpers';
|
|
6
|
+
import { changeLanguage } from '@plone/volto/actions/language/language';
|
|
7
|
+
import { toGettextLang } from '@plone/volto/helpers/Utils/Utils';
|
|
8
8
|
|
|
9
9
|
const MultilingualRedirector = (props) => {
|
|
10
10
|
const { settings } = config;
|
|
@@ -7,8 +7,9 @@ import { compose } from 'redux';
|
|
|
7
7
|
import { withRouter } from 'react-router';
|
|
8
8
|
import { defineMessages, useIntl } from 'react-intl';
|
|
9
9
|
|
|
10
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
11
|
-
import
|
|
10
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
12
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
12
13
|
import { withContentNavigation } from './withContentNavigation';
|
|
13
14
|
|
|
14
15
|
import leftIcon from '@plone/volto/icons/left-key.svg';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavLink } from 'react-router-dom';
|
|
3
|
-
import { isInternalURL
|
|
3
|
+
import { isInternalURL } from '@plone/volto/helpers/Url/Url';
|
|
4
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
4
5
|
import config from '@plone/volto/registry';
|
|
5
6
|
|
|
6
7
|
const NavItem = ({ item, lang }) => {
|
|
@@ -5,9 +5,11 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
5
5
|
import { Menu } from 'semantic-ui-react';
|
|
6
6
|
|
|
7
7
|
import cx from 'classnames';
|
|
8
|
-
import
|
|
8
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
9
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
10
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
9
11
|
import config from '@plone/volto/registry';
|
|
10
|
-
import { getNavigation } from '@plone/volto/actions';
|
|
12
|
+
import { getNavigation } from '@plone/volto/actions/navigation/navigation';
|
|
11
13
|
import { CSSTransition } from 'react-transition-group';
|
|
12
14
|
import NavItems from '@plone/volto/components/theme/Navigation/NavItems';
|
|
13
15
|
|
|
@@ -3,8 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
5
5
|
|
|
6
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
7
|
-
import { getContextNavigation } from '@plone/volto/actions';
|
|
6
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
7
|
+
import { getContextNavigation } from '@plone/volto/actions/contextNavigation/contextNavigation';
|
|
8
8
|
|
|
9
9
|
export function withContentNavigation(WrappedComponent) {
|
|
10
10
|
/**
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
5
|
import { Container } from 'semantic-ui-react';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
toBackendLang,
|
|
8
|
+
withServerErrorCode,
|
|
9
|
+
} from '@plone/volto/helpers/Utils/Utils';
|
|
7
10
|
import { useDispatch, useSelector } from 'react-redux';
|
|
8
|
-
import { getNavigation } from '@plone/volto/actions';
|
|
11
|
+
import { getNavigation } from '@plone/volto/actions/navigation/navigation';
|
|
9
12
|
import config from '@plone/volto/registry';
|
|
10
13
|
|
|
11
14
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { Menu } from 'semantic-ui-react';
|
|
8
|
-
import
|
|
8
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import
|
|
10
|
+
import map from 'lodash/map';
|
|
11
11
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
12
12
|
import leftChevron from '@plone/volto/icons/left-key.svg';
|
|
13
13
|
import rightChevron from '@plone/volto/icons/right-key.svg';
|
|
@@ -8,12 +8,12 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { Link, withRouter } from 'react-router-dom';
|
|
11
|
-
import
|
|
11
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
12
12
|
import { Container } from 'semantic-ui-react';
|
|
13
13
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
14
14
|
|
|
15
15
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
16
|
-
import { setInitialPassword } from '@plone/volto/actions';
|
|
16
|
+
import { setInitialPassword } from '@plone/volto/actions/users/users';
|
|
17
17
|
import config from '@plone/volto/registry';
|
|
18
18
|
|
|
19
19
|
const messages = defineMessages({
|
|
@@ -4,9 +4,10 @@ import { useHistory } from 'react-router-dom';
|
|
|
4
4
|
import { Container } from 'semantic-ui-react';
|
|
5
5
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
8
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
8
9
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
9
|
-
import { resetPassword } from '@plone/volto/actions';
|
|
10
|
+
import { resetPassword } from '@plone/volto/actions/users/users';
|
|
10
11
|
import config from '@plone/volto/registry';
|
|
11
12
|
|
|
12
13
|
const messages = defineMessages({
|
|
@@ -4,10 +4,11 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
5
|
import { toast } from 'react-toastify';
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
8
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
9
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
9
10
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
10
|
-
import { createUser } from '@plone/volto/actions';
|
|
11
|
+
import { createUser } from '@plone/volto/actions/users/users';
|
|
11
12
|
|
|
12
13
|
const messages = defineMessages({
|
|
13
14
|
title: {
|
|
@@ -7,8 +7,8 @@ import React, { Component } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
|
-
import
|
|
11
|
-
import { asyncConnect } from '@plone/volto/helpers';
|
|
10
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
11
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
12
12
|
import { FormattedMessage } from 'react-intl';
|
|
13
13
|
import { createPortal } from 'react-dom';
|
|
14
14
|
import { Container, Pagination, Button, Header } from 'semantic-ui-react';
|
|
@@ -16,9 +16,11 @@ import qs from 'query-string';
|
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
18
18
|
import config from '@plone/volto/registry';
|
|
19
|
-
import
|
|
20
|
-
import { searchContent } from '@plone/volto/actions';
|
|
21
|
-
import
|
|
19
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
20
|
+
import { searchContent } from '@plone/volto/actions/search/search';
|
|
21
|
+
import SearchTags from '@plone/volto/components/theme/Search/SearchTags';
|
|
22
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
23
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
22
24
|
|
|
23
25
|
import paginationLeftSVG from '@plone/volto/icons/left-key.svg';
|
|
24
26
|
import paginationRightSVG from '@plone/volto/icons/right-key.svg';
|
|
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
|
|
5
|
-
import { getVocabulary } from '@plone/volto/actions';
|
|
5
|
+
import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
|
|
6
6
|
|
|
7
7
|
const vocabulary = 'plone.app.vocabularies.Keywords';
|
|
8
8
|
|
|
@@ -4,9 +4,10 @@ import { Form, Input } from 'semantic-ui-react';
|
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
import { useDispatch, useSelector } from 'react-redux';
|
|
6
6
|
|
|
7
|
-
import { getNavroot } from '@plone/volto/actions';
|
|
8
|
-
import { hasApiExpander
|
|
9
|
-
import {
|
|
7
|
+
import { getNavroot } from '@plone/volto/actions/navroot/navroot';
|
|
8
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
9
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
10
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
11
|
import zoomSVG from '@plone/volto/icons/zoom.svg';
|
|
11
12
|
|
|
12
13
|
const messages = defineMessages({
|
|
@@ -2,14 +2,15 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { compose } from 'redux';
|
|
4
4
|
import { connect } from 'react-redux';
|
|
5
|
-
import { asyncConnect } from '@plone/volto/helpers';
|
|
5
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
6
6
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
7
7
|
import { Container as SemanticContainer } from 'semantic-ui-react';
|
|
8
|
-
import
|
|
8
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
9
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
9
10
|
import { Link } from 'react-router-dom';
|
|
10
11
|
import config from '@plone/volto/registry';
|
|
11
12
|
|
|
12
|
-
import { getNavigation } from '@plone/volto/actions';
|
|
13
|
+
import { getNavigation } from '@plone/volto/actions/navigation/navigation';
|
|
13
14
|
|
|
14
15
|
const messages = defineMessages({
|
|
15
16
|
Sitemap: {
|
|
@@ -4,7 +4,7 @@ import { Container } from 'semantic-ui-react';
|
|
|
4
4
|
import { useSelector } from 'react-redux';
|
|
5
5
|
import { useLocation } from 'react-router-dom';
|
|
6
6
|
import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';
|
|
7
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
7
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
8
8
|
|
|
9
9
|
const Unauthorized = () => {
|
|
10
10
|
const error_message = useSelector((state) => state.apierror?.message);
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
Segment,
|
|
7
7
|
} from 'semantic-ui-react';
|
|
8
8
|
import { Button, Modal, Grid } from 'semantic-ui-react';
|
|
9
|
-
import
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
10
11
|
import config from '@plone/volto/registry';
|
|
11
12
|
|
|
12
13
|
import openSVG from '@plone/volto/icons/open.svg';
|
|
@@ -13,14 +13,15 @@ import {
|
|
|
13
13
|
Label,
|
|
14
14
|
} from 'semantic-ui-react';
|
|
15
15
|
import config from '@plone/volto/registry';
|
|
16
|
-
import { getSchema } from '@plone/volto/actions';
|
|
16
|
+
import { getSchema } from '@plone/volto/actions/schema/schema';
|
|
17
17
|
import { getWidget } from '@plone/volto/helpers/Widget/utils';
|
|
18
18
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
19
19
|
|
|
20
|
-
import { hasBlocksData
|
|
20
|
+
import { hasBlocksData } from '@plone/volto/helpers/Blocks/Blocks';
|
|
21
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
21
22
|
import { useDispatch, useSelector } from 'react-redux';
|
|
22
23
|
|
|
23
|
-
import
|
|
24
|
+
import isEqual from 'lodash/isEqual';
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Component to display the default view.
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { List } from 'semantic-ui-react';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
|
|
6
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
6
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
7
7
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
8
8
|
import { useSelector } from 'react-redux';
|
|
9
9
|
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { hasBlocksData
|
|
8
|
+
import { hasBlocksData } from '@plone/volto/helpers/Blocks/Blocks';
|
|
9
|
+
import { flattenHTMLToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
9
10
|
import { Grid } from 'semantic-ui-react';
|
|
10
11
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
11
|
-
import
|
|
12
|
+
import EventDetails from '@plone/volto/components/theme/EventDetails/EventDetails';
|
|
12
13
|
import { Container as SemanticContainer } from 'semantic-ui-react';
|
|
13
14
|
import config from '@plone/volto/registry';
|
|
14
15
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Container as SemanticContainer } from 'semantic-ui-react';
|
|
9
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
9
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
10
10
|
import config from '@plone/volto/registry';
|
|
11
11
|
|
|
12
12
|
/**
|