lint config and fixes
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "next/core-web-vitals"
|
"extends": "next/core-web-vitals",
|
||||||
|
"ignorePatterns": ["venv/**/*.*"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { GET_AGENTS } from "@/utils/graphql_queries";
|
|||||||
import { useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import { Alert, Button, IconButton } from "@material-tailwind/react";
|
import { Alert, Button, IconButton } from "@material-tailwind/react";
|
||||||
|
import Image from "next/image";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
const AgentsPage = () => {
|
const AgentsPage = () => {
|
||||||
@@ -89,7 +90,7 @@ const AgentsPage = () => {
|
|||||||
i % 2 == 0 ? "lg:flex-row" : "lg:flex-row-reverse"
|
i % 2 == 0 ? "lg:flex-row" : "lg:flex-row-reverse"
|
||||||
} rounded overflow-hidden h-auto min-h-52 border`}
|
} rounded overflow-hidden h-auto min-h-52 border`}
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
className="block max-w-72 w-full lg:w-48 flex-none bg-cover mx-auto"
|
className="block max-w-72 w-full lg:w-48 flex-none bg-cover mx-auto"
|
||||||
src={agent.image ?? "/agents_images/sailor.png"}
|
src={agent.image ?? "/agents_images/sailor.png"}
|
||||||
alt="Agent"
|
alt="Agent"
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import Swal from "sweetalert2";
|
|||||||
import withReactContent from "sweetalert2-react-content";
|
import withReactContent from "sweetalert2-react-content";
|
||||||
import { DELETE_AGENT, UPDATE_AGENT } from "@/utils/graphql_queries";
|
import { DELETE_AGENT, UPDATE_AGENT } from "@/utils/graphql_queries";
|
||||||
import { useMutation } from "@apollo/client";
|
import { useMutation } from "@apollo/client";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
export default function AgentModal(props: {
|
export default function AgentModal(props: {
|
||||||
agent: Agent;
|
agent: Agent;
|
||||||
@@ -371,7 +372,7 @@ export default function AgentModal(props: {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{selectedImage && (
|
{selectedImage && (
|
||||||
<img
|
<Image
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
src={selectedImage}
|
src={selectedImage}
|
||||||
alt="Agent Image"
|
alt="Agent Image"
|
||||||
@@ -380,7 +381,7 @@ export default function AgentModal(props: {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<img
|
<Image
|
||||||
src={tempAgent?.image ?? "/agents_images/sailor.png"}
|
src={tempAgent?.image ?? "/agents_images/sailor.png"}
|
||||||
alt="Agent Image"
|
alt="Agent Image"
|
||||||
className="w-7/12 mx-auto rounded-lg"
|
className="w-7/12 mx-auto rounded-lg"
|
||||||
|
|||||||
@@ -20,11 +20,15 @@ export function TasksAccordion({ tasks }: { tasks: Array<Task> }) {
|
|||||||
open={open === i}
|
open={open === i}
|
||||||
className="mb-2 rounded-lg border border-blue-gray-100 px-4"
|
className="mb-2 rounded-lg border border-blue-gray-100 px-4"
|
||||||
placeholder={undefined}
|
placeholder={undefined}
|
||||||
|
onPointerEnterCapture={undefined}
|
||||||
|
onPointerLeaveCapture={undefined}
|
||||||
>
|
>
|
||||||
<AccordionHeader
|
<AccordionHeader
|
||||||
onClick={() => handleOpen(i)}
|
onClick={() => handleOpen(i)}
|
||||||
className={`border-b-0 transition-colors ${open === i ? "text-blue-500 hover:!text-blue-700" : "text-gray-400 hover:!text-gray-300"}`}
|
className={`border-b-0 transition-colors ${open === i ? "text-blue-500 hover:!text-blue-700" : "text-gray-400 hover:!text-gray-300"}`}
|
||||||
placeholder={undefined}
|
placeholder={undefined}
|
||||||
|
onPointerEnterCapture={undefined}
|
||||||
|
onPointerLeaveCapture={undefined}
|
||||||
>
|
>
|
||||||
{task.name}
|
{task.name}
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
@@ -35,15 +39,30 @@ export function TasksAccordion({ tasks }: { tasks: Array<Task> }) {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Typography variant="lead" placeholder={undefined}>
|
<Typography
|
||||||
|
variant="lead"
|
||||||
|
placeholder={undefined}
|
||||||
|
onPointerEnterCapture={undefined}
|
||||||
|
onPointerLeaveCapture={undefined}
|
||||||
|
>
|
||||||
{task.description}
|
{task.description}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Typography variant="h3" placeholder={undefined}>
|
<Typography
|
||||||
|
variant="h3"
|
||||||
|
placeholder={undefined}
|
||||||
|
onPointerEnterCapture={undefined}
|
||||||
|
onPointerLeaveCapture={undefined}
|
||||||
|
>
|
||||||
Expected Output
|
Expected Output
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="paragraph" placeholder={undefined}>
|
<Typography
|
||||||
|
variant="paragraph"
|
||||||
|
placeholder={undefined}
|
||||||
|
onPointerEnterCapture={undefined}
|
||||||
|
onPointerLeaveCapture={undefined}
|
||||||
|
>
|
||||||
{task.expected_output}
|
{task.expected_output}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,5 +22,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.js", "postcss.config.cjs"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "**/*.js", "postcss.config.cjs"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "venv"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user