2017-10-31 12:03:44 +02:00
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card />;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Shadow
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card shadow />;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Headed > Collapsed
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P } = require('../text');
|
|
|
|
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Instances, Actions } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card shadow collapsed>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={4} sm={8} md={9}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={8} sm={4} md={3}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Instances marginRight="0.5" light /> 4 of 4 instances
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions light />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Headed
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P } = require('../text');
|
|
|
|
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Instances, Health, Actions } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card shadow>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={4} sm={8} md={9}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={8} sm={4} md={3}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Instances marginRight="0.5" light /> 4 of 4 instances
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions light />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<P style={{ flex: '1 0 auto', alignSelf: 'flex-end' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Single State
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P, Small } = require('../text');
|
|
|
|
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Instances, Actions } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card shadow>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={4} sm={8} md={9}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={8} sm={4} md={3}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Instances marginRight="0.5" light /> 4 of 4 instances
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions light />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
<Outlet>
|
|
|
|
<Small style={{ paddingBottom: '0' }}>1 instance paused</Small>
|
|
|
|
<Small style={{ paddingBottom: '0' }}>1 instances stopped</Small>
|
|
|
|
<Small style={{ paddingBottom: '0' }}>1 instance not responding</Small>
|
|
|
|
</Outlet>
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Provisioning
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P } = require('../text');
|
|
|
|
const { default: StatusLoader } = require('../status-loader');
|
|
|
|
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Actions, Instances, Health } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
<Row>
|
|
|
|
<Col xs={12}>
|
|
|
|
<Card collapsed disabled>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row middle="xs">
|
|
|
|
<Col xs={2} sm={1} md={1}>
|
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
|
|
|
<Col xs={8} sm={4} md={2}>
|
|
|
|
<StatusLoader marginLeft="0" inline row msg="Provisioning" />
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Row>,
|
|
|
|
<br />,
|
|
|
|
<Row>
|
|
|
|
<Col xs={12}>
|
|
|
|
<Card shadow>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={4} sm={8} md={9}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={8} sm={4} md={3}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Instances marginRight="0.5" light /> 4 of 4 instances
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions light />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<StatusLoader
|
|
|
|
marginLeft="0"
|
|
|
|
inline
|
|
|
|
row
|
|
|
|
msg="Provisioning 3 instances"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
];
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Disabled
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P } = require('../text');
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Actions } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card disabled shadow>
|
|
|
|
<Header>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
|
|
|
<Col xs={2} sm={9} md={10}>
|
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={5} sm={2} md={2}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>1 Instance</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
<Outlet />
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Instance
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { H4, P } = require('../text');
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Health } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card>
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<H4>percona_primary</H4>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Instance > Stacked
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { H4, P } = require('../text');
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Health } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
<Card stacked shadow>
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<H4>percona_primary</H4>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>;
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Instance > Group
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Outlet } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { H4, P } = require('../text');
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Health } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
<Card marginBottom="6px">
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<H4>percona_secondary</H4>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>,
|
|
|
|
<Card marginBottom="6px">
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<H4>percona_secondary</H4>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>,
|
|
|
|
<Card shadow stacked>
|
|
|
|
<Outlet>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
flex: '1 0 auto',
|
|
|
|
flexDirection: 'column',
|
|
|
|
alignSelf: 'stretch',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
alignContent: 'stretch',
|
|
|
|
alignItems: 'stretch'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<div style={{ flex: '0 1 auto', alignSelf: 'flex-start' }}>
|
|
|
|
<H4>percona_secondary</H4>
|
|
|
|
</div>
|
|
|
|
<P style={{ flex: '0 1 auto', alignSelf: 'stretch' }}>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health width="18" healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</div>
|
|
|
|
</Outlet>
|
|
|
|
</Card>
|
|
|
|
];
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Card > Instance > List
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const React = require('react');
|
2017-10-31 12:29:15 +02:00
|
|
|
const { default: Card, Header, HeaderBox, HeaderMeta } = require('.');
|
2017-10-31 12:03:44 +02:00
|
|
|
const { Row, Col } = require('react-styled-flexboxgrid');
|
|
|
|
const { H4, P } = require('../text');
|
2017-11-23 14:18:38 +02:00
|
|
|
const { Health, Actions, DataCenter } = require('../icons');
|
2017-10-31 12:03:44 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
<Card collapsed>
|
|
|
|
<Header transparent>
|
|
|
|
<HeaderMeta>
|
|
|
|
<Row between="xs" middle="xs">
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={2} sm={9} md={8}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<H4>Nginx</H4>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={5} sm={2} md={2}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Health healthy /> Healthy
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
2017-10-31 12:29:15 +02:00
|
|
|
<Col xs={5} sm={2} md={2}>
|
2017-10-31 12:03:44 +02:00
|
|
|
<P>
|
2017-11-23 14:18:38 +02:00
|
|
|
<DataCenter /> eu-ams-1
|
2017-10-31 12:03:44 +02:00
|
|
|
</P>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</HeaderMeta>
|
|
|
|
<HeaderBox border="left" actionable>
|
2017-11-23 14:18:38 +02:00
|
|
|
<Actions />
|
2017-10-31 12:03:44 +02:00
|
|
|
</HeaderBox>
|
|
|
|
</Header>
|
|
|
|
</Card>
|
|
|
|
];
|
|
|
|
```
|