mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -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
|
@ -8,7 +8,7 @@ import React, { Fragment, useState } from 'react'
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { DeletionModal } from '../../common/modals/deletion-modal'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
|
||||
export const DeleteNoteSidebarEntry: React.FC<SpecificSidebarEntryProps> = ({ hide, className }) => {
|
||||
useTranslation()
|
||||
|
|
|
@ -8,7 +8,7 @@ import React, { Fragment, useState } from 'react'
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { DocumentInfoModal } from '../document-bar/document-info/document-info-modal'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
|
||||
export const DocumentInfoSidebarEntry: React.FC<SpecificSidebarEntryProps> = ({ className, hide }) => {
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
|
|
|
@ -10,7 +10,8 @@ import links from '../../../links.json'
|
|||
import { ExportMarkdownSidebarEntry } from './export-markdown-sidebar-entry'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SidebarMenu } from './sidebar-menu'
|
||||
import { DocumentSidebarMenuSelection, SpecificSidebarMenuProps } from './types'
|
||||
import type { SpecificSidebarMenuProps } from './types'
|
||||
import { DocumentSidebarMenuSelection } from './types'
|
||||
|
||||
export const ExportMenuSidebarMenu: React.FC<SpecificSidebarMenuProps> = ({
|
||||
className,
|
||||
|
|
|
@ -9,7 +9,8 @@ import { Trans, useTranslation } from 'react-i18next'
|
|||
import { ImportMarkdownSidebarEntry } from './import-markdown-sidebar-entry'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SidebarMenu } from './sidebar-menu'
|
||||
import { DocumentSidebarMenuSelection, SpecificSidebarMenuProps } from './types'
|
||||
import type { SpecificSidebarMenuProps } from './types'
|
||||
import { DocumentSidebarMenuSelection } from './types'
|
||||
|
||||
export const ImportMenuSidebarMenu: React.FC<SpecificSidebarMenuProps> = ({
|
||||
className,
|
||||
|
|
|
@ -8,7 +8,7 @@ import React, { Fragment, useState } from 'react'
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { PermissionModal } from '../document-bar/permissions/permission-modal'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
|
||||
export const PermissionsSidebarEntry: React.FC<SpecificSidebarEntryProps> = ({ className, hide }) => {
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
import React, { useCallback, useMemo } from 'react'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
import { useParams } from 'react-router-dom'
|
||||
import { EditorPagePathParams } from '../editor-page'
|
||||
import type { EditorPagePathParams } from '../editor-page'
|
||||
import { toggleHistoryEntryPinning } from '../../../redux/history/methods'
|
||||
import { showErrorNotification } from '../../../redux/ui-notifications/methods'
|
||||
import { useApplicationState } from '../../../hooks/common/use-application-state'
|
||||
|
|
|
@ -8,7 +8,7 @@ import React, { Fragment, useState } from 'react'
|
|||
import { Trans } from 'react-i18next'
|
||||
import { RevisionModal } from '../document-bar/revisions/revision-modal'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
|
||||
export const RevisionSidebarEntry: React.FC<SpecificSidebarEntryProps> = ({ className, hide }) => {
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
|
|
|
@ -8,7 +8,7 @@ import React, { Fragment, useState } from 'react'
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { ShareModal } from '../document-bar/share/share-modal'
|
||||
import { SidebarButton } from './sidebar-button'
|
||||
import { SpecificSidebarEntryProps } from './types'
|
||||
import type { SpecificSidebarEntryProps } from './types'
|
||||
|
||||
export const ShareSidebarEntry: React.FC<SpecificSidebarEntryProps> = ({ className, hide }) => {
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
import React from 'react'
|
||||
import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon'
|
||||
import { IconName } from '../../common/fork-awesome/types'
|
||||
import type { IconName } from '../../common/fork-awesome/types'
|
||||
import { ShowIf } from '../../common/show-if/show-if'
|
||||
import { SidebarEntryProps } from './types'
|
||||
import type { SidebarEntryProps } from './types'
|
||||
|
||||
export type SidebarEntryVariant = 'primary'
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react'
|
||||
import { SidebarMenuProps } from './types'
|
||||
import type { SidebarMenuProps } from './types'
|
||||
|
||||
export const SidebarMenu: React.FC<SidebarMenuProps> = ({ children, expand }) => {
|
||||
return (
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { RefObject } from 'react'
|
||||
import { IconName } from '../../common/fork-awesome/types'
|
||||
import { SidebarEntryVariant } from './sidebar-button'
|
||||
import type { RefObject } from 'react'
|
||||
import type { IconName } from '../../common/fork-awesome/types'
|
||||
import type { SidebarEntryVariant } from './sidebar-button'
|
||||
|
||||
export interface SpecificSidebarEntryProps {
|
||||
className?: string
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import React, { MutableRefObject, useCallback, useEffect, useRef } from 'react'
|
||||
import type { MutableRefObject } from 'react'
|
||||
import React, { useCallback, useEffect, useRef } from 'react'
|
||||
import { Logger } from '../../../utils/logger'
|
||||
|
||||
const log = new Logger('UploadInput')
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
import React from 'react'
|
||||
import { UserAvatar } from '../../../common/user-avatar/user-avatar'
|
||||
import { ActiveIndicator, ActiveIndicatorStatus } from './active-indicator'
|
||||
import type { ActiveIndicatorStatus } from './active-indicator'
|
||||
import { ActiveIndicator } from './active-indicator'
|
||||
import './user-line.scss'
|
||||
|
||||
export interface UserLineProps {
|
||||
|
|
|
@ -8,7 +8,8 @@ import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { SidebarButton } from '../sidebar-button'
|
||||
import { SidebarMenu } from '../sidebar-menu'
|
||||
import { DocumentSidebarMenuSelection, SpecificSidebarMenuProps } from '../types'
|
||||
import type { SpecificSidebarMenuProps } from '../types'
|
||||
import { DocumentSidebarMenuSelection } from '../types'
|
||||
import { ActiveIndicatorStatus } from './active-indicator'
|
||||
import './online-counter.scss'
|
||||
import { UserLine } from './user-line'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue