1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix removal of langci from repo (#2204)

- Move all strings of the form {`...`} to use just ""

- Fix RoleBindingDetails not rendering the name of the role binding

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-02-23 08:13:46 -05:00 committed by GitHub
parent 83d7e4550c
commit 5258aab0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 78 additions and 78 deletions

View File

@ -82,9 +82,9 @@ export class HelmChartDetails extends Component<Props> {
<div className="intro-contents box grow"> <div className="intro-contents box grow">
<div className="description flex align-center justify-space-between"> <div className="description flex align-center justify-space-between">
{selectedChart.getDescription()} {selectedChart.getDescription()}
<Button primary label={`Install`} onClick={this.install} /> <Button primary label="Install" onClick={this.install} />
</div> </div>
<DrawerItem name={`Version`} className="version" onClick={stopPropagation}> <DrawerItem name="Version" className="version" onClick={stopPropagation}>
<Select <Select
themeName="outlined" themeName="outlined"
menuPortalTarget={null} menuPortalTarget={null}
@ -93,16 +93,16 @@ export class HelmChartDetails extends Component<Props> {
onChange={onVersionChange} onChange={onVersionChange}
/> />
</DrawerItem> </DrawerItem>
<DrawerItem name={`Home`}> <DrawerItem name="Home">
<a href={selectedChart.getHome()} target="_blank" rel="noreferrer">{selectedChart.getHome()}</a> <a href={selectedChart.getHome()} target="_blank" rel="noreferrer">{selectedChart.getHome()}</a>
</DrawerItem> </DrawerItem>
<DrawerItem name={`Maintainers`} className="maintainers"> <DrawerItem name="Maintainers" className="maintainers">
{selectedChart.getMaintainers().map(({ name, email, url }) => {selectedChart.getMaintainers().map(({ name, email, url }) =>
<a key={name} href={url || `mailto:${email}`} target="_blank" rel="noreferrer">{name}</a> <a key={name} href={url || `mailto:${email}`} target="_blank" rel="noreferrer">{name}</a>
)} )}
</DrawerItem> </DrawerItem>
{selectedChart.getKeywords().length > 0 && ( {selectedChart.getKeywords().length > 0 && (
<DrawerItem name={`Keywords`} labelsOnly> <DrawerItem name="Keywords" labelsOnly>
{selectedChart.getKeywords().map(key => <Badge key={key} label={key} />)} {selectedChart.getKeywords().map(key => <Badge key={key} label={key} />)}
</DrawerItem> </DrawerItem>
)} )}

View File

@ -76,7 +76,7 @@ export class HelmCharts extends Component<Props> {
(items: HelmChart[]) => items.filter(item => !item.deprecated) (items: HelmChart[]) => items.filter(item => !item.deprecated)
]} ]}
customizeHeader={() => ( customizeHeader={() => (
<SearchInputUrl placeholder={`Search Helm Charts`} /> <SearchInputUrl placeholder="Search Helm Charts" />
)} )}
renderTableHeader={[ renderTableHeader={[
{ className: "icon", showWithColumn: columnId.name }, { className: "icon", showWithColumn: columnId.name },

View File

@ -111,7 +111,7 @@ export class ReleaseDetails extends Component<Props> {
return ( return (
<div className="values"> <div className="values">
<DrawerTitle title={`Values`}/> <DrawerTitle title="Values"/>
<div className="flex column gaps"> <div className="flex column gaps">
<AceEditor <AceEditor
mode="yaml" mode="yaml"
@ -120,7 +120,7 @@ export class ReleaseDetails extends Component<Props> {
/> />
<Button <Button
primary primary
label={`Save`} label="Save"
waiting={saving} waiting={saving}
onClick={this.updateValues} onClick={this.updateValues}
/> />
@ -200,7 +200,7 @@ export class ReleaseDetails extends Component<Props> {
<span>{release.getChart()}</span> <span>{release.getChart()}</span>
<Button <Button
primary primary
label={`Upgrade`} label="Upgrade"
className="box right upgrade" className="box right upgrade"
onClick={this.upgradeVersion} onClick={this.upgradeVersion}
/> />
@ -226,9 +226,9 @@ export class ReleaseDetails extends Component<Props> {
/> />
</DrawerItem> </DrawerItem>
{this.renderValues()} {this.renderValues()}
<DrawerTitle title={`Notes`}/> <DrawerTitle title="Notes"/>
{this.renderNotes()} {this.renderNotes()}
<DrawerTitle title={`Resources`}/> <DrawerTitle title="Resources"/>
{this.renderResources()} {this.renderResources()}
</div> </div>
); );

View File

@ -42,7 +42,7 @@ export class HelmReleaseMenu extends React.Component<Props> {
<> <>
{hasRollback && ( {hasRollback && (
<MenuItem onClick={this.rollback}> <MenuItem onClick={this.rollback}>
<Icon material="history" interactive={toolbar} title={`Rollback`}/> <Icon material="history" interactive={toolbar} title="Rollback"/>
<span className="title">Rollback</span> <span className="title">Rollback</span>
</MenuItem> </MenuItem>
)} )}

View File

@ -143,7 +143,7 @@ export const ClusterPieCharts = observer(() => {
<div className="chart flex column align-center box grow"> <div className="chart flex column align-center box grow">
<PieChart <PieChart
data={cpuData} data={cpuData}
title={`CPU`} title="CPU"
legendColors={["#c93dce", "#4caf50", "#3d90ce", defaultColor]} legendColors={["#c93dce", "#4caf50", "#3d90ce", defaultColor]}
/> />
{cpuLimitsOverload && renderLimitWarning()} {cpuLimitsOverload && renderLimitWarning()}
@ -151,7 +151,7 @@ export const ClusterPieCharts = observer(() => {
<div className="chart flex column align-center box grow"> <div className="chart flex column align-center box grow">
<PieChart <PieChart
data={memoryData} data={memoryData}
title={`Memory`} title="Memory"
legendColors={["#c93dce", "#4caf50", "#3d90ce", defaultColor]} legendColors={["#c93dce", "#4caf50", "#3d90ce", defaultColor]}
/> />
{memoryLimitsOverload && renderLimitWarning()} {memoryLimitsOverload && renderLimitWarning()}
@ -159,7 +159,7 @@ export const ClusterPieCharts = observer(() => {
<div className="chart flex column align-center box grow"> <div className="chart flex column align-center box grow">
<PieChart <PieChart
data={podsData} data={podsData}
title={`Pods`} title="Pods"
legendColors={["#4caf50", defaultColor]} legendColors={["#4caf50", defaultColor]}
/> />
</div> </div>

View File

@ -63,21 +63,21 @@ export class LimitRangeDetails extends React.Component<Props> {
<KubeObjectMeta object={limitRange}/> <KubeObjectMeta object={limitRange}/>
{containerLimits.length > 0 && {containerLimits.length > 0 &&
<DrawerItem name={`Container Limits`} labelsOnly> <DrawerItem name="Container Limits" labelsOnly>
{ {
renderLimitDetails(containerLimits, [Resource.CPU, Resource.MEMORY, Resource.EPHEMERAL_STORAGE]) renderLimitDetails(containerLimits, [Resource.CPU, Resource.MEMORY, Resource.EPHEMERAL_STORAGE])
} }
</DrawerItem> </DrawerItem>
} }
{podLimits.length > 0 && {podLimits.length > 0 &&
<DrawerItem name={`Pod Limits`} labelsOnly> <DrawerItem name="Pod Limits" labelsOnly>
{ {
renderLimitDetails(podLimits, [Resource.CPU, Resource.MEMORY, Resource.EPHEMERAL_STORAGE]) renderLimitDetails(podLimits, [Resource.CPU, Resource.MEMORY, Resource.EPHEMERAL_STORAGE])
} }
</DrawerItem> </DrawerItem>
} }
{pvcLimits.length > 0 && {pvcLimits.length > 0 &&
<DrawerItem name={`Persistent Volume Claim Limits`} labelsOnly> <DrawerItem name="Persistent Volume Claim Limits" labelsOnly>
{ {
renderLimitDetails(pvcLimits, [Resource.STORAGE]) renderLimitDetails(pvcLimits, [Resource.STORAGE])
} }

View File

@ -146,7 +146,7 @@ export class AddQuotaDialog extends React.Component<Props> {
<div className="flex gaps"> <div className="flex gaps">
<Input <Input
required autoFocus required autoFocus
placeholder={`ResourceQuota name`} placeholder="ResourceQuota name"
validators={systemName} validators={systemName}
value={this.quotaName} onChange={v => this.quotaName = v.toLowerCase()} value={this.quotaName} onChange={v => this.quotaName = v.toLowerCase()}
className="box grow" className="box grow"
@ -156,7 +156,7 @@ export class AddQuotaDialog extends React.Component<Props> {
<SubTitle title="Namespace" /> <SubTitle title="Namespace" />
<NamespaceSelect <NamespaceSelect
value={this.namespace} value={this.namespace}
placeholder={`Namespace`} placeholder="Namespace"
themeName="light" themeName="light"
className="box grow" className="box grow"
onChange={({ value }) => this.namespace = value} onChange={({ value }) => this.namespace = value}
@ -167,14 +167,14 @@ export class AddQuotaDialog extends React.Component<Props> {
<Select <Select
className="quota-select" className="quota-select"
themeName="light" themeName="light"
placeholder={`Select a quota..`} placeholder="Select a quota.."
options={this.quotaOptions} options={this.quotaOptions}
value={this.quotaSelectValue} value={this.quotaSelectValue}
onChange={({ value }) => this.quotaSelectValue = value} onChange={({ value }) => this.quotaSelectValue = value}
/> />
<Input <Input
maxLength={10} maxLength={10}
placeholder={`Value`} placeholder="Value"
value={this.quotaInputValue} value={this.quotaInputValue}
onChange={v => this.quotaInputValue = v} onChange={v => this.quotaInputValue = v}
onKeyDown={this.onInputQuota} onKeyDown={this.onInputQuota}
@ -183,7 +183,7 @@ export class AddQuotaDialog extends React.Component<Props> {
<Button round primary onClick={this.setQuota}> <Button round primary onClick={this.setQuota}>
<Icon <Icon
material={this.quotas[this.quotaSelectValue] ? "edit" : "add"} material={this.quotas[this.quotaSelectValue] ? "edit" : "add"}
tooltip={`Set quota`} tooltip="Set quota"
/> />
</Button> </Button>
</div> </div>

View File

@ -133,7 +133,7 @@ export class AddSecretDialog extends React.Component<Props> {
<SubTitle compact className="fields-title" title={upperFirst(field.toString())}> <SubTitle compact className="fields-title" title={upperFirst(field.toString())}>
<Icon <Icon
small small
tooltip={`Add field`} tooltip="Add field"
material="add_circle_outline" material="add_circle_outline"
onClick={() => this.addField(field)} onClick={() => this.addField(field)}
/> />
@ -146,7 +146,7 @@ export class AddSecretDialog extends React.Component<Props> {
<div key={index} className="secret-field flex gaps auto align-center"> <div key={index} className="secret-field flex gaps auto align-center">
<Input <Input
className="key" className="key"
placeholder={`Name`} placeholder="Name"
title={key} title={key}
tabIndex={required ? -1 : 0} tabIndex={required ? -1 : 0}
readOnly={required} readOnly={required}
@ -156,7 +156,7 @@ export class AddSecretDialog extends React.Component<Props> {
multiLine maxRows={5} multiLine maxRows={5}
required={required} required={required}
className="value" className="value"
placeholder={`Value`} placeholder="Value"
value={value} onChange={v => item.value = v} value={value} onChange={v => item.value = v}
/> />
<Icon <Icon
@ -194,7 +194,7 @@ export class AddSecretDialog extends React.Component<Props> {
<SubTitle title="Secret name" /> <SubTitle title="Secret name" />
<Input <Input
autoFocus required autoFocus required
placeholder={`Name`} placeholder="Name"
validators={systemName} validators={systemName}
value={name} onChange={v => this.name = v} value={name} onChange={v => this.name = v}
/> />

View File

@ -69,7 +69,7 @@ export class SecretDetails extends React.Component<Props> {
</DrawerItem> </DrawerItem>
{!isEmpty(this.data) && ( {!isEmpty(this.data) && (
<> <>
<DrawerTitle title={`Data`}/> <DrawerTitle title="Data"/>
{ {
Object.entries(this.data).map(([name, value]) => { Object.entries(this.data).map(([name, value]) => {
const revealSecret = this.revealSecret[name]; const revealSecret = this.revealSecret[name];
@ -107,7 +107,7 @@ export class SecretDetails extends React.Component<Props> {
} }
<Button <Button
primary primary
label={`Save`} waiting={this.isSaving} label="Save" waiting={this.isSaving}
className="save-btn" className="save-btn"
onClick={this.saveSecret} onClick={this.saveSecret}
/> />

View File

@ -72,7 +72,7 @@ export class AddNamespaceDialog extends React.Component<Props> {
<Input <Input
required autoFocus required autoFocus
iconLeft="layers" iconLeft="layers"
placeholder={`Namespace`} placeholder="Namespace"
validators={systemName} validators={systemName}
value={namespace} onChange={v => this.namespace = v.toLowerCase()} value={namespace} onChange={v => this.namespace = v.toLowerCase()}
/> />

View File

@ -60,7 +60,7 @@ export class NamespaceDetails extends React.Component<Props> {
); );
})} })}
</DrawerItem> </DrawerItem>
<DrawerItem name={`Limit Ranges`}> <DrawerItem name="Limit Ranges">
{!this.limitranges && limitRangeStore.isLoading && <Spinner/>} {!this.limitranges && limitRangeStore.isLoading && <Spinner/>}
{this.limitranges.map(limitrange => { {this.limitranges.map(limitrange => {
return ( return (

View File

@ -117,7 +117,7 @@ export class NetworkPolicyDetails extends React.Component<Props> {
{ingress && ( {ingress && (
<> <>
<DrawerTitle title={`Ingress`}/> <DrawerTitle title="Ingress"/>
{ingress.map((ingress, i) => { {ingress.map((ingress, i) => {
const { ports } = ingress; const { ports } = ingress;

View File

@ -50,7 +50,7 @@ export class ServiceDetails extends React.Component<Props> {
{spec.sessionAffinity} {spec.sessionAffinity}
</DrawerItem> </DrawerItem>
<DrawerTitle title={`Connection`}/> <DrawerTitle title="Connection"/>
<DrawerItem name="Cluster IP"> <DrawerItem name="Cluster IP">
{spec.clusterIP} {spec.clusterIP}
@ -77,7 +77,7 @@ export class ServiceDetails extends React.Component<Props> {
{spec.loadBalancerIP} {spec.loadBalancerIP}
</DrawerItem> </DrawerItem>
)} )}
<DrawerTitle title={`Endpoint`}/> <DrawerTitle title="Endpoint"/>
<ServiceDetailsEndpoint endpoint={endpoint}/> <ServiceDetailsEndpoint endpoint={endpoint}/>
</div> </div>

View File

@ -37,7 +37,7 @@ export class ServicePortComponent extends React.Component<Props> {
return ( return (
<div className={cssNames("ServicePortComponent", { waiting: this.waiting })}> <div className={cssNames("ServicePortComponent", { waiting: this.waiting })}>
<span title={`Open in a browser`} onClick={() => this.portForward() }> <span title="Open in a browser" onClick={() => this.portForward() }>
{port.toString()} {port.toString()}
{this.waiting && ( {this.waiting && (
<Spinner /> <Spinner />

View File

@ -111,7 +111,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
<> <>
<SubTitle title="Security settings" /> <SubTitle title="Security settings" />
<Checkbox <Checkbox
label={`Skip TLS certificate checks for the repository`} label="Skip TLS certificate checks for the repository"
value={this.helmRepo.insecureSkipTlsVerify} value={this.helmRepo.insecureSkipTlsVerify}
onChange={v => this.helmRepo.insecureSkipTlsVerify = v} onChange={v => this.helmRepo.insecureSkipTlsVerify = v}
/> />
@ -120,12 +120,12 @@ export class AddHelmRepoDialog extends React.Component<Props> {
{this.renderFileInput(`Cerificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)} {this.renderFileInput(`Cerificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)}
<SubTitle title="Chart Repository Credentials" /> <SubTitle title="Chart Repository Credentials" />
<Input <Input
placeholder={`Username`} placeholder="Username"
value={this.helmRepo.username} onChange= {v => this.helmRepo.username = v} value={this.helmRepo.username} onChange= {v => this.helmRepo.username = v}
/> />
<Input <Input
type="password" type="password"
placeholder={`Password`} placeholder="Password"
value={this.helmRepo.password} onChange={v => this.helmRepo.password = v} value={this.helmRepo.password} onChange={v => this.helmRepo.password = v}
/> />
</>); </>);
@ -148,13 +148,13 @@ export class AddHelmRepoDialog extends React.Component<Props> {
<div className="flex column gaps"> <div className="flex column gaps">
<Input <Input
autoFocus required autoFocus required
placeholder={`Helm repo name`} placeholder="Helm repo name"
validators={systemName} validators={systemName}
value={this.helmRepo.name} onChange={v => this.helmRepo.name = v} value={this.helmRepo.name} onChange={v => this.helmRepo.name = v}
/> />
<Input <Input
required required
placeholder={`URL`} placeholder="URL"
validators={isUrl} validators={isUrl}
value={this.helmRepo.url} onChange={v => this.helmRepo.url = v} value={this.helmRepo.url} onChange={v => this.helmRepo.url = v}
/> />
@ -162,7 +162,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
More More
<Icon <Icon
small small
tooltip={`More`} tooltip="More"
material={this.showOptions ? "remove" : "add"} material={this.showOptions ? "remove" : "add"}
/> />
</Button> </Button>

View File

@ -122,7 +122,7 @@ export class Preferences extends React.Component {
<h2>HTTP Proxy</h2> <h2>HTTP Proxy</h2>
<Input <Input
theme="round-black" theme="round-black"
placeholder={`Type HTTP proxy url (example: http://proxy.acme.org:8080)`} placeholder="Type HTTP proxy url (example: http://proxy.acme.org:8080)"
value={this.httpProxy} value={this.httpProxy}
onChange={v => this.httpProxy = v} onChange={v => this.httpProxy = v}
onBlur={() => preferences.httpsProxy = this.httpProxy} onBlur={() => preferences.httpsProxy = this.httpProxy}

View File

@ -45,7 +45,7 @@ export class StorageClassDetails extends React.Component<Props> {
)} )}
{parameters && ( {parameters && (
<> <>
<DrawerTitle title={`Parameters`}/> <DrawerTitle title="Parameters"/>
{ {
Object.entries(parameters).map(([name, value]) => ( Object.entries(parameters).map(([name, value]) => (
<DrawerItem key={name + value} name={startCase(name)}> <DrawerItem key={name + value} name={startCase(name)}>

View File

@ -71,7 +71,7 @@ export class PersistentVolumeClaimDetails extends React.Component<Props> {
{volumeClaim.getStatus()} {volumeClaim.getStatus()}
</DrawerItem> </DrawerItem>
<DrawerTitle title={`Selector`}/> <DrawerTitle title="Selector"/>
<DrawerItem name="Match Labels" labelsOnly> <DrawerItem name="Match Labels" labelsOnly>
{volumeClaim.getMatchLabels().map(label => <Badge key={label} label={label}/>)} {volumeClaim.getMatchLabels().map(label => <Badge key={label} label={label}/>)}

View File

@ -205,7 +205,7 @@ export class AddRoleBindingDialog extends React.Component<Props> {
<Select <Select
key={this.selectedRoleId} key={this.selectedRoleId}
themeName="light" themeName="light"
placeholder={`Select role..`} placeholder="Select role.."
isDisabled={this.isEditing} isDisabled={this.isEditing}
options={this.roleOptions} options={this.roleOptions}
value={this.selectedRoleId} value={this.selectedRoleId}
@ -224,7 +224,7 @@ export class AddRoleBindingDialog extends React.Component<Props> {
!this.useRoleForBindingName && ( !this.useRoleForBindingName && (
<Input <Input
autoFocus autoFocus
placeholder={`Name`} placeholder="Name"
disabled={this.isEditing} disabled={this.isEditing}
value={this.bindingName} value={this.bindingName}
onChange={v => this.bindingName = v} onChange={v => this.bindingName = v}
@ -239,7 +239,7 @@ export class AddRoleBindingDialog extends React.Component<Props> {
<Select <Select
isMulti isMulti
themeName="light" themeName="light"
placeholder={`Select service accounts`} placeholder="Select service accounts"
autoConvertOptions={false} autoConvertOptions={false}
options={this.serviceAccountOptions} options={this.serviceAccountOptions}
onChange={(opts: BindingSelectOption[]) => { onChange={(opts: BindingSelectOption[]) => {

View File

@ -117,8 +117,8 @@ export class RoleBindingDetails extends React.Component<Props> {
<AddRemoveButtons <AddRemoveButtons
onAdd={() => AddRoleBindingDialog.open(roleBinding)} onAdd={() => AddRoleBindingDialog.open(roleBinding)}
onRemove={selectedSubjects.length ? this.removeSelectedSubjects : null} onRemove={selectedSubjects.length ? this.removeSelectedSubjects : null}
addTooltip="Add bindings to {name}" addTooltip={`Add bindings to ${roleRef.name}`}
removeTooltip="Remove selected bindings from ${name}" removeTooltip={`Remove selected bindings from ${roleRef.name}`}
/> />
</div> </div>
); );

View File

@ -71,7 +71,7 @@ export class AddRoleDialog extends React.Component<Props> {
<SubTitle title="Role Name" /> <SubTitle title="Role Name" />
<Input <Input
required autoFocus required autoFocus
placeholder={`Name`} placeholder="Name"
iconLeft="supervisor_account" iconLeft="supervisor_account"
value={this.roleName} value={this.roleName}
onChange={v => this.roleName = v} onChange={v => this.roleName = v}

View File

@ -66,7 +66,7 @@ export class CreateServiceAccountDialog extends React.Component<Props> {
<SubTitle title="Account Name" /> <SubTitle title="Account Name" />
<Input <Input
autoFocus required autoFocus required
placeholder={`Enter a name`} placeholder="Enter a name"
validators={systemName} validators={systemName}
value={name} onChange={v => this.name = v.toLowerCase()} value={name} onChange={v => this.name = v.toLowerCase()}
/> />

View File

@ -87,7 +87,7 @@ export function CronJobMenu(props: KubeObjectMenuProps<CronJob>) {
return ( return (
<> <>
<MenuItem onClick={() => CronJobTriggerDialog.open(object)}> <MenuItem onClick={() => CronJobTriggerDialog.open(object)}>
<Icon material="play_circle_filled" title={`Trigger`} interactive={toolbar}/> <Icon material="play_circle_filled" title="Trigger" interactive={toolbar}/>
<span className="title">Trigger</span> <span className="title">Trigger</span>
</MenuItem> </MenuItem>
@ -106,7 +106,7 @@ export function CronJobMenu(props: KubeObjectMenuProps<CronJob>) {
Resume CronJob <b>{object.getName()}</b>? Resume CronJob <b>{object.getName()}</b>?
</p>), </p>),
})}> })}>
<Icon material="play_circle_outline" title={`Resume`} interactive={toolbar}/> <Icon material="play_circle_outline" title="Resume" interactive={toolbar}/>
<span className="title">Resume</span> <span className="title">Resume</span>
</MenuItem> </MenuItem>
@ -124,7 +124,7 @@ export function CronJobMenu(props: KubeObjectMenuProps<CronJob>) {
Suspend CronJob <b>{object.getName()}</b>? Suspend CronJob <b>{object.getName()}</b>?
</p>), </p>),
})}> })}>
<Icon material="pause_circle_filled" title={`Suspend`} interactive={toolbar}/> <Icon material="pause_circle_filled" title="Suspend" interactive={toolbar}/>
<span className="title">Suspend</span> <span className="title">Suspend</span>
</MenuItem> </MenuItem>
} }

View File

@ -104,7 +104,7 @@ export function DeploymentMenu(props: KubeObjectMenuProps<Deployment>) {
return ( return (
<> <>
<MenuItem onClick={() => DeploymentScaleDialog.open(object)}> <MenuItem onClick={() => DeploymentScaleDialog.open(object)}>
<Icon material="open_with" title={`Scale`} interactive={toolbar}/> <Icon material="open_with" title="Scale" interactive={toolbar}/>
<span className="title">Scale</span> <span className="title">Scale</span>
</MenuItem> </MenuItem>
<MenuItem onClick={() => ConfirmDialog.open({ <MenuItem onClick={() => ConfirmDialog.open({
@ -126,7 +126,7 @@ export function DeploymentMenu(props: KubeObjectMenuProps<Deployment>) {
</p> </p>
), ),
})}> })}>
<Icon material="autorenew" title={`Restart`} interactive={toolbar}/> <Icon material="autorenew" title="Restart" interactive={toolbar}/>
<span className="title">Restart</span> <span className="title">Restart</span>
</MenuItem> </MenuItem>
</> </>

View File

@ -43,7 +43,7 @@ export class PodContainerPort extends React.Component<Props> {
return ( return (
<div className={cssNames("PodContainerPort", { waiting: this.waiting })}> <div className={cssNames("PodContainerPort", { waiting: this.waiting })}>
<span title={`Open in a browser`} onClick={() => this.portForward() }> <span title="Open in a browser" onClick={() => this.portForward() }>
{text} {text}
{this.waiting && ( {this.waiting && (
<Spinner /> <Spinner />

View File

@ -78,7 +78,7 @@ export function ReplicaSetMenu(props: KubeObjectMenuProps<ReplicaSet>) {
return ( return (
<> <>
<MenuItem onClick={() => ReplicaSetScaleDialog.open(object)}> <MenuItem onClick={() => ReplicaSetScaleDialog.open(object)}>
<Icon material="open_with" title={`Scale`} interactive={toolbar}/> <Icon material="open_with" title="Scale" interactive={toolbar}/>
<span className="title">Scale</span> <span className="title">Scale</span>
</MenuItem> </MenuItem>
</> </>

View File

@ -83,7 +83,7 @@ export function StatefulSetMenu(props: KubeObjectMenuProps<StatefulSet>) {
return ( return (
<> <>
<MenuItem onClick={() => StatefulSetScaleDialog.open(object)}> <MenuItem onClick={() => StatefulSetScaleDialog.open(object)}>
<Icon material="open_with" title={`Scale`} interactive={toolbar}/> <Icon material="open_with" title="Scale" interactive={toolbar}/>
<span className="title">Scale</span> <span className="title">Scale</span>
</MenuItem> </MenuItem>
</> </>

View File

@ -77,7 +77,7 @@ export class CreateResource extends React.Component<Props> {
tabId={tabId} tabId={tabId}
error={error} error={error}
submit={create} submit={create}
submitLabel={`Create`} submitLabel="Create"
showNotifications={false} showNotifications={false}
/> />
<EditorPanel <EditorPanel

View File

@ -68,7 +68,7 @@ export class DockTab extends React.Component<DockTabProps> {
{!pinned && ( {!pinned && (
<Icon <Icon
small material="close" small material="close"
title={`Close (Ctrl+W)`} title="Close (Ctrl+W)"
onClick={prevDefault(this.close)} onClick={prevDefault(this.close)}
/> />
)} )}

View File

@ -98,8 +98,8 @@ export class EditResource extends React.Component<Props> {
tabId={tabId} tabId={tabId}
error={error} error={error}
submit={save} submit={save}
submitLabel={`Save`} submitLabel="Save"
submittingMessage={`Applying..`} submittingMessage="Applying.."
controls={( controls={(
<div className="resource-info flex gaps align-center"> <div className="resource-info flex gaps align-center">
<span>Kind:</span> <Badge label={kind}/> <span>Kind:</span> <Badge label={kind}/>

View File

@ -125,17 +125,17 @@ export class InstallChart extends Component<Props> {
<div className="flex gaps align-center"> <div className="flex gaps align-center">
<Button <Button
autoFocus primary autoFocus primary
label={`View Helm Release`} label="View Helm Release"
onClick={prevDefault(this.viewRelease)} onClick={prevDefault(this.viewRelease)}
/> />
<Button <Button
plain active plain active
label={`Show Notes`} label="Show Notes"
onClick={() => this.showNotes = true} onClick={() => this.showNotes = true}
/> />
</div> </div>
<LogsDialog <LogsDialog
title={`Helm Chart Install`} title="Helm Chart Install"
isOpen={this.showNotes} isOpen={this.showNotes}
close={() => this.showNotes = false} close={() => this.showNotes = false}
logs={this.releaseDetails.log} logs={this.releaseDetails.log}
@ -148,7 +148,7 @@ export class InstallChart extends Component<Props> {
const panelControls = ( const panelControls = (
<div className="install-controls flex gaps align-center"> <div className="install-controls flex gaps align-center">
<span>Chart</span> <span>Chart</span>
<Badge label={`${repo}/${name}`} title={`Repo/Name`} /> <Badge label={`${repo}/${name}`} title="Repo/Name" />
<span>Version</span> <span>Version</span>
<Select <Select
className="chart-version" className="chart-version"
@ -167,8 +167,8 @@ export class InstallChart extends Component<Props> {
onChange={this.onNamespaceChange} onChange={this.onNamespaceChange}
/> />
<Input <Input
placeholder={`Name (optional)`} placeholder="Name (optional)"
title={`Release name`} title="Release name"
maxLength={50} maxLength={50}
value={releaseName} value={releaseName}
onChange={this.onReleaseNameChange} onChange={this.onReleaseNameChange}
@ -183,8 +183,8 @@ export class InstallChart extends Component<Props> {
controls={panelControls} controls={panelControls}
error={this.error} error={this.error}
submit={install} submit={install}
submitLabel={`Install`} submitLabel="Install"
submittingMessage={`Installing...`} submittingMessage="Installing..."
showSubmitClose={false} showSubmitClose={false}
/> />
<EditorPanel <EditorPanel

View File

@ -68,13 +68,13 @@ export const LogSearch = observer((props: Props) => {
/> />
<Icon <Icon
material="keyboard_arrow_up" material="keyboard_arrow_up"
tooltip={`Previous`} tooltip="Previous"
onClick={onPrevOverlay} onClick={onPrevOverlay}
disabled={jumpDisabled} disabled={jumpDisabled}
/> />
<Icon <Icon
material="keyboard_arrow_down" material="keyboard_arrow_down"
tooltip={`Next`} tooltip="Next"
onClick={onNextOverlay} onClick={onNextOverlay}
disabled={jumpDisabled} disabled={jumpDisabled}
/> />

View File

@ -123,8 +123,8 @@ export class UpgradeChart extends React.Component<Props> {
tabId={tabId} tabId={tabId}
error={error} error={error}
submit={upgrade} submit={upgrade}
submitLabel={`Upgrade`} submitLabel="Upgrade"
submittingMessage={`Updating..`} submittingMessage="Updating.."
controls={controlsAndInfo} controls={controlsAndInfo}
/> />
<EditorPanel <EditorPanel

View File

@ -61,7 +61,7 @@ export class ErrorBoundary extends React.Component<Props, State> {
</div> </div>
<Button <Button
className="box self-flex-start" className="box self-flex-start"
primary label={`Back`} primary label="Back"
onClick={this.back} onClick={this.back}
/> />
</div> </div>

View File

@ -106,13 +106,13 @@ export class MenuActions extends React.Component<MenuActionsProps> {
{children} {children}
{updateAction && ( {updateAction && (
<MenuItem onClick={updateAction}> <MenuItem onClick={updateAction}>
<Icon material="edit" interactive={toolbar} title={`Edit`}/> <Icon material="edit" interactive={toolbar} title="Edit"/>
<span className="title">Edit</span> <span className="title">Edit</span>
</MenuItem> </MenuItem>
)} )}
{removeAction && ( {removeAction && (
<MenuItem onClick={this.remove}> <MenuItem onClick={this.remove}>
<Icon material="delete" interactive={toolbar} title={`Delete`}/> <Icon material="delete" interactive={toolbar} title="Delete"/>
<span className="title">Remove</span> <span className="title">Remove</span>
</MenuItem> </MenuItem>
)} )}