mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add Cluster page visual fixes
Signed-off-by: alexfront <alex.andreev.email@gmail.com> Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
c4ae76527a
commit
bc339e44b6
@ -1,2 +1,11 @@
|
|||||||
.AddCluster {
|
.AddCluster {
|
||||||
|
.Select {
|
||||||
|
&__control {
|
||||||
|
box-shadow: 0 0 0 1px $borderFaintColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: $pink-400;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -166,6 +166,7 @@ export class AddCluster extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<WizardLayout className="AddCluster" infoPanel={this.renderInfo()}>
|
<WizardLayout className="AddCluster" infoPanel={this.renderInfo()}>
|
||||||
<h2><Trans>Add Cluster</Trans></h2>
|
<h2><Trans>Add Cluster</Trans></h2>
|
||||||
|
<p>Choose config:</p>
|
||||||
<Select
|
<Select
|
||||||
placeholder={<Trans>Select kubeconfig</Trans>}
|
placeholder={<Trans>Select kubeconfig</Trans>}
|
||||||
value={this.clusterConfig}
|
value={this.clusterConfig}
|
||||||
@ -180,14 +181,15 @@ export class AddCluster extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
{this.showSettings && (
|
{this.showSettings && (
|
||||||
<div className="proxy-settings">
|
<div className="proxy-settings">
|
||||||
|
<p>HTTP Proxy server. Used for communicating with Kubernetes API.</p>
|
||||||
<Input
|
<Input
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder={_i18n._(t`A HTTP proxy server URL (format: http://<address>:<port>)`)}
|
|
||||||
value={this.proxyServer}
|
value={this.proxyServer}
|
||||||
onChange={value => this.proxyServer = value}
|
onChange={value => this.proxyServer = value}
|
||||||
|
theme="round-black"
|
||||||
/>
|
/>
|
||||||
<small className="hint">
|
<small className="hint">
|
||||||
<Trans>HTTP Proxy server. Used for communicating with Kubernetes API.</Trans>
|
{'A HTTP proxy server URL (format: http://<address>:<port>).'}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@ -196,6 +198,7 @@ export class AddCluster extends React.Component {
|
|||||||
<p>Kubeconfig:</p>
|
<p>Kubeconfig:</p>
|
||||||
<AceEditor
|
<AceEditor
|
||||||
autoFocus
|
autoFocus
|
||||||
|
showGutter={false}
|
||||||
mode="yaml"
|
mode="yaml"
|
||||||
value={this.customConfig}
|
value={this.customConfig}
|
||||||
onChange={value => this.customConfig = value}
|
onChange={value => this.customConfig = value}
|
||||||
@ -208,7 +211,7 @@ export class AddCluster extends React.Component {
|
|||||||
<div className="actions-panel">
|
<div className="actions-panel">
|
||||||
<Button
|
<Button
|
||||||
primary
|
primary
|
||||||
label={<Trans>Add cluster</Trans>}
|
label={<Trans>Add cluster(s)</Trans>}
|
||||||
onClick={this.addCluster}
|
onClick={this.addCluster}
|
||||||
waiting={this.isWaiting}
|
waiting={this.isWaiting}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user