|
|
@ -48,31 +48,33 @@ export class LandingPage extends ApiFactory { |
|
|
|
|
|
|
|
|
|
|
|
constructor (appManager, appStore) { |
|
|
|
constructor (appManager, appStore) { |
|
|
|
super() |
|
|
|
super() |
|
|
|
/* |
|
|
|
this.sections = [] |
|
|
|
var actions1 = [ |
|
|
|
/* var actions1 = [ |
|
|
|
{label: 'new file', type: `callback`, payload: () => { alert(`-new file created-`) }}, |
|
|
|
{ label: 'New file', |
|
|
|
{label: 'import from GitHub', type: `callback`, payload: () => { alert(`-imported from GitHub-`) }}, |
|
|
|
type: 'callback', |
|
|
|
{label: 'import from gist', type: `callback`, payload: () => { alert(`-imported from gist-`) }} |
|
|
|
payload: () => { |
|
|
|
] |
|
|
|
let fileManager = globalRegistry.get('fileexplorerbrowser').api |
|
|
|
|
|
|
|
fileManager.creatNewFile() |
|
|
|
var actions2 = [ |
|
|
|
} |
|
|
|
{label: '...', type: `callback`, payload: () => { alert(`-...-`) }} |
|
|
|
}, |
|
|
|
] |
|
|
|
{label: 'Import from GitHub', type: `callback`, payload: () => { this.alert(`-imported from GitHub-`) }}, |
|
|
|
|
|
|
|
{label: 'Import from gist', type: `callback`, payload: () => { this.alert(`-imported from gist-`) }} |
|
|
|
|
|
|
|
] */ |
|
|
|
|
|
|
|
|
|
|
|
var actions3 = [ |
|
|
|
var actions3 = [ |
|
|
|
{label: 'Remix documentation', type: `link`, payload: `https://remix.readthedocs.io/en/latest/#`}, |
|
|
|
{label: 'Remix documentation', type: `link`, payload: `https://remix.readthedocs.io/en/latest/#`}, |
|
|
|
{label: 'GitHub repository', type: `link`, payload: `https://github.com/ethereum/remix-ide`}, |
|
|
|
{label: 'GitHub repository', type: `link`, payload: `https://github.com/ethereum/remix-ide`}, |
|
|
|
{label: 'acces local file system (remixd)', type: `link`, payload: `https://remix.readthedocs.io/en/latest/tutorial_remixd_filesystem.html`}, |
|
|
|
{label: 'Access local file system with remixd', type: `link`, payload: `https://remix.readthedocs.io/en/latest/tutorial_remixd_filesystem.html`}, |
|
|
|
{label: 'npm module for remixd', type: `link`, payload: `https://www.npmjs.com/package/remixd`}, |
|
|
|
{label: 'npm module for remixd', type: `link`, payload: `https://www.npmjs.com/package/remixd`}, |
|
|
|
{label: 'medium posts', type: `link`, payload: `https://medium.com/remix-ide`}, |
|
|
|
{label: 'Medium posts', type: `link`, payload: `https://medium.com/remix-ide`}, |
|
|
|
{label: 'tutorials', type: `link`, payload: `https://github.com/ethereum/remix-workshops`} |
|
|
|
{label: 'Tutorials', type: `link`, payload: `https://github.com/ethereum/remix-workshops`} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
var actions4 = [ |
|
|
|
var actions4 = [ |
|
|
|
{label: 'Remix plugins & modules', type: `link`, payload: `https://github.com/ethereum/remix-plugin/blob/master/readme.md`}, |
|
|
|
{label: 'Remix plugins & modules', type: `link`, payload: `https://github.com/ethereum/remix-plugin/blob/master/readme.md`}, |
|
|
|
{label: 'repository on GitHub', type: `link`, payload: `https://github.com/ethereum/remix-plugin`}, |
|
|
|
{label: 'Repository on GitHub', type: `link`, payload: `https://github.com/ethereum/remix-plugin`}, |
|
|
|
{label: 'examples', type: `link`, payload: `https://github.com/ethereum/remix-plugin/tree/master/examples`}, |
|
|
|
{label: 'Examples', type: `link`, payload: `https://github.com/ethereum/remix-plugin/tree/master/examples`}, |
|
|
|
{label: 'build plugin for Remix', type: `link`, payload: `https://medium.com/remix-ide/build-a-plugin-for-remix-90d43b209c5a`} |
|
|
|
{label: 'Build a plugin for Remix', type: `link`, payload: `https://medium.com/remix-ide/build-a-plugin-for-remix-90d43b209c5a`} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
var actions5 = [ |
|
|
|
var actions5 = [ |
|
|
@ -81,13 +83,12 @@ 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 section1 = new Section('Start', actions1) |
|
|
|
// var sectionStart = new Section('Start', actions1)
|
|
|
|
var section2 = new Section('Recent', actions2) |
|
|
|
var sectionLearn = new Section('Learn', actions3) |
|
|
|
var section3 = new Section('Learn', actions3) |
|
|
|
var sectionPlugins = new Section('Plugins', actions4) |
|
|
|
var section4 = new Section('Plugins', actions4) |
|
|
|
var sectionHelp = new Section('Help', actions5) |
|
|
|
var section5 = new Section('Help', actions5) |
|
|
|
|
|
|
|
*/ |
|
|
|
var sectionsWorkspaces = [] |
|
|
|
const sectionsWorkspaces = [] |
|
|
|
|
|
|
|
sectionsWorkspaces.push({ |
|
|
|
sectionsWorkspaces.push({ |
|
|
|
label: 'Close All Modules', |
|
|
|
label: 'Close All Modules', |
|
|
|
type: 'callback', |
|
|
|
type: 'callback', |
|
|
@ -97,10 +98,18 @@ export class LandingPage extends ApiFactory { |
|
|
|
.forEach((profile) => { appManager.deactivateOne(profile.name) }) |
|
|
|
.forEach((profile) => { appManager.deactivateOne(profile.name) }) |
|
|
|
}}) |
|
|
|
}}) |
|
|
|
defaultWorkspaces(appManager).forEach((workspace) => { |
|
|
|
defaultWorkspaces(appManager).forEach((workspace) => { |
|
|
|
sectionsWorkspaces.push({label: workspace.title, type: 'callback', payload: () => { workspace.activate() }}) |
|
|
|
sectionsWorkspaces.push({ |
|
|
|
|
|
|
|
label: workspace.title, |
|
|
|
|
|
|
|
type: 'callback', |
|
|
|
|
|
|
|
payload: () => { workspace.activate() } |
|
|
|
}) |
|
|
|
}) |
|
|
|
const sectionWorkspace = new Section('Workspaces', sectionsWorkspaces) |
|
|
|
}) |
|
|
|
this.sections = sectionWorkspace |
|
|
|
var sectionWorkspace = new Section('Workspaces', sectionsWorkspaces) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sections.push(sectionWorkspace) |
|
|
|
|
|
|
|
this.sections.push(sectionLearn) |
|
|
|
|
|
|
|
this.sections.push(sectionPlugins) |
|
|
|
|
|
|
|
this.sections.push(sectionHelp) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get profile () { |
|
|
|
get profile () { |
|
|
|