From 07d9d0321c84611d69e7d43568597918bc2c6d9d Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Thu, 5 Sep 2024 13:34:47 +0800 Subject: [PATCH 1/3] feat: add graph apps example --- examples/graph-apps/.fatherrc.js | 4 + examples/graph-apps/README.md | 1 + examples/graph-apps/index.html | 18 ++ examples/graph-apps/package.json | 45 +++++ examples/graph-apps/src/index.tsx | 154 ++++++++++++++++++ .../components/FetchGraph/index.tsx | 42 +++++ .../components/FetchGraph/service.tsx | 34 ++++ .../components/PaperList/index.tsx | 52 ++++++ .../components/PaperList/useHover.tsx | 31 ++++ .../components/Searchbar/index.tsx | 27 +++ .../src/paper-reading/components/index.tsx | 5 + .../graph-apps/src/paper-reading/index.tsx | 100 ++++++++++++ examples/graph-apps/tsconfig.json | 20 +++ examples/graph-apps/vite.config.ts | 15 ++ examples/llm-workflow-graph/package.json | 2 + examples/llm-workflow-graph/server/index.js | 5 +- .../llm-workflow-graph/src/layout/const.tsx | 10 +- .../llm-workflow-graph/src/layout/sidebar.tsx | 6 +- .../llm-workflow-graph/src/locales/en-US.ts | 3 + .../llm-workflow-graph/src/locales/zh-CN.ts | 3 + .../src/pages/components/index.tsx | 1 + .../src/pages/dataset/list/item.tsx | 12 ++ .../src/pages/explore/index.tsx | 24 +++ .../llm-workflow-graph/src/pages/index.tsx | 5 +- .../studio-components/src/Toolbar/index.tsx | 6 +- .../src/graph/custom-node/draw.tsx | 4 +- 26 files changed, 614 insertions(+), 15 deletions(-) create mode 100644 examples/graph-apps/.fatherrc.js create mode 100644 examples/graph-apps/README.md create mode 100644 examples/graph-apps/index.html create mode 100644 examples/graph-apps/package.json create mode 100644 examples/graph-apps/src/index.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/FetchGraph/index.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/FetchGraph/service.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/PaperList/index.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/PaperList/useHover.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/Searchbar/index.tsx create mode 100644 examples/graph-apps/src/paper-reading/components/index.tsx create mode 100644 examples/graph-apps/src/paper-reading/index.tsx create mode 100644 examples/graph-apps/tsconfig.json create mode 100644 examples/graph-apps/vite.config.ts create mode 100644 examples/llm-workflow-graph/src/pages/explore/index.tsx diff --git a/examples/graph-apps/.fatherrc.js b/examples/graph-apps/.fatherrc.js new file mode 100644 index 000000000..c4f694d60 --- /dev/null +++ b/examples/graph-apps/.fatherrc.js @@ -0,0 +1,4 @@ +export default { + esm: { output: 'es' }, + cjs: { output: 'lib' }, +}; diff --git a/examples/graph-apps/README.md b/examples/graph-apps/README.md new file mode 100644 index 000000000..aff365467 --- /dev/null +++ b/examples/graph-apps/README.md @@ -0,0 +1 @@ +Graph Apps diff --git a/examples/graph-apps/index.html b/examples/graph-apps/index.html new file mode 100644 index 000000000..d8320ef97 --- /dev/null +++ b/examples/graph-apps/index.html @@ -0,0 +1,18 @@ + + + + + + Graph Apps + + + +
+ + + diff --git a/examples/graph-apps/package.json b/examples/graph-apps/package.json new file mode 100644 index 000000000..5fcbab2bc --- /dev/null +++ b/examples/graph-apps/package.json @@ -0,0 +1,45 @@ +{ + "name": "@graphscope/graph-apps", + "version": "0.1.1", + "description": "", + "main": "lib/index.js", + "module": "es/index.js", + "types": "lib/index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/GraphScope/portal.git" + }, + "files": [ + "es", + "lib", + "dist" + ], + "scripts": { + "start": "father dev", + "build": "father build", + "start:site": "vite dev", + "build:site": "vite build" + }, + "dependencies": { + "@graphscope/studio-components": "workspace:*", + "@graphscope/studio-graph": "workspace:*", + "@graphscope/studio-importor": "workspace:*", + "@graphscope/studio-query": "workspace:*", + "d3-force": "latest", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-intl": "^6.6.8", + "react-router-dom": "^6.26.1", + "typewriter-effect": "^2.21.0" + }, + "devDependencies": { + "@vitejs/plugin-react": "^4.2.1", + "vite": "^5.0.12" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, + "author": "", + "license": "ISC" +} diff --git a/examples/graph-apps/src/index.tsx b/examples/graph-apps/src/index.tsx new file mode 100644 index 000000000..3996e3951 --- /dev/null +++ b/examples/graph-apps/src/index.tsx @@ -0,0 +1,154 @@ +import ReactDOM from 'react-dom/client'; +import React, { Suspense } from 'react'; +import { BrowserRouter, Routes, Route, Outlet, Navigate, useNavigate } from 'react-router-dom'; +import { Flex, Card, Typography, Divider, Tag } from 'antd'; +import { ConfigProvider, Skeleton, Space, Button } from 'antd'; +import { GithubOutlined, ReadOutlined } from '@ant-design/icons'; +// import locales from '../locales'; +// import { IntlProvider } from 'react-intl'; +import PaperReading from './paper-reading'; + +interface IPagesProps {} + +const APP_INFO = [ + { + name: 'Graph Data Query Scenarios', + description: + 'Using powerful query languages like Cypher and Gremlin, enabling you to extract meaningful insights from complex networks of interconnected data', + icon: 'https://www.connectedpapers.com/img/ScienceMapping.2218dc18.png', + category: 'Graph Database', + link: '/paper-reading', + dataset: 'https://github.com/csuvis/CyberAssetGraphData', + github: '', + }, + + { + name: 'Discover Network Vulnerability Risks', + description: + 'Identify Network Vulnerability Risks by detecting weaknesses and exposures in network infrastructure, enabling proactive security measures to prevent potential threats and safeguard critical systems.', + icon: 'https://www.connectedpapers.com/img/ScienceMapping.2218dc18.png', + category: 'Cyber Security', + link: '/paper-reading', + dataset: 'https://github.com/csuvis/CyberAssetGraphData', + github: '', + }, + { + name: 'Paper Discovery', + description: + 'Discover the connections between papers by exploring how research builds upon existing knowledge, linking studies through shared references, methodologies, and findings to create a comprehensive view of academic contributions.', + icon: 'https://www.connectedpapers.com/img/ScienceMapping.2218dc18.png', + link: '/paper-reading', + category: 'Knowledge Graph', + dataset: 'https://github.com/csuvis/CyberAssetGraphData', + }, + { + name: 'GitHub Collaboration Network', + description: + 'Explore the GitHub Collaboration Network, where developers connect, share code, and collaborate on projects to drive innovation and solve complex problems together.', + icon: 'https://www.connectedpapers.com/img/ScienceMapping.2218dc18.png', + link: '/paper-reading', + category: 'Social Network', + dataset: 'https://github.com/csuvis/CyberAssetGraphData', + }, +]; +const Home = () => { + const navigate = useNavigate(); + return ( + + Discover More Graph Applications and Inspire Innovation + + + {APP_INFO.map((item, index) => { + return ( + { + navigate(item.link); + }} + /> + } + > + + {item.name} + + + + {item.description} + + + + {item.category} + + + + + + + ); + })} + + + ); +}; +const routes = [ + { path: '/', component: Home }, + { path: '/paper-reading', component: React.lazy(() => import('./paper-reading')) }, +]; + +const GraphApps: React.FunctionComponent = props => { + // const locale = 'en-US'; + // const messages = locales[locale]; + const routeComponents = routes.map(({ path, component: Component }, index) => { + return ( + }> + {/** @ts-ignore */} + + + } + /> + ); + }); + + return ( + + {/* */} + + {routeComponents} + + {/* */} + + ); +}; + +const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); +root.render(); + +export { PaperReading, GraphApps }; diff --git a/examples/graph-apps/src/paper-reading/components/FetchGraph/index.tsx b/examples/graph-apps/src/paper-reading/components/FetchGraph/index.tsx new file mode 100644 index 000000000..6089cab88 --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/FetchGraph/index.tsx @@ -0,0 +1,42 @@ +import * as React from 'react'; +import { Button, Table, TableProps } from 'antd'; +import { useContext, getDataMap, getStyleConfig } from '@graphscope/studio-graph'; +import { Utils } from '@graphscope/studio-components'; +import { query } from './service'; +interface IUploadProps {} + +const FetchGraph: React.FunctionComponent = props => { + const { updateStore } = useContext(); + const [state, setState] = React.useState<{ + lists: any[]; + isReady: boolean; + columns: any[]; + }>({ + lists: [], + isReady: false, + columns: [], + }); + + React.useEffect(() => { + const entityId = Utils.getSearchParams('entityId') || 'Paper'; + query({ + name: entityId, + }).then(res => { + updateStore(draft => { + const schema = Utils.generatorSchemaByGraphData(res); + //@ts-ignore + const style = getStyleConfig(schema, draft.graphId); + draft.data = res; + draft.source = res; + draft.dataMap = getDataMap(res); + draft.schema = schema; + draft.nodeStyle = style.nodeStyle; + draft.edgeStyle = style.edgeStyle; + }); + }); + }, []); + + return null; +}; + +export default FetchGraph; diff --git a/examples/graph-apps/src/paper-reading/components/FetchGraph/service.tsx b/examples/graph-apps/src/paper-reading/components/FetchGraph/service.tsx new file mode 100644 index 000000000..8df490c13 --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/FetchGraph/service.tsx @@ -0,0 +1,34 @@ +interface Params { + name: string; + type?: 'nodes' | 'edges' | 'cluster'; + weight?: string; + [key: string]: any; +} +export async function query(params: Params) { + const baseURL = 'http://localhost:9999/api/query'; + + const url = new URL(baseURL); + url.search = new URLSearchParams(params).toString(); + return await fetch(url, { + method: 'GET', + headers: { + 'Content-Type': 'application/json', + }, + }) + .then(res => res.json()) + .then(res => { + if (res.success) { + return res.data; + } + return { + nodes: [], + edges: [], + }; + }) + .catch(err => { + return { + nodes: [], + edges: [], + }; + }); +} diff --git a/examples/graph-apps/src/paper-reading/components/PaperList/index.tsx b/examples/graph-apps/src/paper-reading/components/PaperList/index.tsx new file mode 100644 index 000000000..771a5ea3d --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/PaperList/index.tsx @@ -0,0 +1,52 @@ +import * as React from 'react'; +import { useContext } from '@graphscope/studio-graph'; +import { Typography, Flex } from 'antd'; +import useHover from './useHover'; +interface IPaperListProps {} + +const Item = props => { + const { title, authors, published } = props; + const date = new Date(published); + const [isHovered, hoverRef] = useHover(); + console.log('isHovered', isHovered); + const style = { + background: isHovered ? '#f0f0f0' : 'transparent', + cursor: 'pointer', + }; + + return ( + + {title} + + + {authors} + + {date.toLocaleDateString()} + + + ); +}; +const PaperList: React.FunctionComponent = props => { + const { store } = useContext(); + const { data } = store; + const { nodes = [] } = data; + + return ( + + {nodes.map(item => { + const { properties } = item; + + return ; + })} + + ); +}; + +export default PaperList; diff --git a/examples/graph-apps/src/paper-reading/components/PaperList/useHover.tsx b/examples/graph-apps/src/paper-reading/components/PaperList/useHover.tsx new file mode 100644 index 000000000..08c932628 --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/PaperList/useHover.tsx @@ -0,0 +1,31 @@ +import { useState, useCallback, useRef, useEffect } from 'react'; + +/** + * useHover hook + * @returns {Array} [isHovered, hoverRef] + */ +function useHover() { + const [isHovered, setIsHovered] = useState(false); + const ref = useRef(null); + + const handleMouseEnter = useCallback(() => setIsHovered(true), []); + const handleMouseLeave = useCallback(() => setIsHovered(false), []); + + // Add event listeners when the component mounts and clean them up on unmount + useEffect(() => { + const node = ref.current; + if (node) { + node.addEventListener('mouseenter', handleMouseEnter); + node.addEventListener('mouseleave', handleMouseLeave); + + return () => { + node.removeEventListener('mouseenter', handleMouseEnter); + node.removeEventListener('mouseleave', handleMouseLeave); + }; + } + }, [handleMouseEnter, handleMouseLeave]); + + return [isHovered, ref]; +} + +export default useHover; diff --git a/examples/graph-apps/src/paper-reading/components/Searchbar/index.tsx b/examples/graph-apps/src/paper-reading/components/Searchbar/index.tsx new file mode 100644 index 000000000..6514a5d8d --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/Searchbar/index.tsx @@ -0,0 +1,27 @@ +import * as React from 'react'; +import { Input } from 'antd'; +import { SearchOutlined } from '@ant-design/icons'; +interface ISearchbarProps {} + +const Searchbar: React.FunctionComponent = props => { + return ( +
+ + } + /> +
+ ); +}; + +export default Searchbar; diff --git a/examples/graph-apps/src/paper-reading/components/index.tsx b/examples/graph-apps/src/paper-reading/components/index.tsx new file mode 100644 index 000000000..7153c3f00 --- /dev/null +++ b/examples/graph-apps/src/paper-reading/components/index.tsx @@ -0,0 +1,5 @@ +import Searchbar from './Searchbar'; +import PaperList from './PaperList'; +import FetchGraph from './FetchGraph'; + +export { Searchbar, PaperList, FetchGraph }; diff --git a/examples/graph-apps/src/paper-reading/index.tsx b/examples/graph-apps/src/paper-reading/index.tsx new file mode 100644 index 000000000..6854e68d8 --- /dev/null +++ b/examples/graph-apps/src/paper-reading/index.tsx @@ -0,0 +1,100 @@ +import React, { useRef } from 'react'; + +import { Button } from 'antd'; + +import { MultipleInstance, Section, useSection, Icons, FullScreen } from '@graphscope/studio-components'; +import { + Toolbar, + SwitchEngine, + PropertiesPanel, + Canvas, + ZoomFit, + ClearStatatus, + RunCluster, +} from '@graphscope/studio-graph'; + +import { FetchGraph, Searchbar, PaperList } from './components'; + +interface QueryGraphProps {} + +const ToogleLeftButton = () => { + const { toggleLeftSide } = useSection(); + return ( +
+
+ ); +}; +const ToogleRightButton = () => { + const { toggleRightSide } = useSection(); + return ( +
+
+ ); +}; + +const PaperReading: React.FunctionComponent = props => { + const containerRef = useRef(null); + + return ( + +
+
} + leftSide={} + autoResize={false} + rightSideStyle={{ + width: '250px', + }} + leftSideStyle={{ + width: '380px', + }} + defaultCollapsed={{ + leftSide: false, + rightSide: false, + }} + > + + + + + + + + + + + + + + + + + + + + +
+
+
+ ); +}; + +export default PaperReading; diff --git a/examples/graph-apps/tsconfig.json b/examples/graph-apps/tsconfig.json new file mode 100644 index 000000000..04da7ca96 --- /dev/null +++ b/examples/graph-apps/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "allowJs": true, + "declaration": true, + "target": "es2015", + "moduleResolution": "node", + "jsx": "react", + "resolveJsonModule": true, + "strict": true, + "noImplicitAny": false, + "lib": ["dom", "esnext"], + "module": "esnext", + "esModuleInterop": true, + "skipLibCheck": true, + "isolatedModules": false + }, + "include": ["src/**/*"], + "exclude": ["node_modules"] +} diff --git a/examples/graph-apps/vite.config.ts b/examples/graph-apps/vite.config.ts new file mode 100644 index 000000000..b52571712 --- /dev/null +++ b/examples/graph-apps/vite.config.ts @@ -0,0 +1,15 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; +import { resolve } from 'path'; + +export default defineConfig({ + root: './', + server: { + port: 8000, + open: '/', + }, + build: { + outDir: './dist', + }, + plugins: [react()], +}); diff --git a/examples/llm-workflow-graph/package.json b/examples/llm-workflow-graph/package.json index 57c435fcf..e1a6c9740 100644 --- a/examples/llm-workflow-graph/package.json +++ b/examples/llm-workflow-graph/package.json @@ -22,6 +22,8 @@ "@graphscope/studio-components": "workspace:*", "@graphscope/studio-graph": "workspace:*", "@graphscope/studio-importor": "workspace:*", + "@graphscope/studio-query": "workspace:*", + "@graphscope/graph-apps": "workspace:*", "d3-force": "latest", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/examples/llm-workflow-graph/server/index.js b/examples/llm-workflow-graph/server/index.js index bc8825038..0d7ab8f78 100644 --- a/examples/llm-workflow-graph/server/index.js +++ b/examples/llm-workflow-graph/server/index.js @@ -32,7 +32,10 @@ app.get('/api/query', async (req, res) => { return; } const nodes = await queryLocalFile(`${name}.json`); - const edges = await queryLocalFile(`${name}_IsSimilar_${name}.json`); + const edges = + name === 'Paper' + ? await queryLocalFile(`${name}_Cite_${name}.json`) + : await queryLocalFile(`${name}_IsSimilar_${name}.json`); res.send({ success: true, data: { diff --git a/examples/llm-workflow-graph/src/layout/const.tsx b/examples/llm-workflow-graph/src/layout/const.tsx index 292f7b95a..ccfb47439 100644 --- a/examples/llm-workflow-graph/src/layout/const.tsx +++ b/examples/llm-workflow-graph/src/layout/const.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { FormattedMessage } from 'react-intl'; -import { SettingFilled, DatabaseOutlined } from '@ant-design/icons'; +import { SettingFilled, DatabaseOutlined, DeploymentUnitOutlined, AppstoreOutlined } from '@ant-design/icons'; import { MenuProps } from 'antd'; @@ -10,9 +10,11 @@ export const SIDE_MENU: MenuProps['items'] = [ key: '/dataset', icon: , }, - // { - // type: 'divider', - // }, + { + label: , + key: '/explore', + icon: , + }, ]; export const STATUS_MAP = { diff --git a/examples/llm-workflow-graph/src/layout/sidebar.tsx b/examples/llm-workflow-graph/src/layout/sidebar.tsx index 1652d2f76..0ad3c5043 100644 --- a/examples/llm-workflow-graph/src/layout/sidebar.tsx +++ b/examples/llm-workflow-graph/src/layout/sidebar.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { GithubOutlined, ReadOutlined, LinkOutlined } from '@ant-design/icons'; import type { MenuProps } from 'antd'; import { Menu, Flex, Button, theme, Tooltip } from 'antd'; -import { Link, Outlet, useNavigate } from 'react-router-dom'; +import { Link, Outlet, useNavigate, useMatch } from 'react-router-dom'; import { useIntl } from 'react-intl'; import { Utils, Logo, useSection } from '@graphscope/studio-components'; @@ -41,8 +41,8 @@ const Sidebar: React.FunctionComponent = () => { = props => { STEP 3 + + + + diff --git a/examples/llm-workflow-graph/src/pages/explore/index.tsx b/examples/llm-workflow-graph/src/pages/explore/index.tsx new file mode 100644 index 000000000..cfedfe78a --- /dev/null +++ b/examples/llm-workflow-graph/src/pages/explore/index.tsx @@ -0,0 +1,24 @@ +import * as React from 'react'; +import Container from '../components/Container'; +import { QueryStatement } from '@graphscope/studio-query'; + +interface IExploreProps {} + +const Explore: React.FunctionComponent = props => { + return ( + + + + ); +}; + +export default Explore; diff --git a/examples/llm-workflow-graph/src/pages/index.tsx b/examples/llm-workflow-graph/src/pages/index.tsx index 65d458dc3..2eb1e9e56 100644 --- a/examples/llm-workflow-graph/src/pages/index.tsx +++ b/examples/llm-workflow-graph/src/pages/index.tsx @@ -1,7 +1,7 @@ import React, { Suspense } from 'react'; import { BrowserRouter, Routes, Route, Outlet, Navigate } from 'react-router-dom'; import Layout from '../layout'; -import { ConfigProvider, Skeleton } from 'antd'; +import { ConfigProvider } from 'antd'; import locales from '../locales'; import { IntlProvider } from 'react-intl'; interface IPagesProps {} @@ -13,8 +13,8 @@ const routes = [ { path: '/dataset/embed', component: React.lazy(() => import('./dataset/embed')) }, { path: '/dataset/extract', component: React.lazy(() => import('./dataset/extract')) }, { path: '/dataset/cluster', component: React.lazy(() => import('./dataset/cluster')) }, + { path: '/explore', component: React.lazy(() => import('./explore')) }, ]; - const Pages: React.FunctionComponent = props => { const locale = 'en-US'; const messages = locales[locale]; @@ -38,7 +38,6 @@ const Pages: React.FunctionComponent = props => { return ( = props => { - const { children, style, direction = 'vertical' } = props; + const { children, style, direction = 'vertical', noSpace } = props; + const _children = noSpace ? children : {children}; return (
= props => { ...style, }} > - {children} + {_children}
); }; diff --git a/packages/studio-graph/src/graph/custom-node/draw.tsx b/packages/studio-graph/src/graph/custom-node/draw.tsx index fc5db8c54..31825735e 100644 --- a/packages/studio-graph/src/graph/custom-node/draw.tsx +++ b/packages/studio-graph/src/graph/custom-node/draw.tsx @@ -7,8 +7,8 @@ interface DrawTextOptions { } export function drawText(ctx: CanvasRenderingContext2D, options: DrawTextOptions): void { - const { text, x, y, maxWidth, lineHeight } = options; - const words = text.split(' '); + const { text = '', x, y, maxWidth, lineHeight } = options; + const words = String(text).split(' '); let line = ''; const lines: string[] = []; From 3e40340e3a503d80cda4991b1b99a273940cf867 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Thu, 5 Sep 2024 13:36:19 +0800 Subject: [PATCH 2/3] feat: rename llm-workflow-graph to graphy-data --- .../{llm-workflow-graph => graphy-data}/.gitignore | 0 .../CHANGELOG.md | 0 .../{llm-workflow-graph => graphy-data}/README.md | 0 .../{llm-workflow-graph => graphy-data}/index.html | 0 .../package.json | 2 +- .../server/.npmrc | 0 .../server/data.js | 0 .../server/data/dataset.zip | Bin .../server/data/raw/Challenge.json | 0 .../data/raw/Challenge_IsSimilar_Challenge.json | 0 .../data/raw/Challenge_Solvedby_Solution.json | 0 .../server/data/raw/Challenge_clusters.json | 0 .../server/data/raw/Paper.json | 0 .../server/data/raw/Paper_Cite_Paper.json | 0 .../server/data/raw/Paper_Use_Solution.json | 0 .../server/data/raw/Solution.json | 0 .../server/data/raw/Task.json | 0 .../server/data/raw/Task_IsSimilar_Task.json | 0 .../server/data/raw/Task_clusters.json | 0 .../server/index.js | 0 .../server/mock/aml.js | 0 .../server/package.json | 0 .../server/utils.js | 0 .../src/components/Cluster/index.tsx | 0 .../src/components/ClusterInfo/Content.tsx | 0 .../src/components/ClusterInfo/index.tsx | 0 .../src/components/FetchGraph/index.tsx | 0 .../src/components/FetchGraph/service.tsx | 0 .../src/components/FilterCluster/index.tsx | 0 .../src/components/Summarize/index.tsx | 0 .../src/components/Workflow/index.tsx | 0 .../src/components/index.tsx | 0 .../src/index.tsx | 0 .../src/layout/collapsed.tsx | 0 .../src/layout/const.tsx | 0 .../src/layout/header.tsx | 0 .../src/layout/index.tsx | 0 .../src/layout/sidebar.tsx | 0 .../src/locales/en-US.ts | 0 .../src/locales/index.tsx | 0 .../src/locales/zh-CN.ts | 0 .../src/pages/components/ClusterGraph/index.tsx | 0 .../src/pages/components/Container/index.tsx | 0 .../pages/components/CreateHeaderPortal/index.tsx | 0 .../src/pages/components/GraphList/index.tsx | 0 .../src/pages/components/GraphSchema/index.tsx | 0 .../src/pages/components/index.tsx | 0 .../src/pages/dataset/cluster/graph.tsx | 0 .../src/pages/dataset/cluster/index.tsx | 0 .../src/pages/dataset/create/index.tsx | 0 .../src/pages/dataset/embed/graph.tsx | 0 .../src/pages/dataset/embed/index.tsx | 0 .../src/pages/dataset/embed/right-side.tsx | 0 .../src/pages/dataset/embed/save.tsx | 0 .../src/pages/dataset/embed/view.tsx | 0 .../src/pages/dataset/extract/index.tsx | 0 .../src/pages/dataset/extract/setting.tsx | 0 .../src/pages/dataset/list/index.tsx | 0 .../src/pages/dataset/list/item.tsx | 0 .../src/pages/dataset/service.ts | 0 .../src/pages/dataset/typing.tsx | 0 .../src/pages/explore/index.tsx | 0 .../src/pages/index.tsx | 0 .../tsconfig.json | 0 .../vite.config.ts | 0 65 files changed, 1 insertion(+), 1 deletion(-) rename examples/{llm-workflow-graph => graphy-data}/.gitignore (100%) rename examples/{llm-workflow-graph => graphy-data}/CHANGELOG.md (100%) rename examples/{llm-workflow-graph => graphy-data}/README.md (100%) rename examples/{llm-workflow-graph => graphy-data}/index.html (100%) rename examples/{llm-workflow-graph => graphy-data}/package.json (96%) rename examples/{llm-workflow-graph => graphy-data}/server/.npmrc (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data.js (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/dataset.zip (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Challenge.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Challenge_IsSimilar_Challenge.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Challenge_Solvedby_Solution.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Challenge_clusters.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Paper.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Paper_Cite_Paper.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Paper_Use_Solution.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Solution.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Task.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Task_IsSimilar_Task.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/data/raw/Task_clusters.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/index.js (100%) rename examples/{llm-workflow-graph => graphy-data}/server/mock/aml.js (100%) rename examples/{llm-workflow-graph => graphy-data}/server/package.json (100%) rename examples/{llm-workflow-graph => graphy-data}/server/utils.js (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/Cluster/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/ClusterInfo/Content.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/ClusterInfo/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/FetchGraph/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/FetchGraph/service.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/FilterCluster/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/Summarize/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/Workflow/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/components/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/layout/collapsed.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/layout/const.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/layout/header.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/layout/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/layout/sidebar.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/locales/en-US.ts (100%) rename examples/{llm-workflow-graph => graphy-data}/src/locales/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/locales/zh-CN.ts (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/ClusterGraph/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/Container/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/CreateHeaderPortal/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/GraphList/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/GraphSchema/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/components/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/cluster/graph.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/cluster/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/create/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/embed/graph.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/embed/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/embed/right-side.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/embed/save.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/embed/view.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/extract/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/extract/setting.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/list/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/list/item.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/service.ts (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/dataset/typing.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/explore/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/src/pages/index.tsx (100%) rename examples/{llm-workflow-graph => graphy-data}/tsconfig.json (100%) rename examples/{llm-workflow-graph => graphy-data}/vite.config.ts (100%) diff --git a/examples/llm-workflow-graph/.gitignore b/examples/graphy-data/.gitignore similarity index 100% rename from examples/llm-workflow-graph/.gitignore rename to examples/graphy-data/.gitignore diff --git a/examples/llm-workflow-graph/CHANGELOG.md b/examples/graphy-data/CHANGELOG.md similarity index 100% rename from examples/llm-workflow-graph/CHANGELOG.md rename to examples/graphy-data/CHANGELOG.md diff --git a/examples/llm-workflow-graph/README.md b/examples/graphy-data/README.md similarity index 100% rename from examples/llm-workflow-graph/README.md rename to examples/graphy-data/README.md diff --git a/examples/llm-workflow-graph/index.html b/examples/graphy-data/index.html similarity index 100% rename from examples/llm-workflow-graph/index.html rename to examples/graphy-data/index.html diff --git a/examples/llm-workflow-graph/package.json b/examples/graphy-data/package.json similarity index 96% rename from examples/llm-workflow-graph/package.json rename to examples/graphy-data/package.json index e1a6c9740..2cb70ba73 100644 --- a/examples/llm-workflow-graph/package.json +++ b/examples/graphy-data/package.json @@ -1,5 +1,5 @@ { - "name": "llm-workflow-graph", + "name": "@graphscope/graphy-data", "version": "0.1.1", "description": "", "main": "lib/index.js", diff --git a/examples/llm-workflow-graph/server/.npmrc b/examples/graphy-data/server/.npmrc similarity index 100% rename from examples/llm-workflow-graph/server/.npmrc rename to examples/graphy-data/server/.npmrc diff --git a/examples/llm-workflow-graph/server/data.js b/examples/graphy-data/server/data.js similarity index 100% rename from examples/llm-workflow-graph/server/data.js rename to examples/graphy-data/server/data.js diff --git a/examples/llm-workflow-graph/server/data/dataset.zip b/examples/graphy-data/server/data/dataset.zip similarity index 100% rename from examples/llm-workflow-graph/server/data/dataset.zip rename to examples/graphy-data/server/data/dataset.zip diff --git a/examples/llm-workflow-graph/server/data/raw/Challenge.json b/examples/graphy-data/server/data/raw/Challenge.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Challenge.json rename to examples/graphy-data/server/data/raw/Challenge.json diff --git a/examples/llm-workflow-graph/server/data/raw/Challenge_IsSimilar_Challenge.json b/examples/graphy-data/server/data/raw/Challenge_IsSimilar_Challenge.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Challenge_IsSimilar_Challenge.json rename to examples/graphy-data/server/data/raw/Challenge_IsSimilar_Challenge.json diff --git a/examples/llm-workflow-graph/server/data/raw/Challenge_Solvedby_Solution.json b/examples/graphy-data/server/data/raw/Challenge_Solvedby_Solution.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Challenge_Solvedby_Solution.json rename to examples/graphy-data/server/data/raw/Challenge_Solvedby_Solution.json diff --git a/examples/llm-workflow-graph/server/data/raw/Challenge_clusters.json b/examples/graphy-data/server/data/raw/Challenge_clusters.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Challenge_clusters.json rename to examples/graphy-data/server/data/raw/Challenge_clusters.json diff --git a/examples/llm-workflow-graph/server/data/raw/Paper.json b/examples/graphy-data/server/data/raw/Paper.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Paper.json rename to examples/graphy-data/server/data/raw/Paper.json diff --git a/examples/llm-workflow-graph/server/data/raw/Paper_Cite_Paper.json b/examples/graphy-data/server/data/raw/Paper_Cite_Paper.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Paper_Cite_Paper.json rename to examples/graphy-data/server/data/raw/Paper_Cite_Paper.json diff --git a/examples/llm-workflow-graph/server/data/raw/Paper_Use_Solution.json b/examples/graphy-data/server/data/raw/Paper_Use_Solution.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Paper_Use_Solution.json rename to examples/graphy-data/server/data/raw/Paper_Use_Solution.json diff --git a/examples/llm-workflow-graph/server/data/raw/Solution.json b/examples/graphy-data/server/data/raw/Solution.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Solution.json rename to examples/graphy-data/server/data/raw/Solution.json diff --git a/examples/llm-workflow-graph/server/data/raw/Task.json b/examples/graphy-data/server/data/raw/Task.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Task.json rename to examples/graphy-data/server/data/raw/Task.json diff --git a/examples/llm-workflow-graph/server/data/raw/Task_IsSimilar_Task.json b/examples/graphy-data/server/data/raw/Task_IsSimilar_Task.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Task_IsSimilar_Task.json rename to examples/graphy-data/server/data/raw/Task_IsSimilar_Task.json diff --git a/examples/llm-workflow-graph/server/data/raw/Task_clusters.json b/examples/graphy-data/server/data/raw/Task_clusters.json similarity index 100% rename from examples/llm-workflow-graph/server/data/raw/Task_clusters.json rename to examples/graphy-data/server/data/raw/Task_clusters.json diff --git a/examples/llm-workflow-graph/server/index.js b/examples/graphy-data/server/index.js similarity index 100% rename from examples/llm-workflow-graph/server/index.js rename to examples/graphy-data/server/index.js diff --git a/examples/llm-workflow-graph/server/mock/aml.js b/examples/graphy-data/server/mock/aml.js similarity index 100% rename from examples/llm-workflow-graph/server/mock/aml.js rename to examples/graphy-data/server/mock/aml.js diff --git a/examples/llm-workflow-graph/server/package.json b/examples/graphy-data/server/package.json similarity index 100% rename from examples/llm-workflow-graph/server/package.json rename to examples/graphy-data/server/package.json diff --git a/examples/llm-workflow-graph/server/utils.js b/examples/graphy-data/server/utils.js similarity index 100% rename from examples/llm-workflow-graph/server/utils.js rename to examples/graphy-data/server/utils.js diff --git a/examples/llm-workflow-graph/src/components/Cluster/index.tsx b/examples/graphy-data/src/components/Cluster/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/Cluster/index.tsx rename to examples/graphy-data/src/components/Cluster/index.tsx diff --git a/examples/llm-workflow-graph/src/components/ClusterInfo/Content.tsx b/examples/graphy-data/src/components/ClusterInfo/Content.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/ClusterInfo/Content.tsx rename to examples/graphy-data/src/components/ClusterInfo/Content.tsx diff --git a/examples/llm-workflow-graph/src/components/ClusterInfo/index.tsx b/examples/graphy-data/src/components/ClusterInfo/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/ClusterInfo/index.tsx rename to examples/graphy-data/src/components/ClusterInfo/index.tsx diff --git a/examples/llm-workflow-graph/src/components/FetchGraph/index.tsx b/examples/graphy-data/src/components/FetchGraph/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/FetchGraph/index.tsx rename to examples/graphy-data/src/components/FetchGraph/index.tsx diff --git a/examples/llm-workflow-graph/src/components/FetchGraph/service.tsx b/examples/graphy-data/src/components/FetchGraph/service.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/FetchGraph/service.tsx rename to examples/graphy-data/src/components/FetchGraph/service.tsx diff --git a/examples/llm-workflow-graph/src/components/FilterCluster/index.tsx b/examples/graphy-data/src/components/FilterCluster/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/FilterCluster/index.tsx rename to examples/graphy-data/src/components/FilterCluster/index.tsx diff --git a/examples/llm-workflow-graph/src/components/Summarize/index.tsx b/examples/graphy-data/src/components/Summarize/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/Summarize/index.tsx rename to examples/graphy-data/src/components/Summarize/index.tsx diff --git a/examples/llm-workflow-graph/src/components/Workflow/index.tsx b/examples/graphy-data/src/components/Workflow/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/Workflow/index.tsx rename to examples/graphy-data/src/components/Workflow/index.tsx diff --git a/examples/llm-workflow-graph/src/components/index.tsx b/examples/graphy-data/src/components/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/components/index.tsx rename to examples/graphy-data/src/components/index.tsx diff --git a/examples/llm-workflow-graph/src/index.tsx b/examples/graphy-data/src/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/index.tsx rename to examples/graphy-data/src/index.tsx diff --git a/examples/llm-workflow-graph/src/layout/collapsed.tsx b/examples/graphy-data/src/layout/collapsed.tsx similarity index 100% rename from examples/llm-workflow-graph/src/layout/collapsed.tsx rename to examples/graphy-data/src/layout/collapsed.tsx diff --git a/examples/llm-workflow-graph/src/layout/const.tsx b/examples/graphy-data/src/layout/const.tsx similarity index 100% rename from examples/llm-workflow-graph/src/layout/const.tsx rename to examples/graphy-data/src/layout/const.tsx diff --git a/examples/llm-workflow-graph/src/layout/header.tsx b/examples/graphy-data/src/layout/header.tsx similarity index 100% rename from examples/llm-workflow-graph/src/layout/header.tsx rename to examples/graphy-data/src/layout/header.tsx diff --git a/examples/llm-workflow-graph/src/layout/index.tsx b/examples/graphy-data/src/layout/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/layout/index.tsx rename to examples/graphy-data/src/layout/index.tsx diff --git a/examples/llm-workflow-graph/src/layout/sidebar.tsx b/examples/graphy-data/src/layout/sidebar.tsx similarity index 100% rename from examples/llm-workflow-graph/src/layout/sidebar.tsx rename to examples/graphy-data/src/layout/sidebar.tsx diff --git a/examples/llm-workflow-graph/src/locales/en-US.ts b/examples/graphy-data/src/locales/en-US.ts similarity index 100% rename from examples/llm-workflow-graph/src/locales/en-US.ts rename to examples/graphy-data/src/locales/en-US.ts diff --git a/examples/llm-workflow-graph/src/locales/index.tsx b/examples/graphy-data/src/locales/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/locales/index.tsx rename to examples/graphy-data/src/locales/index.tsx diff --git a/examples/llm-workflow-graph/src/locales/zh-CN.ts b/examples/graphy-data/src/locales/zh-CN.ts similarity index 100% rename from examples/llm-workflow-graph/src/locales/zh-CN.ts rename to examples/graphy-data/src/locales/zh-CN.ts diff --git a/examples/llm-workflow-graph/src/pages/components/ClusterGraph/index.tsx b/examples/graphy-data/src/pages/components/ClusterGraph/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/ClusterGraph/index.tsx rename to examples/graphy-data/src/pages/components/ClusterGraph/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/components/Container/index.tsx b/examples/graphy-data/src/pages/components/Container/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/Container/index.tsx rename to examples/graphy-data/src/pages/components/Container/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/components/CreateHeaderPortal/index.tsx b/examples/graphy-data/src/pages/components/CreateHeaderPortal/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/CreateHeaderPortal/index.tsx rename to examples/graphy-data/src/pages/components/CreateHeaderPortal/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/components/GraphList/index.tsx b/examples/graphy-data/src/pages/components/GraphList/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/GraphList/index.tsx rename to examples/graphy-data/src/pages/components/GraphList/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/components/GraphSchema/index.tsx b/examples/graphy-data/src/pages/components/GraphSchema/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/GraphSchema/index.tsx rename to examples/graphy-data/src/pages/components/GraphSchema/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/components/index.tsx b/examples/graphy-data/src/pages/components/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/components/index.tsx rename to examples/graphy-data/src/pages/components/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/cluster/graph.tsx b/examples/graphy-data/src/pages/dataset/cluster/graph.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/cluster/graph.tsx rename to examples/graphy-data/src/pages/dataset/cluster/graph.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/cluster/index.tsx b/examples/graphy-data/src/pages/dataset/cluster/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/cluster/index.tsx rename to examples/graphy-data/src/pages/dataset/cluster/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/create/index.tsx b/examples/graphy-data/src/pages/dataset/create/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/create/index.tsx rename to examples/graphy-data/src/pages/dataset/create/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/embed/graph.tsx b/examples/graphy-data/src/pages/dataset/embed/graph.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/embed/graph.tsx rename to examples/graphy-data/src/pages/dataset/embed/graph.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/embed/index.tsx b/examples/graphy-data/src/pages/dataset/embed/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/embed/index.tsx rename to examples/graphy-data/src/pages/dataset/embed/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/embed/right-side.tsx b/examples/graphy-data/src/pages/dataset/embed/right-side.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/embed/right-side.tsx rename to examples/graphy-data/src/pages/dataset/embed/right-side.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/embed/save.tsx b/examples/graphy-data/src/pages/dataset/embed/save.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/embed/save.tsx rename to examples/graphy-data/src/pages/dataset/embed/save.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/embed/view.tsx b/examples/graphy-data/src/pages/dataset/embed/view.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/embed/view.tsx rename to examples/graphy-data/src/pages/dataset/embed/view.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/extract/index.tsx b/examples/graphy-data/src/pages/dataset/extract/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/extract/index.tsx rename to examples/graphy-data/src/pages/dataset/extract/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/extract/setting.tsx b/examples/graphy-data/src/pages/dataset/extract/setting.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/extract/setting.tsx rename to examples/graphy-data/src/pages/dataset/extract/setting.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/list/index.tsx b/examples/graphy-data/src/pages/dataset/list/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/list/index.tsx rename to examples/graphy-data/src/pages/dataset/list/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/list/item.tsx b/examples/graphy-data/src/pages/dataset/list/item.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/list/item.tsx rename to examples/graphy-data/src/pages/dataset/list/item.tsx diff --git a/examples/llm-workflow-graph/src/pages/dataset/service.ts b/examples/graphy-data/src/pages/dataset/service.ts similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/service.ts rename to examples/graphy-data/src/pages/dataset/service.ts diff --git a/examples/llm-workflow-graph/src/pages/dataset/typing.tsx b/examples/graphy-data/src/pages/dataset/typing.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/dataset/typing.tsx rename to examples/graphy-data/src/pages/dataset/typing.tsx diff --git a/examples/llm-workflow-graph/src/pages/explore/index.tsx b/examples/graphy-data/src/pages/explore/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/explore/index.tsx rename to examples/graphy-data/src/pages/explore/index.tsx diff --git a/examples/llm-workflow-graph/src/pages/index.tsx b/examples/graphy-data/src/pages/index.tsx similarity index 100% rename from examples/llm-workflow-graph/src/pages/index.tsx rename to examples/graphy-data/src/pages/index.tsx diff --git a/examples/llm-workflow-graph/tsconfig.json b/examples/graphy-data/tsconfig.json similarity index 100% rename from examples/llm-workflow-graph/tsconfig.json rename to examples/graphy-data/tsconfig.json diff --git a/examples/llm-workflow-graph/vite.config.ts b/examples/graphy-data/vite.config.ts similarity index 100% rename from examples/llm-workflow-graph/vite.config.ts rename to examples/graphy-data/vite.config.ts From bf06b501fb2438d81837590200e6d87af97acb4e Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Thu, 5 Sep 2024 13:44:36 +0800 Subject: [PATCH 3/3] feat: update cases --- examples/graph-apps/src/fraud-detection/index.tsx | 9 +++++++++ examples/graph-apps/src/graph-learning/index.tsx | 9 +++++++++ examples/graph-apps/src/risk-minitoring/index.tsx | 9 +++++++++ examples/graph-apps/src/supply-chain-analysis/index.tsx | 9 +++++++++ 4 files changed, 36 insertions(+) create mode 100644 examples/graph-apps/src/fraud-detection/index.tsx create mode 100644 examples/graph-apps/src/graph-learning/index.tsx create mode 100644 examples/graph-apps/src/risk-minitoring/index.tsx create mode 100644 examples/graph-apps/src/supply-chain-analysis/index.tsx diff --git a/examples/graph-apps/src/fraud-detection/index.tsx b/examples/graph-apps/src/fraud-detection/index.tsx new file mode 100644 index 000000000..011a9f19a --- /dev/null +++ b/examples/graph-apps/src/fraud-detection/index.tsx @@ -0,0 +1,9 @@ +import * as React from 'react'; + +interface IFraudDetectionProps {} + +const FraudDetection: React.FunctionComponent = props => { + return
FraudDetection
; +}; + +export default FraudDetection; diff --git a/examples/graph-apps/src/graph-learning/index.tsx b/examples/graph-apps/src/graph-learning/index.tsx new file mode 100644 index 000000000..1e664c1c8 --- /dev/null +++ b/examples/graph-apps/src/graph-learning/index.tsx @@ -0,0 +1,9 @@ +import * as React from 'react'; + +interface IGraphLearningProps {} + +const GraphLearning: React.FunctionComponent = props => { + return
Graph Learning case
; +}; + +export default GraphLearning; diff --git a/examples/graph-apps/src/risk-minitoring/index.tsx b/examples/graph-apps/src/risk-minitoring/index.tsx new file mode 100644 index 000000000..20f781626 --- /dev/null +++ b/examples/graph-apps/src/risk-minitoring/index.tsx @@ -0,0 +1,9 @@ +import * as React from 'react'; + +interface IRiskMinitoringProps {} + +const RiskMinitoring: React.FunctionComponent = props => { + return
RiskMinitoring case
; +}; + +export default RiskMinitoring; diff --git a/examples/graph-apps/src/supply-chain-analysis/index.tsx b/examples/graph-apps/src/supply-chain-analysis/index.tsx new file mode 100644 index 000000000..925abc835 --- /dev/null +++ b/examples/graph-apps/src/supply-chain-analysis/index.tsx @@ -0,0 +1,9 @@ +import * as React from 'react'; + +interface ISupplyChainAnalysisProps {} + +const SupplyChainAnalysis: React.FunctionComponent = props => { + return
SupplyChainAnalysis
; +}; + +export default SupplyChainAnalysis;