Skip to content

Commit

Permalink
Update package verison (#62)
Browse files Browse the repository at this point in the history
* feat: up pkg version

* feat: reset publish port
  • Loading branch information
noneAuth authored Dec 27, 2023
1 parent 6089346 commit 5726867
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
20 changes: 10 additions & 10 deletions client/src/constants/GI_EXPORT_FILES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {
Expand All @@ -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',
},
},
};
10 changes: 5 additions & 5 deletions client/src/layouts/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion server/app/service/tugraph/constant.ts
Original file line number Diff line number Diff line change
@@ -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`;
17 changes: 8 additions & 9 deletions server/app/service/tugraph/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`, {
Expand Down Expand Up @@ -85,7 +84,7 @@ class TuGraphSubGraphService extends Service {
},
timeout: [30000, 50000],
dataType: 'json',
}
},
);

if (
Expand Down Expand Up @@ -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}`;
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 5726867

Please sign in to comment.