From 9b7a5749d25a1c31906067187373217ede9f8154 Mon Sep 17 00:00:00 2001
From: Gabe Hamilton
Date: Fri, 3 May 2024 17:28:19 -0600
Subject: [PATCH] linting
---
nexus/components/src/AI/Agent/AgentCard.jsx | 18 +++++++-----
nexus/components/src/AI/Nexus.jsx | 4 +--
nexus/components/src/AI/Overview.jsx | 18 ++++++------
nexus/components/src/AI/Schema/Nexus.jsx | 32 ++++++++++-----------
4 files changed, 38 insertions(+), 34 deletions(-)
diff --git a/nexus/components/src/AI/Agent/AgentCard.jsx b/nexus/components/src/AI/Agent/AgentCard.jsx
index a22e4b7..6f3ecb7 100644
--- a/nexus/components/src/AI/Agent/AgentCard.jsx
+++ b/nexus/components/src/AI/Agent/AgentCard.jsx
@@ -18,10 +18,14 @@ const Card = styled.div`
height: 100%;
transition: all 300ms;
- box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
+ box-shadow:
+ 0 1px 3px 0 rgb(0 0 0 / 0.1),
+ 0 1px 2px -1px rgb(0 0 0 / 0.1);
&:hover {
- box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
+ box-shadow:
+ 0 4px 6px -1px rgb(0 0 0 / 0.1),
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.logo {
@@ -130,11 +134,11 @@ const AgentCard = ({ item, editFunction }) => {
const agentComponent = item.component
? item.component
: `${REPL_ACCOUNT}/widget/AI.Agent.AgentChat`;
- const imageUrl = logoUrl
- ? typeof logoUrl == "string" && logoUrl.startsWith("http")
- ? logoUrl
- : ipfsUrl(logoUrl)
- : "https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu";
+ const imageUrl = logoUrl
+ ? typeof logoUrl == "string" && logoUrl.startsWith("http")
+ ? logoUrl
+ : ipfsUrl(logoUrl)
+ : "https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu";
const actionLink = href({
widgetSrc: agentComponent,
params: { src: `${accountId}/agent/${name}` },
diff --git a/nexus/components/src/AI/Nexus.jsx b/nexus/components/src/AI/Nexus.jsx
index be2c3e6..1de3502 100644
--- a/nexus/components/src/AI/Nexus.jsx
+++ b/nexus/components/src/AI/Nexus.jsx
@@ -43,7 +43,7 @@ const [activeTabs, setActiveTabs] = useState(
agentTools: "contractTool",
dataSources: "dataSource",
verifications: "dataReputation",
- }
+ },
);
useEffect(() => {
@@ -121,7 +121,7 @@ const renderContent = () => {
return content.subGroups(
activeGroup,
schema[activeGroup],
- globalTagFilter // forces re-render, gets passed through Storage
+ globalTagFilter,
);
}
};
diff --git a/nexus/components/src/AI/Overview.jsx b/nexus/components/src/AI/Overview.jsx
index 2cd8e0d..82e4da2 100644
--- a/nexus/components/src/AI/Overview.jsx
+++ b/nexus/components/src/AI/Overview.jsx
@@ -306,7 +306,7 @@ query ListQuery($offset: Int, $limit: Int) {
};
const queryName = "ListQuery";
const loadItemsQueryApi = VM.require(
- "${REPL_ACCOUNT}/widget/Entities.QueryApi.Client"
+ "${REPL_ACCOUNT}/widget/Entities.QueryApi.Client",
)?.loadItems;
if (!loadItemsQueryApi) {
return Loading modules...
;
@@ -486,7 +486,7 @@ return (
href={buildAgentUrl(
app.attributes.component,
app.account_id,
- app.name
+ app.name,
)}
url={app.logo_url}
name={app.display_name}
@@ -535,13 +535,13 @@ return (
For example, if you are building an open source NEAR Co-pilot you
- might share pieces for others to compose with. That
- could be training datasets of Contract or Component code. You might
- share a trained model by uploading the weights; then separate out
- the framework code and finally add the Co-pilot to the agent
- directory for use by end users. Another developer might then use
- those pieces to create a code security checking agent that
- interoperates with your coding Co-pilot.
+ might share pieces for others to compose with. That could be
+ training datasets of Contract or Component code. You might share a
+ trained model by uploading the weights; then separate out the
+ framework code and finally add the Co-pilot to the agent directory
+ for use by end users. Another developer might then use those pieces
+ to create a code security checking agent that interoperates with
+ your coding Co-pilot.
If you need more, this UI is composed of React-on-Chain components
diff --git a/nexus/components/src/AI/Schema/Nexus.jsx b/nexus/components/src/AI/Schema/Nexus.jsx
index 45a9f33..58ce837 100644
--- a/nexus/components/src/AI/Schema/Nexus.jsx
+++ b/nexus/components/src/AI/Schema/Nexus.jsx
@@ -22,22 +22,22 @@ const schema = {
icon: "ph ph-list-checks",
defaultValue: "trainingDataset",
items: [
- {
- name: "Training Datasets",
- value: "trainingDataset",
- content: (contentProps) => (
-
- ),
- icon: "ph ph-chart-bar-horizontal",
- },
- {
+ {
+ name: "Training Datasets",
+ value: "trainingDataset",
+ content: (contentProps) => (
+
+ ),
+ icon: "ph ph-chart-bar-horizontal",
+ },
+ {
name: "Crowdsourcing",
value: "crowdsourcedDataset",
content: (contentProps) => (