start mainview

pull/1857/head
bunsenstraat 3 years ago
parent db728677f0
commit 42c5332b39
  1. 4
      apps/remix-ide/src/app/components/panel.ts
  2. 17
      apps/remix-ide/src/app/panels/main-view.tsx

@ -1,8 +1,6 @@
import React from 'react' // eslint-disable-line
import { EventEmitter } from 'events'
import { VerticalIcons } from 'libs/remix-ui/vertical-icons-panel/types/vertical-icons-panel'
import { HostPlugin } from '@remixproject/engine-web' // eslint-disable-line
import { Profile } from '@remixproject/plugin-utils'
const EventManager = require('../../lib/events')
@ -13,10 +11,8 @@ type PluginRecord = {
active: boolean
}
export class AbstractPanel extends HostPlugin {
events: EventEmitter
event: any
verticalIcons: VerticalIcons
public plugins: Record<string, PluginRecord> = {}
constructor (profile) {
super(profile)

@ -1,8 +1,23 @@
import { EditorContextListener } from '@remix-project/core-plugin'
import { Plugin } from '@remixproject/engine'
import { MainPanel } from '../components/main-panel'
const EventManager = require('../../lib/events')
export class MainView {
fileManager: Plugin
event: any
tabProxy: Plugin
editor: Plugin
mainPanel: MainPanel
terminal: Plugin
appManager: Plugin
contextualListener: EditorContextListener
constructor (contextualListener, editor, mainPanel, fileManager, appManager, terminal) {
this.fileManager = fileManager
this.event = new EventManager()
this.editor = editor
this.terminal = terminal
this.appManager = appManager
this.mainPanel = mainPanel
this.contextualListener = contextualListener
}
}

Loading…
Cancel
Save