From 42cc086bd08016d5cca4f150d749103ab50a4160 Mon Sep 17 00:00:00 2001 From: scarqin Date: Mon, 23 Dec 2024 11:36:25 +0800 Subject: [PATCH] chore: add global rule --- frontend/.windsurfrules/global_rules.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/.windsurfrules/global_rules.md b/frontend/.windsurfrules/global_rules.md index 4fc934d2..9e10462d 100644 --- a/frontend/.windsurfrules/global_rules.md +++ b/frontend/.windsurfrules/global_rules.md @@ -1,12 +1,14 @@ Create detailed components with these requirements: 1. Use 'use client' directive for client-side components 2. Style with Tailwind CSS utility classes for responsive design -3. Use iconify React for icons (from @iconify/react package). Do NOT use other UI libraries unless requested -4. Use local photos from public folder where appropriate, only valid URLs you know exist -5. Create root layout.tsx page that wraps necessary navigation items to all pages -6. MUST implement the navigation elements items in their rightful place i.e. Left sidebar, Top header -7. Accurately implement necessary grid layouts -8. Follow proper import practices: +3. Use React Router for navigation +4. Use Ant Design for UI components +5. Use iconify React for icons (from @iconify/react package). Do NOT use other UI libraries unless requested +6. Use local photos from public folder where appropriate, only valid URLs you know exist +7. Create root layout.tsx page that wraps necessary navigation items to all pages +8. MUST implement the navigation elements items in their rightful place i.e. Left sidebar, Top header +9. Accurately implement necessary grid layouts +10. Follow proper import practices: - Use @/ path aliases - Keep component imports organized - Update current packages/core/src/pages/Root.tsx with new comprehensive code