← Back to standalone entry

MC Online Tool V3 · Preset config examples

Each page below mounts the tool with a different combination of preset options. Click any link to open it; use Ctrl+F5 after changing source files if the browser caches an old version.

Full presets (both sides configured)

transferGoogle Drive → OneDrive
The most common landing-page preset: source and target both pinned.
mountMCOnlineTool(el, { sourceProvider: 'Google Drive', targetProvider: 'OneDrive' });
›
transferDropbox → Google Drive
Same pattern, different cloud combination.
mountMCOnlineTool(el, { sourceProvider: 'Dropbox', targetProvider: 'Google Drive' });
›
synctwo-wayGoogle Drive ↔ OneDrive
Sync tab active, two-way direction pre-selected.
mountMCOnlineTool(el, { mode: 'sync', syncDirection: 'two-way', sourceProvider: 'Google Drive', targetProvider: 'OneDrive' });
›
syncone-wayDropbox → Google Drive (backup-style)
Backup is not a separate mode in V3; use one-way sync from source to target.
mountMCOnlineTool(el, { mode: 'sync', syncDirection: 'one-way', sourceProvider: 'Dropbox', targetProvider: 'Google Drive' });
›

Partial / default-anchored presets

transferOnly source preset (Box) · target stays default
Tests that the two sides are independent: FROM panel shows "Connect Box", TO panel shows the default "Select Target" button.
mountMCOnlineTool(el, { sourceProvider: 'Box' // targetProvider omitted → default Select Target });
›
syncone-way (default)Box → Dropbox
syncDirection is omitted; the sync tab falls back to one-way.
mountMCOnlineTool(el, { mode: 'sync', sourceProvider: 'Box', targetProvider: 'Dropbox' // syncDirection omitted → default one-way });
›

What each option does

All options are optional. If a value is omitted or invalid, the tool falls back to its default behavior — so a landing page that passes nothing at all looks exactly like the unconfigured V3.

Option Values Default What it controls
mode'transfer' · 'sync''transfer'Which tab is active on first load. Users can still switch at any time.
syncDirection'one-way' · 'two-way''one-way'Initial direction of the Cloud Sync tab only. Ignored when mode is transfer.
sourceProvider'Google Drive' · 'OneDrive' · 'Dropbox' · 'Box'(none)Shows a "Connect [Name]" primary button on the FROM panel. If omitted, FROM stays as "Select Source".
targetProvider'Google Drive' · 'OneDrive' · 'Dropbox' · 'Box'(none)Shows a "Connect [Name]" primary button on the TO panel. If omitted, TO stays as "Select Target".