Skip to content

Commit

Permalink
feat: rename ClearStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Dec 16, 2024
1 parent 0c3a7d2 commit 882bf1b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions examples/graphy/src/pages/dataset/cluster/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Canvas,
StyleSetting,
ZoomFit,
ClearStatatus,
ClearStatus,
Loading,
BasicInteraction,
GraphProvider,
Expand Down Expand Up @@ -109,7 +109,7 @@ const ClusterGraph: React.FunctionComponent<QueryGraphProps> = props => {
}}
>
<Canvas />
<ClearStatatus />
<ClearStatus />

<BasicInteraction />
<Loading />
Expand Down
4 changes: 2 additions & 2 deletions examples/graphy/src/pages/explore/paper-reading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SwitchEngine,
Canvas,
ZoomFit,
ClearStatatus,
ClearStatus,
RunCluster,
BasicInteraction,
ContextMenu,
Expand Down Expand Up @@ -114,7 +114,7 @@ const PaperReading: React.FunctionComponent<QueryGraphProps> = props => {
<BasicInteraction />
<FetchGraph />

<ClearStatatus />
<ClearStatus />
<Loading />
<ContextMenu>
<NeighborQuery />
Expand Down
4 changes: 2 additions & 2 deletions packages/studio-explore/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
StyleSetting,
// Prepare,
ZoomFit,
ClearStatatus,
ClearStatus,
RunCluster,
ContextMenu,
NeighborQuery,
Expand Down Expand Up @@ -117,7 +117,7 @@ const Explore: React.FunctionComponent<ExploreProps> = props => {
{/* <Prepare data={data} schema={schema} graphId={graphId} /> */}
<Canvas />
<BasicInteraction />
<ClearStatatus />
<ClearStatus />
<FetchGraph />
<Placeholder />
<Loading />
Expand Down
4 changes: 2 additions & 2 deletions packages/studio-graph/docs/online.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
StyleSetting,
Prepare,
ZoomFit,
ClearStatatus,
ClearStatus,
RunCluster,
ContextMenu,
NeighborQuery,
Expand Down Expand Up @@ -76,7 +76,7 @@ const QueryGraph = props => {
<Prepare data={data} schema={schema} graphId={graphId} />
<Canvas />
<BasicInteraction />
<ClearStatatus />
<ClearStatus />
<PropertiesPanel />
<Loading />
<ContextMenu>
Expand Down
4 changes: 2 additions & 2 deletions packages/studio-graph/src/components/ClearStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useContext } from '../../';

interface IClearStatatusProps {}

const ClearStatatus: React.FunctionComponent<IClearStatatusProps> = props => {
const ClearStatus: React.FunctionComponent<IClearStatatusProps> = props => {
const { store, updateStore } = useContext();
const { emitter } = store;
useEffect(() => {
Expand All @@ -24,4 +24,4 @@ const ClearStatatus: React.FunctionComponent<IClearStatatusProps> = props => {
return null;
};

export default ClearStatatus;
export default ClearStatus;
2 changes: 1 addition & 1 deletion packages/studio-graph/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions packages/studio-query/src/components/query-graph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
StyleSetting,
Prepare,
ZoomFit,
ClearStatatus,
ClearStatus,
RunCluster,
ContextMenu,
NeighborQuery,
Expand Down Expand Up @@ -90,7 +90,7 @@ const QueryGraph: React.FunctionComponent<QueryGraphProps> = props => {
<Canvas />
<ZoomStatus />
<BasicInteraction />
<ClearStatatus />
<ClearStatus />
<PropertiesPanel />
<Loading />
<ContextMenu>
Expand Down
1 change: 1 addition & 0 deletions packages/studio-website/src/pages/modeling/services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 882bf1b

Please sign in to comment.