From 882bf1b626842d1b739538236ed2c4f30dbf9d70 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Mon, 16 Dec 2024 18:11:31 +0800 Subject: [PATCH] feat: rename ClearStatus --- examples/graphy/src/pages/dataset/cluster/graph.tsx | 4 ++-- examples/graphy/src/pages/explore/paper-reading/index.tsx | 4 ++-- packages/studio-explore/src/app.tsx | 4 ++-- packages/studio-graph/docs/online.zh-CN.md | 4 ++-- packages/studio-graph/src/components/ClearStatus/index.tsx | 4 ++-- packages/studio-graph/src/components/index.tsx | 2 +- packages/studio-query/src/components/query-graph/index.tsx | 4 ++-- packages/studio-website/src/pages/modeling/services.tsx | 1 + 8 files changed, 14 insertions(+), 13 deletions(-) diff --git a/examples/graphy/src/pages/dataset/cluster/graph.tsx b/examples/graphy/src/pages/dataset/cluster/graph.tsx index e527301fd..63d002713 100644 --- a/examples/graphy/src/pages/dataset/cluster/graph.tsx +++ b/examples/graphy/src/pages/dataset/cluster/graph.tsx @@ -11,7 +11,7 @@ import { Canvas, StyleSetting, ZoomFit, - ClearStatatus, + ClearStatus, Loading, BasicInteraction, GraphProvider, @@ -109,7 +109,7 @@ const ClusterGraph: React.FunctionComponent = props => { }} > - + diff --git a/examples/graphy/src/pages/explore/paper-reading/index.tsx b/examples/graphy/src/pages/explore/paper-reading/index.tsx index 096ef6078..a83615885 100644 --- a/examples/graphy/src/pages/explore/paper-reading/index.tsx +++ b/examples/graphy/src/pages/explore/paper-reading/index.tsx @@ -8,7 +8,7 @@ import { SwitchEngine, Canvas, ZoomFit, - ClearStatatus, + ClearStatus, RunCluster, BasicInteraction, ContextMenu, @@ -114,7 +114,7 @@ const PaperReading: React.FunctionComponent = props => { - + diff --git a/packages/studio-explore/src/app.tsx b/packages/studio-explore/src/app.tsx index 5c419adf6..bbbe469c5 100644 --- a/packages/studio-explore/src/app.tsx +++ b/packages/studio-explore/src/app.tsx @@ -8,7 +8,7 @@ import { StyleSetting, // Prepare, ZoomFit, - ClearStatatus, + ClearStatus, RunCluster, ContextMenu, NeighborQuery, @@ -117,7 +117,7 @@ const Explore: React.FunctionComponent = props => { {/* */} - + diff --git a/packages/studio-graph/docs/online.zh-CN.md b/packages/studio-graph/docs/online.zh-CN.md index ce7cafb5e..36d88ac3f 100644 --- a/packages/studio-graph/docs/online.zh-CN.md +++ b/packages/studio-graph/docs/online.zh-CN.md @@ -19,7 +19,7 @@ import { StyleSetting, Prepare, ZoomFit, - ClearStatatus, + ClearStatus, RunCluster, ContextMenu, NeighborQuery, @@ -76,7 +76,7 @@ const QueryGraph = props => { - + diff --git a/packages/studio-graph/src/components/ClearStatus/index.tsx b/packages/studio-graph/src/components/ClearStatus/index.tsx index a4c53e161..eb8e8e53a 100644 --- a/packages/studio-graph/src/components/ClearStatus/index.tsx +++ b/packages/studio-graph/src/components/ClearStatus/index.tsx @@ -3,7 +3,7 @@ import { useContext } from '../../'; interface IClearStatatusProps {} -const ClearStatatus: React.FunctionComponent = props => { +const ClearStatus: React.FunctionComponent = props => { const { store, updateStore } = useContext(); const { emitter } = store; useEffect(() => { @@ -24,4 +24,4 @@ const ClearStatatus: React.FunctionComponent = props => { return null; }; -export default ClearStatatus; +export default ClearStatus; diff --git a/packages/studio-graph/src/components/index.tsx b/packages/studio-graph/src/components/index.tsx index 381f4ba72..df0c73291 100644 --- a/packages/studio-graph/src/components/index.tsx +++ b/packages/studio-graph/src/components/index.tsx @@ -8,7 +8,7 @@ export { default as Canvas } from './Canvas'; export { default as StyleSetting } from './StyleSetting'; export { default as Prepare } from './Prepare'; export { default as ZoomFit } from './ZoomFit'; -export { default as ClearStatatus } from './ClearStatus'; +export { default as ClearStatus } from './ClearStatus'; export { default as SliderFilter } from './SliderFilter'; export { default as RunCluster } from './RunCluster'; export { default as LayoutSetting } from './LayoutSetting'; diff --git a/packages/studio-query/src/components/query-graph/index.tsx b/packages/studio-query/src/components/query-graph/index.tsx index 63c5225c1..294ad4a74 100644 --- a/packages/studio-query/src/components/query-graph/index.tsx +++ b/packages/studio-query/src/components/query-graph/index.tsx @@ -10,7 +10,7 @@ import { StyleSetting, Prepare, ZoomFit, - ClearStatatus, + ClearStatus, RunCluster, ContextMenu, NeighborQuery, @@ -90,7 +90,7 @@ const QueryGraph: React.FunctionComponent = props => { - + diff --git a/packages/studio-website/src/pages/modeling/services.tsx b/packages/studio-website/src/pages/modeling/services.tsx index adae72237..0d81d57d3 100644 --- a/packages/studio-website/src/pages/modeling/services.tsx +++ b/packages/studio-website/src/pages/modeling/services.tsx @@ -26,6 +26,7 @@ export const createGraph = async (params: { graphName: string; nodes: any[]; edg .importSchemaById(graph_id, schemaJSON) .then(res => { if (res.status === 200) { + debugger; return res.data; } return [];