diff --git a/client/src/constants/GI_EXPORT_FILES.ts b/client/src/constants/GI_EXPORT_FILES.ts index 3f5b70d6..71027de4 100644 --- a/client/src/constants/GI_EXPORT_FILES.ts +++ b/client/src/constants/GI_EXPORT_FILES.ts @@ -1441,9 +1441,9 @@ export default { global: 'antd', }, G6: { - url: 'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.14/dist/g6.min.js', + url: 'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.24/dist/g6.min.js', name: '@antv/g6', - version: '4.8.14', + version: '4.8.24', global: 'G6', }, Graphin: { @@ -1454,8 +1454,8 @@ export default { }, GISDK: { name: '@antv/gi-sdk', - version: '2.4.12', - url: 'https://gw.alipayobjects.com/os/lib/antv/gi-sdk/2.4.12/dist/index.min.js', + version: '2.4.20', + url: 'https://gw.alipayobjects.com/os/lib/antv/gi-sdk/2.4.20/dist/index.min.js', global: 'GISDK', }, G2Plot: { @@ -1474,21 +1474,21 @@ export default { GI_ASSETS_PACKAGES: { GI_ASSETS_BASIC: { name: '@antv/gi-assets-basic', - version: '2.4.30', - url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-basic/2.4.30/dist/index.min.js', + version: '2.4.37', + url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-basic/2.4.37/dist/index.min.js', global: 'GI_ASSETS_BASIC', }, GI_ASSETS_ADVANCE: { name: '@antv/gi-assets-advance', - version: '2.5.12', - url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-advance/2.5.12/dist/index.min.js', + version: '2.5.20', + url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-advance/2.5.20/dist/index.min.js', global: 'GI_ASSETS_ADVANCE', }, GI_ASSETS_TUGRAPH_DB: { name: '@tugraph/gi-assets-tugraph-db', - version: '0.6.39', + version: '0.6.41', global: 'GI_ASSETS_TUGRAPH_DB', - url: 'https://gw.alipayobjects.com/os/lib/tugraph/gi-assets-tugraph-db/0.6.39/dist/index.min.js', + url: 'https://gw.alipayobjects.com/os/lib/tugraph/gi-assets-tugraph-db/0.6.41/dist/index.min.js', }, }, }; diff --git a/client/src/layouts/global.less b/client/src/layouts/global.less index dcfb7809..155a8862 100644 --- a/client/src/layouts/global.less +++ b/client/src/layouts/global.less @@ -133,12 +133,12 @@ background: #f5f5f5; cursor: not-allowed; } + .gi-rich-container .gi-rich-container-toolbar .toolbar-item .ant-btn-primary { + background-color: #fff; + border-color: #fff; + color: rgb(106, 107, 113); + } .ant-space-item { display: flex; } } -.gi-rich-container .gi-rich-container-toolbar .toolbar-item .ant-btn-primary { - background-color: #fff; - border-color: #fff; - color: rgb(106, 107, 113); -} diff --git a/server/app/service/tugraph/constant.ts b/server/app/service/tugraph/constant.ts index 93cf6c54..c3b6b482 100644 --- a/server/app/service/tugraph/constant.ts +++ b/server/app/service/tugraph/constant.ts @@ -1,3 +1,3 @@ -const HOST_URL = `http://127.0.0.1:9090`; +export const HOST_URL = `http://127.0.0.1:9090`; export const EngineServerURL = `${HOST_URL}/LGraphHttpService/Query`; diff --git a/server/app/service/tugraph/subgraph.ts b/server/app/service/tugraph/subgraph.ts index 580b337b..95a1575d 100644 --- a/server/app/service/tugraph/subgraph.ts +++ b/server/app/service/tugraph/subgraph.ts @@ -22,7 +22,6 @@ class TuGraphSubGraphService extends Service { */ async createSubGraph(graphName: string, config: ISubGraphConfig) { const { maxSizeGB, description } = config; - const createCypher = `CALL dbms.graph.createGraph('${graphName}', '${description}', ${maxSizeGB})`; const result = await this.ctx.curl(`${EngineServerURL}/cypher`, { @@ -85,7 +84,7 @@ class TuGraphSubGraphService extends Service { }, timeout: [30000, 50000], dataType: 'json', - } + }, ); if ( @@ -204,14 +203,14 @@ class TuGraphSubGraphService extends Service { timeout: [30000, 50000], dataType: 'json', }) - .then((res) => { + .then(res => { const graphData = JSON.parse(res.data.result[0]); - graphData.nodes.forEach((item) => { + graphData.nodes.forEach(item => { item.vid = item.identity; }); - graphData.relationships.forEach((item) => { + graphData.relationships.forEach(item => { item.source = item.src; item.destination = item.dst; item.uid = `${item.src}_${item.dst}_${item.label_id}_${item.temporal_id}_${item.identity}`; @@ -229,7 +228,7 @@ class TuGraphSubGraphService extends Service { const { nodes, relationships } = subGraphResult.data; const graphData = { - nodes: nodes.map((node) => { + nodes: nodes.map(node => { const { vid, label, ...others } = node; return { ...others.properties, @@ -239,7 +238,7 @@ class TuGraphSubGraphService extends Service { id: `${vid}`, }; }), - edges: relationships.map((r) => { + edges: relationships.map(r => { const { uid, label, destination, source, ...others } = r; return { ...others.properties, @@ -277,8 +276,8 @@ class TuGraphSubGraphService extends Service { timeout: [30000, 50000], dataType: 'json', }); - - return QueryResultFormatter(result as any, cypher) + + return QueryResultFormatter(result as any, cypher); } /**