mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
remove all shadows
This commit is contained in:
@@ -179,14 +179,14 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
{error.message.includes('401') ? <Auth redirect={path} /> : <FourOhFour errorMsg={error.message} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (!data) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<Loading loadingText="Loading ..." />
|
||||
</div>
|
||||
)
|
||||
@@ -334,7 +334,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="dark:bg-gray-900 dark:text-gray-100 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 dark:text-gray-100 bg-white rounded">
|
||||
<div className="dark:border-gray-700 grid items-center grid-cols-12 px-3 space-x-2 border-b border-gray-200">
|
||||
<div className="md:col-span-6 col-span-12 font-bold">Name</div>
|
||||
<div className="md:block hidden col-span-3 font-bold">Last Modified</div>
|
||||
@@ -551,7 +551,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
switch (extensions[fileExtension]) {
|
||||
case preview.image:
|
||||
return (
|
||||
<div className="w-full p-3 bg-white rounded shadow">
|
||||
<div className="w-full p-3 bg-white rounded">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img className="mx-auto" src={downloadUrl} alt={fileName} />
|
||||
</div>
|
||||
@@ -582,13 +582,13 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
return <EPUBPreview file={file} />
|
||||
|
||||
default:
|
||||
return <div className="dark:bg-gray-900 bg-white rounded shadow">{fileName}</div>
|
||||
return <div className="dark:bg-gray-900 bg-white rounded">{fileName}</div>
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<FourOhFour
|
||||
errorMsg={`Preview for file ${fileName} is not available, download directly with the button below.`}
|
||||
/>
|
||||
@@ -601,7 +601,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<FourOhFour errorMsg={`Cannot preview ${path}`} />
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { IconName } from '@fortawesome/fontawesome-svg-core'
|
||||
import { Dialog, Transition } from '@headlessui/react'
|
||||
import toast, { Toaster } from 'react-hot-toast'
|
||||
|
||||
@@ -41,7 +40,7 @@ const Navbar = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="text-left p-1 bg-white dark:bg-gray-900 sticky top-0 bg-opacity-80 backdrop-blur-md shadow-sm z-[100]">
|
||||
<div className="text-left p-1 bg-white dark:bg-gray-900 sticky top-0 bg-opacity-80 border-b border-gray-900/10 backdrop-blur-md z-[100]">
|
||||
<div className="flex items-center justify-between w-full max-w-5xl mx-auto">
|
||||
<Toaster />
|
||||
|
||||
@@ -116,7 +115,7 @@ const Navbar = () => {
|
||||
leaveFrom="opacity-100 scale-100"
|
||||
leaveTo="opacity-0 scale-95"
|
||||
>
|
||||
<div className="dark:bg-gray-900 inline-block w-full max-w-md p-6 my-8 overflow-hidden text-left align-middle transition-all transform bg-white rounded shadow-lg">
|
||||
<div className="dark:bg-gray-900 inline-block w-full max-w-md p-6 my-8 overflow-hidden text-left align-middle transition-all transform bg-white rounded-lg">
|
||||
<Dialog.Title className="dark:text-gray-100 text-lg font-bold text-gray-900">
|
||||
Clear all tokens?
|
||||
</Dialog.Title>
|
||||
|
||||
@@ -16,7 +16,7 @@ export const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="dark:bg-gray-900 dark:text-white w-full p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 dark:text-white w-full p-3 bg-white rounded">
|
||||
<div className="md:flex-row md:space-x-4 flex flex-col space-y-4">
|
||||
<div className="dark:bg-gray-700 h-72 md:w-40 md:h-36 flex items-center justify-center w-full transition-all duration-75 bg-gray-100 rounded">
|
||||
{playerStatus === PlayerState.Loading ? (
|
||||
|
||||
@@ -18,14 +18,14 @@ const CodePreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<FourOhFour errorMsg={error.message} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (!data) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<Loading loadingText="Loading file content..." />
|
||||
</div>
|
||||
)
|
||||
@@ -33,7 +33,7 @@ const CodePreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="markdown-body p-3 bg-gray-900 rounded shadow">
|
||||
<div className="markdown-body p-3 bg-gray-900 rounded">
|
||||
<pre className={`language-${getExtension(file.name)}`}>
|
||||
<code>{data}</code>
|
||||
</pre>
|
||||
|
||||
@@ -34,7 +34,7 @@ const EPUBPreview: FunctionComponent<{file: any}> = ({ file }) => {
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className="dark:bg-gray-900 md:p-3 no-scrollbar flex flex-col w-full overflow-scroll bg-white rounded shadow"
|
||||
className="dark:bg-gray-900 md:p-3 no-scrollbar flex flex-col w-full overflow-scroll bg-white rounded"
|
||||
style={{ maxHeight: '90vh' }}
|
||||
>
|
||||
<div className="no-scrollbar flex-1 w-full overflow-scroll" ref={epubContainer} style={{ minHeight: '70vh' }}>
|
||||
|
||||
@@ -85,7 +85,7 @@ const MarkdownPreview: FunctionComponent<{ file: any; path: string; standalone?:
|
||||
<div
|
||||
className={
|
||||
standalone
|
||||
? 'markdown-body shadow bg-white dark:bg-gray-900 rounded p-3 dark:text-white'
|
||||
? 'markdown-body bg-white dark:bg-gray-900 rounded p-3 dark:text-white'
|
||||
: 'markdown-body p-3 dark:text-white'
|
||||
}
|
||||
>
|
||||
|
||||
@@ -13,7 +13,7 @@ const OfficePreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="overflow-scroll shadow" ref={docContainer} style={{ maxHeight: '90vh' }}>
|
||||
<div className="overflow-scroll" ref={docContainer} style={{ maxHeight: '90vh' }}>
|
||||
<Preview url={encodeURIComponent(file['@microsoft.graph.downloadUrl'])} width={docContainerWidth.toString()} height="800" />
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
|
||||
@@ -26,7 +26,7 @@ const PDFPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className="dark:bg-gray-900 md:p-3 no-scrollbar flex flex-col w-full overflow-scroll bg-white rounded shadow"
|
||||
className="dark:bg-gray-900 md:p-3 no-scrollbar flex flex-col w-full overflow-scroll bg-white rounded"
|
||||
style={{ maxHeight: '90vh' }}
|
||||
>
|
||||
<div className="no-scrollbar flex-1 w-full overflow-scroll" ref={pdfContainter} style={{ maxHeight: '80vh' }}>
|
||||
|
||||
@@ -9,14 +9,14 @@ const TextPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
const { data, error } = useStaleSWR(file['@microsoft.graph.downloadUrl'])
|
||||
if (error) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<FourOhFour errorMsg={error.message} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (!data) {
|
||||
return (
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<Loading loadingText="Loading file content..." />
|
||||
</div>
|
||||
)
|
||||
@@ -24,7 +24,7 @@ const TextPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="dark:bg-gray-900 dark:text-gray-100 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 dark:text-gray-100 p-3 bg-white rounded">
|
||||
<pre className="md:p-3 p-0 overflow-scroll">{data}</pre>
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
|
||||
@@ -14,7 +14,7 @@ export const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded shadow">
|
||||
<div className="dark:bg-gray-900 p-3 bg-white rounded">
|
||||
<div className="relative" style={{ paddingTop: '56.25%' }}>
|
||||
<ReactPlayer
|
||||
className="absolute top-0 left-0 w-full h-full"
|
||||
|
||||
Reference in New Issue
Block a user