|
|
@ -1,13 +1,11 @@ |
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
import React from 'react' |
|
|
|
import React from 'react' |
|
|
|
import ReactDOM from 'react-dom' |
|
|
|
import ReactDOM from 'react-dom' |
|
|
|
import Registry from '../state/registry' |
|
|
|
|
|
|
|
import packageJson from '../../../../../package.json' |
|
|
|
import packageJson from '../../../../../package.json' |
|
|
|
import { Plugin } from '@remixproject/engine' |
|
|
|
import { Plugin } from '@remixproject/engine' |
|
|
|
import { EventEmitter } from 'events' |
|
|
|
import { EventEmitter } from 'events' |
|
|
|
import { IconRecord, RemixUiVerticalIconsPanel } from '@remix-ui/vertical-icons-panel' |
|
|
|
import { IconRecord, RemixUiVerticalIconsPanel } from '@remix-ui/vertical-icons-panel' |
|
|
|
import { Profile } from '@remixproject/plugin-utils' |
|
|
|
import { Profile } from '@remixproject/plugin-utils' |
|
|
|
import { timeStamp } from 'console' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
const profile = { |
|
|
|
name: 'menuicons', |
|
|
|
name: 'menuicons', |
|
|
@ -95,7 +93,6 @@ export class VerticalIcons extends Plugin { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
select (name: string) { |
|
|
|
select (name: string) { |
|
|
|
// TODO: Only keep `this.emit` (issue#2210)
|
|
|
|
// TODO: Only keep `this.emit` (issue#2210)
|
|
|
|
console.log(name, this) |
|
|
|
|
|
|
|
this.emit('showContent', name) |
|
|
|
this.emit('showContent', name) |
|
|
|
this.events.emit('showContent', name) |
|
|
|
this.events.emit('showContent', name) |
|
|
|
} |
|
|
|
} |
|
|
|