mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
Remove unused imports
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import remarkGfm from "remark-gfm";
|
||||
import remarkMath from "remark-math";
|
||||
import remarkBreaks from "remark-breaks";
|
||||
import remarkSlug from "remark-slug";
|
||||
import remarkToc from "remark-toc";
|
||||
import rehypeKatex from "rehype-katex";
|
||||
import rehypeRaw from "rehype-raw";
|
||||
import rehypeSanitize from "rehype-sanitize";
|
||||
import rehypePrism from "rehype-prism-plus";
|
||||
import { SpecialComponents } from "react-markdown/lib/ast-to-react";
|
||||
import { NormalComponents } from "react-markdown/lib/complex-types";
|
||||
import config from "@/config/site.config";
|
||||
import useCopyText from "@hooks/useCopyText";
|
||||
import { MdContentCopy } from "react-icons/md";
|
||||
|
||||
type Props = {
|
||||
content: string;
|
||||
@@ -29,9 +25,6 @@ const customComponents: Partial<
|
||||
alt={alt}
|
||||
className='mx-auto w-full max-w-screen-tablet rounded-lg drop-shadow'
|
||||
{...props}
|
||||
onClick={(e) => {
|
||||
window;
|
||||
}}
|
||||
/>
|
||||
{config.readme.renderImageAlt && (
|
||||
<span className='my-0.5 text-center text-sm italic tablet:text-base'>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ErrorResponse, ReadmeResponse } from "@/types/googleapis";
|
||||
import { ErrorResponse } from "@/types/googleapis";
|
||||
import { buildQuery } from "@/utils/driveHelper";
|
||||
import drive from "@/utils/driveClient";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
import drive from "@utils/driveClient";
|
||||
import { decrypt } from "@utils/encryptionHelper";
|
||||
import { createJWTToken, verifyJWTToken } from "@utils/jwtHelper";
|
||||
import { hashToken, verifyHash } from "@utils/hashHelper";
|
||||
import { buildQuery } from "@utils/driveHelper";
|
||||
import { hashToken } from "@utils/hashHelper";
|
||||
|
||||
export default async function handler(
|
||||
request: NextApiRequest,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MdContentCopy, MdWarning } from "react-icons/md";
|
||||
import { MdWarning } from "react-icons/md";
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
createEncryptionKey,
|
||||
@@ -76,7 +76,7 @@ export default function Encryption() {
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const generated = generateRandomEncryptionKey()
|
||||
generateRandomEncryptionKey()
|
||||
.then((key) => {
|
||||
setKey(key);
|
||||
})
|
||||
@@ -124,7 +124,7 @@ export default function Encryption() {
|
||||
</Link>
|
||||
<Link
|
||||
href={allowNext ? "/setup/google-cloud" : ""}
|
||||
onClick={async (e) => {
|
||||
onClick={async () => {
|
||||
if (!allowNext) return;
|
||||
if (!key) return;
|
||||
createEncryptionKey(key).then((encryptionKey) => {
|
||||
|
||||
Reference in New Issue
Block a user