mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
import types explicitly
This commit is contained in:
@@ -37,7 +37,7 @@ import DefaultPreview from './previews/DefaultPreview'
|
|||||||
import { DownloadBtnContainer, PreviewContainer } from './previews/Containers'
|
import { DownloadBtnContainer, PreviewContainer } from './previews/Containers'
|
||||||
import DownloadButtonGroup from './DownloadBtnGtoup'
|
import DownloadButtonGroup from './DownloadBtnGtoup'
|
||||||
|
|
||||||
import { OdFileObject, OdFolderObject } from '../types'
|
import type { OdFileObject, OdFolderObject } from '../types'
|
||||||
|
|
||||||
// Disabling SSR for some previews (image gallery view, and PDF view)
|
// Disabling SSR for some previews (image gallery view, and PDF view)
|
||||||
const ReactViewer = dynamic(() => import('react-viewer'), { ssr: false })
|
const ReactViewer = dynamic(() => import('react-viewer'), { ssr: false })
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import Link from 'next/link'
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { Dialog, Transition } from '@headlessui/react'
|
import { Dialog, Transition } from '@headlessui/react'
|
||||||
|
|
||||||
import { OdDriveItem, OdSearchResult } from '../types'
|
import type { OdDriveItem, OdSearchResult } from '../types'
|
||||||
import { LoadingIcon } from './Loading'
|
import { LoadingIcon } from './Loading'
|
||||||
|
|
||||||
import { getFileIcon } from '../utils/getFileIcon'
|
import { getFileIcon } from '../utils/getFileIcon'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OdFileObject } from '../../types'
|
import type { OdFileObject } from '../../types'
|
||||||
import { FC, useState } from 'react'
|
import { FC, useState } from 'react'
|
||||||
|
|
||||||
import ReactPlayer from 'react-player'
|
import ReactPlayer from 'react-player'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OdFileObject } from '../../types'
|
import type { OdFileObject } from '../../types'
|
||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
|
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OdFileObject } from '../../types'
|
import type { OdFileObject } from '../../types'
|
||||||
import { FC, useEffect, useRef, useState } from 'react'
|
import { FC, useEffect, useRef, useState } from 'react'
|
||||||
|
|
||||||
import { ReactReader } from 'react-reader'
|
import { ReactReader } from 'react-reader'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OdFileObject } from '../../types'
|
import type { OdFileObject } from '../../types'
|
||||||
import { FC, useEffect, useRef, useState } from 'react'
|
import { FC, useEffect, useRef, useState } from 'react'
|
||||||
|
|
||||||
import Preview from 'preview-office-docs'
|
import Preview from 'preview-office-docs'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { OdFileObject } from '../../types'
|
import type { OdFileObject } from '../../types'
|
||||||
import ReactPlayer from 'react-player'
|
import ReactPlayer from 'react-player'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { useClipboard } from 'use-clipboard-copy'
|
import { useClipboard } from 'use-clipboard-copy'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types'
|
import type { IconPrefix, IconName } from '@fortawesome/fontawesome-common-types'
|
||||||
|
|
||||||
const icons: { [key: string]: [IconPrefix, IconName] } = {
|
const icons: { [key: string]: [IconPrefix, IconName] } = {
|
||||||
image: ['far', 'file-image'],
|
image: ['far', 'file-image'],
|
||||||
|
|||||||
Reference in New Issue
Block a user