|
|
@@ -8,28 +8,30 @@ import {
|
|
|
UncontrolledButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, Modal, ModalHeader, ModalBody, ModalFooter,
|
|
|
} from 'reactstrap';
|
|
|
|
|
|
-import { ISelectableAll, ISelectableAndIndeterminatable } from '~/client/interfaces/selectable-all';
|
|
|
+import type { ISelectableAll, ISelectableAndIndeterminatable } from '~/client/interfaces/selectable-all';
|
|
|
import { apiv3Post } from '~/client/util/apiv3-client';
|
|
|
import { toastSuccess, toastError } from '~/client/util/toastr';
|
|
|
import { V5ConversionErrCode } from '~/interfaces/errors/v5-conversion-error';
|
|
|
-import { V5MigrationStatus } from '~/interfaces/page-listing-results';
|
|
|
-import { IFormattedSearchResult } from '~/interfaces/search';
|
|
|
-import { PageMigrationErrorData, SocketEventName } from '~/interfaces/websocket';
|
|
|
+import type { V5MigrationStatus } from '~/interfaces/page-listing-results';
|
|
|
+import type { IFormattedSearchResult } from '~/interfaces/search';
|
|
|
+import type { PageMigrationErrorData } from '~/interfaces/websocket';
|
|
|
+import { SocketEventName } from '~/interfaces/websocket';
|
|
|
import { useIsAdmin } from '~/stores/context';
|
|
|
-import {
|
|
|
- ILegacyPrivatePage, usePrivateLegacyPagesMigrationModal,
|
|
|
-} from '~/stores/modal';
|
|
|
+import type { ILegacyPrivatePage } from '~/stores/modal';
|
|
|
+import { usePrivateLegacyPagesMigrationModal } from '~/stores/modal';
|
|
|
import { mutatePageTree, useSWRxV5MigrationStatus } from '~/stores/page-listing';
|
|
|
import {
|
|
|
useSWRxSearch,
|
|
|
} from '~/stores/search';
|
|
|
|
|
|
import { MenuItemType } from './Common/Dropdown/PageItemControl';
|
|
|
+import { LoadingSpinner } from './LoadingSpinner';
|
|
|
import PaginationWrapper from './PaginationWrapper';
|
|
|
import { PrivateLegacyPagesMigrationModal } from './PrivateLegacyPagesMigrationModal';
|
|
|
import { OperateAllControl } from './SearchPage/OperateAllControl';
|
|
|
import SearchControl from './SearchPage/SearchControl';
|
|
|
-import { IReturnSelectedPageIds, SearchPageBase, usePageDeleteModalForBulkDeletion } from './SearchPage/SearchPageBase';
|
|
|
+import type { IReturnSelectedPageIds } from './SearchPage/SearchPageBase';
|
|
|
+import { SearchPageBase, usePageDeleteModalForBulkDeletion } from './SearchPage/SearchPageBase';
|
|
|
|
|
|
|
|
|
// TODO: replace with "customize:showPageLimitationS"
|
|
|
@@ -61,7 +63,7 @@ const SearchResultListHead = React.memo((props: SearchResultListHeadProps): JSX.
|
|
|
if (migrationStatus == null) {
|
|
|
return (
|
|
|
<div className="mw-0 flex-grow-1 flex-basis-0 m-5 text-muted text-center">
|
|
|
- <i className="fa fa-2x fa-spinner fa-pulse me-1"></i>
|
|
|
+ <LoadingSpinner className="me-1 fs-3" />
|
|
|
</div>
|
|
|
);
|
|
|
}
|