Skip to content

✨ Feature(upload): add batch url upload support#1376

Merged
Molunerfinn merged 4 commits intodevfrom
feature-multi-url-upload
Jan 12, 2026
Merged

✨ Feature(upload): add batch url upload support#1376
Molunerfinn merged 4 commits intodevfrom
feature-multi-url-upload

Conversation

@Molunerfinn
Copy link
Owner

ISSUES CLOSED: #1302

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for batch URL uploads to PicGo, addressing issue #1302. Users can now upload multiple URLs at once by separating them with newlines, either through drag-and-drop or via the URL input dialog.

Changes:

  • Added utility functions parseNewlineSeparatedUrls and extractHttpUrlsFromText to handle multiple URLs from various input sources
  • Updated the URL input dialog to support textarea input for multiple URLs
  • Implemented confirmation dialog when uploading more than 10 URLs at once (in Upload page only)
  • Added invalid URL logging and user notifications
  • Migrated test infrastructure from Karma/Mocha to Vitest
  • Upgraded Husky from v3 to v9 and configured Git hooks

Reviewed changes

Copilot reviewed 21 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/universal/utils/common.ts Added core URL parsing functions with support for newline-separated, concatenated, and NUL-separated URLs
src/universal/types/types.d.ts Extended IShowInputBoxOption to support textarea input type
src/universal/types/i18n.d.ts Added translation keys for batch URL upload feedback
src/universal/events/constants.ts Added LOG_INVALID_URL_LINES event constant
src/renderer/pages/Upload.vue Refactored drop handling to support batch URLs with confirmation for large batches
src/renderer/pages/MiniPage.vue Refactored drop handling to support batch URLs
src/renderer/components/dialog/InputBoxDialog.vue Added textarea support with vertical resize and max-height
src/renderer/utils/bus.ts Updated type to use IShowInputBoxOption interface
src/main/events/ipcList.ts Added handler to log invalid URL lines
src/tests/universal/utils/common.spec.ts Added comprehensive unit tests for URL parsing functions
public/i18n/*.yml Added translations for invalid URLs and batch upload confirmation
package.json Added vitest, upgraded husky, added test/prepare/commitlint scripts
pnpm-lock.yaml Updated dependencies for husky v9 and vitest v4
.husky/pre-commit Added pre-commit hook to run checks and tests
.husky/commit-msg Added commit-msg hook for commitlint
.gitignore Added openspec/ directory
test/* Removed old Karma/Mocha test infrastructure
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Molunerfinn Molunerfinn merged commit c84d542 into dev Jan 12, 2026
@Molunerfinn Molunerfinn deleted the feature-multi-url-upload branch January 12, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: url上传能批量url一起传吗

2 participants