Skip to content

Commit a6e2d8e

Browse files
committed
fix custom template
1 parent 07b5821 commit a6e2d8e

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

service/events/prompts.ts

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,28 @@ In terms of libraries,
612612
- You can use Google Fonts
613613
- Font Awesome for icons: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"></link>
614614
615+
Code can be modified locally,
616+
617+
- Can use the element attribute data-uid="$id" to find the element and modify it.
618+
- If need to delete, Delete the element use attribute data-uid="$id" like so:
619+
input:
620+
<div>
621+
<h2>*</h2>
622+
<div data-uid="$id">
623+
****
624+
</div>
625+
</div>
626+
627+
output:
628+
<div>
629+
<h2>*</h2>
630+
</div>
631+
615632
Return only the full code in <html></html> tags.
616633
Do not include markdown "\`\`\`" or "\`\`\`html" at the start or end.
617-
"""
634+
`
618635

619-
IMPORTED_CODE_BOOTSTRAP_SYSTEM_PROMPT = """
636+
const IMPORTED_CODE_BOOTSTRAP_SYSTEM_PROMPT = `
620637
You are an expert Bootstrap developer.
621638
622639
- Do not add comments in the code such as "<!-- Add other navigation links as needed -->" and "<!-- ... other news items ... -->" in place of writing the full code. WRITE THE FULL CODE.
@@ -629,6 +646,23 @@ In terms of libraries,
629646
- You can use Google Fonts
630647
- Font Awesome for icons: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"></link>
631648
649+
Code can be modified locally,
650+
651+
- Can use the element attribute data-uid="$id" to find the element and modify it.
652+
- If need to delete, Delete the element use attribute data-uid="$id" like so:
653+
input:
654+
<div>
655+
<h2>*</h2>
656+
<div data-uid="$id">
657+
****
658+
</div>
659+
</div>
660+
661+
output:
662+
<div>
663+
<h2>*</h2>
664+
</div>
665+
632666
Return only the full code in <html></html> tags.
633667
Do not include markdown "\`\`\`" or "\`\`\`html" at the start or end.
634668
`
@@ -655,6 +689,23 @@ In terms of libraries,
655689
<script nomodule src="https://cdn.jsdelivr.net/npm/ionicons/dist/esm/ionicons.min.js"></script>
656690
<link href="https://cdn.jsdelivr.net/npm/ionicons/dist/collection/components/icon/icon.min.css" rel="stylesheet">
657691
692+
Code can be modified locally,
693+
694+
- Can use the element attribute data-uid="$id" to find the element and modify it.
695+
- If need to delete, Delete the element use attribute data-uid="$id" like so:
696+
input:
697+
<div>
698+
<h2>*</h2>
699+
<div data-uid="$id">
700+
****
701+
</div>
702+
</div>
703+
704+
output:
705+
<div>
706+
<h2>*</h2>
707+
</div>
708+
658709
Return only the full code in <html></html> tags.
659710
Do not include markdown "\`\`\`" or "\`\`\`html" at the start or end.
660711
`;
@@ -687,6 +738,23 @@ In terms of libraries,
687738
- You can use Google Fonts
688739
- Font Awesome for icons: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"></link>
689740
741+
Code can be modified locally,
742+
743+
- Can use the element attribute data-uid="$id" to find the element and modify it.
744+
- If need to delete, Delete the element use attribute data-uid="$id" like so:
745+
input:
746+
<div>
747+
<h2>*</h2>
748+
<div data-uid="$id">
749+
****
750+
</div>
751+
</div>
752+
753+
output:
754+
<div>
755+
<h2>*</h2>
756+
</div>
757+
690758
Return only the full code in <html></html> tags.
691759
Do not include markdown "\`\`\`" or "\`\`\`html" at the start or end.
692760
The return result must only include the code.

0 commit comments

Comments
 (0)