mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
feat: Add Lint & Format (#878)
Co-authored-by: a7m-1st <Ahmed.jimi.awelkeir500@gmail.com> Co-authored-by: eigent-ai <camel@eigent.ai> Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com> Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
This commit is contained in:
parent
f256272eed
commit
af93bb3065
348 changed files with 48370 additions and 36145 deletions
|
|
@ -12,17 +12,15 @@
|
|||
// limitations under the License.
|
||||
// ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog";
|
||||
import { error } from "electron-log";
|
||||
import { t } from "i18next";
|
||||
import React from "react";
|
||||
} from '@/components/ui/dialog';
|
||||
import { t } from 'i18next';
|
||||
|
||||
interface InstallationErrorDialogProps {
|
||||
error: string;
|
||||
|
|
@ -37,26 +35,24 @@ const InstallationErrorDialog = ({
|
|||
error,
|
||||
backendError,
|
||||
installationState,
|
||||
latestLog,
|
||||
latestLog: _latestLog,
|
||||
retryInstallation,
|
||||
retryBackend,
|
||||
}:InstallationErrorDialogProps) => {
|
||||
}: InstallationErrorDialogProps) => {
|
||||
if (backendError) {
|
||||
return (
|
||||
<Dialog open={true}>
|
||||
<DialogContent className="bg-white-100%">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{t("layout.backend-startup-failed")}</DialogTitle>
|
||||
<DialogTitle>{t('layout.backend-startup-failed')}</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="text-text-label text-xs font-normal leading-tight mb-4">
|
||||
<div className="mb-4 text-xs font-normal leading-tight text-text-label">
|
||||
<div className="mb-1">
|
||||
<span className="text-text-label/60">
|
||||
{backendError}
|
||||
</span>
|
||||
<span className="text-text-label/60">{backendError}</span>
|
||||
</div>
|
||||
</div>
|
||||
<DialogFooter>
|
||||
<Button onClick={retryBackend}>{t("layout.retry")}</Button>
|
||||
<Button onClick={retryBackend}>{t('layout.retry')}</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
@ -64,20 +60,18 @@ const InstallationErrorDialog = ({
|
|||
}
|
||||
|
||||
return (
|
||||
<Dialog open={installationState == "error"}>
|
||||
<Dialog open={installationState == 'error'}>
|
||||
<DialogContent className="bg-white-100%">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{t("layout.installation-failed")}</DialogTitle>
|
||||
<DialogTitle>{t('layout.installation-failed')}</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="text-text-label text-xs font-normal leading-tight mb-4">
|
||||
<div className="mb-4 text-xs font-normal leading-tight text-text-label">
|
||||
<div className="mb-1">
|
||||
<span className="text-text-label/60">
|
||||
{error}
|
||||
</span>
|
||||
<span className="text-text-label/60">{error}</span>
|
||||
</div>
|
||||
</div>
|
||||
<DialogFooter>
|
||||
<Button onClick={retryInstallation}>{t("layout.retry")}</Button>
|
||||
<Button onClick={retryInstallation}>{t('layout.retry')}</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue