fix standard

pull/1/head
yann300 6 years ago
parent 6afbdaab5c
commit 0d2287c67e
  1. 2
      src/app/panels/file-panel.js
  2. 5
      src/app/tabs/compile-tab.js
  3. 1
      src/lib/offsetToLineColumnConverter.js

@ -49,7 +49,7 @@ function filepanel (localRegistry) {
fileProviders: self._components.registry.get('fileproviders').api, fileProviders: self._components.registry.get('fileproviders').api,
fileManager: self._components.registry.get('filemanager').api, fileManager: self._components.registry.get('filemanager').api,
config: self._components.registry.get('config').api, config: self._components.registry.get('config').api,
pluginManager: self._components.registry.get('pluginmanager').api, pluginManager: self._components.registry.get('pluginmanager').api
} }
var fileExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['browser']) var fileExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['browser'])
var fileSystemExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['localhost']) var fileSystemExplorer = new FileExplorer(self._components.registry, self._deps.fileProviders['localhost'])

@ -8,7 +8,6 @@ var minixhr = require('minixhr')
var remixTests = require('remix-tests') var remixTests = require('remix-tests')
var Compiler = require('remix-solidity').Compiler var Compiler = require('remix-solidity').Compiler
var CompilerImport = require('../compiler/compiler-imports') var CompilerImport = require('../compiler/compiler-imports')
var tooltip = require('../ui/tooltip')
var QueryParams = require('../../lib/query-params') var QueryParams = require('../../lib/query-params')
var globalRegistry = require('../../global/registry') var globalRegistry = require('../../global/registry')
const TreeView = require('../ui/TreeView') const TreeView = require('../ui/TreeView')
@ -462,7 +461,7 @@ module.exports = class CompileTab {
selectedVersion = data.releases[data.latestRelease] selectedVersion = data.releases[data.latestRelease]
if (self._components.queryParams.get().version) selectedVersion = self._components.queryParams.get().version if (self._components.queryParams.get().version) selectedVersion = self._components.queryParams.get().version
} catch (e) { } catch (e) {
tooltip('Cannot load compiler version list. It might have been blocked by an advertisement blocker. Please try deactivating any of them from this page and reload.') addTooltip('Cannot load compiler version list. It might have been blocked by an advertisement blocker. Please try deactivating any of them from this page and reload.')
} }
} else { } else {
allversions = [{ path: 'builtin', longVersion: 'latest local version' }] allversions = [{ path: 'builtin', longVersion: 'latest local version' }]
@ -501,7 +500,7 @@ module.exports = class CompileTab {
const self = this const self = this
self._components.compilerImport.import(url, self._components.compilerImport.import(url,
(loadingMsg) => { (loadingMsg) => {
toolTip(loadingMsg) addTooltip(loadingMsg)
}, },
(error, content, cleanUrl, type, url) => { (error, content, cleanUrl, type, url) => {
if (!error) { if (!error) {

@ -4,7 +4,6 @@ var SourceMappingDecoder = require('remix-lib').SourceMappingDecoder
function offsetToColumnConverter () { function offsetToColumnConverter () {
this.lineBreakPositionsByContent = {} this.lineBreakPositionsByContent = {}
this.sourceMappingDecoder = new SourceMappingDecoder() this.sourceMappingDecoder = new SourceMappingDecoder()
var self = this
// we don't listen anymore on compilation result for clearing the cache // we don't listen anymore on compilation result for clearing the cache
} }

Loading…
Cancel
Save