@ -12,14 +12,14 @@ var { OffsetToLineColumnConverter } = require('./lib/offsetToLineColumnConverter
var QueryParams = require ( './lib/query-params' )
var QueryParams = require ( './lib/query-params' )
var GistHandler = require ( './lib/gist-handler' )
var GistHandler = require ( './lib/gist-handler' )
var Storage = remixLib . Storage
var Storage = remixLib . Storage
var Browserfiles = require ( './app/files/browser-files ' )
var LocalStorageProvider = require ( './app/files/localStorageProvider ' )
var SharedFol der = require ( './app/files/shared-fol der' )
var RemixdProvi der = require ( './app/files/remixdProvi der' )
var Config = require ( './config' )
var Config = require ( './config' )
var Renderer = require ( './app/ui/renderer' )
var Renderer = require ( './app/ui/renderer' )
var examples = require ( './app/editor/example-contracts' )
var examples = require ( './app/editor/example-contracts' )
var modalDialogCustom = require ( './app/ui/modal-dialog-custom' )
var modalDialogCustom = require ( './app/ui/modal-dialog-custom' )
var FileManager = require ( './app/files/fileManager' )
var FileManager = require ( './app/files/fileManager' )
var BasicReadOnlyExplor er = require ( './app/files/basicReadOnlyExplor er' )
var ReadonlyProvid er = require ( './app/files/readonlyProvid er' )
var NotPersistedExplorer = require ( './app/files/NotPersistedExplorer' )
var NotPersistedExplorer = require ( './app/files/NotPersistedExplorer' )
var toolTip = require ( './app/ui/tooltip' )
var toolTip = require ( './app/ui/tooltip' )
var CompilerMetadata = require ( './app/files/compiler-metadata' )
var CompilerMetadata = require ( './app/files/compiler-metadata' )
@ -113,7 +113,7 @@ class App {
// load file system
// load file system
self . _components . filesProviders = { }
self . _components . filesProviders = { }
self . _components . filesProviders [ 'browser' ] = new Browserfiles ( fileStorage )
self . _components . filesProviders [ 'browser' ] = new LocalStorageProvider ( fileStorage )
registry . put ( { api : self . _components . filesProviders [ 'browser' ] , name : 'fileproviders/browser' } )
registry . put ( { api : self . _components . filesProviders [ 'browser' ] , name : 'fileproviders/browser' } )
var remixd = new Remixd ( 65520 )
var remixd = new Remixd ( 65520 )
@ -122,13 +122,13 @@ class App {
if ( message . error ) toolTip ( message . error )
if ( message . error ) toolTip ( message . error )
} )
} )
self . _components . filesProviders [ 'localhost' ] = new SharedFol der( remixd )
self . _components . filesProviders [ 'localhost' ] = new RemixdProvi der( remixd )
self . _components . filesProviders [ 'swarm' ] = new BasicReadOnlyExplor er( 'swarm' )
self . _components . filesProviders [ 'swarm' ] = new ReadonlyProvid er( 'swarm' )
self . _components . filesProviders [ 'github' ] = new BasicReadOnlyExplor er( 'github' )
self . _components . filesProviders [ 'github' ] = new ReadonlyProvid er( 'github' )
self . _components . filesProviders [ 'gist' ] = new NotPersistedExplorer ( 'gist' )
self . _components . filesProviders [ 'gist' ] = new NotPersistedExplorer ( 'gist' )
self . _components . filesProviders [ 'ipfs' ] = new BasicReadOnlyExplor er( 'ipfs' )
self . _components . filesProviders [ 'ipfs' ] = new ReadonlyProvid er( 'ipfs' )
self . _components . filesProviders [ 'https' ] = new BasicReadOnlyExplor er( 'https' )
self . _components . filesProviders [ 'https' ] = new ReadonlyProvid er( 'https' )
self . _components . filesProviders [ 'http' ] = new BasicReadOnlyExplor er( 'http' )
self . _components . filesProviders [ 'http' ] = new ReadonlyProvid er( 'http' )
registry . put ( { api : self . _components . filesProviders [ 'localhost' ] , name : 'fileproviders/localhost' } )
registry . put ( { api : self . _components . filesProviders [ 'localhost' ] , name : 'fileproviders/localhost' } )
registry . put ( { api : self . _components . filesProviders [ 'swarm' ] , name : 'fileproviders/swarm' } )
registry . put ( { api : self . _components . filesProviders [ 'swarm' ] , name : 'fileproviders/swarm' } )
registry . put ( { api : self . _components . filesProviders [ 'github' ] , name : 'fileproviders/github' } )
registry . put ( { api : self . _components . filesProviders [ 'github' ] , name : 'fileproviders/github' } )