|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
var yo = require('yo-yo') |
|
|
|
|
var csjs = require('csjs-inject') |
|
|
|
|
// var globalRegistry = require('../../../global/registry')
|
|
|
|
|
|
|
|
|
|
var css = csjs` |
|
|
|
|
.container { |
|
|
|
@ -38,12 +39,16 @@ export class LandingPage extends ApiFactory { |
|
|
|
|
{ label: 'New file', |
|
|
|
|
type: 'callback', |
|
|
|
|
payload: () => { |
|
|
|
|
let fileManager = globalRegistry.get('fileexplorerbrowser').api |
|
|
|
|
fileManager.creatNewFile() |
|
|
|
|
let fileExplorer = globalRegistry.get('fileexplorer').api |
|
|
|
|
fileExplorer.creatNewFile() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{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 = [ |
|
|
|
@ -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` } |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
// var sectionStart = new Section('Start', actions1)
|
|
|
|
|
// var sectionStart = new Section('Start', actionsStart)
|
|
|
|
|
var sectionLearn = new Section('Learn', actionsLearn) |
|
|
|
|
var sectionPlugins = new Section('Plugins', actionsPlugins) |
|
|
|
|
var sectionHelp = new Section('Help', actionsHelp) |
|
|
|
@ -93,6 +98,7 @@ export class LandingPage extends ApiFactory { |
|
|
|
|
var sectionWorkspace = new Section('Workspaces', sectionsWorkspaces) |
|
|
|
|
|
|
|
|
|
this.sections.push(sectionWorkspace) |
|
|
|
|
// this.sections.push(sectionStart)
|
|
|
|
|
this.sections.push(sectionLearn) |
|
|
|
|
this.sections.push(sectionPlugins) |
|
|
|
|
this.sections.push(sectionHelp) |
|
|
|
|