Add local/remote mode toggle for file conversion service#13
Draft
Add local/remote mode toggle for file conversion service#13
Conversation
Collaborator
|
@copilot 文件转换服务增加选项 “本地模式”和“远程模式” pandoc 文档 |
Co-authored-by: ojama <1772946+ojama@users.noreply.github.com>
Contributor
Author
I've implemented the local and remote conversion mode toggle feature as requested. Here's what I added: Configuration Changes (commit 19690d0):
Backend Implementation:
UI Changes:
The implementation ensures data structures remain consistent between both modes as requested. |
Copilot
AI
changed the title
[WIP] Add toggle switch feature
Add local/remote mode toggle for file conversion service
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for dual conversion modes in the file conversion service, allowing users to choose between using a local pandoc installation or the existing remote API service.
Changes Made
Configuration System
fileConvertModeconfiguration option to toggle between 'local' and 'remote' modespandocPathsetting for specifying custom pandoc executable locationBackend Implementation
pandocConverter.ts- Complete pandoc integration with:convertController.ts- Modified to support both conversion modes:User Interface
Internationalization
Features
✅ Local Mode: Uses locally installed pandoc for file conversions
✅ Remote Mode: Uses existing remote API service (default)
✅ Custom Pandoc Path: Optional configuration or uses system PATH
✅ Format Detection: Automatically detects available formats in both modes
✅ Consistent Data Structures: Both modes return identical response formats
✅ Persistent Settings: Configuration saved and reloaded on app restart
✅ Bilingual Support: Full Chinese and English translations
The implementation maintains backward compatibility and provides a clear migration path for users who want to use local pandoc installations.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.