|
|
|
@ -322,7 +322,6 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
|
|
|
|
|
const downloadFiles = async () => { |
|
|
|
|
try { |
|
|
|
|
tooltip('preparing files, please wait..') |
|
|
|
|
const fileProviders = globalRegistry.get('fileproviders').api |
|
|
|
|
const zip = new JSZip() |
|
|
|
|
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => { |
|
|
|
@ -331,6 +330,7 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
zip.folder(path, content) |
|
|
|
|
}) |
|
|
|
|
zip.generateAsync({ type: 'blob' }).then(function (blob) { |
|
|
|
|
tooltip('Files ready for download. Do not disconnect from the internet.') |
|
|
|
|
saveAs(blob, 'remixdbackup.zip') |
|
|
|
|
}).catch((e) => { |
|
|
|
|
tooltip(e.message) |
|
|
|
@ -402,12 +402,14 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const migrate = async () => { |
|
|
|
|
tooltip('migrating workspace...') |
|
|
|
|
try { |
|
|
|
|
const workspaceName = await migrateToWorkspace(this.fileManager, this.filePanel) |
|
|
|
|
|
|
|
|
|
tooltip('done. ' + workspaceName + ' created.') |
|
|
|
|
} catch (e) { |
|
|
|
|
return tooltip(e.message) |
|
|
|
|
setTimeout(() => { |
|
|
|
|
tooltip(e.message) |
|
|
|
|
}, 1000) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|