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
@@ -1,14 +1,12 @@
|
||||
import "./logs-dialog.scss";
|
||||
|
||||
import React from "react";
|
||||
import { t, Trans } from "@lingui/macro";
|
||||
import { Dialog, DialogProps } from "../dialog";
|
||||
import { Wizard, WizardStep } from "../wizard";
|
||||
import { copyToClipboard } from "../../utils";
|
||||
import { Notifications } from "../notifications";
|
||||
import { Button } from "../button";
|
||||
import { Icon } from "../icon";
|
||||
import { _i18n } from "../../i18n";
|
||||
|
||||
// todo: make as external BrowserWindow (?)
|
||||
|
||||
@@ -22,7 +20,7 @@ export class LogsDialog extends React.Component<Props> {
|
||||
|
||||
copyToClipboard = () => {
|
||||
if (copyToClipboard(this.logsElem)) {
|
||||
Notifications.ok(_i18n._(t`Logs copied to clipboard.`));
|
||||
Notifications.ok(`Logs copied to clipboard.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -32,10 +30,10 @@ export class LogsDialog extends React.Component<Props> {
|
||||
const customButtons = (
|
||||
<div className="buttons flex gaps align-center justify-space-between">
|
||||
<Button plain onClick={this.copyToClipboard}>
|
||||
<Icon material="assignment"/> <Trans>Copy to clipboard</Trans>
|
||||
<Icon material="assignment"/> Copy to clipboard
|
||||
</Button>
|
||||
<Button plain onClick={dialogProps.close}>
|
||||
<Trans>Close</Trans>
|
||||
Close
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
@@ -45,7 +43,7 @@ export class LogsDialog extends React.Component<Props> {
|
||||
<Wizard header={header} done={dialogProps.close}>
|
||||
<WizardStep scrollable={false} customButtons={customButtons}>
|
||||
<code className="block" ref={e => this.logsElem = e}>
|
||||
{logs || <Trans>There are no logs available.</Trans>}
|
||||
{logs || "There are no logs available."}
|
||||
</code>
|
||||
</WizardStep>
|
||||
</Wizard>
|
||||
|
||||
Reference in new issue
Block a user