From 6109266f13e08707b107471b93197f803dbd5aed Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 23 Dec 2021 10:43:14 +0100 Subject: [PATCH] default class --- apps/remix-ide/src/app.js | 2 +- apps/remix-ide/src/app/components/vertical-icons.js | 2 +- apps/remix-ide/src/app/editor/contextView.js | 2 +- apps/remix-ide/src/app/files/fileManager.js | 2 +- apps/remix-ide/src/app/panels/file-panel.js | 2 +- apps/remix-ide/src/app/panels/main-view.js | 2 +- apps/remix-ide/src/app/panels/terminal.js | 2 +- apps/remix-ide/src/app/plugins/config.ts | 2 +- apps/remix-ide/src/app/state/registry.ts | 2 +- apps/remix-ide/src/app/tabs/analysis-tab.js | 2 +- apps/remix-ide/src/app/tabs/runTab/settings.js | 2 +- apps/remix-ide/src/app/tabs/settings-tab.js | 2 +- apps/remix-ide/src/app/tabs/theme-module.js | 2 +- apps/remix-ide/src/app/udapp/make-udapp.js | 2 +- apps/remix-ide/src/app/ui/persmission-handler.js | 2 +- apps/remix-ide/src/lib/cmdInterpreterAPI.js | 2 +- .../vertical-icons-panel/types/vertical-icons-panel.d.ts | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 282f511464..0698c90ee5 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -18,7 +18,7 @@ import { WalkthroughService } from './walkthroughService' import { OffsetToLineColumnConverter, CompilerMetadata, CompilerArtefacts, FetchAndCompile, CompilerImports, EditorContextListener } from '@remix-project/core-plugin' import migrateFileSystem from './migrateFileSystem' -import { Registry } from './app/state/registry' +import Registry from './app/state/registry' import { ConfigPlugin } from './app/plugins/config' const isElectron = require('is-electron') diff --git a/apps/remix-ide/src/app/components/vertical-icons.js b/apps/remix-ide/src/app/components/vertical-icons.js index 4ffa445719..cd86b1d796 100644 --- a/apps/remix-ide/src/app/components/vertical-icons.js +++ b/apps/remix-ide/src/app/components/vertical-icons.js @@ -5,7 +5,7 @@ import ReactDOM from 'react-dom' import React from 'react' // eslint-disable-line // eslint-disable-next-line no-unused-vars import { RemixUiVerticalIconsPanel } from '@remix-ui/vertical-icons-panel' -import { Registry } from '../state/registry' +import Registry from '../state/registry' // var helper = require('../../lib/helper') const { Plugin } = require('@remixproject/engine') const EventEmitter = require('events') diff --git a/apps/remix-ide/src/app/editor/contextView.js b/apps/remix-ide/src/app/editor/contextView.js index 60f30cbe97..9f355a8bde 100644 --- a/apps/remix-ide/src/app/editor/contextView.js +++ b/apps/remix-ide/src/app/editor/contextView.js @@ -1,6 +1,6 @@ 'use strict' import { sourceMappingDecoder } from '@remix-project/remix-debug' -import { Registry } from '../state/registry' +import Registry from '../state/registry' const yo = require('yo-yo') const css = require('./styles/contextView-styles') diff --git a/apps/remix-ide/src/app/files/fileManager.js b/apps/remix-ide/src/app/files/fileManager.js index 0a0c974697..c526f36600 100644 --- a/apps/remix-ide/src/app/files/fileManager.js +++ b/apps/remix-ide/src/app/files/fileManager.js @@ -4,7 +4,7 @@ import yo from 'yo-yo' import async from 'async' import { Plugin } from '@remixproject/engine' import * as packageJson from '../../../../../package.json' -import { Registry } from '../state/registry' +import Registry from '../state/registry' const EventEmitter = require('events') const toaster = require('../ui/tooltip') const modalDialogCustom = require('../ui/modal-dialog-custom') diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index e4d4f1b93d..142ff4296e 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -4,7 +4,7 @@ import * as packageJson from '../../../../../package.json' import React from 'react' // eslint-disable-line import ReactDOM from 'react-dom' import { FileSystemProvider } from '@remix-ui/workspace' // eslint-disable-line -import { Registry } from '../state/registry' +import Registry from '../state/registry' const { RemixdHandle } = require('../files/remixd-handle.js') const { GitHandle } = require('../files/git-handle.js') const { HardhatHandle } = require('../files/hardhat-handle.js') diff --git a/apps/remix-ide/src/app/panels/main-view.js b/apps/remix-ide/src/app/panels/main-view.js index b5e97ec5e1..bf3a07a35b 100644 --- a/apps/remix-ide/src/app/panels/main-view.js +++ b/apps/remix-ide/src/app/panels/main-view.js @@ -1,4 +1,4 @@ -import { Registry } from '../state/registry' +import Registry from '../state/registry' var yo = require('yo-yo') var EventManager = require('../../lib/events') diff --git a/apps/remix-ide/src/app/panels/terminal.js b/apps/remix-ide/src/app/panels/terminal.js index 048e9b41b8..fbb2e56627 100644 --- a/apps/remix-ide/src/app/panels/terminal.js +++ b/apps/remix-ide/src/app/panels/terminal.js @@ -4,7 +4,7 @@ import ReactDOM from 'react-dom' import { RemixUiTerminal } from '@remix-ui/terminal' // eslint-disable-line import { Plugin } from '@remixproject/engine' import * as packageJson from '../../../../../package.json' -import { Registry } from '../state/registry' +import Registry from '../state/registry' const vm = require('vm') const EventManager = require('../../lib/events') diff --git a/apps/remix-ide/src/app/plugins/config.ts b/apps/remix-ide/src/app/plugins/config.ts index 06c762ec9f..61f7cdd41f 100644 --- a/apps/remix-ide/src/app/plugins/config.ts +++ b/apps/remix-ide/src/app/plugins/config.ts @@ -1,6 +1,6 @@ import { Plugin } from '@remixproject/engine' import QueryParams from '../../lib/query-params' -import { Registry } from '../state/registry' +import Registry from '../state/registry' const profile = { name: 'config', diff --git a/apps/remix-ide/src/app/state/registry.ts b/apps/remix-ide/src/app/state/registry.ts index b96a789736..dafe13654b 100644 --- a/apps/remix-ide/src/app/state/registry.ts +++ b/apps/remix-ide/src/app/state/registry.ts @@ -3,7 +3,7 @@ type registryEntry = { name: string } -export class Registry { +export default class Registry { private static instance: Registry; private state: any diff --git a/apps/remix-ide/src/app/tabs/analysis-tab.js b/apps/remix-ide/src/app/tabs/analysis-tab.js index 9d7a31c1a4..fbddc61b61 100644 --- a/apps/remix-ide/src/app/tabs/analysis-tab.js +++ b/apps/remix-ide/src/app/tabs/analysis-tab.js @@ -4,7 +4,7 @@ import ReactDOM from 'react-dom' import { EventEmitter } from 'events' import {RemixUiStaticAnalyser} from '@remix-ui/static-analyser' // eslint-disable-line import * as packageJson from '../../../../../package.json' -import { Registry } from '../state/registry' +import Registry from '../state/registry' var Renderer = require('../ui/renderer') var EventManager = require('../../lib/events') diff --git a/apps/remix-ide/src/app/tabs/runTab/settings.js b/apps/remix-ide/src/app/tabs/runTab/settings.js index e6d045a8fe..cc5a15409d 100644 --- a/apps/remix-ide/src/app/tabs/runTab/settings.js +++ b/apps/remix-ide/src/app/tabs/runTab/settings.js @@ -1,5 +1,5 @@ import { BN } from 'ethereumjs-util' -import { Registry } from '../../state/registry' +import Registry from '../../state/registry' const $ = require('jquery') const yo = require('yo-yo') const remixLib = require('@remix-project/remix-lib') diff --git a/apps/remix-ide/src/app/tabs/settings-tab.js b/apps/remix-ide/src/app/tabs/settings-tab.js index 3a520f1038..133ae6ee5f 100644 --- a/apps/remix-ide/src/app/tabs/settings-tab.js +++ b/apps/remix-ide/src/app/tabs/settings-tab.js @@ -3,7 +3,7 @@ import { ViewPlugin } from '@remixproject/engine-web' import ReactDOM from 'react-dom' import * as packageJson from '../../../../../package.json' import { RemixUiSettings } from '@remix-ui/settings' //eslint-disable-line -import { Registry } from '../state/registry' +import Registry from '../state/registry' const profile = { name: 'settings', diff --git a/apps/remix-ide/src/app/tabs/theme-module.js b/apps/remix-ide/src/app/tabs/theme-module.js index 08075432ad..d66ed07854 100644 --- a/apps/remix-ide/src/app/tabs/theme-module.js +++ b/apps/remix-ide/src/app/tabs/theme-module.js @@ -2,7 +2,7 @@ import { Plugin } from '@remixproject/engine' import { EventEmitter } from 'events' import QueryParams from '../../lib/query-params' import * as packageJson from '../../../../../package.json' -import { Registry } from '../state/registry' +import Registry from '../state/registry' const _paq = window._paq = window._paq || [] const themes = [ diff --git a/apps/remix-ide/src/app/udapp/make-udapp.js b/apps/remix-ide/src/app/udapp/make-udapp.js index f2098ee47d..cab11136f2 100644 --- a/apps/remix-ide/src/app/udapp/make-udapp.js +++ b/apps/remix-ide/src/app/udapp/make-udapp.js @@ -1,4 +1,4 @@ -import { Registry } from '../state/registry' +import Registry from '../state/registry' var remixLib = require('@remix-project/remix-lib') var yo = require('yo-yo') diff --git a/apps/remix-ide/src/app/ui/persmission-handler.js b/apps/remix-ide/src/app/ui/persmission-handler.js index ab79b2c197..f3f10b5b63 100644 --- a/apps/remix-ide/src/app/ui/persmission-handler.js +++ b/apps/remix-ide/src/app/ui/persmission-handler.js @@ -1,4 +1,4 @@ -import { Registry } from '../state/registry' +import Registry from '../state/registry' /* global localStorage */ const yo = require('yo-yo') diff --git a/apps/remix-ide/src/lib/cmdInterpreterAPI.js b/apps/remix-ide/src/lib/cmdInterpreterAPI.js index 9b04e9b898..d72af0f5a7 100644 --- a/apps/remix-ide/src/lib/cmdInterpreterAPI.js +++ b/apps/remix-ide/src/lib/cmdInterpreterAPI.js @@ -1,6 +1,6 @@ 'use strict' import { CompilerImports } from '@remix-project/core-plugin' -import { Registry } from '../app/state/registry' +import Registry from '../app/state/registry' var yo = require('yo-yo') var async = require('async') var EventManager = require('../lib/events') diff --git a/libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel.d.ts b/libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel.d.ts index 6a99205831..21319d412a 100644 --- a/libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel.d.ts +++ b/libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel.d.ts @@ -2,7 +2,7 @@ /* eslint-disable no-use-before-define */ import { Plugin } from '@remixproject/engine/lib/abstract' import * as packageJson from '../../../../package.json' -import { Registry } from 'apps/remix-ide/src/app/state/registry' +import Registry from 'apps/remix-ide/src/app/state/registry' import { RemixAppManager } from '@remix-ui/plugin-manager'