mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
style: deepscan fix
This commit is contained in:
parent
4db400265a
commit
094d7b4b24
@ -1,5 +1,5 @@
|
|||||||
import { NextPage, NextPageContext } from 'next'
|
import { NextPage, NextPageContext } from 'next'
|
||||||
import { useRef, useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|||||||
@ -17,13 +17,9 @@ const Container = dynamic(() => import('@components/Container'))
|
|||||||
const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar'))
|
const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar'))
|
||||||
const Button = dynamic(() => import('@components/Button'))
|
const Button = dynamic(() => import('@components/Button'))
|
||||||
const Tag = dynamic(() => import('@components/Tag'))
|
const Tag = dynamic(() => import('@components/Tag'))
|
||||||
const Owner = dynamic(() => import('@components/Owner'))
|
|
||||||
const Segment = dynamic(() => import('@components/Segment'))
|
const Segment = dynamic(() => import('@components/Segment'))
|
||||||
const SEO = dynamic(() => import('@components/SEO'))
|
const SEO = dynamic(() => import('@components/SEO'))
|
||||||
const LongButton = dynamic(() => import('@components/LongButton'))
|
|
||||||
const Advertisement = dynamic(() => import('@components/Advertisement'))
|
const Advertisement = dynamic(() => import('@components/Advertisement'))
|
||||||
const Tooltip = dynamic(() => import('@components/Tooltip'))
|
|
||||||
const Markdown = dynamic(() => import ('@components/Markdown'))
|
|
||||||
|
|
||||||
const VoteBot: NextPage<VoteBotProps> = ({ data, user, csrfToken }) => {
|
const VoteBot: NextPage<VoteBotProps> = ({ data, user, csrfToken }) => {
|
||||||
console.log(csrfToken)
|
console.log(csrfToken)
|
||||||
|
|||||||
@ -36,13 +36,13 @@ ${mainLicense}`} />
|
|||||||
Object.keys(packageJson.dependencies).concat(Object.keys(packageJson.devDependencies)).map(el=> <span key={el}><a className='text-blue-500 hover:text-blue-400' href={`https://npmjs.org/package/${el}`}>{el}</a> </span>)
|
Object.keys(packageJson.dependencies).concat(Object.keys(packageJson.devDependencies)).map(el=> <span key={el}><a className='text-blue-500 hover:text-blue-400' href={`https://npmjs.org/package/${el}`}>{el}</a> </span>)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
license.map(el=>
|
license.map((el, i)=>
|
||||||
<>
|
<div key={i}>
|
||||||
<h2 className='text-xl font-semibold my-3'>{el.dependencies.join(', ')}</h2>
|
<h2 className='text-xl font-semibold my-3'>{el.dependencies.join(', ')}</h2>
|
||||||
<Segment>
|
<Segment>
|
||||||
<Markdown text={el.content} />
|
<Markdown text={el.content} />
|
||||||
</Segment>
|
</Segment>
|
||||||
</>)
|
</div>)
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
</Docs>
|
</Docs>
|
||||||
|
|||||||
@ -24,7 +24,7 @@ const Owner = dynamic(() => import('@components/Owner'))
|
|||||||
const Message = dynamic(() => import('@components/Message'))
|
const Message = dynamic(() => import('@components/Message'))
|
||||||
|
|
||||||
const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
|
const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
|
||||||
const [ isCopied, setCopied ] = useCopyClipboard(data.desc, {
|
const [ isCopied, setCopied ] = useCopyClipboard(data?.desc, {
|
||||||
successDuration: 1000
|
successDuration: 1000
|
||||||
})
|
})
|
||||||
if(!data) return <NotFound />
|
if(!data) return <NotFound />
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { Emoji, EmojiSyntax, Heading, ImageTag } from './Regex'
|
import { Emoji, EmojiSyntax, Heading, ImageTag } from './Regex'
|
||||||
import Twemoji from 'twemoji'
|
import Twemoji from 'twemoji'
|
||||||
import { KoreanbotsEmoji } from './Constants'
|
import { KoreanbotsEmoji } from './Constants'
|
||||||
import { emoji } from 'node-emoji'
|
|
||||||
|
|
||||||
export const anchorHeader = {
|
export const anchorHeader = {
|
||||||
type: 'output',
|
type: 'output',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user