修复作业预览下office365开关不生效的问题 (#7)
Co-authored-by: uarix [email protected]
- Fix inconsistent filename vs URL checking for Office files
Co-authored-by: uarix [email protected]
- Revert filename checking change to preserve original behavior
Co-authored-by: uarix [email protected]
Refactor settings panel to use configuration-driven approach
Replace 393 lines of repetitive HTML with 271 lines of reusable code
Introduce settingsConfig object to centralize all setting definitions
Create helper functions: generateSettingItem(), generateSettingsSection(), generateSidebarMenu(), generateAllSections()
Each setting now defined once in config with id, label, description, checked state, and optional disabled flag
Makes adding/removing settings much easier - only need to edit settingsConfig
Reduces code duplication and improves maintainability
Co-authored-by: uarix [email protected]
- Fix label text to match original wording
Co-authored-by: uarix [email protected]
Refactor settings config to support number inputs and simplify structure
Merge menuItems into settingsConfig with emoji property
Auto-generate setting IDs from category_key pattern
Remove redundant checked/id duplication
Add support for number input type with min/max validation
Implement conditional enable/disable for number inputs based on checkbox state
Apply notification page size setting to patchJobs dynamically
Settings structure: { type, label, description, defaultValue, disabled?, min?, max?, enabledBy? }
Co-authored-by: uarix [email protected]
- Update titles in settings configuration
Co-authored-by: copilot-swe-agent[bot] [email protected]
Co-authored-by: uarix [email protected]