pull/5288/head
lianahus 1 month ago
parent 98c7ab5aa8
commit a484f270e9
  1. 12
      libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx
  2. 12
      libs/remix-ui/panel/src/lib/plugins/panel-header.tsx
  3. 32
      libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
  4. 32
      libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx

@ -35,12 +35,12 @@ function PluginButton({ imgPath, envID, envText, callback, l2, description, main
<i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i> <i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i>
</CustomTooltip>) : </CustomTooltip>) :
maintainedBy ? maintainedBy ?
(<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipText={"Maintained by " + maintainedBy}> (<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipText={"Maintained by " + maintainedBy}>
<i aria-hidden="true" className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
: (<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}> : (<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-external" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
<i aria-hidden="true" className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="bg-light mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
} }
</div> </div>
) )

@ -53,12 +53,12 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
<i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i> <i className="bg-light text-success mx-1 px-1 mb-0 mx-2 position-absolute remixui_home_maintainedLabel fas fa-check"></i>
</CustomTooltip>) : </CustomTooltip>) :
plugin?.profile?.maintainedBy ? plugin?.profile?.maintainedBy ?
(<CustomTooltip placement="auto" tooltipId={"maintainedByTooltip" + plugin?.profile?.maintainedBy} tooltipText={"Maintained by " + plugin?.profile?.maintainedBy}> (<CustomTooltip placement="auto" tooltipId={"maintainedByTooltip" + plugin?.profile?.maintainedBy} tooltipText={"Maintained by " + plugin?.profile?.maintainedBy}>
<i aria-hidden="true" className="mt-1 px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="mt-1 px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
: (<CustomTooltip placement="auto" tooltipId="maintainedByTooltipRemixUnknown" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}> : (<CustomTooltip placement="auto" tooltipId="maintainedByTooltipRemixUnknown" tooltipText={<FormattedMessage id="panel.maintainedExternally" />}>
<i aria-hidden="true" className="mt-1 px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="mt-1 px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
} }
</div> </div>
<div className="swapitHeaderInfoSection d-flex justify-content-between" data-id="swapitHeaderInfoSectionId" onClick={toggleClass}> <div className="swapitHeaderInfoSection d-flex justify-content-between" data-id="swapitHeaderInfoSectionId" onClick={toggleClass}>

@ -27,22 +27,22 @@ function ActivePluginCard({ profile, buttonText, deactivatePlugin }: PluginCardP
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i> <i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
</CustomTooltip>) </CustomTooltip>)
: profile?.maintainedBy ? ( : profile?.maintainedBy ? (
<CustomTooltip <CustomTooltip
placement="right" placement="right"
tooltipId="pluginManagerActiveTitleByRemix" tooltipId="pluginManagerActiveTitleByRemix"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={"Maintained by " + profile?.maintainedBy} tooltipText={"Maintained by " + profile?.maintainedBy}
> >
<i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
: (<CustomTooltip : (<CustomTooltip
placement="right" placement="right"
tooltipId="pluginManagerActiveTitleExternally" tooltipId="pluginManagerActiveTitleExternally"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />} tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
> >
<i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
} }
{profile.documentation && ( {profile.documentation && (
<CustomTooltip <CustomTooltip

@ -44,22 +44,22 @@ function InactivePluginCard({ profile, buttonText, activatePlugin }: PluginCardP
<i aria-hidden="true" className="px-1 text-success fas fa-check"></i> <i aria-hidden="true" className="px-1 text-success fas fa-check"></i>
</CustomTooltip>) </CustomTooltip>)
: profile?.maintainedBy ? ( : profile?.maintainedBy ? (
<CustomTooltip <CustomTooltip
placement="right" placement="right"
tooltipId="pluginManagerActiveTitleByRemix" tooltipId="pluginManagerActiveTitleByRemix"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={"Maintained by " + profile?.maintainedBy} tooltipText={"Maintained by " + profile?.maintainedBy}
> >
<i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
: (<CustomTooltip : (<CustomTooltip
placement="right" placement="right"
tooltipId="pluginManagerActiveTitleExternally" tooltipId="pluginManagerActiveTitleExternally"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />} tooltipText={<FormattedMessage id="pluginManager.maintainedExternally" />}
> >
<i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i> <i aria-hidden="true" className="px-1 text-secondary far fa-exclamation-circle"></i>
</CustomTooltip>) </CustomTooltip>)
} }
{profile.documentation && ( {profile.documentation && (
<CustomTooltip <CustomTooltip

Loading…
Cancel
Save