|
|
@ -5,6 +5,7 @@ import packageJson from '../../../../../package.json' |
|
|
|
import { PluginViewWrapper } from '@remix-ui/helper' |
|
|
|
import { PluginViewWrapper } from '@remix-ui/helper' |
|
|
|
import { PluginProfile, StatusBarInterface } from '../../types' |
|
|
|
import { PluginProfile, StatusBarInterface } from '../../types' |
|
|
|
import { RemixUIStatusBar } from '@remix-ui/statusbar' |
|
|
|
import { RemixUIStatusBar } from '@remix-ui/statusbar' |
|
|
|
|
|
|
|
import { FilePanelType } from '@remix-ui/workspace' |
|
|
|
|
|
|
|
|
|
|
|
const statusBarProfile: PluginProfile = { |
|
|
|
const statusBarProfile: PluginProfile = { |
|
|
|
name: 'statusBar', |
|
|
|
name: 'statusBar', |
|
|
@ -17,10 +18,12 @@ const statusBarProfile: PluginProfile = { |
|
|
|
export class StatusBar extends Plugin implements StatusBarInterface { |
|
|
|
export class StatusBar extends Plugin implements StatusBarInterface { |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
htmlElement: HTMLDivElement |
|
|
|
events: EventEmitter |
|
|
|
events: EventEmitter |
|
|
|
|
|
|
|
filePanelPlugin: FilePanelType |
|
|
|
dispatch: React.Dispatch<any> = () => {} |
|
|
|
dispatch: React.Dispatch<any> = () => {} |
|
|
|
currentWorkspaceName: string = '' |
|
|
|
currentWorkspaceName: string = '' |
|
|
|
constructor() { |
|
|
|
constructor(filePanel: FilePanelType) { |
|
|
|
super(statusBarProfile) |
|
|
|
super(statusBarProfile) |
|
|
|
|
|
|
|
this.filePanelPlugin = filePanel |
|
|
|
this.events = new EventEmitter() |
|
|
|
this.events = new EventEmitter() |
|
|
|
this.htmlElement = document.createElement('div') |
|
|
|
this.htmlElement = document.createElement('div') |
|
|
|
this.htmlElement.setAttribute('id', 'status-bar') |
|
|
|
this.htmlElement.setAttribute('id', 'status-bar') |
|
|
|