mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 05:39:11 +03:00
chore: remove unused token files
This removes some AI slop from my Cursor prototype. There will be a few more of these commits cleaning up.
This commit is contained in:
1 parent
90c83ccce7
commit
d23890759b
3 files changed
+1
-40
No files matched your search
@@ -1,6 +1,4 @@
|
||||
import { Copy } from 'lucide-react'
|
||||
import { toast } from 'sonner'
|
||||
|
||||
import {
|
||||
Button,
|
||||
Dialog,
|
||||
@@ -65,4 +63,4 @@ const GeneratedTokenDialog = ({ visible, onClose, generatedToken }: GeneratedTok
|
||||
)
|
||||
}
|
||||
|
||||
export default GeneratedTokenDialog
|
||||
export default GeneratedTokenDialog
|
||||
@@ -1,34 +0,0 @@
|
||||
import { Input_Shadcn_ } from 'ui'
|
||||
import { toast } from 'sonner'
|
||||
import CopyButton from 'components/ui/CopyButton'
|
||||
|
||||
interface TokenDisplayProps {
|
||||
generatedToken: any
|
||||
}
|
||||
|
||||
export const TokenDisplay = ({ generatedToken }: TokenDisplayProps) => {
|
||||
const tokenValue = generatedToken?.access_token || generatedToken?.token_alias || generatedToken?.token || ''
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-3">
|
||||
<p className="text-sm text-foreground-light">
|
||||
Do copy this access token and store it in a secure place - you will not be
|
||||
able to see it again.
|
||||
</p>
|
||||
<div className="flex items-center gap-2">
|
||||
<Input_Shadcn_
|
||||
value={tokenValue}
|
||||
readOnly
|
||||
className="flex-1 input-mono"
|
||||
id="generatedToken"
|
||||
/>
|
||||
<CopyButton
|
||||
text={tokenValue}
|
||||
onCopy={() => toast.success('Access token copied to clipboard')}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
export { default as AccessTokenList } from './AccessTokenList'
|
||||
export { default as NewAccessTokenButton } from './NewAccessTokenButton'
|
||||
export { default as NewTokenBanner } from './NewTokenBanner'
|
||||
export { TokenDisplay } from './TokenDisplay'
|
||||
export { default as GeneratedTokenDialog } from './GeneratedTokenDialog'
|
||||
export { ViewTokenPermissionsPanel } from './ViewTokenPermissionsPanel'
|
||||
export { TokenBasicInfoForm } from './TokenBasicInfoForm'
|
||||
export { TokenResourceAccessForm } from './TokenResourceAccessForm'
|
||||
export { TokenPermissionsForm } from './TokenPermissionsForm'
|
||||
export * from './AccessToken.utils'
|
||||
export * from './AccessToken.constants'
|
||||
Reference in new issue
Block a user