mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove lingui (#1874)
* remove lingui Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * babelless Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak ts-loader options Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak renderer webpack config Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
050603a7b3
commit
a03da3c572
163 files changed
+1140
-12003
No files matched your search
@@ -4,7 +4,6 @@ import React from "react";
|
||||
import { observable } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
import jsYaml from "js-yaml";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { AceEditor } from "../ace-editor";
|
||||
import { ServiceAccount } from "../../api/endpoints";
|
||||
import { copyToClipboard, cssNames, saveFileDialog } from "../../utils";
|
||||
@@ -63,7 +62,7 @@ export class KubeConfigDialog extends React.Component<Props> {
|
||||
|
||||
copyToClipboard = () => {
|
||||
if (this.config && copyToClipboard(this.configTextArea)) {
|
||||
Notifications.ok(<Trans>Config copied to clipboard</Trans>);
|
||||
Notifications.ok("Config copied to clipboard");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -75,17 +74,17 @@ export class KubeConfigDialog extends React.Component<Props> {
|
||||
const { isOpen, data = {} } = KubeConfigDialog;
|
||||
const { ...dialogProps } = this.props;
|
||||
const yamlConfig = this.config;
|
||||
const header = <h5>{data.title || <Trans>Kubeconfig File</Trans>}</h5>;
|
||||
const header = <h5>{data.title || "Kubeconfig File"}</h5>;
|
||||
const buttons = (
|
||||
<div className="actions flex gaps">
|
||||
<Button plain onClick={this.copyToClipboard}>
|
||||
<Icon material="assignment"/> <Trans>Copy to clipboard</Trans>
|
||||
<Icon material="assignment"/> Copy to clipboard
|
||||
</Button>
|
||||
<Button plain onClick={this.download}>
|
||||
<Icon material="cloud_download"/> <Trans>Download file</Trans>
|
||||
<Icon material="cloud_download"/> Download file
|
||||
</Button>
|
||||
<Button plain className="box right" onClick={this.close}>
|
||||
<Trans>Close</Trans>
|
||||
Close
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
@@ -118,7 +117,7 @@ export function openServiceAccountKubeConfig(account: ServiceAccount) {
|
||||
const namespace = account.getNs();
|
||||
|
||||
KubeConfigDialog.open({
|
||||
title: <Trans>{accountName} kubeconfig</Trans>,
|
||||
title: "{accountName} kubeconfig",
|
||||
loader: () => apiBase.get(`/kubeconfig/service-account/${namespace}/${accountName}`)
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user