mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Move frontmatter types (#1664)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
8a23aa1401
commit
b68a55aa94
22 changed files with 157 additions and 144 deletions
|
@ -14,11 +14,11 @@ import { EditorViewMode } from './editor-view-mode'
|
|||
import { HelpButton } from './help-button/help-button'
|
||||
import { NavbarBranding } from './navbar-branding'
|
||||
import { SyncScrollButtons } from './sync-scroll-buttons/sync-scroll-buttons'
|
||||
import { NoteType } from '../../common/note-frontmatter/types'
|
||||
import { SlideModeButton } from './slide-mode-button'
|
||||
import { ReadOnlyModeButton } from './read-only-mode-button'
|
||||
import { NewNoteButton } from './new-note-button'
|
||||
import { useApplicationState } from '../../../hooks/common/use-application-state'
|
||||
import { NoteType } from '../../../redux/note-details/types/note-details'
|
||||
|
||||
export enum AppBarMode {
|
||||
BASIC,
|
||||
|
|
|
@ -14,8 +14,8 @@ import type { ModalVisibilityProps } from '../../../common/modals/common-modal'
|
|||
import { CommonModal } from '../../../common/modals/common-modal'
|
||||
import { ShowIf } from '../../../common/show-if/show-if'
|
||||
import type { EditorPagePathParams } from '../../editor-page'
|
||||
import { NoteType } from '../../../common/note-frontmatter/types'
|
||||
import { useApplicationState } from '../../../../hooks/common/use-application-state'
|
||||
import { NoteType } from '../../../../redux/note-details/types/note-details'
|
||||
|
||||
export const ShareModal: React.FC<ModalVisibilityProps> = ({ show, onHide }) => {
|
||||
useTranslation()
|
||||
|
@ -37,7 +37,7 @@ export const ShareModal: React.FC<ModalVisibilityProps> = ({ show, onHide }) =>
|
|||
<Trans i18nKey={'editor.modal.shareLink.slidesDescription'} />
|
||||
<CopyableField content={`${baseUrl}p/${id}`} nativeShareButton={true} url={`${baseUrl}p/${id}`} />
|
||||
</ShowIf>
|
||||
<ShowIf condition={noteFrontmatter.type === ''}>
|
||||
<ShowIf condition={noteFrontmatter.type === NoteType.DOCUMENT}>
|
||||
<Trans i18nKey={'editor.modal.shareLink.viewOnlyDescription'} />
|
||||
<CopyableField content={`${baseUrl}s/${id}`} nativeShareButton={true} url={`${baseUrl}s/${id}`} />
|
||||
</ShowIf>
|
||||
|
|
|
@ -29,7 +29,7 @@ import { useApplicationState } from '../../hooks/common/use-application-state'
|
|||
import { EditorDocumentRenderer } from './editor-document-renderer/editor-document-renderer'
|
||||
import { EditorToRendererCommunicatorContextProvider } from './render-context/editor-to-renderer-communicator-context-provider'
|
||||
import { Logger } from '../../utils/logger'
|
||||
import { NoteType } from '../common/note-frontmatter/types'
|
||||
import { NoteType } from '../../redux/note-details/types/note-details'
|
||||
|
||||
export interface EditorPagePathParams {
|
||||
id: string
|
||||
|
|
|
@ -8,8 +8,8 @@ import { useSendToRenderer } from '../../../render-page/window-post-message-comm
|
|||
import { useMemo, useRef } from 'react'
|
||||
import { CommunicationMessageType } from '../../../render-page/window-post-message-communicator/rendering-message'
|
||||
import { useApplicationState } from '../../../../hooks/common/use-application-state'
|
||||
import type { RendererFrontmatterInfo } from '../../../common/note-frontmatter/types'
|
||||
import equal from 'fast-deep-equal'
|
||||
import type { RendererFrontmatterInfo } from '../../../../redux/note-details/types/note-details'
|
||||
|
||||
/**
|
||||
* Extracts the {@link RendererFrontmatterInfo frontmatter data}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue