parent
856838ba55
commit
039b07293d
@ -0,0 +1,7 @@ |
||||
export type PluginManagerSettings = { |
||||
openDialog: () => void |
||||
onValidation: () => void |
||||
clearPermission: (from: any, to: any, method: any) => void |
||||
settings: () => HTMLElement |
||||
render: () => HTMLElement |
||||
} |
@ -0,0 +1,24 @@ |
||||
import React from 'react' |
||||
|
||||
type tileLabel = { |
||||
label: 'Active Module' | 'Inactive Modules' |
||||
} |
||||
|
||||
interface ActiveTileProps { |
||||
inactivesCount?: number |
||||
activesCount?: number |
||||
tileLabel?: tileLabel |
||||
} |
||||
|
||||
function ActiveTile ({ inactivesCount, activesCount, tileLabel }: ActiveTileProps) { |
||||
return ( |
||||
<nav className="plugins-list-header justify-content-between navbar navbar-expand-lg bg-light navbar-light align-items-center"> |
||||
<span className="navbar-brand plugins-list-title h6 mb-0 mr-2">{tileLabel.label}</span> |
||||
<span className="badge badge-primary" style={{ cursor: 'default' }} data-id="pluginManagerComponentInactiveTilesCount"> |
||||
{tileLabel.label === 'Active Module' ? activesCount : inactivesCount} |
||||
</span> |
||||
</nav> |
||||
) |
||||
} |
||||
|
||||
export default ActiveTile |
@ -0,0 +1,45 @@ |
||||
import React from 'react' |
||||
import '../remix-ui-plugin-manager.css' |
||||
import '' |
||||
import Button from './button' |
||||
interface PluginCardProps { |
||||
profileName: string |
||||
displayName: string |
||||
docLink: string |
||||
versionWarning: string |
||||
profileIcon: string |
||||
profileDescription: string |
||||
} |
||||
|
||||
function PluginCard ({ |
||||
profileName, |
||||
displayName, |
||||
docLink, |
||||
versionWarning, |
||||
profileIcon, |
||||
profileDescription |
||||
}: PluginCardProps) { |
||||
return ( |
||||
<article className="list-group-item py-1 mb-1 plugins-list-group-item" title={displayName}> |
||||
<div className="row justify-content-between align-items-center mb-2"> |
||||
<h6 className="displayName plugin-name"> |
||||
<div> |
||||
{displayName} |
||||
{docLink} |
||||
{versionWarning} |
||||
</div> |
||||
<Button |
||||
profileName={profileName} |
||||
isActive |
||||
/> |
||||
</h6> |
||||
</div> |
||||
<div className="description d-flex text-body plugin-text mb-2"> |
||||
<img src={profileIcon} className="mr-1 mt-1 pluginIcon" alt="profile icon"/> |
||||
<span className="descriptiontext">{profileDescription}</span> |
||||
</div> |
||||
</article> |
||||
) |
||||
} |
||||
|
||||
export default PluginCard |
@ -0,0 +1,11 @@ |
||||
import React from 'react' |
||||
|
||||
function RootView () { |
||||
return ( |
||||
<div> |
||||
<header></header> |
||||
</div> |
||||
) |
||||
} |
||||
|
||||
export default RootView |
@ -0,0 +1,19 @@ |
||||
/* eslint-disable camelcase */ |
||||
|
||||
declare module 'yo-yo'{ |
||||
interface yo_yo { |
||||
(strings:string[], ...values:any[]):HTMLElement; |
||||
update(element:HTMLElement, element2:HTMLElement); |
||||
} |
||||
var yo:yo_yo |
||||
export = yo; |
||||
} |
||||
|
||||
declare module 'dom-css'{ |
||||
interface dom_css{ |
||||
(element:HTMLElement, css:any):void; |
||||
} |
||||
|
||||
var css:dom_css |
||||
export = css; |
||||
} |
Loading…
Reference in new issue