Commit Graph

3 Commits

Author SHA1 Message Date
Lakshan Perera 95eedb927e Updates to Edge Functions dashboard code editor (#39991)
* 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>
2025-10-30 14:30:54 +08:00
Terry Sutton ba001856e1 Add ef loading state (#36124)
* Add ef loading state

* Add prop
2025-06-03 13:16:30 +08:00
Saxon Fletcher a4cac72473 Deploy edge function warning (#34555)
* fix: add jsr:@std/path module

* fix: use relative paths for files in editor

* add a deploy warning to edge functions update

* hide deploy if can't write

* remove retry

* Fix

* Small clean up

* Address feedback

* Fix

---------

Co-authored-by: Lakshan Perera <lakshan@laktek.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-03-31 18:02:41 +08:00