feat: added deny presets article

This commit is contained in:
wonderlandpark 2021-05-23 02:03:41 +09:00
parent ddd39c8fac
commit 435ef2ddf6
2 changed files with 36 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import Link from 'next/link'
import { NextSeo } from 'next-seo'
import { get } from '@utils/Query'
import { git } from '@utils/Constants'
import { BotSubmissionDenyReasonPresetsName, git } from '@utils/Constants'
import Day from '@utils/Day'
import { SubmittedBot, User } from '@types'
@ -47,7 +47,12 @@ const PendingBot: NextPage<PendingBotProps> = ({ data }) => {
<h2 className='text-lg font-black'></h2>
<p> .</p>
{
data.reason && <p>: <strong>{data.reason}</strong></p>
data.reason && <>
<p>: <strong>{BotSubmissionDenyReasonPresetsName[data.reason] || data.reason}</strong></p>
<div className='pt-2'>
{DenyPresetsArticle[data.reason]}
</div>
</>
}
</Message>
}
@ -176,6 +181,33 @@ export const getServerSideProps = async (ctx: Context) => {
}
}
const DenyPresetsArticle = {
MISSING_VERIFY: <>
<p><strong> </strong> .</p>
<p> , (username#0000 ) .
<ul className='list-inside list-disc'>
<li> 명령어: 도움, , , help, commands</li>
<li>[]hellothisisverification 응답: 유저#()</li>
</ul>
</p>
</>,
OFFLINE: <>
<p><strong> </strong> .</p>
<p> 24 , .</p>
</>,
INVALID_CATEGORY: <p> . <strong> </strong> .</p>,
PRIVATE: <p> , . .
<ul className='list-inside list-disc'>
<li> ?</li>
<li> 100 ?</li>
<li>"REQUIRES OAUTH2 CODE GRANT" ?</li>
.
</ul>
</p>,
LICENSE_VIOLATION: <p> . , .</p>,
ABSENT_AT_DISCORD: <p> <a href='/discord'> </a> .</p>
}
interface PendingBotProps {
data: SubmittedBot
}

View File

@ -294,7 +294,8 @@ export const BotSubmissionDenyReasonPresetsName = {
OFFLINE: '봇 오프라인',
INVALID_CATEGORY: '올바르지 않은 카테고리',
PRIVATE: '프라이빗 봇',
LICENSE_VIOLATION: '오픈소스 라이선스 위반'
LICENSE_VIOLATION: '오픈소스 라이선스 위반',
ABSENT_AT_DISCORD: '공식 디스코드 서버 미참여'
}
export const GuildPermissions = {