chore: add global_rules.md

This commit is contained in:
scarqin
2024-12-23 10:16:59 +08:00
parent 6126ba8678
commit 4c40b04c8e
3 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -3,4 +3,4 @@
/config.yml
/build/
/apipark
.gitlab-ci.yml
.gitlab-ci.yml
-12
View File
@@ -1,12 +0,0 @@
{
"cSpell.words": [
"Antd",
"apinto",
"Apipark",
"logsettings",
"resourcesettings"
],
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
+15
View File
@@ -0,0 +1,15 @@
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:
- Use @/ path aliases
- Keep component imports organized
- Update current packages/core/src/pages/Root.tsx with new comprehensive code
- Don't forget root route (page.tsx) handling
- You MUST complete the entire prompt before stopping