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