mirror of
https://github.com/supabase/supabase.git
synced 2026-09-22 13:37:53 +08:00
0bf22ee6fc
workers -> compute <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the Compute experience for deploying, viewing, managing, and monitoring compute instances. - Added Compute navigation, instance detail pages, secrets, logs, deployment dialogs, generated snippets, and CLI commands. - Added filtering, status, availability, and data-loading support for compute instances. - **Updates** - Updated labels, icons, links, feature controls, unified logs, and secret-deletion messaging to use Compute terminology. - Compute routes now replace the previous Workers routes and pages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
27 lines
767 B
TypeScript
27 lines
767 B
TypeScript
import CopyButton from '@/components/ui/CopyButton'
|
|
|
|
interface ComputeInstanceCommandLineProps {
|
|
command: string
|
|
comment?: string
|
|
}
|
|
|
|
export const ComputeInstanceCommandLine = ({
|
|
command,
|
|
comment,
|
|
}: ComputeInstanceCommandLineProps) => (
|
|
<div className="space-y-1">
|
|
{comment && <p className="font-mono text-xs text-foreground-lighter">{`> ${comment}`}</p>}
|
|
<div className="flex items-center gap-2 font-mono text-sm text-foreground">
|
|
<span className="text-foreground-lighter">$</span>
|
|
<span className="flex-1">{command}</span>
|
|
<CopyButton
|
|
text={command}
|
|
iconOnly
|
|
variant="text"
|
|
aria-label="Copy command"
|
|
className="text-foreground-lighter hover:text-foreground"
|
|
/>
|
|
</div>
|
|
</div>
|
|
)
|