1.0.3
refactor: restructure code for better maintainability
-
Directory Structure Reorganization:
- Create src directory as source root
- Split code into functional modules
-
New Directory Structure:
src/
├── core/
│ ├── BlurManager.ts # Blur effect management
│ └── PresetManager.ts # Preset management
├── models/
│ └── types.ts # Type definitions
├── ui/
│ ├── BlurManagePanel.ts # Management panel
│ └── BlurSettingTab.ts # Settings panel
├── utils/
│ └── dom.ts # DOM utilities
├── main.ts # Plugin entry
└── styles.css # Styles -
Functionality Improvements:
- Optimize panel open/close logic
- Automatic selection mode handling
- Improve highlight cleanup mechanism
-
Build Configuration Updates:
- Update esbuild config for new structure
- Output to root directory in dev mode
- Output to dist directory in prod mode
-
Type System Enhancements:
- Add interface definitions
- Fix type errors
- Improve type safety
This refactoring maintains all existing functionality while optimizing code organization and type system.