|
|
|
@ -298,9 +298,12 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const downloadFiles = async () => { |
|
|
|
|
try { |
|
|
|
|
const fileProviders = globalRegistry.get('fileproviders').api |
|
|
|
|
const json = await fileProviders.browser.copyFolderToJson('/') |
|
|
|
|
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' }) |
|
|
|
|
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' })
|
|
|
|
|
const blob = new Blob([ JSON.stringify(json, null, '\t') ], { type: 'text/plain;charset=utf-8' }) |
|
|
|
|
const node = document.createElement('a') |
|
|
|
|
node.download = 'remix.json' |
|
|
|
|
node.rel = 'noopener' |
|
|
|
@ -316,6 +319,9 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
node.dispatchEvent(evt) |
|
|
|
|
} |
|
|
|
|
}, 0) // 40s
|
|
|
|
|
} catch (e) { |
|
|
|
|
tooltip(e.message) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const uploadFile = (target) => { |
|
|
|
|