|
@@ -9,11 +9,10 @@ import type {
|
|
|
import { pagePathUtils } from '@growi/core/dist/utils';
|
|
import { pagePathUtils } from '@growi/core/dist/utils';
|
|
|
import { GlobalCodeMirrorEditorKey } from '@growi/editor';
|
|
import { GlobalCodeMirrorEditorKey } from '@growi/editor';
|
|
|
import { useCodeMirrorEditorIsolated } from '@growi/editor/dist/client/stores/codemirror-editor';
|
|
import { useCodeMirrorEditorIsolated } from '@growi/editor/dist/client/stores/codemirror-editor';
|
|
|
-import { auto } from '@popperjs/core';
|
|
|
|
|
-import { useTranslation } from 'next-i18next';
|
|
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
import Link from 'next/link';
|
|
import Link from 'next/link';
|
|
|
import { useRouter } from 'next/router';
|
|
import { useRouter } from 'next/router';
|
|
|
|
|
+import { useTranslation } from 'next-i18next';
|
|
|
import Sticky from 'react-stickynode';
|
|
import Sticky from 'react-stickynode';
|
|
|
import { DropdownItem, UncontrolledTooltip } from 'reactstrap';
|
|
import { DropdownItem, UncontrolledTooltip } from 'reactstrap';
|
|
|
|
|
|
|
@@ -22,11 +21,6 @@ import { toastSuccess, toastError, toastWarning } from '~/client/util/toastr';
|
|
|
import { GroundGlassBar } from '~/components/Navbar/GroundGlassBar';
|
|
import { GroundGlassBar } from '~/components/Navbar/GroundGlassBar';
|
|
|
import type { OnDuplicatedFunction, OnRenamedFunction, OnDeletedFunction } from '~/interfaces/ui';
|
|
import type { OnDuplicatedFunction, OnRenamedFunction, OnDeletedFunction } from '~/interfaces/ui';
|
|
|
import { useShouldExpandContent } from '~/services/layout/use-should-expand-content';
|
|
import { useShouldExpandContent } from '~/services/layout/use-should-expand-content';
|
|
|
-import {
|
|
|
|
|
- useCurrentPathname,
|
|
|
|
|
- useCurrentUser, useIsGuestUser, useIsReadOnlyUser, useIsLocalAccountRegistrationEnabled, useIsSharedUser, useShareLinkId,
|
|
|
|
|
-} from '~/stores-universal/context';
|
|
|
|
|
-import { useEditorMode } from '~/stores-universal/ui';
|
|
|
|
|
import {
|
|
import {
|
|
|
usePageAccessoriesModal, PageAccessoriesModalContents, type IPageForPageDuplicateModal,
|
|
usePageAccessoriesModal, PageAccessoriesModalContents, type IPageForPageDuplicateModal,
|
|
|
usePageDuplicateModal, usePageRenameModal, usePageDeleteModal, usePagePresentationModal,
|
|
usePageDuplicateModal, usePageRenameModal, usePageDeleteModal, usePagePresentationModal,
|
|
@@ -40,6 +34,11 @@ import {
|
|
|
useIsAbleToChangeEditorMode,
|
|
useIsAbleToChangeEditorMode,
|
|
|
useIsDeviceLargerThanMd,
|
|
useIsDeviceLargerThanMd,
|
|
|
} from '~/stores/ui';
|
|
} from '~/stores/ui';
|
|
|
|
|
+import {
|
|
|
|
|
+ useCurrentPathname,
|
|
|
|
|
+ useCurrentUser, useIsGuestUser, useIsReadOnlyUser, useIsLocalAccountRegistrationEnabled, useIsSharedUser, useShareLinkId,
|
|
|
|
|
+} from '~/stores-universal/context';
|
|
|
|
|
+import { useEditorMode } from '~/stores-universal/ui';
|
|
|
|
|
|
|
|
import { NotAvailable } from '../NotAvailable';
|
|
import { NotAvailable } from '../NotAvailable';
|
|
|
import { Skeleton } from '../Skeleton';
|
|
import { Skeleton } from '../Skeleton';
|