Skip to content

1.0.3

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Nov 20:06

refactor: restructure code for better maintainability

  1. Directory Structure Reorganization:

    • Create src directory as source root
    • Split code into functional modules
  2. 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

  3. Functionality Improvements:

    • Optimize panel open/close logic
    • Automatic selection mode handling
    • Improve highlight cleanup mechanism
  4. Build Configuration Updates:

    • Update esbuild config for new structure
    • Output to root directory in dev mode
    • Output to dist directory in prod mode
  5. 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.