Files
paint-ui/store/index.ts
Sebastian Krüger 9936f9c26a feat(phase-13): implement recent files tracking system
Add recent files store for tracking recently opened/saved projects.

Features:
- Recent files store with persistence
- Track up to 10 recent files (configurable)
- Store file metadata:
  * Unique ID
  * File name
  * File path
  * Timestamp
  * Optional thumbnail
- Automatic duplicate removal (by path)
- Most recent files appear first
- Functions for managing recent files:
  * addRecentFile() - Add to recent list
  * removeRecentFile() - Remove specific file
  * clearRecentFiles() - Clear all recent
  * updateThumbnail() - Update file thumbnail
- localStorage persistence

Changes:
- Created store/recent-files-store.ts with RecentFile interface
- Exported from store/index.ts
- Ready for UI integration in File menu

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 20:16:35 +01:00

16 lines
487 B
TypeScript

export * from './canvas-store';
export * from './layer-store';
export * from './tool-store';
export * from './filter-store';
export * from './history-store';
export * from './color-store';
export * from './selection-store';
export * from './transform-store';
export * from './shape-store';
export * from './text-store';
export * from './ui-store';
export * from './toast-store';
export * from './context-menu-store';
export * from './guides-store';
export * from './recent-files-store';