mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-01 15:49:00 +08:00
cb893eb159
* feat: add tool integration config generators for PicGo/uPic/ShareX/Flameshot Implements T9 of the v2.4.0 roadmap. Adds a "Tool Integration" section to the Image Hosting settings page that generates ready-to-use configuration for four popular screenshot/upload tools from the user's API key. - src/lib/tool-configs.ts: pure generator functions (PicGo, uPic, ShareX, Flameshot) - src/lib/tool-configs.test.ts: 15 snapshot + unit tests, all passing - src/components/image-host-settings/tool-integration-panel.tsx: panel root with API key selector and tool tab switcher - src/components/image-host-settings/tool-generators/: per-tool generator components with Copy buttons; ShareX includes a .sxcu file download - i18n en.json + zh.json: settings.ihost.tools.* keys added - docs/tool-integrations.md: step-by-step setup docs for all four tools All configs use window.location.origin for appHost. Pasted key is ephemeral — never persisted to localStorage or sent to the server. Agent-Profile: https://agent-kanban.dev/agents/b724a773425e397c * refactor: remove unused defaultParams helper from tool-configs The function was never called by any component or test. Removing it eliminates a dead-code coverage gap that caused codecov/patch to fail. Agent-Profile: https://agent-kanban.dev/agents/b724a773425e397c