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

7590 lines
168 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders <Cns /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c13 {
margin-top: 1.5rem;
}
.c19 {
margin-top: 0.1875rem;
}
.c21 {
margin-left: 0.75rem;
}
.c8 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c10 {
padding-bottom: 0.75rem;
}
.c14 {
padding-bottom: 1.125rem;
}
.c24 {
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;
min-width: 7.5rem;
}
.c24::-moz-focus-inner,
.c24[type='button']::-moz-focus-inner,
.c24[type='reset']::-moz-focus-inner,
.c24[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c24:-moz-focusring,
.c24[type='button']:-moz-focusring,
.c24[type='reset']:-moz-focusring,
.c24[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c24 + button,
.c24 + a {
margin-left: 0.375rem;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c23 {
display: inline-block;
}
.c23 + button,
.c23 + a {
margin-left: 0.375rem;
}
.c22 {
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;
line-height: 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);
}
.c22:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c22:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c22:active,
.c22:active:hover,
.c22:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c22[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c18 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c9 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c9 + p,
.c9 + small,
.c9 + h1,
.c9 + h2,
.c9 + label,
.c9 + h3,
.c9 + h4,
.c9 + h5,
.c9 + div,
.c9 + span {
margin-top: 1.5rem;
}
.c12 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c25 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.c11 {
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;
}
.c15 {
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;
}
.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-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c16 {
-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;
}
.c7 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c17 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c20 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgba(73,73,73,1);
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c20::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c20::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c20:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c20:invalid {
box-shadow: none;
}
.c20:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c20:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c20:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c20:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c20:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c27 {
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;
}
.c28 {
display: none;
}
.c28:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c28: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);
}
.c28:checked + label:active {
box-shadow: none;
}
.c29 {
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);
margin-right: 0.375rem;
}
.c29::selection {
background: none;
}
.c29:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c29:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c29:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c29:after,
.c29:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c29: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);
}
.c29:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c29:before {
display: none;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
disabled={false}
name="card"
>
<div
className="c8"
>
<h3
className="c9"
>
Hostnames
</h3>
<div
className="c10"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c11"
/>
<div
className="c12 c2"
height="0.0625rem"
/>
<div
className="c13"
>
<div
className="c13"
>
<h3
className="c9"
>
CNS service hostnames
</h3>
<div
className="c14"
>
<p
className="c5"
>
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>
<form
onSubmit={undefined}
>
<div
className="c15"
wrap={true}
>
<div
className="c16"
>
<div
className="baseline-jVaZNU kXgQxt c17"
name="name"
role="group"
style={undefined}
>
<label
className="c18"
htmlFor="k"
>
Attach to new CNS service name
</label>
<div
className="c19"
>
<input
className="c20"
disabled={false}
id="k"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c16"
>
<div
className="c21"
>
<button
className="c22 c23 c24"
href=""
type="submit"
>
Add
</button>
<div
className="c25 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c13"
>
<div
className="c11"
/>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c17"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c26"
>
<label
className="c18"
disabled={false}
htmlFor="l"
>
Disabled CNS
</label>
<div
className="c27"
>
<input
checked={true}
className="c28"
disabled={false}
id="l"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c29"
disabled={false}
htmlFor="l"
id="l"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c18"
disabled={false}
htmlFor="l"
id="l"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<p
className="c5"
>
*All hostnames listed here will be confirmed after deployment.
</p>
</div>
</div>
`;
exports[`renders <Cns disabled /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c9 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c8 {
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;
}
.c7 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c10 {
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;
}
.c11 {
display: none;
}
.c11:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c11: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);
}
.c11:checked + label:active {
box-shadow: none;
}
.c12 {
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);
margin-right: 0.375rem;
}
.c12::selection {
background: none;
}
.c12:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c12:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c12:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c12:after,
.c12:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c12: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);
}
.c12:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c12:before {
display: none;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c7"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c8"
>
<label
className="c9"
disabled={false}
htmlFor="r"
>
Disabled CNS
</label>
<div
className="c10"
>
<input
checked={false}
className="c11"
disabled={false}
id="r"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={false}
className="c12"
disabled={false}
htmlFor="r"
id="r"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={false}
className="c9"
disabled={false}
htmlFor="r"
id="r"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns hostnames /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c24 {
margin-top: 1.5rem;
}
.c18 {
margin-top: 0.1875rem;
}
.c30 {
margin-left: 0.75rem;
}
.c16 {
margin-right: 0.375rem;
}
.c35 {
margin-top: 0.1875rem;
margin-bottom: 0.375rem;
}
.c8 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c10 {
padding-bottom: 0.75rem;
}
.c25 {
padding-bottom: 1.125rem;
}
.c14 {
font-size: 80%;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgba(73,73,73,1);
line-height: 1.125rem;
font-size: 0.8125rem;
font-weight: 600;
}
.c17 {
font-size: 80%;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgba(73,73,73,1);
line-height: 1.125rem;
font-size: 0.8125rem;
}
.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;
min-width: 7.5rem;
}
.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;
}
.c33 + button,
.c33 + a {
margin-left: 0.375rem;
}
.c22 {
cursor: pointer;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c32 {
display: inline-block;
}
.c32 + button,
.c32 + a {
margin-left: 0.375rem;
}
.c31 {
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;
line-height: 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);
}
.c31:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c31:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c31:active,
.c31:active:hover,
.c31:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c31[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c28 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c19 {
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;
}
.c9 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c9 + p,
.c9 + small,
.c9 + h1,
.c9 + h2,
.c9 + label,
.c9 + h3,
.c9 + h4,
.c9 + h5,
.c9 + div,
.c9 + span {
margin-top: 1.5rem;
}
.c23 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c34 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.c11 {
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;
}
.c36 {
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;
}
.c12 {
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;
}
.c15 {
-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;
}
.c7 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c27 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c29 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgba(73,73,73,1);
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c29::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c29::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c29:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c29:invalid {
box-shadow: none;
}
.c29:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c29:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c29:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c29:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c29:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c21 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
font-family: "Roboto Mono",monospace;
width: 100%;
min-width: 100%;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c21::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:invalid {
box-shadow: none;
}
.c21::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c21::-moz-placeholder {
color: rgb(216,216,216);
}
.c21:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c21:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c21:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled {
color: rgba(73,73,73,1);
}
.c21:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,1);
}
.c21:disabled::-moz-placeholder {
color: rgba(73,73,73,1);
}
.c21:disabled:-ms-input-placeholder {
color: rgba(73,73,73,1);
}
.c21:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c37 {
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);
margin-right: 0.375rem;
}
.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;
}
.c20 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-bottom: 0.625rem;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c20 input {
padding-right: 1.875rem;
}
.c20 div {
position: relative;
left: -1.625rem;
}
.c13 {
padding-right: 0.75rem;
margin-right: 0.75rem;
border-right: 0.0625rem solid rgb(216,216,216);
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
@media only screen and (min-width:0em) {
.c19 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c19 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
disabled={false}
name="card"
>
<div
className="c8"
>
<h3
className="c9"
>
Hostnames
</h3>
<div
className="c10"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c11"
>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
Instance name
hostname
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Public
</small>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
Instance name
hostname
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Private
</small>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c23 c2"
height="0.0625rem"
/>
<div
className="c24"
>
<div
className="c24"
>
<h3
className="c9"
>
CNS service hostnames
</h3>
<div
className="c25"
>
<p
className="c5"
>
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>
<form
onSubmit={undefined}
>
<div
className="c26"
wrap={true}
>
<div
className="c15"
>
<div
className="baseline-jVaZNU kXgQxt c27"
name="name"
role="group"
style={undefined}
>
<label
className="c28"
htmlFor="u"
>
Attach to new CNS service name
</label>
<div
className="c18"
>
<input
className="c29"
disabled={false}
id="u"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c15"
>
<div
className="c30"
>
<button
className="c31 c32 c33"
href=""
type="submit"
>
Add
</button>
<div
className="c34 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c24"
>
<div
className="c11"
>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
CNS service
hostname
s
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Public
</small>
</div>
</div>
<div
className="c35"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c35"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
CNS service
hostname
s
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Private
</small>
</div>
</div>
<div
className="c35"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c35"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c27"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c36"
>
<label
className="c28"
disabled={false}
htmlFor="v"
>
Disabled CNS
</label>
<div
className="c37"
>
<input
checked={true}
className="c38"
disabled={false}
id="v"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c39"
disabled={false}
htmlFor="v"
id="v"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c28"
disabled={false}
htmlFor="v"
id="v"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<p
className="c5"
>
*All hostnames listed here will be confirmed after deployment.
</p>
</div>
</div>
`;
exports[`renders <Cns loading /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c7 {
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;
}
.c8 {
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;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.c9 {
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;
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c10 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
-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;
margin-bottom: 0;
margin-left: 0.375rem;
}
.c6 {
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;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<svg
height="10"
width="28"
>
<rect
className="c7"
height="6"
width="6"
x="2"
y="2"
/>
<rect
className="c8"
height="6"
width="6"
x="11"
y="2"
/>
<rect
className="c9"
height="6"
width="6"
x="20"
y="2"
/>
</svg>
<p
className="c10"
>
Loading...
</p>
</div>
</div>
`;
exports[`renders <Cns loadingError /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c18 {
margin-top: 1.5rem;
}
.c24 {
margin-top: 0.1875rem;
}
.c26 {
margin-left: 0.75rem;
}
.c13 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c15 {
padding-bottom: 0.75rem;
}
.c19 {
padding-bottom: 1.125rem;
}
.c29 {
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;
min-width: 7.5rem;
}
.c29::-moz-focus-inner,
.c29[type='button']::-moz-focus-inner,
.c29[type='reset']::-moz-focus-inner,
.c29[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c29:-moz-focusring,
.c29[type='button']:-moz-focusring,
.c29[type='reset']:-moz-focusring,
.c29[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c29 + button,
.c29 + a {
margin-left: 0.375rem;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c11 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
line-height: 0.875rem;
font-size: 0.8125rem;
}
.c28 {
display: inline-block;
}
.c28 + button,
.c28 + a {
margin-left: 0.375rem;
}
.c27 {
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;
line-height: 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);
}
.c27:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c27:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c27:active,
.c27:active:hover,
.c27:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c27[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c23 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c14 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c14 + p,
.c14 + small,
.c14 + h1,
.c14 + h2,
.c14 + label,
.c14 + h3,
.c14 + h4,
.c14 + h5,
.c14 + div,
.c14 + span {
margin-top: 1.5rem;
}
.c10 {
color: rgba(73,73,73,1);
font-weight: 600;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c17 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c30 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.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;
}
.c20 {
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;
}
.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;
}
.c7 {
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%;
}
.c8 {
border-radius: 0.1875rem 0 0 0.1875rem;
margin: -0.0625rem 0 -0.0625rem -0.0625rem;
min-width: 0.75rem;
min-height: 100%;
background-color: rgb(0,152,88);
background-color: rgb(210,67,58);
}
.c9 {
padding: 1.125rem 1.125rem;
}
.c12 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c22 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c25 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgba(73,73,73,1);
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c25::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:invalid {
box-shadow: none;
}
.c25:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c25:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:focus {
border-color: rgb(59,70,204);
outline: 0;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
>
<div
className="c8"
/>
<div
className="c9"
>
<h4
className="c10"
>
Ooops!
</h4>
<p
className="c11"
>
An error occurred while loading your CNS services
</p>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
disabled={false}
name="card"
>
<div
className="c13"
>
<h3
className="c14"
>
Hostnames
</h3>
<div
className="c15"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c16"
/>
<div
className="c17 c2"
height="0.0625rem"
/>
<div
className="c18"
>
<div
className="c18"
>
<h3
className="c14"
>
CNS service hostnames
</h3>
<div
className="c19"
>
<p
className="c5"
>
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>
<form
onSubmit={undefined}
>
<div
className="c20"
wrap={true}
>
<div
className="c21"
>
<div
className="baseline-jVaZNU kXgQxt c22"
name="name"
role="group"
style={undefined}
>
<label
className="c23"
htmlFor="m"
>
Attach to new CNS service name
</label>
<div
className="c24"
>
<input
className="c25"
disabled={false}
id="m"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c21"
>
<div
className="c26"
>
<button
className="c27 c28 c29"
href=""
type="submit"
>
Add
</button>
<div
className="c30 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c18"
>
<div
className="c16"
/>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`renders <Cns mutating /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c24 {
margin-top: 1.5rem;
}
.c18 {
margin-top: 0.1875rem;
}
.c35 {
margin-left: 0.75rem;
}
.c16 {
margin-right: 0.375rem;
}
.c27 {
margin-top: 0.375rem;
}
.c29 {
margin-right: 0.375rem;
margin-bottom: 0.375rem;
}
.c40 {
margin-top: 0.1875rem;
margin-bottom: 0.375rem;
}
.c8 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c10 {
padding-bottom: 0.75rem;
}
.c25 {
padding-bottom: 1.125rem;
}
.c14 {
font-size: 80%;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgba(73,73,73,1);
line-height: 1.125rem;
font-size: 0.8125rem;
font-weight: 600;
}
.c17 {
font-size: 80%;
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
color: rgba(73,73,73,1);
line-height: 1.125rem;
font-size: 0.8125rem;
}
.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;
min-width: 7.5rem;
}
.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;
}
.c38 + button,
.c38 + a {
margin-left: 0.375rem;
}
.c22 {
cursor: pointer;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c37 {
display: inline-block;
}
.c37 + button,
.c37 + a {
margin-left: 0.375rem;
}
.c36 {
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;
line-height: 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);
}
.c36:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c36:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c36:active,
.c36:active:hover,
.c36:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c36[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;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c42 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
color: rgb(216,216,216);
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c19 {
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;
}
.c9 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c9 + p,
.c9 + small,
.c9 + h1,
.c9 + h2,
.c9 + label,
.c9 + h3,
.c9 + h4,
.c9 + h5,
.c9 + div,
.c9 + span {
margin-top: 1.5rem;
}
.c23 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c39 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.c11 {
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;
}
.c32 {
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;
}
.c41 {
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;
}
.c12 {
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;
}
.c15 {
-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;
}
.c7 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c33 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c21 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
font-family: "Roboto Mono",monospace;
width: 100%;
min-width: 100%;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c21::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:invalid {
box-shadow: none;
}
.c21::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c21::-moz-placeholder {
color: rgb(216,216,216);
}
.c21:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c21:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c21:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c21:disabled {
color: rgba(73,73,73,1);
}
.c21:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,1);
}
.c21:disabled::-moz-placeholder {
color: rgba(73,73,73,1);
}
.c21:disabled:-ms-input-placeholder {
color: rgba(73,73,73,1);
}
.c21:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c34 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgb(250,250,250);
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c34::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c34::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c34:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c34:invalid {
box-shadow: none;
}
.c34::-webkit-input-placeholder {
color: rgb(216,216,216);
}
.c34::-moz-placeholder {
color: rgb(216,216,216);
}
.c34:-ms-input-placeholder {
color: rgb(216,216,216);
}
.c34:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c34:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c34:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c34:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c34:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c43 {
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;
}
.c44:checked + label {
background: rgb(250,250,250);
border: 0.0625rem solid rgb(216,216,216);
}
.c44:checked + label:after {
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.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);
margin-right: 0.375rem;
cursor: not-allowed;
}
.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;
}
.c45:active {
box-shadow: none;
}
.c45:active:after {
padding-right: 0;
}
.c45:before {
cursor: not-allowed;
}
.c45:after {
cursor: not-allowed;
background: rgb(230,230,230);
}
.c45:hover {
border: 0.0625rem solid rgb(216,216,216);
}
.c45:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(216,216,216);
}
.c20 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-bottom: 0.625rem;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.c20 input {
padding-right: 1.875rem;
}
.c20 div {
position: relative;
left: -1.625rem;
}
.c30 {
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;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.c31 {
border: 0.0625rem solid rgb(216,216,216);
box-sizing: border-box;
border-radius: 0.1875rem;
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-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
border: 0.0625rem solid rgb(45,56,132);
background: rgba(59,70,204,.1);
}
.c28 {
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;
}
.c13 {
padding-right: 0.75rem;
margin-right: 0.75rem;
border-right: 0.0625rem solid rgb(216,216,216);
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
@media only screen and (min-width:0em) {
.c19 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:64em) {
.c19 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
disabled={false}
name="card"
>
<div
className="c8"
>
<h3
className="c9"
>
Hostnames
</h3>
<div
className="c10"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c11"
>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
Instance name
hostname
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Public
</small>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
Instance name
hostname
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Private
</small>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="stuffy-stuff"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c23 c2"
height="0.0625rem"
/>
<div
className="c24"
>
<div
className="c24"
>
<h3
className="c9"
>
CNS service hostnames
</h3>
<div
className="c25"
>
<p
className="c5"
>
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="c4"
>
<label
className="c26"
htmlFor=""
>
Existing CNS service name(s)
</label>
<div
className="c27"
>
<ul
className="c28"
>
<div
className="c29"
>
<div
className="c30"
>
<li
className="c31"
onClick={undefined}
>
serbice
</li>
</div>
</div>
<div
className="c29"
>
<div
className="c30"
>
<li
className="c31"
onClick={undefined}
>
dssasda
</li>
</div>
</div>
<div
className="c29"
>
<div
className="c30"
>
<li
className="c31"
onClick={undefined}
>
dsasd
</li>
</div>
</div>
</ul>
</div>
</div>
<form
onSubmit={undefined}
>
<div
className="c32"
wrap={true}
>
<div
className="c15"
>
<div
className="baseline-jVaZNU kXgQxt c33"
name="name"
role="group"
style={undefined}
>
<label
className="c26"
htmlFor="p"
>
Attach to new CNS service name
</label>
<div
className="c18"
>
<input
className="c34"
disabled={true}
id="p"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c15"
>
<div
className="c35"
>
<button
className="c36 c37 c38"
href=""
type="submit"
>
Add
</button>
<div
className="c39 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c24"
>
<div
className="c11"
>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
CNS service
hostname
s
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Public
</small>
</div>
</div>
<div
className="c40"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c40"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
>
<small
className="c13 c14"
>
CNS service
hostname
s
</small>
<div
className="c15"
>
<div
className="c16"
>
<svg
className=""
height="16"
innerRef={undefined}
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
<div
className="c15"
>
<small
className="c17"
>
Private
</small>
</div>
</div>
<div
className="c40"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="serbice"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c40"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dssasda"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
className="c18"
>
<div
className="c2"
>
<div
className="c19"
>
<div
className="c20"
disabled={true}
>
<input
className="c21"
disabled={true}
id=""
onBlur={null}
value="dsasd"
/>
<div
onClick={undefined}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tag={false}
>
<svg
className="c22"
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="rgba(73, 73, 73, 1)"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c33"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c41"
>
<label
className="c42"
disabled={true}
htmlFor="q"
>
Disabled CNS
</label>
<div
className="c43"
>
<input
checked={true}
className="c44"
disabled={true}
id="q"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c45"
disabled={true}
htmlFor="q"
id="q"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c42"
disabled={true}
htmlFor="q"
id="q"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<p
className="c5"
>
*All hostnames listed here will be confirmed after deployment.
</p>
</div>
</div>
`;
exports[`renders <Cns mutationError /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c18 {
margin-top: 1.5rem;
}
.c24 {
margin-top: 0.1875rem;
}
.c26 {
margin-left: 0.75rem;
}
.c13 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c15 {
padding-bottom: 0.75rem;
}
.c19 {
padding-bottom: 1.125rem;
}
.c29 {
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;
min-width: 7.5rem;
}
.c29::-moz-focus-inner,
.c29[type='button']::-moz-focus-inner,
.c29[type='reset']::-moz-focus-inner,
.c29[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c29:-moz-focusring,
.c29[type='button']:-moz-focusring,
.c29[type='reset']:-moz-focusring,
.c29[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c29 + button,
.c29 + a {
margin-left: 0.375rem;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c11 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
line-height: 0.875rem;
font-size: 0.8125rem;
}
.c28 {
display: inline-block;
}
.c28 + button,
.c28 + a {
margin-left: 0.375rem;
}
.c27 {
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;
line-height: 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);
}
.c27:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c27:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c27:active,
.c27:active:hover,
.c27:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c27[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.c23 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c14 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c14 + p,
.c14 + small,
.c14 + h1,
.c14 + h2,
.c14 + label,
.c14 + h3,
.c14 + h4,
.c14 + h5,
.c14 + div,
.c14 + span {
margin-top: 1.5rem;
}
.c10 {
color: rgba(73,73,73,1);
font-weight: 600;
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c17 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c30 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.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;
}
.c20 {
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;
}
.c31 {
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;
}
.c7 {
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%;
}
.c8 {
border-radius: 0.1875rem 0 0 0.1875rem;
margin: -0.0625rem 0 -0.0625rem -0.0625rem;
min-width: 0.75rem;
min-height: 100%;
background-color: rgb(0,152,88);
background-color: rgb(210,67,58);
}
.c9 {
padding: 1.125rem 1.125rem;
}
.c12 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c22 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c25 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgba(73,73,73,1);
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c25::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:invalid {
box-shadow: none;
}
.c25:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c25:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c25:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c32 {
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;
}
.c33 {
display: none;
}
.c33:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c33: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);
}
.c33:checked + label:active {
box-shadow: none;
}
.c34 {
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);
margin-right: 0.375rem;
}
.c34::selection {
background: none;
}
.c34:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c34:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c34:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c34:after,
.c34:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c34: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);
}
.c34:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c34:before {
display: none;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
>
<div
className="c8"
/>
<div
className="c9"
>
<h4
className="c10"
>
Ooops!
</h4>
<p
className="c11"
>
mutation error
</p>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="c12"
disabled={false}
name="card"
>
<div
className="c13"
>
<h3
className="c14"
>
Hostnames
</h3>
<div
className="c15"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c16"
/>
<div
className="c17 c2"
height="0.0625rem"
/>
<div
className="c18"
>
<div
className="c18"
>
<h3
className="c14"
>
CNS service hostnames
</h3>
<div
className="c19"
>
<p
className="c5"
>
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>
<form
onSubmit={undefined}
>
<div
className="c20"
wrap={true}
>
<div
className="c21"
>
<div
className="baseline-jVaZNU kXgQxt c22"
name="name"
role="group"
style={undefined}
>
<label
className="c23"
htmlFor="n"
>
Attach to new CNS service name
</label>
<div
className="c24"
>
<input
className="c25"
disabled={false}
id="n"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c21"
>
<div
className="c26"
>
<button
className="c27 c28 c29"
href=""
type="submit"
>
Add
</button>
<div
className="c30 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c18"
>
<div
className="c16"
/>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c22"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c31"
>
<label
className="c23"
disabled={false}
htmlFor="o"
>
Disabled CNS
</label>
<div
className="c32"
>
<input
checked={true}
className="c33"
disabled={false}
id="o"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c34"
disabled={false}
htmlFor="o"
id="o"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c23"
disabled={false}
htmlFor="o"
id="o"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<p
className="c5"
>
*All hostnames listed here will be confirmed after deployment.
</p>
</div>
</div>
`;
exports[`renders <Cns services /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c13 {
margin-top: 1.5rem;
}
.c25 {
margin-top: 0.1875rem;
}
.c27 {
margin-left: 0.75rem;
}
.c16 {
margin-top: 0.375rem;
}
.c18 {
margin-right: 0.375rem;
margin-bottom: 0.375rem;
}
.c8 {
padding: 1.5rem;
padding-bottom: 0rem;
}
.c10 {
padding-bottom: 0.75rem;
}
.c14 {
padding-bottom: 1.125rem;
}
.c30 {
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;
min-width: 7.5rem;
}
.c30::-moz-focus-inner,
.c30[type='button']::-moz-focus-inner,
.c30[type='reset']::-moz-focus-inner,
.c30[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
.c30:-moz-focusring,
.c30[type='button']:-moz-focusring,
.c30[type='reset']:-moz-focusring,
.c30[type='submit']:-moz-focusring {
outline: 0.0625rem dotted ButtonText;
}
.c30 + button,
.c30 + a {
margin-left: 0.375rem;
}
.c21 {
margin-left: 0.75rem;
cursor: pointer;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c29 {
display: inline-block;
}
.c29 + button,
.c29 + a {
margin-left: 0.375rem;
}
.c28 {
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;
line-height: 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);
}
.c28:focus {
outline: 0;
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgb(59,70,204);
border-color: rgb(45,56,132);
}
.c28:hover {
background-color: rgb(72,83,217);
border: solid 0.0625rem rgb(45,56,132);
}
.c28:active,
.c28:active:hover,
.c28:active:focus {
background-image: none;
outline: 0;
background-color: rgb(45,56,132);
border-color: rgb(45,56,132);
}
.c28[disabled] {
cursor: not-allowed;
pointer-events: none;
}
.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;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c9 {
color: rgba(73,73,73,1);
font-weight: normal;
line-height: 1.625rem;
font-size: 1.3125rem;
margin: 0;
}
.c9 + p,
.c9 + small,
.c9 + h1,
.c9 + h2,
.c9 + label,
.c9 + h3,
.c9 + h4,
.c9 + h5,
.c9 + div,
.c9 + span {
margin-top: 1.5rem;
}
.c12 {
background-color: rgb(216,216,216);
margin: 0;
height: 0.0625rem;
}
.c31 {
background-color: rgb(216,216,216);
margin: 0;
background-color: transparent;
height: 0.25rem;
}
.c11 {
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;
}
.c22 {
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;
}
.c32 {
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;
}
.c23 {
-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;
}
.c7 {
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: rgba(73,73,73,1);
background-color: rgb(255,255,255);
border-color: rgb(216,216,216);
}
.c24 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c26 {
box-sizing: border-box;
width: 18.75rem;
height: 3rem;
min-height: 3rem;
padding: 0.8125rem 1.125rem;
border-radius: 0.25rem;
background-color: rgb(255,255,255);
border: 0.0625rem solid rgb(216,216,216);
color: rgba(73,73,73,1);
max-width: 22.1875rem;
text-overflow: ellipsis;
font-size: 0.9375rem;
line-height: normal !important;
font-style: normal;
font-stretch: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
}
.c26::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c26::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c26:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c26:invalid {
box-shadow: none;
}
.c26:disabled {
background-color: rgb(250,250,250);
color: rgb(216,216,216);
cursor: not-allowed;
}
.c26:disabled::-webkit-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c26:disabled::-moz-placeholder {
color: rgba(73,73,73,0.5);
}
.c26:disabled:-ms-input-placeholder {
color: rgba(73,73,73,0.5);
}
.c26:focus {
border-color: rgb(59,70,204);
outline: 0;
}
.c33 {
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;
}
.c34 {
display: none;
}
.c34:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c34: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);
}
.c34:checked + label:active {
box-shadow: none;
}
.c35 {
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);
margin-right: 0.375rem;
}
.c35::selection {
background: none;
}
.c35:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c35:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c35:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c35:after,
.c35:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c35: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);
}
.c35:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c35:before {
display: none;
}
.c19 {
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;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.c20 {
border: 0.0625rem solid rgb(216,216,216);
box-sizing: border-box;
border-radius: 0.1875rem;
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-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
border: 0.0625rem solid rgb(45,56,132);
background: rgba(59,70,204,.1);
}
.c17 {
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;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="c7"
disabled={false}
name="card"
>
<div
className="c8"
>
<h3
className="c9"
>
Hostnames
</h3>
<div
className="c10"
>
<p
className="c5"
>
Default hostnames are automatically generated from both the instance name and any attached networks.
</p>
</div>
<div
className="c11"
/>
<div
className="c12 c2"
height="0.0625rem"
/>
<div
className="c13"
>
<div
className="c13"
>
<h3
className="c9"
>
CNS service hostnames
</h3>
<div
className="c14"
>
<p
className="c5"
>
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="c4"
>
<label
className="c15"
htmlFor=""
>
Existing CNS service name(s)
</label>
<div
className="c16"
>
<ul
className="c17"
>
<div
className="c18"
>
<div
className="c19"
>
<li
className="c20"
onClick={undefined}
>
serbice
<svg
className="c21"
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>
<div
className="c18"
>
<div
className="c19"
>
<li
className="c20"
onClick={undefined}
>
dssasda
<svg
className="c21"
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>
<div
className="c18"
>
<div
className="c19"
>
<li
className="c20"
onClick={undefined}
>
dsasd
<svg
className="c21"
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>
</ul>
</div>
</div>
<form
onSubmit={undefined}
>
<div
className="c22"
wrap={true}
>
<div
className="c23"
>
<div
className="baseline-jVaZNU kXgQxt c24"
name="name"
role="group"
style={undefined}
>
<label
className="c15"
htmlFor="s"
>
Attach to new CNS service name
</label>
<div
className="c25"
>
<input
className="c26"
disabled={false}
id="s"
onBlur={null}
placeholder="Example: mySQLdb"
required={true}
/>
</div>
</div>
</div>
<div
className="c23"
>
<div
className="c27"
>
<button
className="c28 c29 c30"
href=""
type="submit"
>
Add
</button>
<div
className="c31 c2"
height="0.25rem"
/>
</div>
</div>
</div>
</form>
<div
className="c13"
>
<div
className="c11"
/>
</div>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c24"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c32"
>
<label
className="c15"
disabled={false}
htmlFor="t"
>
Disabled CNS
</label>
<div
className="c33"
>
<input
checked={true}
className="c34"
disabled={false}
id="t"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={true}
className="c35"
disabled={false}
htmlFor="t"
id="t"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={true}
className="c15"
disabled={false}
htmlFor="t"
id="t"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
<div
className="c6"
>
<p
className="c5"
>
*All hostnames listed here will be confirmed after deployment.
</p>
</div>
</div>
`;
exports[`renders <Cns services hostnames /> without throwing 1`] = `
.c1 {
margin-bottom: 0.375rem;
}
.c4 {
margin-bottom: 1.125rem;
}
.c6 {
margin-bottom: 1.5rem;
}
.c5 {
color: rgba(73,73,73,1);
line-height: 1.5rem;
font-size: 0.9375rem;
margin: 0;
}
.c9 {
font-size: 0.9375rem;
line-height: 1.125rem;
font-style: normal;
font-stretch: normal;
display: block;
color: rgb(70,70,70);
text-align: left;
margin-right: 0.75rem;
font-weight: 600;
white-space: pre;
font-size: 0.8125rem;
}
.c0 {
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
width: 100%;
max-width: 62.5rem;
padding-bottom: 1.125rem;
}
.c2 {
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;
}
.c3 {
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;
}
.c8 {
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;
}
.c7 {
display: inline-block;
margin: 0;
padding: 0;
border: none;
overflow: hidden;
height: auto;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
-webkit-padding-before: 0;
-webkit-padding-start: 0;
-webkit-padding-end: 0;
-webkit-padding-after: 0;
}
.c10 {
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;
}
.c11 {
display: none;
}
.c11:checked + label {
background: #3B46CC;
border: 0.0625rem solid rgb(59,70,204);
}
.c11: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);
}
.c11:checked + label:active {
box-shadow: none;
}
.c12 {
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);
margin-right: 0.375rem;
}
.c12::selection {
background: none;
}
.c12:active {
box-shadow: inset 0 0 0 1.5rem rgb(216,216,216);
}
.c12:hover {
border: 0.0625rem solid rgb(59,70,204);
}
.c12:hover:after {
box-shadow: 0 0 0 0.0625rem rgb(59,70,204);
}
.c12:after,
.c12:before {
position: relative;
display: block;
content: '';
width: 50%;
height: 100%;
}
.c12: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);
}
.c12:active {
box-shadow: inset 0 0 0 2em rgb(216,216,216);
}
.c12:before {
display: none;
}
@media only screen and (min-width:48em) {
.c0 {
width: 46rem;
}
}
@media only screen and (min-width:64em) {
.c0 {
width: 56rem;
}
}
@media only screen and (min-width:75em) {
.c0 {
width: 59rem;
}
}
@media only screen and (max-width:47.9375rem) {
.c0 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}
}
@media only screen and (min-width:0em) {
.c3 {
-webkit-flex-basis: 100%;
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
max-width: 100%;
}
}
@media only screen and (min-width:48em) {
.c3 {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-preferred-size: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
}
}
<div
className="c0"
>
<div
className="c1"
>
<div
className="c2"
>
<div
className="c3"
>
<div
className="c4"
>
<p
className="c5"
>
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>
<div
className="c6"
>
<div
className="baseline-jVaZNU kXgQxt c7"
name="cns-enabled"
role="group"
style={undefined}
>
<div
className="c8"
>
<label
className="c9"
disabled={false}
htmlFor="w"
>
Disabled CNS
</label>
<div
className="c10"
>
<input
checked={false}
className="c11"
disabled={false}
id="w"
onBlur={undefined}
onChange={[Function]}
type="checkbox"
/>
<label
checked={false}
className="c12"
disabled={false}
htmlFor="w"
id="w"
onBlur={undefined}
onChange={[Function]}
/>
<label
checked={false}
className="c9"
disabled={false}
htmlFor="w"
id="w"
onBlur={undefined}
onChange={[Function]}
>
Enabled CNS
</label>
</div>
</div>
</div>
</div>
</div>
`;