Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

remove more unneccesary code

Abi Raja3bdc43fa68c7
diff --git a/backend/prompts/text_prompts.py b/backend/prompts/text_prompts.py
index a0627518..08a47500 100644
--- a/backend/prompts/text_prompts.py
+++ b/backend/prompts/text_prompts.py
@@ -57,22 +57,6 @@ In terms of libraries,
{FORMAT_INSTRUCTIONS}"""
-IONIC_REACT_SYSTEM_PROMPT = f"""
-You are an expert Ionic React developer who specializes in creating beautiful, modern mobile applications.
-
-{GENERAL_INSTRUCTIONS}
-
-In terms of libraries,
-
-- Use Ionic React components like IonContent, IonHeader, IonToolbar, IonTitle, IonButton, etc.
-- Use this CSS import: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" />
-- Use this script import: <script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
-{LIBRARY_INSTRUCTIONS}
-
-{FORMAT_INSTRUCTIONS}
-
-Make sure to wrap the content in IonApp, IonContent components as needed."""
-
SVG_SYSTEM_PROMPT = f"""
You are an expert SVG developer who creates beautiful, modern SVG graphics and icons.
@@ -131,7 +115,6 @@ SYSTEM_PROMPTS: SystemPrompts = {
"react_tailwind": REACT_TAILWIND_SYSTEM_PROMPT,
"bootstrap": BOOTSTRAP_SYSTEM_PROMPT,
"ionic_tailwind": IONIC_TAILWIND_SYSTEM_PROMPT,
- "ionic_react": IONIC_REACT_SYSTEM_PROMPT,
"vue_tailwind": VUE_TAILWIND_SYSTEM_PROMPT,
"svg": SVG_SYSTEM_PROMPT,
}
diff --git a/backend/prompts/types.py b/backend/prompts/types.py
index 6acb50f8..7d4ca2d2 100644
--- a/backend/prompts/types.py
+++ b/backend/prompts/types.py
@@ -7,7 +7,6 @@ class SystemPrompts(TypedDict):
react_tailwind: str
bootstrap: str
ionic_tailwind: str
- ionic_react: str
vue_tailwind: str
svg: str
@@ -15,11 +14,9 @@ class SystemPrompts(TypedDict):
Stack = Literal[
"html_css",
"html_tailwind",
- "html_tailwind_thinking",
"react_tailwind",
"bootstrap",
"ionic_tailwind",
- "ionic_react",
"vue_tailwind",
"svg",
]