app as a plugin

appPlugin
aniket-engg 3 years ago
parent 7570f5f500
commit 341a821738
  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 } from '@remix-project/core-plugin'
import migrateFileSystem from './migrateFileSystem'
import { Plugin } from '@remixproject/engine'
const isElectron = require('is-electron')
@ -50,8 +51,16 @@ const Editor = require('./app/editor/editor')
const Terminal = require('./app/panels/terminal')
const ContextualListener = require('./app/editor/contextualListener')
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