app as a plugin

pull/5370/head
aniket-engg 3 years ago committed by yann300
parent 34e49bf909
commit b0b95b6215
  1. 11
      apps/remix-ide/src/app.js
  2. 2
      apps/remix-ide/src/remixAppManager.js

@ -18,6 +18,7 @@ import { WalkthroughService } from './walkthroughService'
import { OffsetToLineColumnConverter, CompilerMetadata, CompilerArtefacts, FetchAndCompile, CompilerImports, EditorContextListener } from '@remix-project/core-plugin'
import migrateFileSystem from './migrateFileSystem'
import { Plugin } from '@remixproject/engine'
const isElectron = require('is-electron')
@ -49,8 +50,16 @@ const FilePanel = require('./app/panels/file-panel')
const Editor = require('./app/editor/editor')
const Terminal = require('./app/panels/terminal')
class AppComponent {
const profile = {
name: 'app',
displayName: 'App',
description: 'Application',
methods: []
}
class AppComponent extends Plugin {
constructor (api = {}, events = {}, opts = {}) {
super(profile)
const self = this
self.appManager = new RemixAppManager({})
self._components = {}

@ -7,7 +7,7 @@ import { PermissionHandler } from './app/ui/persmission-handler'
const _paq = window._paq = window._paq || []
const requiredModules = [ // services + layout views + system views
'manager', 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'editor', 'offsetToLineColumnConverter', 'network', 'theme',
'manager', 'app', 'compilerArtefacts', 'compilerMetadata', 'contextualListener', 'editor', 'offsetToLineColumnConverter', 'network', 'theme',
'fileManager', 'contentImport', 'blockchain', 'web3Provider', 'scriptRunner', 'fetchAndCompile', 'mainPanel', 'hiddenPanel', 'sidePanel', 'menuicons',
'filePanel', 'terminal', 'settings', 'pluginManager', 'tabs', 'udapp', 'dGitProvider', 'solidity-logic']

Loading…
Cancel
Save