You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
2.6 KiB
94 lines
2.6 KiB
6 years ago
|
import {WidgetType, Left, Label, Vertical} from '@ui/index';
|
||
|
const className = 'fr.component.linkStatus.right.card';
|
||
|
const Widget: WidgetType = {
|
||
|
render() {
|
||
6 years ago
|
const {maxActive, maxIdle, numActive, numIdle} = this.options;
|
||
|
|
||
6 years ago
|
return {
|
||
|
type: Left,
|
||
|
items: [
|
||
|
{
|
||
|
type: Left,
|
||
|
cls: 'right-status-item',
|
||
|
items: [
|
||
|
{
|
||
|
type: Vertical,
|
||
6 years ago
|
cls: 'right-status-board',
|
||
6 years ago
|
items: [
|
||
|
{
|
||
|
type: Vertical,
|
||
6 years ago
|
cls: 'right-status-board-item',
|
||
6 years ago
|
items: [
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
|
extraCls: 'card-font1',
|
||
6 years ago
|
text: numActive,
|
||
6 years ago
|
},
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
|
text: '/',
|
||
|
},
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
6 years ago
|
text: maxActive,
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
type: Label,
|
||
6 years ago
|
height: 20,
|
||
6 years ago
|
text: BI.i18nText('Dec-Dcm_Active_Connections_Number'),
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
type: Left,
|
||
|
cls: 'right-status-right',
|
||
|
items: [
|
||
|
{
|
||
|
type: Vertical,
|
||
6 years ago
|
cls: 'right-status-board',
|
||
6 years ago
|
items: [
|
||
|
{
|
||
|
type: Vertical,
|
||
6 years ago
|
cls: 'right-status-board-item',
|
||
6 years ago
|
items: [
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
|
extraCls: 'card-font2',
|
||
6 years ago
|
text: numIdle,
|
||
6 years ago
|
},
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
|
text: '/',
|
||
|
},
|
||
|
{
|
||
|
type: Label,
|
||
|
cls: 'right-status-text',
|
||
6 years ago
|
text: maxIdle,
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
type: Label,
|
||
6 years ago
|
height: 20,
|
||
6 years ago
|
text: BI.i18nText('Dec-Dcm_Leisure_Connections_Number'),
|
||
6 years ago
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
},
|
||
|
};
|
||
|
BI.shortcut(className, BI.inherit(BI.Widget, Widget));
|
||
|
export default className;
|