mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-06-22 15:35:04 +00:00
update
This commit is contained in:
parent
c60d434a43
commit
a9efb68d97
@ -374,7 +374,7 @@ class EmbedPreview {
|
|||||||
}
|
}
|
||||||
|
|
||||||
highlightMentions(text) {
|
highlightMentions(text) {
|
||||||
return text.replace(/@(\w+)/g, '<span class="mention">@$1</span>');
|
return text.replaceAll(/@(https?:\/\/[^\s]+.*?|\w+\.\w+|\w+)/g, '<span class="mention">@$1</span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
capitalizeFirst(str) {
|
capitalizeFirst(str) {
|
||||||
|
@ -565,7 +565,9 @@ Can you help me refactor it to:
|
|||||||
3. Add proper TypeScript types
|
3. Add proper TypeScript types
|
||||||
4. Implement virtualization for better performance with large product lists
|
4. Implement virtualization for better performance with large product lists
|
||||||
|
|
||||||
The component currently handles products display, filtering by category/price, sorting, and pagination all in one file. I want a cleaner architecture.`;
|
The component currently handles products display, filtering by category/price, sorting, and pagination all in one file. I want a cleaner architecture.
|
||||||
|
|
||||||
|
Please check the @https://tanstack.com/query/latest/docs/react/overview for data fetching best practices and consider if we should integrate it for product data management.`;
|
||||||
|
|
||||||
document.getElementById('designer-context').value = '@codebase, ProductList.tsx, components/, hooks/';
|
document.getElementById('designer-context').value = '@codebase, ProductList.tsx, components/, hooks/';
|
||||||
document.getElementById('designer-filetree').value =
|
document.getElementById('designer-filetree').value =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user