主页作业显示所属课程,使用Office 365预览课件,增加通知显示数量,去除悬浮窗,解除复制限制,课件自动下载,批量下载,资源页展示全部下载按钮,更好的页面标题
目前為 2025-04-12 提交的版本,檢視 最新版本。
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
修复作业预览下office365开关不生效的问题 (#7)
Initial plan
Fix Office365 preview in assignment details to respect user settings
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
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: copilot-swe-agent[bot] [email protected] Co-authored-by: uarix [email protected]
Update NProgress resource URLs to new mirrors
Thanks to @SUSTech-CRA
使"ticket跳转修复"设置项可被关闭 (#5)
:zap: 使用hashchange监听器,修改部分默认值
:ambulance: 修复失效CDN,增加新标签页打开功能,移除快捷打开功能
:zap: 使用 Webpack Hook