mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
95eedb927e
* feat: use mgmt-api's function body endpoint * skip json files from static patterns * set the default content for deno.json * feat: add drag and drop file support to FileExplorerAndEditor - Add drag and drop functionality to accept files - Dropped files are automatically read and added to the files list - Visual feedback with drag overlay during drag operations - Files maintain existing data format with id, name, content, and selected state - Last dropped file is automatically selected for editing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add binary file handling to FileExplorerAndEditor - Add binary file detection for common file extensions (.wasm, images, executables, etc.) - Show "Cannot Edit Selected File" error message when trying to edit binary files - Binary files dropped via drag-and-drop retain their original binary content - Only show error in editor view, files remain accessible in file list - Text files continue to work normally with full editing capabilities 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * do not ignore empty files * exclude wasm files from static patterns * Remove eszip parser test as dependency has been removed * Fix TS issues * Fix TS issues * Fix pnpm-lock * Fix * Fix * Nit --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
35 lines
939 B
TypeScript
35 lines
939 B
TypeScript
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
|
|
|
|
interface DeployEdgeFunctionWarningModalProps {
|
|
visible: boolean
|
|
onCancel: () => void
|
|
onConfirm: () => void
|
|
isDeploying: boolean
|
|
}
|
|
|
|
export const DeployEdgeFunctionWarningModal = ({
|
|
visible,
|
|
onCancel,
|
|
onConfirm,
|
|
isDeploying,
|
|
}: DeployEdgeFunctionWarningModalProps) => {
|
|
return (
|
|
<ConfirmationModal
|
|
visible={visible}
|
|
size="medium"
|
|
title="Confirm to deploy updates"
|
|
confirmLabel="Deploy updates"
|
|
confirmLabelLoading="Deploying updates"
|
|
variant="warning"
|
|
loading={isDeploying}
|
|
onCancel={onCancel}
|
|
onConfirm={onConfirm}
|
|
>
|
|
<p className="text-sm text-foreground-light">
|
|
Deploying will immediately update your live Edge Function for this project and cannot be
|
|
rolled back automatically. Are you sure you want to deploy the changes?
|
|
</p>
|
|
</ConfirmationModal>
|
|
)
|
|
}
|