Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
rename resultImg -> resultImage
Abi Rajac3e972eb11af
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex 6455999d..01ca77a6 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -128,11 +128,11 @@ function App() {async function doUpdate() {const updatedHistory = [...history, generatedCode, updateInstruction];if (isImgCompare) {- const resultImg = await takeScreenshot();+ const resultImage = await takeScreenshot();doGenerateCode({generationType: "update",image: referenceImages[0],- resultImg: resultImg,+ resultImage: resultImage,history: updatedHistory,});} else {diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.tsindex 6dbe547c..f9eba851 100644--- a/frontend/src/generateCode.ts+++ b/frontend/src/generateCode.ts@@ -10,7 +10,7 @@ const STOP_MESSAGE = "Code generation stopped";export interface CodeGenerationParams {generationType: "create" | "update";image: string;- resultImg?: string;+ resultImage?: string;history?: string[];// isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts}