(name: string)
| 86 | } |
| 87 | |
| 88 | function isEditable(name: string): boolean { |
| 89 | const ext = name.split(".").pop()?.toLowerCase() || ""; |
| 90 | const editableExts = ["ts", "tsx", "js", "jsx", "json", "md", "mdx", "txt", "py", "sh", "yaml", "yml", "toml", "css", "html", "sql", "log", "env"]; |
| 91 | return editableExts.includes(ext) || !name.includes("."); |
| 92 | } |
| 93 | |
| 94 | // ─── Monaco Editor Modal ─────────────────────────────────────────────────────── |
| 95 | interface EditorModalProps { |
no outgoing calls
no test coverage detected