export function getStatus(
componentId?: string
-): Promise<{ failing: number; inProgress: number; pending: number }> {
+): Promise<{ failing: number; inProgress: number; pending: number; pendingTime?: number }> {
const data = {};
if (componentId) {
Object.assign(data, { componentId });
<span className="note">{displayName}</span>
{configuration && configuration.showSettings && (
<HelpTooltip className="spacer-left" overlay={this.renderOverlay()}>
- <PlusCircleIcon className="vertical-middle" fill={theme.blue} size={12} />
+ <PlusCircleIcon className="text-middle" fill={theme.blue} size={12} />
</HelpTooltip>
)}
</div>
{translate('show_more')}
</a>
{loadingMore && (
- <DeferredSpinner className="vertical-bottom spacer-left position-absolute" />
+ <DeferredSpinner className="text-bottom spacer-left position-absolute" />
)}
</div>
</div>
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-.vertical-top {
- vertical-align: top !important;
-}
-
-.vertical-bottom {
- vertical-align: bottom !important;
-}
-
-.vertical-middle {
- vertical-align: middle !important;
-}
-
-.vertical-text-top {
- vertical-align: text-top !important;
-}
-
-.vertical-baseline {
- vertical-align: baseline !important;
-}
.nowrap {
white-space: nowrap !important;
return (
<Tooltip overlay={translateWithParameters('coding_rules.external_rule.engine', engine)}>
<li className="coding-rules-detail-property">
- <div className="outline-badge badge-tiny-height spacer-left vertical-text-top">
- {engine}
- </div>
+ <div className="outline-badge badge-tiny-height spacer-left text-text-top">{engine}</div>
</li>
</Tooltip>
);
className="coding-rules-detail-property"
>
<div
- className="outline-badge badge-tiny-height spacer-left vertical-text-top"
+ className="outline-badge badge-tiny-height spacer-left text-text-top"
>
xoo
</div>
<div className="pull-left">
<Checkbox
checked={isChecked}
- className="spacer-right vertical-middle"
+ className="spacer-right text-middle"
disabled={issues.length === 0}
id="issues-selection"
onCheck={this.handleCheckAll}
<Rating value={measures['new_reliability_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <BugIcon className="little-spacer-right vertical-bottom" />
+ <BugIcon className="little-spacer-right text-bottom" />
{translate('metric.bugs.name')}
</div>
</div>
<Rating value={measures['new_security_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <VulnerabilityIcon className="little-spacer-right vertical-bottom" />
+ <VulnerabilityIcon className="little-spacer-right text-bottom" />
{translate('metric.vulnerabilities.name')}
</div>
</div>
<Rating value={measures['new_maintainability_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <CodeSmellIcon className="little-spacer-right vertical-bottom" />
+ <CodeSmellIcon className="little-spacer-right text-bottom" />
{translate('metric.code_smells.name')}
</div>
</div>
<Rating value={measures['reliability_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <BugIcon className="little-spacer-right vertical-bottom" />
+ <BugIcon className="little-spacer-right text-bottom" />
{translate('metric.bugs.name')}
</div>
</div>
<Rating value={measures['security_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <VulnerabilityIcon className="little-spacer-right vertical-bottom" />
+ <VulnerabilityIcon className="little-spacer-right text-bottom" />
{translate('metric.vulnerabilities.name')}
</div>
</div>
<Rating value={measures['sqale_rating']} />
</div>
<div className="project-card-measure-label-with-icon">
- <CodeSmellIcon className="little-spacer-right vertical-bottom" />
+ <CodeSmellIcon className="little-spacer-right text-bottom" />
{translate('metric.code_smells.name')}
</div>
</div>
className="project-card-measure-label-with-icon"
>
<BugIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.bugs.name
</div>
className="project-card-measure-label-with-icon"
>
<VulnerabilityIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.vulnerabilities.name
</div>
className="project-card-measure-label-with-icon"
>
<CodeSmellIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.code_smells.name
</div>
className="project-card-measure-label-with-icon"
>
<BugIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.bugs.name
</div>
className="project-card-measure-label-with-icon"
>
<VulnerabilityIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.vulnerabilities.name
</div>
className="project-card-measure-label-with-icon"
>
<CodeSmellIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.code_smells.name
</div>
className="project-card-measure-label-with-icon"
>
<BugIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.bugs.name
</div>
className="project-card-measure-label-with-icon"
>
<VulnerabilityIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.vulnerabilities.name
</div>
className="project-card-measure-label-with-icon"
>
<CodeSmellIcon
- className="little-spacer-right vertical-bottom"
+ className="little-spacer-right text-bottom"
/>
metric.code_smells.name
</div>
return (
<div className="display-inline-block" id="quality-profile-changelog-form">
<DateRangeInput onChange={this.props.onDateRangeChange} value={this.props.dateRange} />
- <Button className="spacer-left vertical-top" onClick={this.props.onReset}>
+ <Button className="spacer-left text-top" onClick={this.props.onReset}>
{translate('reset_verb')}
</Button>
</div>
}
/>
<Button
- className="spacer-left vertical-top"
+ className="spacer-left text-top"
onClick={[MockFunction]}
>
reset_verb
formatMeasure(props.total, 'INT', null)
)}
{props.loadMore != null && hasMore ? loadMoreLink : null}
- {props.loading && (
- <DeferredSpinner className="vertical-bottom spacer-left position-absolute" />
- )}
+ {props.loading && <DeferredSpinner className="text-bottom spacer-left position-absolute" />}
</footer>
);
}
className="link-no-underline"
href="#"
onClick={this.handleClick}>
- <OpenCloseIcon className="vertical-middle little-spacer-right" open={this.state.open} />
+ <OpenCloseIcon className="text-middle little-spacer-right" open={this.state.open} />
{children.props ? children.props.children : children}
</a>
);
{children}
</a>
<DetachIcon
- className="text-muted little-spacer-left little-spacer-right vertical-baseline"
+ className="text-muted little-spacer-left little-spacer-right text-baseline"
size={12}
/>
</>
<a href={href} rel="noopener noreferrer" target="_blank" {...other}>
{children}
</a>
- <DetachIcon className="little-spacer-left little-spacer-right vertical-baseline" size={12} />
+ <DetachIcon className="little-spacer-left little-spacer-right text-baseline" size={12} />
</>
);
}
onClick={[Function]}
>
<OpenCloseIcon
- className="vertical-middle little-spacer-right"
+ className="text-middle little-spacer-right"
open={false}
/>
Foo
onClick={[Function]}
>
<OpenCloseIcon
- className="vertical-middle little-spacer-right"
+ className="text-middle little-spacer-right"
open={true}
/>
Foo
link text
</a>
<DetachIcon
- className="text-muted little-spacer-left little-spacer-right vertical-baseline"
+ className="text-muted little-spacer-left little-spacer-right text-baseline"
size={12}
/>
</Fragment>
target="_blank"
/>
<DetachIcon
- className="little-spacer-left little-spacer-right vertical-baseline"
+ className="little-spacer-left little-spacer-right text-baseline"
size={12}
/>
</Fragment>
<span className="little-spacer-right">{this.props.message}</span>
<Button
aria-label={translate('issue.rule_details')}
- className="button button-grey button-tiny spacer-right vertical-top"
+ className="button button-grey button-tiny spacer-right text-top"
onClick={this.handleClick}>
{translate('issue.see_rule')}
</Button>
{this.props.engine && (
<Tooltip
overlay={translateWithParameters('issue.from_external_rule_engine', this.props.engine)}>
- <div className="outline-badge badge-tiny-height spacer-right vertical-top">
+ <div className="outline-badge badge-tiny-height spacer-right text-top">
{this.props.engine}
</div>
</Tooltip>
)}
{this.props.manualVulnerability && (
<Tooltip overlay={translate('issue.manual_vulnerability.description')}>
- <div className="outline-badge badge-tiny-height spacer-right vertical-top">
+ <div className="outline-badge badge-tiny-height spacer-right text-top">
{translate('issue.manual_vulnerability')}
</div>
</Tooltip>
</span>
<Button
aria-label="issue.rule_details"
- className="button button-grey button-tiny spacer-right vertical-top"
+ className="button button-grey button-tiny spacer-right text-top"
onClick={[Function]}
>
issue.see_rule
{!!user.login && (
<Avatar className="spacer-right" hash={user.avatar} name={user.name} size={16} />
)}
- <span
- className="vertical-middle"
- style={{ marginLeft: !user.login ? 24 : undefined }}>
+ <span className="text-middle" style={{ marginLeft: !user.login ? 24 : undefined }}>
{user.name}
</span>
</SelectListItem>