fixes standart errors

pull/3094/head
LianaHus 6 years ago
parent 350fc28336
commit 0a4d5fb155
  1. 13
      src/app/ui/landing-page/landing-page.js

@ -5,7 +5,6 @@ let CompilerImport = require('../../compiler/compiler-imports')
var modalDialogCustom = require('../modal-dialog-custom') var modalDialogCustom = require('../modal-dialog-custom')
var tooltip = require('../tooltip') var tooltip = require('../tooltip')
let css = csjs` let css = csjs`
.sectionContainer { .sectionContainer {
display : flex; display : flex;
@ -43,14 +42,13 @@ let css = csjs`
import { defaultWorkspaces } from './workspace' import { defaultWorkspaces } from './workspace'
import { ApiFactory } from 'remix-plugin' import { ApiFactory } from 'remix-plugin'
import Section from './section' import Section from './section'
import { ENGINE_METHOD_ALL } from 'constants';
export class LandingPage extends ApiFactory { export class LandingPage extends ApiFactory {
constructor (appManager, appStore) { constructor (appManager, appStore) {
super() super()
this.sections = [] this.sections = []
let load = function(item) { let load = function (item) {
let compilerImport = new CompilerImport() let compilerImport = new CompilerImport()
let fileProviders = globalRegistry.get('fileproviders').api let fileProviders = globalRegistry.get('fileproviders').api
modalDialogCustom.prompt(null, 'Enter the ' + item + ' you would like to load.', null, (target) => { modalDialogCustom.prompt(null, 'Enter the ' + item + ' you would like to load.', null, (target) => {
@ -59,8 +57,9 @@ export class LandingPage extends ApiFactory {
target, target,
(loadingMsg) => { tooltip(loadingMsg) }, (loadingMsg) => { tooltip(loadingMsg) },
(error, content, cleanUrl, type, url) => { (error, content, cleanUrl, type, url) => {
if (error) { modalDialogCustom.alert(error) } if (error) {
else { modalDialogCustom.alert(error)
} else {
if (fileProviders[type]) { if (fileProviders[type]) {
fileProviders[type].addReadOnly(cleanUrl, content, url) fileProviders[type].addReadOnly(cleanUrl, content, url)
} }
@ -115,7 +114,6 @@ export class LandingPage extends ApiFactory {
appManager.ensureActivated('remixd') appManager.ensureActivated('remixd')
} }
} }
] ]
var actionsHelp = [ var actionsHelp = [
@ -152,9 +150,6 @@ export class LandingPage extends ApiFactory {
} }
}) })
// var sectionWorkspaceMain = new Section('Workspaces', sectionsWorkspacesMain)
// this.sections.push(sectionWorkspaceMain)
this.sections.push(sectionStart) this.sections.push(sectionStart)
this.sections.push(sectionHelp) this.sections.push(sectionHelp)
} }

Loading…
Cancel
Save