mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-26 05:21:29 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
@ -171,7 +171,6 @@ export const AccountMenu = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!autoLogin && (
|
||||
<div>
|
||||
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "Vorlagen",
|
||||
"templatesModal.tryDifferentQuery": "und versuchen Sie es mit einer anderen Abfrage.",
|
||||
"templatesModal.useCases": "Anwendungsfälle"
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "Plantillas",
|
||||
"templatesModal.tryDifferentQuery": "y prueba con otra consulta.",
|
||||
"templatesModal.useCases": "Casos de uso"
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "Modèles",
|
||||
"templatesModal.tryDifferentQuery": "et essayez une autre requête.",
|
||||
"templatesModal.useCases": "Cas d'usage"
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "テンプレート",
|
||||
"templatesModal.tryDifferentQuery": "別のクエリを試してみてください。",
|
||||
"templatesModal.useCases": "ユースケース"
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "Modelos",
|
||||
"templatesModal.tryDifferentQuery": "e tente uma consulta diferente.",
|
||||
"templatesModal.useCases": "Casos de uso"
|
||||
}
|
||||
}
|
||||
|
||||
@ -470,4 +470,4 @@
|
||||
"templatesModal.title": "模板",
|
||||
"templatesModal.tryDifferentQuery": "并尝试其他查询。",
|
||||
"templatesModal.useCases": "用例"
|
||||
}
|
||||
}
|
||||
|
||||
@ -817,7 +817,9 @@ export function FlowSidebarComponent({ isLoading }: FlowSidebarComponentProps) {
|
||||
className="h-4 w-4"
|
||||
/>
|
||||
</span>
|
||||
<span className="min-w-0 truncate">{t("sidebar.discoverMore")}</span>
|
||||
<span className="min-w-0 truncate">
|
||||
{t("sidebar.discoverMore")}
|
||||
</span>
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
|
||||
@ -78,7 +78,10 @@ const FilesTab = ({
|
||||
files: files,
|
||||
});
|
||||
setSuccessData({
|
||||
title: filesIds.length > 1 ? t("files.filesUploadedSuccessfully") : t("files.uploadedSuccessfully"),
|
||||
title:
|
||||
filesIds.length > 1
|
||||
? t("files.filesUploadedSuccessfully")
|
||||
: t("files.uploadedSuccessfully"),
|
||||
});
|
||||
} catch (error: any) {
|
||||
setErrorData({
|
||||
@ -259,9 +262,7 @@ const FilesTab = ({
|
||||
onError: (error) => {
|
||||
setErrorData({
|
||||
title: t("files.errorDeleting"),
|
||||
list: [
|
||||
error.message || t("files.errorDeletingDetail"),
|
||||
],
|
||||
list: [error.message || t("files.errorDeletingDetail")],
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@ -77,7 +77,10 @@ export const McpAuthSection = ({
|
||||
className="!text-mmd !font-normal"
|
||||
onClick={() => setAuthModalOpen(true)}
|
||||
>
|
||||
<ForwardedIconComponent name="Fingerprint" className="h-4 w-4 shrink-0" />
|
||||
<ForwardedIconComponent
|
||||
name="Fingerprint"
|
||||
className="h-4 w-4 shrink-0"
|
||||
/>
|
||||
{hasAuthentication ? t("mcp.editAuth") : t("mcp.addAuth")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@ -18,10 +18,7 @@ export const McpFlowsSection = ({
|
||||
return (
|
||||
<div className="w-full xl:w-2/5">
|
||||
<div className="flex flex-row justify-between pt-1">
|
||||
<ShadTooltip
|
||||
content={t("mcp.flowsTooltip")}
|
||||
side="right"
|
||||
>
|
||||
<ShadTooltip content={t("mcp.flowsTooltip")} side="right">
|
||||
<div className="flex items-center text-sm font-medium hover:cursor-help">
|
||||
{t("mcp.flowsTools")}
|
||||
<ForwardedIconComponent
|
||||
|
||||
@ -106,7 +106,10 @@ const McpServerTab = ({ folderName }: { folderName: string }) => {
|
||||
|
||||
<div className={cn("flex flex-col", !ENABLE_MCP_COMPOSER && "mt-2")}>
|
||||
<div className="flex flex-row justify-start border-b border-border">
|
||||
{[{ id: "auto-install", label: t("mcp.autoInstall") }, { id: "json", label: "JSON" }].map((item) => (
|
||||
{[
|
||||
{ id: "auto-install", label: t("mcp.autoInstall") },
|
||||
{ id: "json", label: "JSON" },
|
||||
].map((item) => (
|
||||
<Button
|
||||
unstyled
|
||||
key={item.id}
|
||||
|
||||
@ -19,7 +19,9 @@ const KnowledgeBaseEmptyState = ({
|
||||
return (
|
||||
<div className="flex h-full w-full flex-col items-center justify-center gap-8 pb-8">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<h3 className="text-2xl font-semibold">{t("knowledge.noKnowledgeBases")}</h3>
|
||||
<h3 className="text-2xl font-semibold">
|
||||
{t("knowledge.noKnowledgeBases")}
|
||||
</h3>
|
||||
<p className="text-lg text-secondary-foreground">
|
||||
{t("knowledge.emptyDescription")}
|
||||
</p>
|
||||
|
||||
@ -75,7 +75,10 @@ const KnowledgeBasesTab = ({
|
||||
});
|
||||
} else if (kb.status === "ready" && previousStatus === "ingesting") {
|
||||
setSuccessData({
|
||||
title: t("knowledge.ingestionComplete", { name: kb.name, chunks: kb.chunks }),
|
||||
title: t("knowledge.ingestionComplete", {
|
||||
name: kb.name,
|
||||
chunks: kb.chunks,
|
||||
}),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -213,7 +213,11 @@ export const SourceChunksPage = () => {
|
||||
</Select>
|
||||
</div>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{t("knowledge.showing", { start: startIndex + 1, end: Math.min(startIndex + pageSize, total), total })}
|
||||
{t("knowledge.showing", {
|
||||
start: startIndex + 1,
|
||||
end: Math.min(startIndex + pageSize, total),
|
||||
total,
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
@ -262,7 +266,9 @@ export const SourceChunksPage = () => {
|
||||
onKeyDown={handlePageInputKeyDown}
|
||||
className="h-7 w-16 rounded border border-input bg-background px-2 text-center text-sm focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-inner-spin-button]:opacity-100 [&::-webkit-inner-spin-button]:[filter:invert(1)] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-outer-spin-button]:opacity-100 [&::-webkit-outer-spin-button]:[filter:invert(1)]"
|
||||
/>
|
||||
<span>{t("knowledge.ofTotal", { total: totalPages })}</span>
|
||||
<span>
|
||||
{t("knowledge.ofTotal", { total: totalPages })}
|
||||
</span>
|
||||
</div>
|
||||
<Button
|
||||
variant="outline"
|
||||
|
||||
Reference in New Issue
Block a user