commented out start

pull/1/head
LianaHus 6 years ago
parent 7cc20961cc
commit 69409a4899
  1. 14
      src/app/ui/landing-page/landing-page.js

@ -1,5 +1,6 @@
var yo = require('yo-yo') var yo = require('yo-yo')
var csjs = require('csjs-inject') var csjs = require('csjs-inject')
// var globalRegistry = require('../../../global/registry')
var css = csjs` var css = csjs`
.container { .container {
@ -38,12 +39,16 @@ export class LandingPage extends ApiFactory {
{ label: 'New file', { label: 'New file',
type: 'callback', type: 'callback',
payload: () => { payload: () => {
let fileManager = globalRegistry.get('fileexplorerbrowser').api let fileExplorer = globalRegistry.get('fileexplorer').api
fileManager.creatNewFile() fileExplorer.creatNewFile()
} }
}, },
{label: 'Import from GitHub', type: `callback`, payload: () => { this.alert(`-imported from GitHub-`) }}, {label: 'Import from GitHub', type: `callback`, payload: () => { this.alert(`-imported from GitHub-`) }},
{label: 'Import from gist', type: `callback`, payload: () => { this.alert(`-imported from gist-`) }} {label: 'Import from gist', type: `callback`, payload: () => { this.alert(`-imported from gist-`) }},
{label: 'Import from swarm', type: `callback`, payload: () => { this.alert(`-imported from swarm-`) }},
{label: 'Import from ipfs', type: `callback`, payload: () => { this.alert(`-imported from ipfs-`) }},
{label: 'Import from gist', type: `callback`, payload: () => { this.alert(`-imported from gist-`) }},
{label: 'Open file', type: `callback`, payload: () => { this.alert(`-imported from gist-`) }}
] */ ] */
var actionsLearn = [ var actionsLearn = [
@ -68,7 +73,7 @@ export class LandingPage extends ApiFactory {
{ label: 'Reddit', type: `link`, payload: `https://www.reddit.com/r/ethdev/search?q=remix&restrict_sr=1` } { label: 'Reddit', type: `link`, payload: `https://www.reddit.com/r/ethdev/search?q=remix&restrict_sr=1` }
] ]
// var sectionStart = new Section('Start', actions1) // var sectionStart = new Section('Start', actionsStart)
var sectionLearn = new Section('Learn', actionsLearn) var sectionLearn = new Section('Learn', actionsLearn)
var sectionPlugins = new Section('Plugins', actionsPlugins) var sectionPlugins = new Section('Plugins', actionsPlugins)
var sectionHelp = new Section('Help', actionsHelp) var sectionHelp = new Section('Help', actionsHelp)
@ -93,6 +98,7 @@ export class LandingPage extends ApiFactory {
var sectionWorkspace = new Section('Workspaces', sectionsWorkspaces) var sectionWorkspace = new Section('Workspaces', sectionsWorkspaces)
this.sections.push(sectionWorkspace) this.sections.push(sectionWorkspace)
// this.sections.push(sectionStart)
this.sections.push(sectionLearn) this.sections.push(sectionLearn)
this.sections.push(sectionPlugins) this.sections.push(sectionPlugins)
this.sections.push(sectionHelp) this.sections.push(sectionHelp)

Loading…
Cancel
Save