mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: remove unused Gitee components
This commit is contained in:
parent
b62b488a0d
commit
8fa1802555
1 changed files with 0 additions and 47 deletions
|
|
@ -1,47 +0,0 @@
|
|||
import { GITEE_OAUTH } from 'env'
|
||||
import * as React from 'react'
|
||||
|
||||
export function GiteeAccessDeniedError({ hasToken }: { hasToken: boolean }) {
|
||||
return (
|
||||
<div className={'description'}>
|
||||
<h5>Access Denied</h5>
|
||||
{hasToken ? (
|
||||
<>
|
||||
<p>
|
||||
Current access token is either invalid or not granted with permissions to access this
|
||||
project.
|
||||
</p>
|
||||
<p>
|
||||
You can grant or request access{' '}
|
||||
<a
|
||||
href={`https://github.com/settings/connections/applications/${GITEE_OAUTH.clientId}`}
|
||||
>
|
||||
here
|
||||
</a>{' '}
|
||||
if you setup Gitako with OAuth.
|
||||
</p>
|
||||
</>
|
||||
) : (
|
||||
<p>
|
||||
Gitako needs access token to read this project due to{' '}
|
||||
<a
|
||||
href="https://developer.github.com/v3/#rate-limiting"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
GitHub rate limiting
|
||||
</a>{' '}
|
||||
and{' '}
|
||||
<a
|
||||
href="https://developer.github.com/v3/#authentication"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
auth needs
|
||||
</a>
|
||||
. Please setup access token in the settings panel below.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue