joyent-portal/consoles/my-joy-instances/src/containers/instances/__tests__/__snapshots__/cns.spec.js.snap

8537 lines
198 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders <Cns /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c14 {
margin-top: 0.75rem;
}
.c19 {
margin-top: 1.875rem;
}
.c20 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c27 {
margin-top: 0.1875rem;
}
.c29 {
margin-left: 0.75rem;
}
.c35 {
margin-left: 0.375rem;
}
.c10 {
padding: 1.875rem;
}
.c33 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c33::-moz-focus-inner,
.c33[type='button']::-moz-focus-inner,
.c33[type='reset']::-moz-focus-inner,
.c33[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c33:-moz-focusring,
.c33[type='button']:-moz-focusring,
.c33[type='reset']:-moz-focusring,
.c33[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c32 {
min-width: 7.5rem;
}
.c31 {
display: inline-block;
}
.c30 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c30:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c30:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c30:active,
.c30:active:hover,
.c30:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c30[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c26 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c13 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c18 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c24 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c16 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c21 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c23 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c34 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c22 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c28 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(73,73,73);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c28:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c28::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:invalid {
box-shadow: none;
}
.c28:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c28:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c36 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c38 {
display: none;
}
.c38:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c38:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c38:checked + label:active {
box-shadow: none;
}
.c39 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c39::selection {
background: none;
}
.c39:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c39:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c39:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c39:after,
.c39:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c39:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c39:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c39:before {
display: none;
}
.c12 {
margin: 0;
}
.c15 {
margin: 0;
}
.c37 {
margin: 0 6px;
}
.c17 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<h3
className="c12 c13"
>
CNS Default Hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c16"
/>
<div
className="c14"
>
<div
className="c17 c18 c3"
height="0.0625rem"
/>
</div>
<div
className="c19"
>
<div
className="c20"
>
<h3
className="c12 c13"
>
CNS Service hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c21"
wrap={true}
>
<div
className="c22"
>
<div
className="c23"
>
<div
className="c24"
name="name"
role="group"
style={undefined}
>
<label
className="c25 c26"
htmlFor="k"
>
Attach to new CNS service name
</label>
<div
className="c27"
>
<input
className="c28"
disabled={false}
id="k"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c22"
>
<div
className="c29"
>
<button
className="c30 c31 c32 c33"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div
className="c19"
>
<div
className="c2"
>
<div
className="c24"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c34"
>
<label
className="c25 c26"
disabled={false}
htmlFor="l"
>
Disabled CNS
</label>
<div
className="c35"
>
<div
className="c36"
>
<input
checked={true}
className="c37 c38"
disabled={false}
id="l"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c37 c39"
disabled={false}
htmlFor="l"
id="l"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c37 c25 c26"
disabled={false}
htmlFor="l"
id="l"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns disabled /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-top: 1.875rem;
}
.c16 {
margin-left: 0.375rem;
}
.c10 {
padding: 1.875rem;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c15 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c12 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c13 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c14 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c17 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c19 {
display: none;
}
.c19:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c19:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c19:checked + label:active {
box-shadow: none;
}
.c20 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c20::selection {
background: none;
}
.c20:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c20:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c20:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c20:after,
.c20:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c20:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c20:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c20:before {
display: none;
}
.c18 {
margin: 0 6px;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
/>
</div>
</div>
<div
className="c11"
>
<div
className="c2"
>
<div
className="c12"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c13"
>
<label
className="c14 c15"
disabled={false}
htmlFor="r"
>
Disabled CNS
</label>
<div
className="c16"
>
<div
className="c17"
>
<input
checked={false}
className="c18 c19"
disabled={false}
id="r"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={false}
className="c18 c20"
disabled={false}
htmlFor="r"
id="r"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={false}
className="c18 c14 c15"
disabled={false}
htmlFor="r"
id="r"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns hostnames /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c25 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c14 {
margin-top: 0.75rem;
}
.c32 {
margin-top: 1.875rem;
}
.c33 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c24 {
margin-top: 0.1875rem;
}
.c39 {
margin-left: 0.75rem;
}
.c47 {
margin-left: 0.375rem;
}
.c22 {
margin-right: 0.375rem;
margin-bottom: 0.1875rem;
}
.c26 {
margin-bottom: 0.1875rem;
}
.c44 {
margin-top: 0.1875rem;
margin-bottom: 0.375rem;
}
.c45 {
margin-bottom: 0rem;
}
.c10 {
padding: 1.875rem;
}
.c20 {
font-size: 80%;
}
.c43 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c43::-moz-focus-inner,
.c43[type='button']::-moz-focus-inner,
.c43[type='reset']::-moz-focus-inner,
.c43[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c43:-moz-focusring,
.c43[type='button']:-moz-focusring,
.c43[type='reset']:-moz-focusring,
.c43[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c42 {
min-width: 7.5rem;
}
.c41 {
display: inline-block;
}
.c40 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c40:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c40:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c40:active,
.c40:active:hover,
.c40:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c40[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c37 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c13 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c19 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgb(73,73,73);
line-height: 1.125rem;
font-size: 0.8125rem;
font-weight: 600;
}
.c23 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgb(73,73,73);
line-height: 1.125rem;
font-size: 0.8125rem;
}
.c31 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c35 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c16 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c34 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c17 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c46 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c21 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c38 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(73,73,73);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c38:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c38::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:invalid {
box-shadow: none;
}
.c38:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c38:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
white-space: pre-wrap;
font-family: "Roboto Mono",monospace;
width: 100%;
min-width: 100%;
}
.c28:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c28::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:invalid {
box-shadow: none;
}
.c28::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c28::-moz-placeholder {
color: rgb(216,216,216);
}
.c28:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c28:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c28:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled {
color: rgb(73,73,73);
}
.c28:disabled::-webkit-input-placeholder {
color: rgb(73,73,73);
}
.c28:disabled::-moz-placeholder {
color: rgb(73,73,73);
}
.c28:disabled:-ms-input-placeholder {
color: rgb(73,73,73);
}
.c36 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c48 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c50 {
display: none;
}
.c50:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c50:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c50:checked + label:active {
box-shadow: none;
}
.c51 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c51::selection {
background: none;
}
.c51:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c51:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c51:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c51:after,
.c51:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c51:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c51:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c51:before {
display: none;
}
.c27 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c27 input {
padding-right: 1.875rem;
}
.c27 div {
position: relative;
left: -1.625rem;
}
.c29 {
cursor: pointer;
}
.c18 {
padding-right: 0.75rem;
margin-right: 0.75rem;
border-right: 0.0625rem solid rgb(216,216,216);
}
.c12 {
margin: 0;
}
.c15 {
margin: 0;
}
.c49 {
margin: 0 6px;
}
.c30 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (min-width:0em) {
.c25 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c25 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<h3
className="c12 c13"
>
CNS Default Hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c16"
>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
Instance name
hostname
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
>
<path
d="M6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Zm4-7V4A4,4,0,0,0,2,4H4c0-1.65.35-2,2-2s2,.35,2,2V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6Zm0,7a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Public
</small>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
Instance name
hostname
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10,6V4A4,4,0,0,0,2,4V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6ZM4,4c0-1.65.35-2,2-2s2,.35,2,2V6H4Zm6,9a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1ZM6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Private
</small>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c14"
>
<div
className="c30 c31 c3"
height="0.0625rem"
/>
</div>
<div
className="c32"
>
<div
className="c33"
>
<h3
className="c12 c13"
>
CNS Service hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c34"
wrap={true}
>
<div
className="c21"
>
<div
className="c17"
>
<div
className="c35"
name="name"
role="group"
style={undefined}
>
<label
className="c36 c37"
htmlFor="u"
>
Attach to new CNS service name
</label>
<div
className="c24"
>
<input
className="c38"
disabled={false}
id="u"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c21"
>
<div
className="c39"
>
<button
className="c40 c41 c42 c43"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
<div
className="c32"
>
<div
className="c16"
>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
CNS service
hostname
s
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
>
<path
d="M6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Zm4-7V4A4,4,0,0,0,2,4H4c0-1.65.35-2,2-2s2,.35,2,2V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6Zm0,7a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Public
</small>
</div>
</div>
<div
className="c44"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c44"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c45"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
CNS service
hostname
s
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10,6V4A4,4,0,0,0,2,4V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6ZM4,4c0-1.65.35-2,2-2s2,.35,2,2V6H4Zm6,9a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1ZM6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Private
</small>
</div>
</div>
<div
className="c44"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c44"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c32"
>
<div
className="c2"
>
<div
className="c35"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c46"
>
<label
className="c36 c37"
disabled={false}
htmlFor="v"
>
Disabled CNS
</label>
<div
className="c47"
>
<div
className="c48"
>
<input
checked={true}
className="c49 c50"
disabled={false}
id="v"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c49 c51"
disabled={false}
htmlFor="v"
id="v"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c49 c36 c37"
disabled={false}
htmlFor="v"
id="v"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns loading /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c10 {
padding: 1.875rem;
}
.c12 {
fill: rgb(59,70,204);
stroke: rgb(59,70,204);
-webkit-animation: iCqDak 1.5s ease-out 0s infinite;
animation: iCqDak 1.5s ease-out 0s infinite;
}
.c13 {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.c14 {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c11 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 1.25rem;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
.c15 {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-align-self: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
text-align: center;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<svg
height="10"
width="28"
>
<rect
className="c12"
height="6"
width="6"
x="2"
y="2"
/>
<rect
className="c13 c12"
height="6"
width="6"
x="11"
y="2"
/>
<rect
className="c14 c12"
height="6"
width="6"
x="20"
y="2"
/>
</svg>
<p
className="c15 c6"
>
Loading...
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns loadingError /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c19 {
margin-top: 0.75rem;
}
.c24 {
margin-top: 1.875rem;
}
.c25 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c32 {
margin-top: 0.1875rem;
}
.c34 {
margin-left: 0.75rem;
}
.c10 {
padding: 1.875rem;
}
.c38 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c38::-moz-focus-inner,
.c38[type='button']::-moz-focus-inner,
.c38[type='reset']::-moz-focus-inner,
.c38[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c38:-moz-focusring,
.c38[type='button']:-moz-focusring,
.c38[type='reset']:-moz-focusring,
.c38[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c37 {
min-width: 7.5rem;
}
.c36 {
display: inline-block;
}
.c35 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c35:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c35:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c35:active,
.c35:active:hover,
.c35:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c35[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c31 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c18 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c15 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.5rem;
font-size: 0.9375rem;
}
.c23 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c29 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c21 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c26 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c28 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c27 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c33 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(73,73,73);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c33:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c33::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:invalid {
box-shadow: none;
}
.c33:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c33:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c30 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c12 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: relative;
background-color: rgb(255,255,255);
box-shadow: 0 0.125rem 0 0 rgba(0,0,0,0.05);
border: 0.0625rem solid rgb(216,216,216);
border-radius: 0.1875rem;
width: 100%;
}
.c13 {
border-radius: 0.1875rem 0 0 0.1875rem;
min-width: 0.75rem;
background-color: rgb(0,152,88);
background-color: rgb(210,67,58);
}
.c14 {
padding: 1.125rem 1.125rem;
}
.c16 {
line-height: 0.875rem;
font-size: 0.8125rem;
}
.c17 {
margin: 0;
}
.c20 {
margin: 0;
}
.c22 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<div
className="c12"
>
<div
className="c13"
/>
<div
className="c14"
>
<h4
className="c15"
>
Ooops!
</h4>
<p
className="c16 c6"
>
An error occurred while loading your CNS services
</p>
</div>
</div>
</div>
<div
className="c11"
>
<h3
className="c17 c18"
>
CNS Default Hostnames
</h3>
<div
className="c19"
>
<p
className="c20 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c21"
/>
<div
className="c19"
>
<div
className="c22 c23 c3"
height="0.0625rem"
/>
</div>
<div
className="c24"
>
<div
className="c25"
>
<h3
className="c17 c18"
>
CNS Service hostnames
</h3>
<div
className="c19"
>
<p
className="c20 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c26"
wrap={true}
>
<div
className="c27"
>
<div
className="c28"
>
<div
className="c29"
name="name"
role="group"
style={undefined}
>
<label
className="c30 c31"
htmlFor="m"
>
Attach to new CNS service name
</label>
<div
className="c32"
>
<input
className="c33"
disabled={false}
id="m"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c27"
>
<div
className="c34"
>
<button
className="c35 c36 c37 c38"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns mutating /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c25 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c14 {
margin-top: 0.75rem;
}
.c32 {
margin-top: 1.875rem;
}
.c33 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c24 {
margin-top: 0.1875rem;
}
.c39 {
margin-left: 0.75rem;
}
.c53 {
margin-left: 0.375rem;
}
.c22 {
margin-right: 0.375rem;
margin-bottom: 0.1875rem;
}
.c26 {
margin-bottom: 0.1875rem;
}
.c44 {
margin-top: 0.375rem;
}
.c47 {
margin-right: 0.375rem;
margin-bottom: 0.375rem;
}
.c49 {
margin-top: 0.1875rem;
margin-bottom: 0.375rem;
}
.c50 {
margin-bottom: 0rem;
}
.c10 {
padding: 1.875rem;
}
.c20 {
font-size: 80%;
}
.c43 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c43::-moz-focus-inner,
.c43[type='button']::-moz-focus-inner,
.c43[type='reset']::-moz-focus-inner,
.c43[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c43:-moz-focusring,
.c43[type='button']:-moz-focusring,
.c43[type='reset']:-moz-focusring,
.c43[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c42 {
min-width: 7.5rem;
}
.c41 {
display: inline-block;
}
.c40 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c40:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c40:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c40:active,
.c40:active:hover,
.c40:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c40[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c37 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c13 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c19 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgb(73,73,73);
line-height: 1.125rem;
font-size: 0.8125rem;
font-weight: 600;
}
.c23 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgb(73,73,73);
line-height: 1.125rem;
font-size: 0.8125rem;
}
.c31 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c35 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c16 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c34 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c17 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c51 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c21 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c28 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
white-space: pre-wrap;
font-family: "Roboto Mono",monospace;
width: 100%;
min-width: 100%;
}
.c28:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c28::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:invalid {
box-shadow: none;
}
.c28::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c28::-moz-placeholder {
color: rgb(216,216,216);
}
.c28:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c28:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c28:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled {
color: rgb(73,73,73);
}
.c28:disabled::-webkit-input-placeholder {
color: rgb(73,73,73);
}
.c28:disabled::-moz-placeholder {
color: rgb(73,73,73);
}
.c28:disabled:-ms-input-placeholder {
color: rgb(73,73,73);
}
.c38 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c38:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c38::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:invalid {
box-shadow: none;
}
.c38::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c38::-moz-placeholder {
color: rgb(216,216,216);
}
.c38:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c38:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c38:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c38:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c36 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c52 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
color: rgb(216,216,216);
}
.c54 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c56 {
display: none;
}
.c56:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c56:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c56:checked + label:active {
box-shadow: none;
}
.c56:checked + label {
background: rgb(250,250,250);
border: 0.0625rem solid rgb(216,216,216);
}
.c56:checked + label:after {
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c57 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
cursor: not-allowed;
}
.c57::selection {
background: none;
}
.c57:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c57:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c57:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c57:after,
.c57:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c57:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c57:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c57:before {
display: none;
}
.c57:active {
box-shadow: none;
}
.c57:active:after {
padding-right: 0;
}
.c57:before {
cursor: not-allowed;
}
.c57:after {
cursor: not-allowed;
background: rgb(230,230,230);
}
.c57:hover {
border: 0.0625rem solid rgb(216,216,216);
}
.c57:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c27 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c27 input {
padding-right: 1.875rem;
}
.c27 div {
position: relative;
left: -1.625rem;
}
.c29 {
cursor: pointer;
}
.c48 {
border: 0.0625rem solid rgb(216,216,216);
box-sizing: border-box;
border-radius: 0.125rem;
font-size: 0.8125rem;
line-height: 1.125rem;
padding: 0.3125rem 0.75rem;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background: rgba(66,134,244,0.1);
border: 0.0625rem solid rgb(45,56,132);
}
.c46 {
margin: 0;
padding: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
list-style: none;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.c45 {
margin-bottom: -0.375rem;
}
.c18 {
padding-right: 0.75rem;
margin-right: 0.75rem;
border-right: 0.0625rem solid rgb(216,216,216);
}
.c12 {
margin: 0;
}
.c15 {
margin: 0;
}
.c55 {
margin: 0 6px;
}
.c30 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (min-width:0em) {
.c25 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c25 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<h3
className="c12 c13"
>
CNS Default Hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c16"
>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
Instance name
hostname
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
>
<path
d="M6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Zm4-7V4A4,4,0,0,0,2,4H4c0-1.65.35-2,2-2s2,.35,2,2V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6Zm0,7a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Public
</small>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
Instance name
hostname
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10,6V4A4,4,0,0,0,2,4V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6ZM4,4c0-1.65.35-2,2-2s2,.35,2,2V6H4Zm6,9a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1ZM6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Private
</small>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c14"
>
<div
className="c30 c31 c3"
height="0.0625rem"
/>
</div>
<div
className="c32"
>
<div
className="c33"
>
<h3
className="c12 c13"
>
CNS Service hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c34"
wrap={true}
>
<div
className="c21"
>
<div
className="c17"
>
<div
className="c35"
name="name"
role="group"
style={undefined}
>
<label
className="c36 c37"
htmlFor="p"
>
Attach to new CNS service name
</label>
<div
className="c24"
>
<input
className="c38"
disabled={true}
id="p"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c21"
>
<div
className="c39"
>
<button
className="c40 c41 c42 c43"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
<div
className="c2"
>
<label
className="c36 c37"
htmlFor=""
>
Existing CNS service name(s)
</label>
<div
className="c44"
>
<ul
className="c45 c46"
>
<div
className="c47"
>
<li
className="c48"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-0"
>
serbice
</li>
</div>
<div
className="c47"
>
<li
className="c48"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-1"
>
dssasda
</li>
</div>
<div
className="c47"
>
<li
className="c48"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-2"
>
dsasd
</li>
</div>
</ul>
</div>
</div>
<div
className="c32"
>
<div
className="c16"
>
<div
className="c2"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
CNS service
hostname
s
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
>
<path
d="M6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Zm4-7V4A4,4,0,0,0,2,4H4c0-1.65.35-2,2-2s2,.35,2,2V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6Zm0,7a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Public
</small>
</div>
</div>
<div
className="c49"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c49"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c50"
>
<div
className="c17"
>
<small
className="c18 c19 c20"
>
CNS service
hostname
s
</small>
<div
className="c21"
>
<div
className="c22"
>
<svg
height="16"
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 12 16"
width="12"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10,6V4A4,4,0,0,0,2,4V6H2A2,2,0,0,0,0,8v6a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V8A2,2,0,0,0,10,6ZM4,4c0-1.65.35-2,2-2s2,.35,2,2V6H4Zm6,9a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V9A1,1,0,0,1,3,8H9a1,1,0,0,1,1,1ZM6,13H6a1,1,0,0,1-1-1V10A1,1,0,0,1,6,9H6a1,1,0,0,1,1,1v2A1,1,0,0,1,6,13Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
<div
className="c21"
>
<small
className="c23 c20"
>
Private
</small>
</div>
</div>
<div
className="c49"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c49"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c24"
>
<div
className="c3"
>
<div
className="c25"
>
<div
className="c26"
/>
<div
className="c27"
disabled={true}
>
<input
className="c28"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"display": "inline-block",
}
}
>
<svg
className="c29"
height="19"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 15 19"
width="15"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5,12l2-2v9H8V10l2,2,1-1L7.5,8,4,11ZM11,1h2a2.15,2.15,0,0,1,2,2V16a2.15,2.15,0,0,1-2,2H10V16h3V3H11V5H4V3H2V16H5v2H2a2.15,2.15,0,0,1-2-2V3A2.15,2.15,0,0,1,2,1H4V0h7ZM9,2H6V3H9V2Z"
fill="rgb(73, 73, 73)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c32"
>
<div
className="c2"
>
<div
className="c35"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c51"
>
<label
className="c52 c37"
disabled={true}
htmlFor="q"
>
Disabled CNS
</label>
<div
className="c53"
>
<div
className="c54"
>
<input
checked={true}
className="c55 c56"
disabled={true}
id="q"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c55 c57"
disabled={true}
htmlFor="q"
id="q"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c55 c52 c37"
disabled={true}
htmlFor="q"
id="q"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns mutationError /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c19 {
margin-top: 0.75rem;
}
.c24 {
margin-top: 1.875rem;
}
.c25 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c32 {
margin-top: 0.1875rem;
}
.c34 {
margin-left: 0.75rem;
}
.c40 {
margin-left: 0.375rem;
}
.c10 {
padding: 1.875rem;
}
.c38 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c38::-moz-focus-inner,
.c38[type='button']::-moz-focus-inner,
.c38[type='reset']::-moz-focus-inner,
.c38[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c38:-moz-focusring,
.c38[type='button']:-moz-focusring,
.c38[type='reset']:-moz-focusring,
.c38[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c37 {
min-width: 7.5rem;
}
.c36 {
display: inline-block;
}
.c35 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c35:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c35:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c35:active,
.c35:active:hover,
.c35:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c35[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c31 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c18 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c15 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.5rem;
font-size: 0.9375rem;
}
.c23 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c29 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c21 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c26 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c28 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c39 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c27 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c33 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(73,73,73);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c33:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c33::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:invalid {
box-shadow: none;
}
.c33:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c33:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c33:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c30 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c41 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c43 {
display: none;
}
.c43:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c43:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c43:checked + label:active {
box-shadow: none;
}
.c44 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c44::selection {
background: none;
}
.c44:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c44:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c44:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c44:after,
.c44:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c44:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c44:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c44:before {
display: none;
}
.c12 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: relative;
background-color: rgb(255,255,255);
box-shadow: 0 0.125rem 0 0 rgba(0,0,0,0.05);
border: 0.0625rem solid rgb(216,216,216);
border-radius: 0.1875rem;
width: 100%;
}
.c13 {
border-radius: 0.1875rem 0 0 0.1875rem;
min-width: 0.75rem;
background-color: rgb(0,152,88);
background-color: rgb(210,67,58);
}
.c14 {
padding: 1.125rem 1.125rem;
}
.c16 {
line-height: 0.875rem;
font-size: 0.8125rem;
}
.c17 {
margin: 0;
}
.c20 {
margin: 0;
}
.c42 {
margin: 0 6px;
}
.c22 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<div
className="c12"
>
<div
className="c13"
/>
<div
className="c14"
>
<h4
className="c15"
>
Ooops!
</h4>
<p
className="c16 c6"
>
mutation error
</p>
</div>
</div>
</div>
<div
className="c11"
>
<h3
className="c17 c18"
>
CNS Default Hostnames
</h3>
<div
className="c19"
>
<p
className="c20 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c21"
/>
<div
className="c19"
>
<div
className="c22 c23 c3"
height="0.0625rem"
/>
</div>
<div
className="c24"
>
<div
className="c25"
>
<h3
className="c17 c18"
>
CNS Service hostnames
</h3>
<div
className="c19"
>
<p
className="c20 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c26"
wrap={true}
>
<div
className="c27"
>
<div
className="c28"
>
<div
className="c29"
name="name"
role="group"
style={undefined}
>
<label
className="c30 c31"
htmlFor="n"
>
Attach to new CNS service name
</label>
<div
className="c32"
>
<input
className="c33"
disabled={false}
id="n"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c27"
>
<div
className="c34"
>
<button
className="c35 c36 c37 c38"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div
className="c24"
>
<div
className="c2"
>
<div
className="c29"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c39"
>
<label
className="c30 c31"
disabled={false}
htmlFor="o"
>
Disabled CNS
</label>
<div
className="c40"
>
<div
className="c41"
>
<input
checked={true}
className="c42 c43"
disabled={false}
id="o"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c42 c44"
disabled={false}
htmlFor="o"
id="o"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c42 c30 c31"
disabled={false}
htmlFor="o"
id="o"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns services /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-bottom: 1.875rem;
}
.c14 {
margin-top: 0.75rem;
}
.c19 {
margin-top: 1.875rem;
}
.c20 {
margin-top: 1.875rem;
margin-bottom: 1.875rem;
}
.c27 {
margin-top: 0.1875rem;
}
.c29 {
margin-left: 0.75rem;
}
.c41 {
margin-left: 0.375rem;
}
.c34 {
margin-top: 0.375rem;
}
.c37 {
margin-right: 0.375rem;
margin-bottom: 0.375rem;
}
.c10 {
padding: 1.875rem;
}
.c33 {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
overflow: visible;
text-transform: none;
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
.c33::-moz-focus-inner,
.c33[type='button']::-moz-focus-inner,
.c33[type='reset']::-moz-focus-inner,
.c33[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c33:-moz-focusring,
.c33[type='button']:-moz-focusring,
.c33[type='reset']:-moz-focusring,
.c33[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c32 {
min-width: 7.5rem;
}
.c31 {
display: inline-block;
}
.c30 {
box-sizing: border-box;
display: inline-block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: 3rem;
height: 3rem;
min-width: 7.5rem;
padding: 0.9375rem 1.125rem;
position: relative;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-size: 0.9375rem;
text-align: center;
font-style: normal;
font-stretch: normal;
-webkit-letter-spacing: normal;
-moz-letter-spacing: normal;
-ms-letter-spacing: normal;
letter-spacing: normal;
-webkit-text-decoration: none;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
color: rgb(255,255,255);
-webkit-text-fill-color: currentcolor;
background-image: none;
background-color: rgb(59,70,204);
border-radius: 0.25rem;
border: solid 0.0625rem rgb(45,56,132);
}
.c30:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c30:hover {
background-color: rgb(72,83,217);
border-color: rgb(45,56,132);
}
.c30:active,
.c30:active:hover,
.c30:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c30[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c26 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c13 {
margin: 0;
color: rgb(73,73,73);
font-weight: 400;
line-height: 1.625rem;
font-size: 1.3125rem;
}
.c18 {
height: 1px;
background-color: rgb(216,216,216);
height: 0.0625rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c24 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c16 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.c21 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-items: flex-end;
-webkit-box-align: flex-end;
-ms-flex-align: flex-end;
align-items: flex-end;
}
.c23 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.c40 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c22 {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex-basis: auto;
-ms-flex-preferred-size: auto;
flex-basis: auto;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: block;
}
.c28 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 0.75rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(73,73,73);
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
max-width: 22.1875rem;
text-overflow: ellipsis;
}
.c28:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c28::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:invalid {
box-shadow: none;
}
.c28:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c28:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c28:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c42 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c44 {
display: none;
}
.c44:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c44:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c44:checked + label:active {
box-shadow: none;
}
.c45 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c45::selection {
background: none;
}
.c45:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c45:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c45:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c45:after,
.c45:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c45:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c45:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c45:before {
display: none;
}
.c39 {
margin-left: 0.75rem;
cursor: pointer;
}
.c38 {
border: 0.0625rem solid rgb(216,216,216);
box-sizing: border-box;
border-radius: 0.125rem;
font-size: 0.8125rem;
line-height: 1.125rem;
padding: 0.3125rem 0.75rem;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-webkit-flex-grow: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background: rgba(66,134,244,0.1);
border: 0.0625rem solid rgb(45,56,132);
}
.c36 {
margin: 0;
padding: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
list-style: none;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.c35 {
margin-bottom: -0.375rem;
}
.c12 {
margin: 0;
}
.c15 {
margin: 0;
}
.c43 {
margin: 0 6px;
}
.c17 {
margin-left: 0;
margin-right: 0;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
>
<div
className="c11"
>
<h3
className="c12 c13"
>
CNS Default Hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
</div>
<div
className="c16"
/>
<div
className="c14"
>
<div
className="c17 c18 c3"
height="0.0625rem"
/>
</div>
<div
className="c19"
>
<div
className="c20"
>
<h3
className="c12 c13"
>
CNS Service hostnames
</h3>
<div
className="c14"
>
<p
className="c15 c6"
>
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>
</div>
</div>
<div
className="c2"
>
<form
onSubmit={undefined}
>
<div
className="c21"
wrap={true}
>
<div
className="c22"
>
<div
className="c23"
>
<div
className="c24"
name="name"
role="group"
style={undefined}
>
<label
className="c25 c26"
htmlFor="s"
>
Attach to new CNS service name
</label>
<div
className="c27"
>
<input
className="c28"
disabled={false}
id="s"
onBlur={null}
placeholder="Example: mySQLdb"
/>
</div>
</div>
</div>
</div>
<div
className="c22"
>
<div
className="c29"
>
<button
className="c30 c31 c32 c33"
data-ui-button="true"
disabled={undefined}
href=""
type="submit"
>
Add
</button>
</div>
</div>
</div>
</form>
</div>
<div
className="c2"
>
<label
className="c25 c26"
htmlFor=""
>
Existing CNS service name(s)
</label>
<div
className="c34"
>
<ul
className="c35 c36"
>
<div
className="c37"
>
<li
className="c38"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-0"
>
serbice
<svg
className="c39"
height="11.31"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 11.31 11.31"
width="11.31"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.31,1.41,9.9,0,5.66,4.24,1.41,0,0,1.41,4.24,5.66,0,9.9l1.41,1.41L5.66,7.07,9.9,11.31,11.31,9.9,7.07,5.66Z"
fill="rgb(45, 56, 132)"
/>
</svg>
</li>
</div>
<div
className="c37"
>
<li
className="c38"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-1"
>
dssasda
<svg
className="c39"
height="11.31"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 11.31 11.31"
width="11.31"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.31,1.41,9.9,0,5.66,4.24,1.41,0,0,1.41,4.24,5.66,0,9.9l1.41,1.41L5.66,7.07,9.9,11.31,11.31,9.9,7.07,5.66Z"
fill="rgb(45, 56, 132)"
/>
</svg>
</li>
</div>
<div
className="c37"
>
<li
className="c38"
fill="rgba(66, 134, 244, 0.1)"
id="cns-tag-2"
>
dsasd
<svg
className="c39"
height="11.31"
innerRef={undefined}
onClick={[Function]}
style={
Object {
"transform": "rotate(0deg)",
}
}
viewBox="0 0 11.31 11.31"
width="11.31"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.31,1.41,9.9,0,5.66,4.24,1.41,0,0,1.41,4.24,5.66,0,9.9l1.41,1.41L5.66,7.07,9.9,11.31,11.31,9.9,7.07,5.66Z"
fill="rgb(45, 56, 132)"
/>
</svg>
</li>
</div>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c19"
>
<div
className="c2"
>
<div
className="c24"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c40"
>
<label
className="c25 c26"
disabled={false}
htmlFor="t"
>
Disabled CNS
</label>
<div
className="c41"
>
<div
className="c42"
>
<input
checked={true}
className="c43 c44"
disabled={false}
id="t"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c43 c45"
disabled={false}
htmlFor="t"
id="t"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c43 c25 c26"
disabled={false}
htmlFor="t"
id="t"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns services hostnames /> without throwing 1`] = `
.c1 {
margin-right: auto;
margin-left: auto;
}
.c3 {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.c4 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c7 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.625rem;
padding-left: 0.625rem;
display: block;
}
.c2 {
margin-bottom: 1.125rem;
}
.c11 {
margin-top: 1.875rem;
}
.c16 {
margin-left: 0.375rem;
}
.c10 {
padding: 1.875rem;
}
.c6 {
color: rgb(73,73,73);
margin: 0;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c15 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
}
.c0 {
box-sizing: border-box;
width: 100%;
max-width: 78.75rem;
padding-bottom: 1.125rem;
}
.c8 {
box-sizing: content-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
border-width: 0.0625rem;
border-style: solid;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
color: rgb(73,73,73);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c9 {
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
border-width: 0;
background-color: transparent;
}
.c12 {
display: inline-block;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c13 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c14 {
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c17 {
position: relative;
vertical-align: text-bottom;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c19 {
display: none;
}
.c19:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c19:checked + label:after {
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c19:checked + label:active {
box-shadow: none;
}
.c20 {
outline: 0;
display: block;
width: 2.875rem;
height: 1.5rem;
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
background: rgb(250,250,250);
border-radius: 1.4375rem;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
border: 0.0625rem solid rgb(216,216,216);
}
.c20::selection {
background: none;
}
.c20:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c20:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c20:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c20:after,
.c20:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c20:after {
-webkit-transform: translateX(0%);
-ms-transform: translateX(0%);
transform: translateX(0%);
border-radius: 50%;
background: rgb(255,255,255);
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
-webkit-transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c20:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c20:before {
display: none;
}
.c18 {
margin: 0 6px;
}
.c5 {
font-weight: 200;
}
@media only screen and (min-width:48em) {
.c1 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c1 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c1 {
width: 59rem;
}
}
@media only screen and (min-width:0em) {
.c4 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c4 {
-webkit-flex-basis: 58.333333333333336%;
-ms-flex-preferred-size: 58.333333333333336%;
flex-basis: 58.333333333333336%;
max-width: 58.333333333333336%;
}
}
@media only screen and (min-width:0em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c7 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c7 {
-webkit-flex-basis: 75%;
-ms-flex-preferred-size: 75%;
flex-basis: 75%;
max-width: 75%;
}
}
@media only screen and (max-width:37.4375rem) {
.c0 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@media only screen and (min-width:37.5rem) and (max-width:62.4375rem) {
.c0 {
padding-left: 1.875rem;
padding-right: 1.875rem;
}
}
@media only screen and (min-width:62.5rem) and (max-width:87.4375rem) {
.c0 {
padding-left: 4.375rem;
padding-right: 4.375rem;
}
}
<div
className="c0 c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5 c6"
>
Triton CNS is used to automatically update hostnames for your instances. You can serve multiple instances (with multiple IP addresses) under the same hostname by matching the CNS service names.
<a
href="https://docs.joyent.com/private-cloud/install/cns"
rel="noopener noreferrer"
target="__blank"
>
Read the docs
</a>
</p>
</div>
</div>
</div>
<div
className="c3"
>
<div
className="c7"
>
<div
className="c8"
disabled={false}
name="card"
>
<div
className="c9 c8"
disabled={false}
name="card-outlet"
>
<div
className="c10"
/>
</div>
</div>
<div
className="c11"
>
<div
className="c2"
>
<div
className="c12"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c13"
>
<label
className="c14 c15"
disabled={false}
htmlFor="w"
>
Disabled CNS
</label>
<div
className="c16"
>
<div
className="c17"
>
<input
checked={false}
className="c18 c19"
disabled={false}
id="w"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={false}
className="c18 c20"
disabled={false}
htmlFor="w"
id="w"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={false}
className="c18 c14 c15"
disabled={false}
htmlFor="w"
id="w"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;