From 6552c21b8d16874ac6e42053dc9c28b6354d154f Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 8 May 2024 17:02:54 +0200 Subject: [PATCH] add statusbar plugin --- apps/remix-ide/src/app/components/status-bar.tsx | 3 ++- libs/remix-ui/panel/src/index.ts | 1 - .../src/lib/statusbar/remixui-statusbar-panel.tsx | 14 -------------- libs/remix-ui/panel/src/lib/types/index.ts | 1 - 4 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 libs/remix-ui/panel/src/lib/statusbar/remixui-statusbar-panel.tsx diff --git a/apps/remix-ide/src/app/components/status-bar.tsx b/apps/remix-ide/src/app/components/status-bar.tsx index 1c25160ae4..b0a93d428a 100644 --- a/apps/remix-ide/src/app/components/status-bar.tsx +++ b/apps/remix-ide/src/app/components/status-bar.tsx @@ -4,7 +4,8 @@ import { Plugin } from '@remixproject/engine' import packageJson from '../../../../../package.json' import { PluginViewWrapper } from '@remix-ui/helper' import { PluginProfile } from '../../types' -import { RemixUIStatusBar } from '@remix-ui/panel' +// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries +import { RemixUIStatusBar } from '@remix-ui/statusbar' const statusBarProfile: PluginProfile = { name: 'statusBar', diff --git a/libs/remix-ui/panel/src/index.ts b/libs/remix-ui/panel/src/index.ts index b4c1c12a90..5cb90eecc4 100644 --- a/libs/remix-ui/panel/src/index.ts +++ b/libs/remix-ui/panel/src/index.ts @@ -2,4 +2,3 @@ export { default as RemixPluginPanel } from './lib/plugins/remix-ui-panel' export { default as RemixUIMainPanel } from './lib/main/main-panel' export { PluginRecord } from './lib/types' export { default as RemixUIPanelHeader } from './lib/plugins/panel-header' -export { default as RemixUIStatusBar } from './lib/statusbar/remixui-statusbar-panel' diff --git a/libs/remix-ui/panel/src/lib/statusbar/remixui-statusbar-panel.tsx b/libs/remix-ui/panel/src/lib/statusbar/remixui-statusbar-panel.tsx deleted file mode 100644 index e471b526bb..0000000000 --- a/libs/remix-ui/panel/src/lib/statusbar/remixui-statusbar-panel.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import { StatusBarInterface } from '../types' - -export interface RemixUIStatusBarProps { - statusBarPlugin: StatusBarInterface -} - -export default function RemixUIStatusBar({ statusBarPlugin }: RemixUIStatusBarProps) { - return ( -
-
Statusbar
-
- ) -} diff --git a/libs/remix-ui/panel/src/lib/types/index.ts b/libs/remix-ui/panel/src/lib/types/index.ts index 4deccc1dbd..ca6b233a51 100644 --- a/libs/remix-ui/panel/src/lib/types/index.ts +++ b/libs/remix-ui/panel/src/lib/types/index.ts @@ -1,5 +1,4 @@ import { Profile } from '@remixproject/plugin-utils' -import EventEmitter from 'events' export type PluginRecord = { profile: Profile