diff --git a/.github/QUICKSTART.md b/.github/QUICKSTART.md index 2061cfb..c8018d5 100644 --- a/.github/QUICKSTART.md +++ b/.github/QUICKSTART.md @@ -29,7 +29,7 @@ npm run verify:release ## 📚 详细文档 -- **[RELEASE.md](./RELEASE.md)** - 完整的发布流程指南 +- **[RELEASE.md](../RELEASE.md)** - 完整的发布流程指南 - **[.github/workflows/README.md](./workflows/README.md)** - 工作流配置说明 ## 🎯 自动化功能 @@ -56,4 +56,4 @@ git push origin feature/my-feature --- -**需要帮助?** 查看 [RELEASE.md](./RELEASE.md) 获取详细指南和故障排查。 +**需要帮助?** 查看 [RELEASE.md](../RELEASE.md) 获取详细指南和故障排查。 diff --git a/CLAUDE.md b/CLAUDE.md index 711b107..df278f6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -88,7 +88,8 @@ npm run resize large-promo # Large promo tile (1400x560) **Adapter Pattern for Platform Support:** - `src/adapters/base/adapter.interface.ts` - Base adapter interface - `src/adapters/quark/` - Quark Drive implementation -- `src/adapters/aliyun/` and `src/adapters/baidu/` - Planned for future +- `src/adapters/aliyun/` - Aliyun Drive implementation +- `src/adapters/baidu/` - Baidu Pan implementation **Strategy Pattern for Rename Rules:** - `src/rules/base-rule.ts` - Base rule class @@ -106,15 +107,20 @@ npm run resize large-promo # Large promo tile (1400x560) **Content Script Architecture:** ``` Content Script (ISOLATED world) -├── UI Components (Lit Web Components) -│ ├── rename-dialog.ts - Main dialog -│ ├── rename-preview.ts - Preview list -│ ├── progress-dialog.ts - Progress tracking -│ └── floating-button.ts - Trigger button +├── FloatingButton (Shadow DOM) +│ └── src/content/components/floating-button.ts +├── Main Panel (Lit Web Components) +│ ├── file-selector-panel.ts - 3-column container (config / list / preview) +│ ├── config-panel.ts - Rule config + execution/progress +│ ├── file-list-panel.ts - Search/filter/select + virtual list +│ └── preview-panel.ts - Preview + conflict/status + virtual list └── Platform Adapter Integration Page Script (MAIN world) - For API interception -└── src/adapters/quark/page-script.ts +└── src/adapters/{quark,aliyun,baidu}/page-script.ts (dynamically injected) + +Dialog Page (extension iframe, optional/legacy UI) +└── src/dialog/ (hosts rename-dialog/rename-preview, if used) ``` **Message Communication:** @@ -139,8 +145,8 @@ Page Script (MAIN world) - For API interception **Manifest V3 Requirements:** - Service Worker background script (not persistent) -- Separate content scripts for ISOLATED and MAIN worlds -- Web-accessible resources for iframe-based dialog +- Content script runs in ISOLATED world; platform page-scripts are injected into MAIN world via `