|
@ -1,7 +1,6 @@
|
|||
const Inert = require('inert');
|
||||
const Path = require('path');
|
||||
const RenderReact = require('hapi-render-react');
|
||||
const Url = require('url');
|
||||
const Intercept = require('apr-intercept');
|
||||
const Fs = require('mz/fs');
|
||||
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
import React from 'react';
|
||||
import { Row, Col } from 'joyent-react-styled-flexboxgrid';
|
||||
import { Margin } from 'styled-components-spacing';
|
||||
import { P } from 'joyent-ui-toolkit';
|
||||
import styled from 'styled-components';
|
||||
import { P as BaseP } from 'joyent-ui-toolkit';
|
||||
|
||||
const P = styled(BaseP)`
|
||||
margin: 0;
|
||||
`;
|
||||
|
||||
export default ({ children }) => (
|
||||
<Row>
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
const Inert = require('inert');
|
||||
const Path = require('path');
|
||||
const RenderReact = require('hapi-render-react');
|
||||
const Wreck = require('wreck');
|
||||
const Url = require('url');
|
||||
const Intercept = require('apr-intercept');
|
||||
const Fs = require('mz/fs');
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"prepublish": "NODE_ENV=production redrun build:bundle",
|
||||
"lint": "redrun lint:ci -- --fix",
|
||||
"lint:ci": "NODE_ENV=test eslint . --ext .js --ext .md",
|
||||
"test": "DEFAULT_TIMEOUT_INTERVAL=100000 NODE_ENV=test joyent-react-scripts test --env=jsdom",
|
||||
"test": "DEFAULT_TIMEOUT_INTERVAL=100000 NODE_ENV=test joyent-react-scripts test --env=jsdom --testPathIgnorePatterns='.ui.js'",
|
||||
"test:ci": "NODE_ENV=test joyent-react-scripts test --env=jsdom --testPathIgnorePatterns='.ui.js'",
|
||||
"build:frontend": "joyent-react-scripts build",
|
||||
"build:ssr": "SSR=1 UMD=1 babel src --out-dir lib/app --copy-files"
|
||||
|
|
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 7.5 KiB |
|
@ -6,13 +6,13 @@ import Flex, { FlexItem } from 'styled-flex-component';
|
|||
import { Field } from 'redux-form';
|
||||
|
||||
import {
|
||||
P,
|
||||
H3,
|
||||
P as BaseP,
|
||||
H3 as BaseH3,
|
||||
Card,
|
||||
Divider,
|
||||
TagList,
|
||||
Input,
|
||||
Toggle,
|
||||
Toggle as BaseToggle,
|
||||
Small,
|
||||
Button,
|
||||
FormGroup,
|
||||
|
@ -31,15 +31,27 @@ const SmallBordered = styled(Small)`
|
|||
border-right: ${remcalc(1)} solid ${props => props.theme.grey};
|
||||
`;
|
||||
|
||||
const H3 = styled(BaseH3)`
|
||||
margin: 0;
|
||||
`;
|
||||
|
||||
const P = styled(BaseP)`
|
||||
margin: 0;
|
||||
`;
|
||||
|
||||
const Toggle = styled(BaseToggle)`
|
||||
margin: 0 6px;
|
||||
`;
|
||||
|
||||
export const Header = () => (
|
||||
<Fragment>
|
||||
<H3>Hostnames</H3>
|
||||
<Padding bottom={2}>
|
||||
<Margin top={2} bottom={3}>
|
||||
<P>
|
||||
Default hostnames are automatically generated from both the instance
|
||||
name and any attached networks.
|
||||
</P>
|
||||
</Padding>
|
||||
</Margin>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
|
@ -49,9 +61,11 @@ export const Footer = ({ enabled, submitting, onToggle }) => (
|
|||
<FormGroup name="cns-enabled">
|
||||
<Flex alignCenter>
|
||||
<FormLabel disabled={submitting}>Disabled CNS</FormLabel>
|
||||
<Toggle checked={enabled} onChange={onToggle} disabled={submitting}>
|
||||
Enabled CNS
|
||||
</Toggle>
|
||||
<Margin left={1}>
|
||||
<Toggle checked={enabled} onChange={onToggle} disabled={submitting}>
|
||||
Enabled CNS
|
||||
</Toggle>
|
||||
</Margin>
|
||||
</Flex>
|
||||
</FormGroup>
|
||||
</Margin>
|
||||
|
@ -69,13 +83,13 @@ export const Footer = ({ enabled, submitting, onToggle }) => (
|
|||
export const HostnamesHeader = () => (
|
||||
<Margin top={4}>
|
||||
<H3>CNS service hostnames</H3>
|
||||
<Padding bottom={3}>
|
||||
<Margin top={2} bottom={3}>
|
||||
<P>
|
||||
CNS service hostnames are created by attaching a CNS service name to one
|
||||
or more instances. You can serve multiple instances under the same
|
||||
hostname by assigning them to a matching CNS service name.
|
||||
</P>
|
||||
</Padding>
|
||||
</Margin>
|
||||
</Margin>
|
||||
);
|
||||
|
||||
|
@ -87,23 +101,25 @@ export const AddServiceForm = ({
|
|||
invalid
|
||||
}) => (
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Flex wrap>
|
||||
<Flex wrap alignEnd>
|
||||
<FlexItem>
|
||||
<FormGroup name="name" field={Field}>
|
||||
<FormLabel>Attach to new CNS service name</FormLabel>
|
||||
<Margin top={0.5}>
|
||||
<Input
|
||||
onBlur={null}
|
||||
type="text"
|
||||
placeholder="Example: mySQLdb"
|
||||
disabled={disabled || submitting}
|
||||
/>
|
||||
<FormMeta />
|
||||
</Margin>
|
||||
</FormGroup>
|
||||
<Flex collumn>
|
||||
<FormGroup name="name" field={Field}>
|
||||
<FormLabel>Attach to new CNS service name</FormLabel>
|
||||
<Margin top={0.5}>
|
||||
<Input
|
||||
onBlur={null}
|
||||
type="text"
|
||||
placeholder="Example: mySQLdb"
|
||||
disabled={disabled || submitting}
|
||||
/>
|
||||
<FormMeta />
|
||||
</Margin>
|
||||
</FormGroup>
|
||||
</Flex>
|
||||
</FlexItem>
|
||||
<FlexItem>
|
||||
<Margin top={3.5} left={2}>
|
||||
<Margin left={2}>
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={submitting}
|
||||
|
@ -128,7 +144,7 @@ export const Hostname = ({
|
|||
}) => (
|
||||
<Fragment>
|
||||
{values.length ? (
|
||||
<Margin bottom={4}>
|
||||
<Margin bottom={3}>
|
||||
<Flex>
|
||||
<SmallBordered bold noMargin>
|
||||
{network && service
|
||||
|
@ -139,7 +155,7 @@ export const Hostname = ({
|
|||
hostname{values.length === 1 ? '' : 's'}
|
||||
</SmallBordered>
|
||||
<FlexItem>
|
||||
<Margin right={1}>
|
||||
<Margin bottom={0.5} right={1}>
|
||||
{hostname.public ? <PublicIcon /> : <PrivateIcon />}
|
||||
</Margin>
|
||||
</FlexItem>
|
||||
|
|
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.1 KiB |