Commit Graph
26 Commits
Author SHA1 Message Date
xixu-me b3ff194b21 ci: tolerate protected Dependabot workflow updates 2026-07-03 23:12:17 +08:00
xixu-me a9b5b5171f ci: add Dependabot auto merge workflow 2026-07-03 23:01:29 +08:00
xixu-me 089e405452 Merge pull request #9 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-bed0206944
Bump vite from 8.0.5 to 8.0.16 in the npm_and_yarn group across 1 directory
2026-06-16 10:38:36 +08:00
xixu-me 60f923a90d fix(deps): override postcss to 8.5.10 2026-06-14 20:59:14 +08:00
xixu-me 36d03037c1 fix(deps): override esbuild to 0.28.1 2026-06-14 20:58:10 +08:00
xixu-me 8ec9e25ada Merge pull request #7 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-7c6ac41456
Bump vite from 8.0.0 to 8.0.5 in the npm_and_yarn group across 1 directory
2026-04-07 02:42:31 +08:00
xixu-me 87e7903ced Merge pull request #6 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-3f9ee708be
Bump picomatch from 4.0.3 to 4.0.4 in the npm_and_yarn group across 1 directory
2026-03-26 16:57:51 +08:00
xixu-me a92bf4ea22 Fix Dependabot alerts for undici 2026-03-17 14:55:54 +08:00
xixu-me 00c940633d Merge pull request #5 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-b2936519f3
Bump rollup from 4.44.1 to 4.59.0 in the npm_and_yarn group across 1 directory
2026-02-28 16:03:09 +08:00
xixu-me 69c7958bc7 Merge pull request #4 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-74ecd9d969
Bump wrangler from 4.35.0 to 4.59.3 in the npm_and_yarn group across 1 directory
2026-01-22 12:21:02 +08:00
xixu-me 54708682f1 Merge pull request #3 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-1b92d517bd
Bump devalue from 5.3.2 to 5.6.2 in the npm_and_yarn group across 1 directory
2026-01-16 03:26:10 +08:00
xixu-me 9e74a49dc5 Add Chinese README for Google Drive upload bot 2025-12-04 17:18:32 +08:00
xixu-me 49d3bac6e2 Merge pull request #2 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-37df895856
Bump vite from 7.1.5 to 7.2.6 in the npm_and_yarn group across 1 directory
2025-12-04 16:45:56 +08:00
xixu-me e232520cd4 Merge pull request #1 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-81b345e4d9
Bump the npm_and_yarn group across 1 directory with 3 updates
2025-12-04 16:36:44 +08:00
xixu-me 0660978ef1 Remove comments from wrangler.jsonc
Deleted introductory comments from the wrangler.jsonc configuration file to clean up the file.
2025-07-04 14:29:15 +08:00
xixu-me cc11968df9 Refactor Google Drive upload to use only multipart upload
Removed support for resumable and chunked uploads, as well as file type advice and related helper functions. The upload process now always uses multipart upload for all file sizes, simplifying the code and error handling.
2025-07-04 14:29:07 +08:00
xixu-me 6f4651e283 Add large file handling and resumable uploads
Introduces checks for Telegram's 20MB file size limit and provides user guidance for oversized files. Implements Google Drive resumable uploads for files larger than 5MB, and adds helper functions for chunked file processing and file type-specific compression advice. Exports helper functions for testing.
2025-07-04 14:16:29 +08:00
xixu-me 3bc9d13615 Remove CPU limit from wrangler config
Deleted the 'limits.cpu_ms' setting from wrangler.jsonc to allow default CPU usage. This may be to enable longer execution times or to rely on platform defaults.
2025-07-04 13:48:45 +08:00
xixu-me 1935f306d3 Add project README with setup instructions
Introduces a comprehensive README.md detailing features, setup steps for Google Drive and Telegram, environment variables, deployment instructions, API payload examples, security considerations, and acknowledgments for the Google Drive Upload Robot project.
2025-07-04 13:46:21 +08:00
xixu-me 79a25966d4 Refactor bot logic and add tests for file uploads
Refactored src/index.js to modularize and simplify Telegram file and photo upload handling to Google Drive. Enhanced Google authentication and file upload logic, improved error handling, and added unit tests in test/index.test.js. Updated package.json with metadata and made the package public. Adjusted wrangler.jsonc to set CPU limits and add environment variables.
2025-07-04 13:32:24 +08:00
xixu-me 651a7a03ea Refactor Worker to support resumable Google Drive uploads
Rewrites the Cloudflare Worker to handle Telegram file uploads to Google Drive using the resumable upload API for large files. Adds detailed error handling, progress tracking, and modularizes authentication and upload logic. Removes legacy code for multipart uploads and streamlines the file handling process.
2025-07-04 13:13:21 +08:00
xixu-me eac9e037e2 Refactor upload logic and remove upload tests
Refactored file upload logic to pass file size directly and streamline handling of large files with a new resumableUpload function. Removed the upload.test.js file.
2025-07-04 13:02:24 +08:00
xixu-me cb5b329a5b Refactor upload logic and add upload tests
Refactored file upload logic to Google Drive by separating small and large file handling, improving resumable upload with chunking and progress updates. Added unit tests for upload logic, including file size checks and chunking behavior.
2025-07-03 22:49:57 +08:00
xixu-me 3d4a352f63 Add resumable upload for large files to Google Drive
Enhanced the uploadToDrive function to support resumable uploads for files larger than 20MB, improving reliability for large file transfers. Also updated wrangler.jsonc to enable smart placement and cleaned up configuration comments.
2025-07-03 22:34:00 +08:00
xixu-me 2aa82df6b5 Create LICENSE 2025-07-03 22:10:29 +08:00
xixu-me b712232b5e Initial commit (by create-cloudflare CLI)
Details:
  C3 = create-cloudflare@2.50.2
  project name = gdrive-upload-robot
  package manager = npm@11.2.0
  wrangler = wrangler@4.22.0
  git = 2.45.2.windows.1
2025-07-03 22:00:11 +08:00