Enforce semicolons in eslint

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti committed 2020-11-19 16:35:04 +02:00
1 parent 0f3f5611ba
commit 1477bb8274
531 files changed
+3979 -3975

No files matched your search

@@ -7,6 +7,6 @@ export interface IClusterSettingsRouteParams extends IClusterViewRouteParams {
export const clusterSettingsRoute: RouteProps = {
path: `/cluster/:clusterId/settings`,
}
};
export const clusterSettingsURL = buildURL<IClusterSettingsRouteParams>(clusterSettingsRoute.path)
export const clusterSettingsURL = buildURL<IClusterSettingsRouteParams>(clusterSettingsRoute.path);
@@ -14,7 +14,7 @@ import { IClusterSettingsRouteParams } from "./cluster-settings.route";
import { clusterStore } from "../../../common/cluster-store";
import { PageLayout } from "../layout/page-layout";
import { requestMain } from "../../../common/ipc";
import { clusterActivateHandler, clusterRefreshHandler } from "../../../common/cluster-ipc"
import { clusterActivateHandler, clusterRefreshHandler } from "../../../common/cluster-ipc";
interface Props extends RouteComponentProps<IClusterSettingsRouteParams> {
}
@@ -22,7 +22,7 @@ interface Props extends RouteComponentProps<IClusterSettingsRouteParams> {
@observer
export class ClusterSettings extends React.Component<Props> {
get clusterId() {
return this.props.match.params.clusterId
return this.props.match.params.clusterId;
}
get cluster(): Cluster {
@@ -37,18 +37,18 @@ export class ClusterSettings extends React.Component<Props> {
reaction(() => this.clusterId, clusterId => clusterStore.setActive(clusterId), {
fireImmediately: true,
})
])
]);
}
refreshCluster = async () => {
if (this.cluster) {
await requestMain(clusterActivateHandler, this.cluster.id)
await requestMain(clusterRefreshHandler, this.cluster.id)
await requestMain(clusterActivateHandler, this.cluster.id);
await requestMain(clusterRefreshHandler, this.cluster.id);
}
}
render() {
const cluster = this.cluster
const cluster = this.cluster;
if (!cluster) return null;
const header = (
<>
@@ -35,14 +35,14 @@ export class ClusterIconSetting extends React.Component<Props> {
cluster.preferences.icon = undefined;
}
} catch (e) {
this.errorText = e.toString()
this.status = GeneralInputStatus.ERROR
this.errorText = e.toString();
this.status = GeneralInputStatus.ERROR;
}
}
getClearButton() {
if (this.props.cluster.preferences.icon) {
return <Button tooltip="Revert back to default icon" accent onClick={() => this.onIconPick([])}>Clear</Button>
return <Button tooltip="Revert back to default icon" accent onClick={() => this.onIconPick([])}>Clear</Button>;
}
}
@@ -59,7 +59,7 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
service: parsed[1],
port: parseInt(parsed[2]),
prefix: apiPrefix
}
};
}
onSaveProvider = () => {
@@ -19,21 +19,21 @@ export class InstallFeature extends React.Component<Props> {
@observable message = "";
componentDidMount() {
const feature = this.props.feature
const cluster = this.props.cluster
const feature = this.props.feature;
const cluster = this.props.cluster;
const statusUpdate = interval(20, () => {
feature.updateStatus(cluster)
})
statusUpdate.start(true)
feature.updateStatus(cluster);
});
statusUpdate.start(true);
disposeOnUnmount(this, () => {
statusUpdate.stop()
})
statusUpdate.stop();
});
disposeOnUnmount(this,
reaction(() => feature.status.installed, () => {
this.loading = false;
this.message = ""
this.message = "";
}, { equals: comparer.structural })
);
}
@@ -60,8 +60,8 @@ export class InstallFeature extends React.Component<Props> {
accent
disabled={disabled}
onClick={this.runAction(async () => {
this.message = "Uninstalling feature ..."
feature.uninstall(cluster)
this.message = "Uninstalling feature ...";
feature.uninstall(cluster);
})}
>
Uninstall
@@ -72,8 +72,8 @@ export class InstallFeature extends React.Component<Props> {
primary
disabled={disabled}
onClick={this.runAction(async () =>{
this.message = "Installing feature ..."
feature.install(cluster)
this.message = "Installing feature ...";
feature.install(cluster);
})}
>
Install
@@ -23,7 +23,7 @@ export class RemoveClusterButton extends React.Component<Props> {
ok: async () => {
await clusterStore.removeById(cluster.id);
}
})
});
}
render() {
@@ -22,7 +22,7 @@ export class Features extends React.Component<Props> {
<p><f.components.Description /></p>
</>
</InstallFeature>
)
);
})}
</div>
);
@@ -1,2 +1,2 @@
export * from "./cluster-settings.route"
export * from "./cluster-settings"
export * from "./cluster-settings.route";
export * from "./cluster-settings";
@@ -14,7 +14,7 @@ export class Status extends React.Component<Props> {
@autobind()
openKubeconfig() {
const { cluster } = this.props;
shell.showItemInFolder(cluster.kubeConfigPath)
shell.showItemInFolder(cluster.kubeConfigPath);
}
renderStatusRows() {