move events to their own file as a intermediary step for further refactoring

pull/3094/head
Iuri Matias 6 years ago
parent 85243baa03
commit 3abd99c1cd
  1. 2
      src/app.js
  2. 3
      src/app/debugger/debuggerUI.js
  3. 3
      src/app/debugger/debuggerUI/ButtonNavigator.js
  4. 3
      src/app/debugger/debuggerUI/Slider.js
  5. 3
      src/app/debugger/debuggerUI/StepManager.js
  6. 3
      src/app/debugger/debuggerUI/TxBrowser.js
  7. 3
      src/app/debugger/debuggerUI/vmDebugger/CodeListView.js
  8. 3
      src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js
  9. 3
      src/app/debugger/debuggerUI/vmDebugger/SolidityLocals.js
  10. 2
      src/app/editor/contextualListener.js
  11. 3
      src/app/editor/editor.js
  12. 2
      src/app/execution/txLogger.js
  13. 2
      src/app/files/basicReadOnlyExplorer.js
  14. 2
      src/app/files/browser-files-tree.js
  15. 2
      src/app/files/browser-files.js
  16. 3
      src/app/files/file-explorer.js
  17. 3
      src/app/files/fileManager.js
  18. 2
      src/app/files/shared-folder.js
  19. 3
      src/app/panels/editor-panel.js
  20. 3
      src/app/panels/file-panel.js
  21. 3
      src/app/panels/righthand-panel.js
  22. 3
      src/app/panels/terminal.js
  23. 2
      src/app/staticanalysis/staticAnalysisView.js
  24. 3
      src/app/tabs/analysis-tab.js
  25. 3
      src/app/tabs/debugger-tab.js
  26. 3
      src/app/tabs/plugin-tab.js
  27. 2
      src/app/tabs/run-tab.js
  28. 2
      src/app/tabs/settings-tab.js
  29. 3
      src/app/tabs/support-tab.js
  30. 3
      src/app/tabs/tabbed-menu.js
  31. 3
      src/app/ui/TreeView.js
  32. 3
      src/app/ui/card.js
  33. 4
      src/app/ui/dropdown.js
  34. 1
      src/app/ui/styles-guide/theme-chooser.js
  35. 2
      src/lib/cmdInterpreterAPI.js
  36. 4
      src/lib/events.js
  37. 2
      src/lib/remixd.js
  38. 2
      src/recorder.js
  39. 2
      src/universal-dapp.js

@ -7,7 +7,7 @@ var async = require('async')
var request = require('request')
var remixLib = require('remix-lib')
var remixTests = require('remix-tests')
var EventManager = remixLib.EventManager
var EventManager = require('./lib/events')
var registry = require('./global/registry')
var UniversalDApp = require('./universal-dapp.js')

@ -6,8 +6,7 @@ var Debugger = require('./debugger/debugger')
var SourceHighlighter = require('../editor/sourceHighlighter')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var executionContext = require('../../execution-context')
var globalRegistry = require('../../global/registry')

@ -1,6 +1,5 @@
'use strict'
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../lib/events')
var yo = require('yo-yo')
var csjs = require('csjs-inject')

