mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 16:20:57 -05:00
refactor: move cheatsheet to global components
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
c94db0c1ff
commit
fa819c290a
39 changed files with 74 additions and 74 deletions
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from './cheatsheet-extension'
|
||||||
import { EntryList } from './entry-list'
|
import { EntryList } from './entry-list'
|
||||||
import React, { useMemo } from 'react'
|
import React, { useMemo } from 'react'
|
||||||
import { Accordion } from 'react-bootstrap'
|
import { Accordion } from 'react-bootstrap'
|
|
@ -3,11 +3,11 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { useBooleanState } from '../../../../hooks/common/use-boolean-state'
|
import { useBooleanState } from '../../hooks/common/use-boolean-state'
|
||||||
import { useTranslatedText } from '../../../../hooks/common/use-translated-text'
|
import { useTranslatedText } from '../../hooks/common/use-translated-text'
|
||||||
import { useOutlineButtonVariant } from '../../../../hooks/dark-mode/use-outline-button-variant'
|
import { useOutlineButtonVariant } from '../../hooks/dark-mode/use-outline-button-variant'
|
||||||
import { cypressId } from '../../../../utils/cypress-attribute'
|
import { cypressId } from '../../utils/cypress-attribute'
|
||||||
import { CommonModal } from '../../../common/modals/common-modal'
|
import { CommonModal } from '../common/modals/common-modal'
|
||||||
import { CheatsheetContent } from './cheatsheet-content'
|
import { CheatsheetContent } from './cheatsheet-content'
|
||||||
import { CheatsheetInNewTabButton } from './cheatsheet-in-new-tab-button'
|
import { CheatsheetInNewTabButton } from './cheatsheet-in-new-tab-button'
|
||||||
import React, { Fragment } from 'react'
|
import React, { Fragment } from 'react'
|
|
@ -3,10 +3,10 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetSingleEntry, CheatsheetExtension } from '../../cheatsheet/cheatsheet-extension'
|
|
||||||
import { hasCheatsheetTopics } from '../../cheatsheet/cheatsheet-extension'
|
|
||||||
import { CategoryAccordion } from './category-accordion'
|
import { CategoryAccordion } from './category-accordion'
|
||||||
import { CheatsheetEntryPane } from './cheatsheet-entry-pane'
|
import { CheatsheetEntryPane } from './cheatsheet-entry-pane'
|
||||||
|
import type { CheatsheetSingleEntry, CheatsheetExtension } from './cheatsheet-extension'
|
||||||
|
import { hasCheatsheetTopics } from './cheatsheet-extension'
|
||||||
import { CheatsheetSearch } from './cheatsheet-search'
|
import { CheatsheetSearch } from './cheatsheet-search'
|
||||||
import styles from './cheatsheet.module.scss'
|
import styles from './cheatsheet.module.scss'
|
||||||
import { TopicSelection } from './topic-selection'
|
import { TopicSelection } from './topic-selection'
|
|
@ -3,13 +3,13 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import HighlightedCode from '../../../common/highlighted-code/highlighted-code'
|
import HighlightedCode from '../common/highlighted-code/highlighted-code'
|
||||||
import { HtmlToReact } from '../../../common/html-to-react/html-to-react'
|
import { HtmlToReact } from '../common/html-to-react/html-to-react'
|
||||||
import { RendererIframe } from '../../../common/renderer-iframe/renderer-iframe'
|
import { RendererIframe } from '../common/renderer-iframe/renderer-iframe'
|
||||||
import { ExtensionEventEmitterProvider } from '../../../markdown-renderer/hooks/use-extension-event-emitter'
|
import { EditorToRendererCommunicatorContextProvider } from '../editor-page/render-context/editor-to-renderer-communicator-context-provider'
|
||||||
import { RendererType } from '../../../render-page/window-post-message-communicator/rendering-message'
|
import { ExtensionEventEmitterProvider } from '../markdown-renderer/hooks/use-extension-event-emitter'
|
||||||
import type { CheatsheetSingleEntry } from '../../cheatsheet/cheatsheet-extension'
|
import { RendererType } from '../render-page/window-post-message-communicator/rendering-message'
|
||||||
import { EditorToRendererCommunicatorContextProvider } from '../../render-context/editor-to-renderer-communicator-context-provider'
|
import type { CheatsheetSingleEntry } from './cheatsheet-extension'
|
||||||
import { ReadMoreLinkItem } from './read-more-link-item'
|
import { ReadMoreLinkItem } from './read-more-link-item'
|
||||||
import { useComponentsFromAppExtensions } from './use-components-from-app-extensions'
|
import { useComponentsFromAppExtensions } from './use-components-from-app-extensions'
|
||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
|
@ -3,9 +3,9 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { useTranslatedText } from '../../../../hooks/common/use-translated-text'
|
import { useTranslatedText } from '../../hooks/common/use-translated-text'
|
||||||
import { useOutlineButtonVariant } from '../../../../hooks/dark-mode/use-outline-button-variant'
|
import { useOutlineButtonVariant } from '../../hooks/dark-mode/use-outline-button-variant'
|
||||||
import { IconButton } from '../../../common/icon-button/icon-button'
|
import { IconButton } from '../common/icon-button/icon-button'
|
||||||
import type { MouseEvent } from 'react'
|
import type { MouseEvent } from 'react'
|
||||||
import React, { useCallback } from 'react'
|
import React, { useCallback } from 'react'
|
||||||
import { BoxArrowUpRight } from 'react-bootstrap-icons'
|
import { BoxArrowUpRight } from 'react-bootstrap-icons'
|
|
@ -3,14 +3,14 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { allAppExtensions } from '../../../../extensions/all-app-extensions'
|
import { allAppExtensions } from '../../extensions/all-app-extensions'
|
||||||
import type { SearchIndexEntry } from '../../../../hooks/common/use-document-search'
|
import type { SearchIndexEntry } from '../../hooks/common/use-document-search'
|
||||||
import { useDocumentSearch } from '../../../../hooks/common/use-document-search'
|
import { useDocumentSearch } from '../../hooks/common/use-document-search'
|
||||||
import { useOnInputChange } from '../../../../hooks/common/use-on-input-change'
|
import { useOnInputChange } from '../../hooks/common/use-on-input-change'
|
||||||
import { useTranslatedText } from '../../../../hooks/common/use-translated-text'
|
import { useTranslatedText } from '../../hooks/common/use-translated-text'
|
||||||
import { UiIcon } from '../../../common/icons/ui-icon'
|
import { UiIcon } from '../common/icons/ui-icon'
|
||||||
import type { CheatsheetSingleEntry, CheatsheetExtension } from '../../cheatsheet/cheatsheet-extension'
|
import type { CheatsheetSingleEntry, CheatsheetExtension } from './cheatsheet-extension'
|
||||||
import { hasCheatsheetTopics } from '../../cheatsheet/cheatsheet-extension'
|
import { hasCheatsheetTopics } from './cheatsheet-extension'
|
||||||
import styles from './cheatsheet.module.scss'
|
import styles from './cheatsheet.module.scss'
|
||||||
import type { IndexOptionsForDocumentSearch, StoreOption } from 'flexsearch-ts'
|
import type { IndexOptionsForDocumentSearch, StoreOption } from 'flexsearch-ts'
|
||||||
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from './cheatsheet-extension'
|
||||||
import styles from './cheatsheet.module.scss'
|
import styles from './cheatsheet.module.scss'
|
||||||
import React, { useMemo } from 'react'
|
import React, { useMemo } from 'react'
|
||||||
import { ListGroup, ListGroupItem } from 'react-bootstrap'
|
import { ListGroup, ListGroupItem } from 'react-bootstrap'
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { ExternalLink } from '../../../common/links/external-link'
|
import { ExternalLink } from '../common/links/external-link'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { ListGroupItem } from 'react-bootstrap'
|
import { ListGroupItem } from 'react-bootstrap'
|
||||||
import { Trans } from 'react-i18next'
|
import { Trans } from 'react-i18next'
|
|
@ -3,8 +3,8 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetSingleEntry, CheatsheetExtension } from '../../cheatsheet/cheatsheet-extension'
|
import type { CheatsheetSingleEntry, CheatsheetExtension } from './cheatsheet-extension'
|
||||||
import { hasCheatsheetTopics } from '../../cheatsheet/cheatsheet-extension'
|
import { hasCheatsheetTopics } from './cheatsheet-extension'
|
||||||
import React, { useMemo } from 'react'
|
import React, { useMemo } from 'react'
|
||||||
import { Button, ButtonGroup, ListGroupItem } from 'react-bootstrap'
|
import { Button, ButtonGroup, ListGroupItem } from 'react-bootstrap'
|
||||||
import { Trans } from 'react-i18next'
|
import { Trans } from 'react-i18next'
|
|
@ -3,9 +3,9 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { allAppExtensions } from '../../../../extensions/all-app-extensions'
|
import { allAppExtensions } from '../../extensions/all-app-extensions'
|
||||||
import type { CheatsheetExtensionComponentProps } from '../../cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtensionComponentProps } from './cheatsheet-extension'
|
||||||
import { hasCheatsheetTopics } from '../../cheatsheet/cheatsheet-extension'
|
import { hasCheatsheetTopics } from './cheatsheet-extension'
|
||||||
import type { ReactElement } from 'react'
|
import type { ReactElement } from 'react'
|
||||||
import React, { Fragment, useMemo } from 'react'
|
import React, { Fragment, useMemo } from 'react'
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { useApplicationState } from '../../../hooks/common/use-application-state'
|
import { useApplicationState } from '../../../hooks/common/use-application-state'
|
||||||
import { useOutlineButtonVariant } from '../../../hooks/dark-mode/use-outline-button-variant'
|
import { useOutlineButtonVariant } from '../../../hooks/dark-mode/use-outline-button-variant'
|
||||||
|
import { CheatsheetButton } from '../../cheatsheet/cheatsheet-button'
|
||||||
import { NewNoteButton } from '../../common/new-note-button/new-note-button'
|
import { NewNoteButton } from '../../common/new-note-button/new-note-button'
|
||||||
import { ShowIf } from '../../common/show-if/show-if'
|
import { ShowIf } from '../../common/show-if/show-if'
|
||||||
import { SignInButton } from '../../landing-layout/navigation/sign-in-button'
|
import { SignInButton } from '../../landing-layout/navigation/sign-in-button'
|
||||||
import { UserDropdown } from '../../landing-layout/navigation/user-dropdown'
|
import { UserDropdown } from '../../landing-layout/navigation/user-dropdown'
|
||||||
import { SettingsButton } from '../../layout/settings-dialog/settings-button'
|
import { SettingsButton } from '../../layout/settings-dialog/settings-button'
|
||||||
import { CheatsheetButton } from './cheatsheet/cheatsheet-button'
|
|
||||||
import { HelpButton } from './help-button/help-button'
|
import { HelpButton } from './help-button/help-button'
|
||||||
import { NavbarBranding } from './navbar-branding'
|
import { NavbarBranding } from './navbar-branding'
|
||||||
import { ReadOnlyModeButton } from './read-only-mode-button'
|
import { ReadOnlyModeButton } from './read-only-mode-button'
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { FrontendConfig } from '../../api/config/types'
|
import type { FrontendConfig } from '../../api/config/types'
|
||||||
import type { CheatsheetExtension } from '../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { Linter } from '../../components/editor-page/editor-pane/linter/linter'
|
import type { Linter } from '../../components/editor-page/editor-pane/linter/linter'
|
||||||
import type { MarkdownRendererExtension } from '../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import type { RendererType } from '../../components/render-page/window-post-message-communicator/rendering-message'
|
import type { RendererType } from '../../components/render-page/window-post-message-communicator/rendering-message'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { BootstrapLazyIcons } from '../../../components/common/icons/bootstrap-icons'
|
import { BootstrapLazyIcons } from '../../../components/common/icons/bootstrap-icons'
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
|
||||||
import { regexCompletion } from '../../../components/editor-page/editor-pane/autocompletions/regex-completion'
|
import { regexCompletion } from '../../../components/editor-page/editor-pane/autocompletions/regex-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { regexCompletion } from '../../../components/editor-page/editor-pane/autocompletions/regex-completion'
|
import { regexCompletion } from '../../../components/editor-page/editor-pane/autocompletions/regex-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { codeFenceRegex } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { codeFenceRegex } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
import { IframeCapsuleMarkdownExtension } from './iframe-capsule-markdown-extension'
|
import { IframeCapsuleMarkdownExtension } from './iframe-capsule-markdown-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
import { basicCompletion } from '../../../components/editor-page/editor-pane/autocompletions/basic-completion'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import type { MarkdownRendererExtensionOptions } from '../../_base-classes/app-extension'
|
import type { MarkdownRendererExtensionOptions } from '../../_base-classes/app-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtensionComponentProps } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtensionComponentProps } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import { useExtensionEventEmitterHandler } from '../../../components/markdown-renderer/hooks/use-extension-event-emitter'
|
import { useExtensionEventEmitterHandler } from '../../../components/markdown-renderer/hooks/use-extension-event-emitter'
|
||||||
import { createCheckboxContent } from './create-checkbox-content'
|
import { createCheckboxContent } from './create-checkbox-content'
|
||||||
import type { TaskCheckedEventPayload } from './event-emitting-task-list-checkbox'
|
import type { TaskCheckedEventPayload } from './event-emitting-task-list-checkbox'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { MarkdownRendererExtensionOptions } from '../../_base-classes/app-extension'
|
import type { MarkdownRendererExtensionOptions } from '../../_base-classes/app-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
import { SetCheckboxInCheatsheet } from './set-checkbox-in-cheatsheet'
|
import { SetCheckboxInCheatsheet } from './set-checkbox-in-cheatsheet'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
import { AsciinemaMarkdownExtension } from './asciinema-markdown-extension'
|
import { AsciinemaMarkdownExtension } from './asciinema-markdown-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
import { GistMarkdownExtension } from './gist-markdown-extension'
|
import { GistMarkdownExtension } from './gist-markdown-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { AppExtension } from '../../_base-classes/app-extension'
|
import { AppExtension } from '../../_base-classes/app-extension'
|
||||||
import { KatexMarkdownExtension } from './katex-markdown-extension'
|
import { KatexMarkdownExtension } from './katex-markdown-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import {
|
import {
|
||||||
basicCompletion,
|
basicCompletion,
|
||||||
codeFenceRegex
|
codeFenceRegex
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { Linter } from '../../../components/editor-page/editor-pane/linter/linter'
|
import type { Linter } from '../../../components/editor-page/editor-pane/linter/linter'
|
||||||
import { SingleLineRegexLinter } from '../../../components/editor-page/editor-pane/linter/single-line-regex-linter'
|
import { SingleLineRegexLinter } from '../../../components/editor-page/editor-pane/linter/single-line-regex-linter'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import type { CheatsheetExtension } from '../../../components/editor-page/cheatsheet/cheatsheet-extension'
|
import type { CheatsheetExtension } from '../../../components/cheatsheet/cheatsheet-extension'
|
||||||
import type { Linter } from '../../../components/editor-page/editor-pane/linter/linter'
|
import type { Linter } from '../../../components/editor-page/editor-pane/linter/linter'
|
||||||
import { SingleLineRegexLinter } from '../../../components/editor-page/editor-pane/linter/single-line-regex-linter'
|
import { SingleLineRegexLinter } from '../../../components/editor-page/editor-pane/linter/single-line-regex-linter'
|
||||||
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import type { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { CheatsheetContent } from '../components/editor-page/app-bar/cheatsheet/cheatsheet-content'
|
import { CheatsheetContent } from '../components/cheatsheet/cheatsheet-content'
|
||||||
import { useApplyDarkModeStyle } from '../hooks/dark-mode/use-apply-dark-mode-style'
|
import { useApplyDarkModeStyle } from '../hooks/dark-mode/use-apply-dark-mode-style'
|
||||||
import type { NextPage } from 'next'
|
import type { NextPage } from 'next'
|
||||||
import { Container } from 'react-bootstrap'
|
import { Container } from 'react-bootstrap'
|
||||||
|
|
Loading…
Reference in a new issue