parent
4955cc43bb
commit
41b871616b
@ -0,0 +1,2 @@ |
|||||||
|
export * from './lib/remixui-statusbar-panel' |
||||||
|
export { StatusBarInterface } from './lib/types' |
@ -0,0 +1,9 @@ |
|||||||
|
import React from 'react' |
||||||
|
|
||||||
|
export default function GitStatus() { |
||||||
|
return ( |
||||||
|
<div className="d-flex flex-row"> |
||||||
|
<h6>Git Status</h6> |
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
import React from 'react' |
||||||
|
import { StatusBarInterface } from './types' |
||||||
|
import GitStatus from './components/gitStatus' |
||||||
|
|
||||||
|
export interface RemixUIStatusBarProps { |
||||||
|
statusBarPlugin: StatusBarInterface |
||||||
|
} |
||||||
|
|
||||||
|
export function RemixUIStatusBar ({ statusBarPlugin }: RemixUIStatusBarProps) { |
||||||
|
return ( |
||||||
|
<div className="d-flex flex-row bg-primary"> |
||||||
|
<GitStatus /> |
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
import EventEmitter from 'events' |
||||||
|
export interface PluginProfile { |
||||||
|
name: string |
||||||
|
displayName: string |
||||||
|
description: string |
||||||
|
keywords?: string[] |
||||||
|
icon?: string |
||||||
|
url?: string |
||||||
|
methods?: string[] |
||||||
|
events?: string[] |
||||||
|
version?: string |
||||||
|
} |
||||||
|
|
||||||
|
export interface StatusBarInterface extends Plugin { |
||||||
|
htmlElement: HTMLDivElement |
||||||
|
events: EventEmitter |
||||||
|
dispatch: React.Dispatch<any> |
||||||
|
setDispatch(dispatch: React.Dispatch<any>): void |
||||||
|
} |
Loading…
Reference in new issue