@ -1,6 +1,5 @@
'use strict'
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../lib/events')
var yo = require('yo-yo')
class Slider {

@ -1,5 +1,4 @@
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../lib/events')
var yo = require('yo-yo')
var ButtonNavigator = require('./ButtonNavigator')

@ -1,5 +1,4 @@
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../lib/events')
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var styleGuide = require('../../ui/styles-guide/theme-chooser')

@ -1,9 +1,8 @@
'use strict'
var style = require('../styles/basicStyles')
var yo = require('yo-yo')
var remixLib = require('remix-lib')
var DropdownPanel = require('./DropdownPanel')
var EventManager = remixLib.EventManager
var EventManager = require('../../../../lib/events')
var csjs = require('csjs-inject')
var styleGuide = require('../../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()

@ -1,8 +1,7 @@
'use strict'
var yo = require('yo-yo')
const copy = require('clipboard-copy')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../../lib/events')
var TreeView = require('../../../ui/TreeView') // TODO setup a direct reference to the UI components
var csjs = require('csjs-inject')

@ -1,6 +1,5 @@
'use strict'
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../../../lib/events')
var DropdownPanel = require('./DropdownPanel')
var solidityTypeFormatter = require('./utils/SolidityTypeFormatter')
var yo = require('yo-yo')

@ -2,7 +2,7 @@
var remixLib = require('remix-lib')
var SourceMappingDecoder = remixLib.SourceMappingDecoder
var AstWalker = remixLib.AstWalker
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var globalRegistry = require('../../global/registry')
/*

@ -1,6 +1,5 @@
'use strict'
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var ace = require('brace')

@ -8,7 +8,7 @@ var remixLib = require('remix-lib')
var styleGuide = require('../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var helper = require('../../lib/helper')
var executionContext = require('../../execution-context')
var modalDialog = require('../ui/modal-dialog-custom')

@ -1,5 +1,5 @@
'use strict'
var EventManager = require('remix-lib').EventManager
var EventManager = require('../../lib/events')
class BasicReadOnlyExplorer {
constructor (type) {

@ -1,6 +1,6 @@
'use strict'
var EventManager = require('remix-lib').EventManager
var EventManager = require('../../lib/events')
function FilesTree (name, storage) {
var self = this

@ -1,6 +1,6 @@
'use strict'
var EventManager = require('remix-lib').EventManager
var EventManager = require('../../lib/events')
function Files (storage) {
var event = new EventManager()

@ -2,8 +2,7 @@ var yo = require('yo-yo')
var Treeview = require('../ui/TreeView')
var modalDialog = require('../ui/modaldialog')
var modalDialogCustom = require('../ui/modal-dialog-custom')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var contextMenu = require('../ui/contextMenu')
var addTooltip = require('../ui/tooltip')
var helper = require('../../lib/helper')

@ -1,9 +1,8 @@
'use strict'
var $ = require('jquery')
var remixLib = require('remix-lib')
var yo = require('yo-yo')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var globalRegistry = require('../../global/registry')
/*

@ -1,5 +1,5 @@
'use strict'
var EventManager = require('remix-lib').EventManager
var EventManager = require('../../lib/events')
var pathtool = require('path')
module.exports = class SharedFolder {

@ -1,6 +1,5 @@
var yo = require('yo-yo')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var $ = require('jquery')
var Terminal = require('./terminal')

@ -3,9 +3,8 @@ var async = require('async')
var $ = require('jquery')
var yo = require('yo-yo')
var CompilerMetadata = require('../files/compiler-metadata')
var remixLib = require('remix-lib')
var EventManager = require('../../lib/events')
var Gists = require('gists')
var EventManager = remixLib.EventManager
var FileExplorer = require('../files/file-explorer')
var modalDialog = require('../ui/modaldialog')
var modalDialogCustom = require('../ui/modal-dialog-custom')

@ -1,6 +1,6 @@
const yo = require('yo-yo')
const csjs = require('csjs-inject')
const remixLib = require('remix-lib')
const EventManager = require('../../lib/events')
var globalRegistry = require('../../global/registry')
@ -17,7 +17,6 @@ const TestTab = require('../tabs/test-tab')
const RunTab = require('../tabs/run-tab')
const DraggableContent = require('../ui/draggableContent')
const EventManager = remixLib.EventManager
const styles = styleguide.chooser()
module.exports = class RighthandPanel {

@ -5,8 +5,7 @@ var jsbeautify = require('js-beautify')
var ethers = require('ethers')
var type = require('component-type')
var vm = require('vm')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var Web3 = require('web3')
var swarmgw = require('swarmgw')()

@ -11,7 +11,7 @@ var styles = styleGuide.chooser()
var css = require('./styles/staticAnalysisView-styles')
var globlalRegistry = require('../../global/registry')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
function staticAnalysisView (localRegistry) {
var self = this

@ -1,10 +1,9 @@
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var StaticAnalysis = require('../staticanalysis/staticAnalysisView')
var globalRegistry = require('../../global/registry')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class AnalysisTab {
constructor (localRegistry) {

@ -1,11 +1,10 @@
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var DebuggerUI = require('../debugger/debuggerUI')
var globalRegistry = require('../../global/registry')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var styles = require('../ui/styles-guide/theme-chooser').chooser()
const css = csjs`

@ -1,9 +1,8 @@
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var globalRegistry = require('../../global/registry')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class plugintab {
constructor (json, localRegistry) {

@ -7,7 +7,7 @@ var csjs = require('csjs-inject')
var txExecution = remixLib.execution.txExecution
var txFormat = remixLib.execution.txFormat
var txHelper = remixLib.execution.txHelper
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
var globlalRegistry = require('../../global/registry')
var helper = require('../../lib/helper.js')
var executionContext = require('../../execution-context')

@ -9,7 +9,7 @@ var copyToClipboard = require('../ui/copy-to-clipboard')
var styleGuide = require('../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var Storage = remixLib.Storage
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class SettingsTab {
constructor (localRegistry) {

@ -1,11 +1,10 @@
const yo = require('yo-yo')
const csjs = require('csjs-inject')
const remixLib = require('remix-lib')
var globalRegistry = require('../../global/registry')
const styles = require('../ui/styles-guide/theme-chooser').chooser()
const EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class SupportTab {
constructor (localRegistry) {

@ -1,12 +1,11 @@
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var globalRegistry = require('../../global/registry')
var helper = require('../../lib/helper')
var styles = require('../ui/styles-guide/theme-chooser').chooser()
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class TabbedMenu {
constructor (localRegistry) {

@ -29,8 +29,7 @@ var css = csjs`
}
`
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
/**
* TreeView

@ -2,8 +2,7 @@ var yo = require('yo-yo')
var csjs = require('csjs-inject')
var styleGuide = require('./styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
module.exports = class Card {
constructor (api, events, opts) {

@ -1,6 +1,6 @@
var yo = require('yo-yo')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../../lib/events')
// -------------- styling ----------------------
var css = require('./styles/dropdown-styles')

@ -1,4 +1,3 @@
// var remixLib = require('remix-lib')
var styleGuideLight = require('./style-guide')
var styleGuideDark = require('./styleGuideDark')
var Storage = require('remix-lib').Storage

@ -2,7 +2,7 @@
var yo = require('yo-yo')
var async = require('async')
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('../lib/events')
var executionContext = require('../execution-context')
var toolTip = require('../app/ui/tooltip')

@ -0,0 +1,4 @@
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
module.exports = EventManager

@ -1,5 +1,5 @@
'use strict'
var EventManager = require('remix-lib').EventManager
var EventManager = require('../lib/events')
var modalDialog = require('../app/ui/modaldialog')
var yo = require('yo-yo')

@ -1,5 +1,5 @@
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('./lib/events')
var ethutil = require('ethereumjs-util')
var executionContext = require('./execution-context')
var format = remixLib.execution.txFormat

@ -6,7 +6,7 @@ var async = require('async')
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
var remixLib = require('remix-lib')
var EventManager = remixLib.EventManager
var EventManager = require('./lib/events')
var crypto = require('crypto')
var TxRunner = remixLib.execution.txRunner
var txExecution = remixLib.execution.txExecution

Loading…
Cancel
Save