Commit Graph

6 Commits

Author SHA1 Message Date
a7556418ae 增加插件,自定义座右铭 2025-12-20 22:47:03 +08:00
afab936d70 位置调整 2025-12-20 22:02:29 +08:00
ZyphrZero
f609fcfcd3 🐛 fix(ui): improve SettingsMenu layout and spacing
- Increase SettingsMenu width from 160px to 192px for better visibility
- Add whitespace-nowrap to prevent text wrapping in menu items
- Update project license to GPL-3.0

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 15:21:16 +08:00
ZyphrZero
447b1d02ad perf(search): add 100ms debounce to search suggestions
- Add setTimeout with 100ms delay to reduce API calls
- Add cleanup function to clear timer on unmount

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:50:15 +08:00
ZyphrZero
a6daa5d728 feat(ui): add settings menu and mask opacity control
- Add SettingsMenu component for quick navigation between settings sections
- Add mask opacity control to adjust overlay transparency
- Optimize search suggestions with immediate response and smooth animations
- Refine component styles for more compact interface
- Fix Translation interface type definition for maskOpacity
- Unify Bilibili API path to simplify environment handling

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:45:36 +08:00
ZyphrZero
2993f9b859 ♻️ refactor: reorganize project structure and centralize search engine config
- Move all source files from root to src/ directory for better organization
- Create src/config/searchEngines.ts to centralize search engine configurations
  - Define unified SearchEngineConfig interface
  - Support both JSONP and Fetch request methods
  - Implement response parsers for Google, Baidu, Bing, DuckDuckGo, and Bilibili
- Refactor src/utils/suggestions.ts to use centralized config
  - Simplify code from 126 lines to 81 lines
  - Support hybrid JSONP/Fetch mode (Bilibili uses Fetch via Vite proxy)
  - Remove duplicate URL construction and parsing logic
- Update path alias configuration
  - Change @/* from ./* to ./src/* in tsconfig.json
  - Update vite.config.ts alias to point to ./src
- Add Bilibili proxy configuration in vite.config.ts for development
- Remove Bilibili rewrites from vercel.json (use Vite proxy instead)
- Add @vercel/node to devDependencies
- Remove unused files: README.md, i18n/README.md, metadata.json, vite-env.d.ts

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 10:41:17 +08:00