Commit Graph

8 Commits

Author SHA1 Message Date
Tiger Ren 0760fb2c2a Update dependencies and refactor Graph API integration
- Added isomorphic-fetch to package.json and package-lock.json for improved fetch capabilities.
- Removed the deprecated graphApi.js file and refactored the renderer to utilize a new graph service structure.
- Updated renderer.js to enhance folder content retrieval and authentication flow, ensuring better management of access tokens.
- Improved logging for better visibility during the sync process and error handling.
2025-01-22 17:26:01 +08:00
Tiger Ren 59b8367275 Integrate @electron/remote for enhanced OneDrive API interactions and update dependencies
- Initialized the @electron/remote module in main.js to enable remote functionality for the application.
- Updated package.json and package-lock.json to include @electron/remote version 2.1.2 and uuid version 11.0.4 for improved GUID generation.
- Refactored graphApi.js to utilize the remote module for creating an authentication window and managing OAuth flows with Microsoft Graph API.
- Enhanced listFolderContents method to log detailed information about folder queries and handle access tokens more effectively.
- Updated renderer.js to improve logging during folder content retrieval, providing better visibility into the sync process.
2025-01-09 01:01:31 +08:00
Tiger Ren 27e77d2998 Refactor sync process to handle video items and improve error handling
- Updated 'start-sync' IPC event to process video files from OneDrive, filtering for .mov and .mp4 formats.
- Enhanced logging to provide feedback on the number of video items found and downloaded.
- Integrated Graph API client to retrieve folder contents before initiating sync.
- Improved error handling for sync operations and added user feedback for sync completion and errors.
- Updated renderer.js to manage button states during the sync process.
2025-01-09 00:13:28 +08:00
Tiger Ren d5a4eac1ae Add sync functionality and remove configuration HTML
- Implemented 'start-sync' IPC event in main.js to initiate synchronization with provided configuration.
- Added a 'Sync Now' button in index.html to trigger the sync process.
- Updated renderer.js to handle sync button click, ensuring both destination folder and OneDrive source path are set before proceeding.
- Removed obsolete config.html file as its functionality is now integrated into the main application flow.
- Enhanced styles for the new sync button in styles.css.
2025-01-08 01:00:49 +08:00
Tiger Ren 1c7fc924f3 Enhance video download functionality by adding cookie handling and improved request headers. Enable remote module in web preferences and log cookies for debugging. Update renderer to include session management for better cookie access. 2025-01-08 00:21:16 +08:00
Tiger Ren 159653d17e Add event listener for close button in config panel 2025-01-07 15:12:47 +08:00
Tiger Ren 28e4e07b83 successfully intercept the mp4 request (but 401 response get, as cookie not sent) 2025-01-07 14:27:40 +08:00
Tiger Ren b9248eecb9 seperate js from html 2025-01-07 13:15:55 +08:00