|
|
@ -42,7 +42,7 @@ import { basicLogo } from './app/ui/svgLogo' |
|
|
|
import { RunTab, makeUdapp } from './app/udapp' |
|
|
|
import { RunTab, makeUdapp } from './app/udapp' |
|
|
|
|
|
|
|
|
|
|
|
import PanelsResize from './lib/panels-resize' |
|
|
|
import PanelsResize from './lib/panels-resize' |
|
|
|
import { Engine, WebsocketPlugin } from '@remixproject/engine' |
|
|
|
import { Engine } from '@remixproject/engine' |
|
|
|
import { RemixAppManager } from './remixAppManager' |
|
|
|
import { RemixAppManager } from './remixAppManager' |
|
|
|
import { FramingService } from './framingService' |
|
|
|
import { FramingService } from './framingService' |
|
|
|
import { MainView } from './app/panels/main-view' |
|
|
|
import { MainView } from './app/panels/main-view' |
|
|
@ -143,6 +143,7 @@ class App { |
|
|
|
registry.put({api: config, name: 'config'}) |
|
|
|
registry.put({api: config, name: 'config'}) |
|
|
|
|
|
|
|
|
|
|
|
// load file system
|
|
|
|
// load file system
|
|
|
|
|
|
|
|
self.appManager = new RemixAppManager({}) |
|
|
|
self._components.filesProviders = {} |
|
|
|
self._components.filesProviders = {} |
|
|
|
self._components.filesProviders['browser'] = new FileProvider('browser') |
|
|
|
self._components.filesProviders['browser'] = new FileProvider('browser') |
|
|
|
registry.put({api: self._components.filesProviders['browser'], name: 'fileproviders/browser'}) |
|
|
|
registry.put({api: self._components.filesProviders['browser'], name: 'fileproviders/browser'}) |
|
|
@ -155,7 +156,6 @@ class App { |
|
|
|
|
|
|
|
|
|
|
|
self._components.filesProviders['localhost'] = new RemixDProvider(self.appManager) |
|
|
|
self._components.filesProviders['localhost'] = new RemixDProvider(self.appManager) |
|
|
|
registry.put({api: self._components.filesProviders['localhost'], name: 'fileproviders/localhost'}) |
|
|
|
registry.put({api: self._components.filesProviders['localhost'], name: 'fileproviders/localhost'}) |
|
|
|
console.log('self._components.filesProviders: ', self._components.filesProviders) |
|
|
|
|
|
|
|
registry.put({api: self._components.filesProviders, name: 'fileproviders'}) |
|
|
|
registry.put({api: self._components.filesProviders, name: 'fileproviders'}) |
|
|
|
|
|
|
|
|
|
|
|
migrateFileSystem(self._components.filesProviders['browser']) |
|
|
|
migrateFileSystem(self._components.filesProviders['browser']) |
|
|
@ -306,7 +306,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
makeUdapp(blockchain, compilersArtefacts, (domEl) => terminal.logHtml(domEl)) |
|
|
|
makeUdapp(blockchain, compilersArtefacts, (domEl) => terminal.logHtml(domEl)) |
|
|
|
|
|
|
|
|
|
|
|
const contextualListener = new ContextualListener({editor}) |
|
|
|
const contextualListener = new ContextualListener({editor}) |
|
|
|
const { remixd } = self._components |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
engine.register([ |
|
|
|
engine.register([ |
|
|
|
contentImport, |
|
|
|
contentImport, |
|
|
@ -320,8 +319,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
contextualListener, |
|
|
|
contextualListener, |
|
|
|
terminal, |
|
|
|
terminal, |
|
|
|
web3Provider, |
|
|
|
web3Provider, |
|
|
|
fetchAndCompile, |
|
|
|
fetchAndCompile |
|
|
|
remixd |
|
|
|
|
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
// LAYOUT & SYSTEM VIEWS
|
|
|
|
// LAYOUT & SYSTEM VIEWS
|
|
|
@ -433,6 +431,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
|
|
|
|
|
|
|
|
// get the file from gist
|
|
|
|
// get the file from gist
|
|
|
|
const gistHandler = new GistHandler() |
|
|
|
const gistHandler = new GistHandler() |
|
|
|
|
|
|
|
const queryParams = new QueryParams() |
|
|
|
|
|
|
|
const params = queryParams.get() |
|
|
|
const loadedFromGist = gistHandler.loadFromGist(params, fileManager) |
|
|
|
const loadedFromGist = gistHandler.loadFromGist(params, fileManager) |
|
|
|
if (!loadedFromGist) { |
|
|
|
if (!loadedFromGist) { |
|
|
|
// insert example contracts if there are no files to show
|
|
|
|
// insert example contracts if there are no files to show
|
|
|
|