Commit Graph

15 Commits

Author SHA1 Message Date
Developer
f4b834840a 清理:移除旧management目录(旧位置) 2026-06-01 17:21:50 +08:00
Developer
2a36aa593c 重构扑克牌设计系统:修复后端渲染bug,重写前端编辑器 2026-06-01 17:11:06 +08:00
Poker Design Developer
bde508dcfe Add background image upload and real-time layer editing
- Background layer: color picker (real-time) + image upload + clear
- Image preview shows in sidebar after upload
- Uploaded image scales to fill the card dimensions
- All layer properties now update canvas in real-time (no apply button needed)
- Border: color + thickness slider real-time
- Text: font size slider real-time
- Click canvas objects to select layer and sync properties
2026-05-31 22:53:08 +08:00
Poker Design Developer
ab7c6c4474 Make all canvas objects selectable and editable
- All objects now selectable on canvas (hasControls=false, lockMovement enabled)
- Clicking canvas objects syncs activeLayer
- Add property editor panel for bg/border/text layers
- Background: color picker to change fill color
- Border: color picker + thickness slider
- Text: font size slider
- Layer properties (fillColor, strokeColor, textSize) stored in layer state
2026-05-31 22:43:51 +08:00
Poker Design Developer
888b787d1e Add interactive layer management to Editor
- Click layer to toggle visibility and redraw canvas
- Click ▲/▼ buttons to reorder layers (z-index)
- Active layer highlighted with left red border
- Each layer now actually renders: bg/white, border/frame, pattern/suit symbol, text/corner labels
- Fix fabric.js imports (Canvas, FabricText, Rect)
2026-05-31 22:13:38 +08:00
Poker Design Developer
670ac0a917 Rebuild Home and Editor pages with simplified inline styles
- Replace Element Plus components with pure HTML/CSS
- Use inline styles for reliable rendering
- Fix templates URL duplicate path issue
- Insert template data (4 templates) via Django shell
- Clear Vite cache and restart both servers
2026-05-31 22:07:39 +08:00
Poker Design Developer
71193c30e6 Fix fabric.js v6 import error causing blank page
- Replace deprecated 'import { fabric } from fabric' with named imports
- Editor.vue: import Canvas, Rect, FabricText
- symmetry.js: import FabricImage, Rect, Group
- Clear Vite cache to rebuild dependencies
2026-05-31 21:52:20 +08:00
Poker Design Developer
48b6fb0a39 Fix frontend blank page issue
- Simplify Home.vue to avoid API loading errors
- Use built-in template data instead of API calls
- Add simple error handling for API requests
- Add test page for debugging
2026-05-31 19:35:53 +08:00
Poker Design Developer
5dbcebf7a2 Fix frontend blank page issues
- Fix router import path in main.js
- Handle Django REST Framework pagination format in API calls
- Add getTemplates function to project API
- Restart frontend development server
2026-05-31 18:40:56 +08:00
Poker Design Developer
d10ee0e0fe Fix Django API routing and authentication issues
- Add django.contrib.auth to INSTALLED_APPS
- Fix URL routing structure for proper API endpoints
- Add API root endpoint with endpoint information
- Verify all API endpoints working correctly
2026-05-31 17:26:45 +08:00
Poker Design Developer
3aa2eadc52 Fix Django migration issues and add missing URLs
- Create missing templates app urls.py
- Fix REST_FRAMEWORK pagination settings
- Add DEFAULT_AUTO_FIELD configuration
- Create migration files for all apps
- Fix auto-generated model warnings
- Verify database setup with test project
2026-05-31 16:01:00 +08:00
Poker Design Developer
e7f7b8abf3 Complete poker card design system implementation
- Add comprehensive setup guide
- Document all completed features
- List API endpoints and usage
- Provide development roadmap
2026-05-31 15:37:42 +08:00
Poker Design Developer
0370e4018a Implement asset upload API and utility functions
- Add Asset and CardLayer model updates
- Create asset upload API endpoints
- Add AssetUploadDialog component
- Create card layout algorithms
- Implement symmetry generation utils
- Add template configurations
2026-05-31 15:33:50 +08:00
Poker Design Developer
48629736f4 Implement Django backend and Vue frontend structure
- Django backend with projects, templates, exports apps
- SQLite database models for Project, Asset, CardLayer
- REST API endpoints for project management
- Vue frontend with Vite, Element Plus, Fabric.js
- Home page for project selection
- Editor page with Fabric.js canvas integration
2026-05-31 14:55:01 +08:00
Poker Design Developer
00ac63b85c Add README and design spec for poker card design system 2026-05-31 11:46:24 +08:00