Skip to content

Commit 3d29e7c

Browse files
committed
Atualiza o favicon e o logo da aplicação para URLs externas, além de adicionar novos itens de menu para n8n e Evoai no sidebar. Modifica a estrutura de dados no componente NewEvoai para incluir agentUrl e apiKey.
1 parent 78c3484 commit 3d29e7c

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/png" href="/assets/images/evolution-logo.png" />
5+
<link rel="icon" type="image/png" href="https://evolution-api.com/files/evo/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Evolution Manager</title>
88
</head>

src/components/header.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ import {
1616
DialogFooter,
1717
DialogHeader,
1818
} from "./ui/dialog";
19+
import { useTheme } from "./theme-provider";
1920

2021
function Header({ instanceId }: { instanceId?: string }) {
2122
const [logoutConfirmation, setLogoutConfirmation] = useState(false);
2223
const navigate = useNavigate();
24+
const { theme } = useTheme();
2325

2426
const handleClose = () => {
2527
logout();
@@ -40,11 +42,14 @@ function Header({ instanceId }: { instanceId?: string }) {
4042
className="flex h-8 items-center gap-4"
4143
>
4244
<img
43-
src="/assets/images/evolution-logo.png"
45+
src={
46+
theme === "dark"
47+
? "https://evolution-api.com/files/evo/evolution-logo-white.svg"
48+
: "https://evolution-api.com/files/evo/evolution-logo.svg"
49+
}
4450
alt="Logo"
4551
className="h-full"
4652
/>
47-
<span>Evolution Manager</span>
4853
</Link>
4954
<div className="flex items-center gap-4">
5055
{instanceId && (

src/components/sidebar.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ function Sidebar() {
8383
title: t("sidebar.integrations"),
8484
icon: Zap,
8585
children: [
86+
{
87+
id: "evoai",
88+
title: t("sidebar.evoai"),
89+
path: "evoai",
90+
},
91+
{
92+
id: "n8n",
93+
title: t("sidebar.n8n"),
94+
path: "n8n",
95+
},
8696
{
8797
id: "evolutionBot",
8898
title: t("sidebar.evolutionBot"),
@@ -113,16 +123,6 @@ function Sidebar() {
113123
title: t("sidebar.flowise"),
114124
path: "flowise",
115125
},
116-
{
117-
id: "n8n",
118-
title: t("sidebar.n8n"),
119-
path: "n8n",
120-
},
121-
{
122-
id: "evoai",
123-
title: t("sidebar.evoai"),
124-
path: "evoai",
125-
},
126126
],
127127
},
128128
{

src/pages/instance/Evoai/NewEvoai.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ function NewEvoai({ resetTable }: { resetTable: () => void }) {
3939
const evoaiData: Evoai = {
4040
enabled: data.enabled,
4141
description: data.description,
42-
webhookUrl: data.webhookUrl,
43-
basicAuthUser: data.basicAuthUser,
44-
basicAuthPass: data.basicAuthPass,
42+
agentUrl: data.agentUrl,
43+
apiKey: data.apiKey,
4544
triggerType: data.triggerType,
4645
triggerOperator: data.triggerOperator || "",
4746
triggerValue: data.triggerValue || "",

0 commit comments

Comments
 (0)