Commit 7bf76379 authored by yann300's avatar yann300

linting

parent 0429892c
...@@ -54,7 +54,7 @@ class WorkspaceFileProvider extends FileProvider { ...@@ -54,7 +54,7 @@ class WorkspaceFileProvider extends FileProvider {
const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g') const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g')
let json = await super._copyFolderToJsonInternal(directory, ({ path, content }) => { let json = await super._copyFolderToJsonInternal(directory, ({ path, content }) => {
visitFile({ path: path.replace(regex, ''), content }) visitFile({ path: path.replace(regex, ''), content })
},({ path }) => { }, ({ path }) => {
visitFolder({ path: path.replace(regex, '') }) visitFolder({ path: path.replace(regex, '') })
}) })
json = JSON.stringify(json).replace(regex, '') json = JSON.stringify(json).replace(regex, '')
......
import * as packageJson from '../../../../../../package.json' import * as packageJson from '../../../../../../package.json'
import { ViewPlugin } from '@remixproject/engine-web' import { ViewPlugin } from '@remixproject/engine-web'
import { migrateToWorkspace } from '../../../migrateFileSystem' import { migrateToWorkspace } from '../../../migrateFileSystem'
import JSZip from "jszip" import JSZip from 'jszip'
const yo = require('yo-yo') const yo = require('yo-yo')
const csjs = require('csjs-inject') const csjs = require('csjs-inject')
...@@ -327,7 +327,7 @@ export class LandingPage extends ViewPlugin { ...@@ -327,7 +327,7 @@ export class LandingPage extends ViewPlugin {
const zip = new JSZip() const zip = new JSZip()
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => { await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => {
zip.file(path, content) zip.file(path, content)
},({ path }) => { }, ({ path }) => {
zip.folder(path) zip.folder(path)
}) })
zip.generateAsync({ type: 'blob' }).then(function (blob) { zip.generateAsync({ type: 'blob' }).then(function (blob) {
...@@ -417,7 +417,7 @@ export class LandingPage extends ViewPlugin { ...@@ -417,7 +417,7 @@ export class LandingPage extends ViewPlugin {
yo`<span>Do you want to download your files to local device first?</span>`, yo`<span>Do you want to download your files to local device first?</span>`,
{ {
label: 'Download and Migrate', label: 'Download and Migrate',
fn: async () => { fn: async () => {
await downloadFiles() await downloadFiles()
migrate() migrate()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment