11'use strict'
22import { RunTab , makeUdapp } from './app/udapp'
3+ import { RemixEngine } from './remixEngine'
34import { RemixAppManager } from './remixAppManager'
5+ import { ThemeModule } from './app/tabs/theme-module'
6+ import { NetworkModule } from './app/tabs/network-module'
7+ import { Web3ProviderModule } from './app/tabs/web3-provider'
8+ import { SidePanel } from './app/components/side-panel'
9+ import { HiddenPanel } from './app/components/hidden-panel'
10+ import { VerticalIcons } from './app/components/vertical-icons'
11+ import { LandingPage } from './app/ui/landing-page/landing-page'
12+ import { MainPanel } from './app/components/main-panel'
13+ import { PermissionHandlerPlugin } from './app/plugins/permission-handler-plugin'
414
515import { WalkthroughService } from './walkthroughService'
616
@@ -85,7 +95,7 @@ class AppComponent {
8595 const pluginLoader = self . appManager . pluginLoader
8696 self . panels = { }
8797 self . workspace = pluginLoader . get ( )
88- self . engine = new ( await import ( './remixEngine' ) ) . RemixEngine
98+ self . engine = new RemixEngine ( )
8999 self . engine . register ( appManager )
90100
91101 const matomoDomains = {
@@ -116,7 +126,7 @@ class AppComponent {
116126 // ----------------- gist service ---------------------------------
117127 self . gistHandler = new GistHandler ( )
118128 // ----------------- theme service ---------------------------------
119- self . themeModule = new ( await import ( './app/tabs/theme-module' ) ) . ThemeModule ( )
129+ self . themeModule = new ThemeModule ( )
120130 Registry . getInstance ( ) . put ( { api : self . themeModule , name : 'themeModule' } )
121131
122132 // ----------------- editor service ----------------------------
@@ -149,9 +159,9 @@ class AppComponent {
149159 // service which fetch contract artifacts from sourve-verify, put artifacts in remix and compile it
150160 const fetchAndCompile = new FetchAndCompile ( )
151161 // ----------------- network service (resolve network id / name) -----
152- const networkModule = new ( await import ( './app/tabs/network-module' ) ) . NetworkModule ( blockchain )
162+ const networkModule = new NetworkModule ( blockchain )
153163 // ----------------- represent the current selected web3 provider ----
154- const web3Provider = new ( await import ( './app/tabs/web3-provider' ) ) . Web3ProviderModule ( blockchain )
164+ const web3Provider = new Web3ProviderModule ( blockchain )
155165 const hardhatProvider = new HardhatProvider ( blockchain )
156166 // ----------------- convert offset to line/column service -----------
157167 const offsetToLineColumnConverter = new OffsetToLineColumnConverter ( )
@@ -182,7 +192,7 @@ class AppComponent {
182192 const configPlugin = new ConfigPlugin ( )
183193 self . layout = new Layout ( )
184194
185- const permissionHandler = new ( await import ( './app/plugins/permission-handler-plugin' ) ) . PermissionHandlerPlugin ( )
195+ const permissionHandler = new PermissionHandlerPlugin ( )
186196
187197 self . engine . register ( [
188198 permissionHandler ,
@@ -209,22 +219,22 @@ class AppComponent {
209219 ] )
210220
211221 // LAYOUT & SYSTEM VIEWS
212- const appPanel = new ( await import ( './app/components/main-panel' ) ) . MainPanel ( )
222+ const appPanel = new MainPanel ( )
213223 Registry . getInstance ( ) . put ( { api : self . mainview , name : 'mainview' } )
214224 const tabProxy = new TabProxy ( fileManager , editor )
215225 self . engine . register ( [ appPanel , tabProxy ] )
216226
217227 // those views depend on app_manager
218- self . menuicons = new ( await import ( './app/components/vertical-icons' ) ) . VerticalIcons ( )
219- self . sidePanel = new ( await import ( './app/components/side-panel' ) ) . SidePanel ( )
220- self . hiddenPanel = new ( await import ( './app/components/hidden-panel' ) ) . HiddenPanel ( )
228+ self . menuicons = new VerticalIcons ( )
229+ self . sidePanel = new SidePanel ( )
230+ self . hiddenPanel = new HiddenPanel ( )
221231
222232 const pluginManagerComponent = new PluginManagerComponent (
223233 appManager ,
224234 self . engine
225235 )
226236 const filePanel = new FilePanel ( appManager )
227- const landingPage = new ( await import ( './app/ui/landing-page/landing-page' ) ) . LandingPage (
237+ const landingPage = new LandingPage (
228238 appManager ,
229239 self . menuicons ,
230240 fileManager ,
0 commit comments