feat(13-07): wire binary-only preview and authorized download through shared actions
- CloudFolderView: onFileOpen calls openCloudFile(connectionId, provider_item_id, file) — never window.open() - CloudFolderView: D-18 fallback calls downloadCloudFile for unsupported formats - api/cloud.js: add openCloudFile optional fileContext param (third argument) for test matching - api/cloud.js: add downloadCloudFile authorized download endpoint helper - CloudFolderOpenPreview.test.js: fix makeBrowserStub missing name (findComponent by name) - All 8 preview suite tests pass — binary-only preview + authorized fallback download
This commit is contained in:
@@ -74,6 +74,7 @@ import * as api from '../../api/client.js'
|
|||||||
// ── StorageBrowser stub that can emit events ──────────────────────────────────
|
// ── StorageBrowser stub that can emit events ──────────────────────────────────
|
||||||
function makeBrowserStub(extraEmits = []) {
|
function makeBrowserStub(extraEmits = []) {
|
||||||
return {
|
return {
|
||||||
|
name: 'StorageBrowser',
|
||||||
template: '<div data-test="storage-browser"><slot /></div>',
|
template: '<div data-test="storage-browser"><slot /></div>',
|
||||||
props: [
|
props: [
|
||||||
'mode', 'folders', 'files', 'breadcrumb', 'uploadQueue', 'loading',
|
'mode', 'folders', 'files', 'breadcrumb', 'uploadQueue', 'loading',
|
||||||
|
|||||||
Reference in New Issue
Block a user