mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
Update dependency eslint-plugin-import to v2.25.2 (#1555)
* Update dependency eslint-plugin-import to v2.25.2 Signed-off-by: Renovate Bot <bot@renovateapp.com> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Make type imports more explicit Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Enforce use of type imports Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
fc3a3fa1a9
commit
2abe40ef1d
264 changed files with 567 additions and 504 deletions
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import { useEffect, useRef } from 'react'
|
||||
import { Editor } from 'codemirror'
|
||||
import { ScrollState } from '../../synced-scroll/scroll-props'
|
||||
import type { Editor } from 'codemirror'
|
||||
import type { ScrollState } from '../../synced-scroll/scroll-props'
|
||||
|
||||
/**
|
||||
* Monitors the given scroll state and scrolls the editor to the state if changed.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { EditorConfiguration } from 'codemirror'
|
||||
import type { EditorConfiguration } from 'codemirror'
|
||||
import { useMemo } from 'react'
|
||||
import { defaultKeyMap } from '../key-map'
|
||||
import { useApplicationState } from '../../../../hooks/common/use-application-state'
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
*/
|
||||
|
||||
import { useCallback } from 'react'
|
||||
import { Editor } from 'codemirror'
|
||||
import type { Editor } from 'codemirror'
|
||||
import { handleUpload } from '../upload-handler'
|
||||
import { DomEvent } from 'react-codemirror2'
|
||||
import type { DomEvent } from 'react-codemirror2'
|
||||
|
||||
interface DropEvent {
|
||||
pageX: number
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
*/
|
||||
|
||||
import { useCallback } from 'react'
|
||||
import { Editor } from 'codemirror'
|
||||
import { handleFilePaste, handleTablePaste, PasteEvent } from '../tool-bar/utils/pasteHandlers'
|
||||
import type { Editor } from 'codemirror'
|
||||
import type { PasteEvent } from '../tool-bar/utils/pasteHandlers'
|
||||
import { handleFilePaste, handleTablePaste } from '../tool-bar/utils/pasteHandlers'
|
||||
import { useApplicationState } from '../../../../hooks/common/use-application-state'
|
||||
import { DomEvent } from 'react-codemirror2'
|
||||
import type { DomEvent } from 'react-codemirror2'
|
||||
|
||||
/**
|
||||
* Creates a callback that handles the table or file paste action in code mirror.
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { DomEvent } from 'react-codemirror2'
|
||||
import type { DomEvent } from 'react-codemirror2'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { Editor, ScrollInfo } from 'codemirror'
|
||||
import { ScrollState } from '../../synced-scroll/scroll-props'
|
||||
import type { Editor, ScrollInfo } from 'codemirror'
|
||||
import type { ScrollState } from '../../synced-scroll/scroll-props'
|
||||
|
||||
/**
|
||||
* Creates a callback for the scroll binding of the code mirror editor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue