mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,2 +1,2 @@
|
||||
export * from "./preferences.route"
|
||||
export * from "./preferences"
|
||||
export * from "./preferences.route";
|
||||
export * from "./preferences";
|
||||
@@ -16,12 +16,12 @@ export const KubectlBinaries = observer(({ preferences }: { preferences: UserPre
|
||||
const downloadMirrorOptions: SelectOption<string>[] = [
|
||||
{ value: "default", label: "Default (Google)" },
|
||||
{ value: "china", label: "China (Azure)" },
|
||||
]
|
||||
];
|
||||
|
||||
const save = () => {
|
||||
preferences.downloadBinariesPath = downloadPath;
|
||||
preferences.kubectlBinariesPath = binariesPath;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -3,6 +3,6 @@ import { buildURL } from "../../../common/utils/buildUrl";
|
||||
|
||||
export const preferencesRoute: RouteProps = {
|
||||
path: "/preferences"
|
||||
}
|
||||
};
|
||||
|
||||
export const preferencesURL = buildURL(preferencesRoute.path)
|
||||
export const preferencesURL = buildURL(preferencesRoute.path);
|
||||
@@ -1,4 +1,4 @@
|
||||
import "./preferences.scss"
|
||||
import "./preferences.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
@@ -30,14 +30,14 @@ export class Preferences extends React.Component {
|
||||
return themeStore.themes.map(theme => ({
|
||||
label: theme.name,
|
||||
value: theme.id,
|
||||
}))
|
||||
}));
|
||||
}
|
||||
|
||||
@computed get helmOptions(): SelectOption<HelmRepo>[] {
|
||||
return this.helmRepos.map(repo => ({
|
||||
label: repo.name,
|
||||
value: repo,
|
||||
}))
|
||||
}));
|
||||
}
|
||||
|
||||
async componentDidMount() {
|
||||
@@ -65,7 +65,7 @@ export class Preferences extends React.Component {
|
||||
await repoManager.addRepo(repo);
|
||||
this.helmAddedRepos.set(repo.name, repo);
|
||||
} catch (err) {
|
||||
Notifications.error(<Trans>Adding helm branch <b>{repo.name}</b> has failed: {String(err)}</Trans>)
|
||||
Notifications.error(<Trans>Adding helm branch <b>{repo.name}</b> has failed: {String(err)}</Trans>);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,14 +76,14 @@ export class Preferences extends React.Component {
|
||||
} catch (err) {
|
||||
Notifications.error(
|
||||
<Trans>Removing helm branch <b>{repo.name}</b> has failed: {String(err)}</Trans>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
onRepoSelect = async ({ value: repo }: SelectOption<HelmRepo>) => {
|
||||
const isAdded = this.helmAddedRepos.has(repo.name);
|
||||
if (isAdded) {
|
||||
Notifications.ok(<Trans>Helm branch <b>{repo.name}</b> already in use</Trans>)
|
||||
Notifications.ok(<Trans>Helm branch <b>{repo.name}</b> already in use</Trans>);
|
||||
return;
|
||||
}
|
||||
this.helmLoading = true;
|
||||
@@ -98,7 +98,7 @@ export class Preferences extends React.Component {
|
||||
<span>{repo.name}</span>
|
||||
{isAdded && <Icon small material="check" className="box right"/>}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -152,7 +152,7 @@ export class Preferences extends React.Component {
|
||||
{repo.url}
|
||||
</Tooltip>
|
||||
</Badge>
|
||||
)
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -185,7 +185,7 @@ export class Preferences extends React.Component {
|
||||
<Hint/>
|
||||
</small>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</PageLayout>
|
||||
|
||||
Reference in new issue
Block a user