Skip to content

Commit 5726867

Browse files
authored
Update package verison (#62)
* feat: up pkg version * feat: reset publish port
1 parent 6089346 commit 5726867

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

client/src/constants/GI_EXPORT_FILES.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,9 +1441,9 @@ export default {
14411441
global: 'antd',
14421442
},
14431443
G6: {
1444-
url: 'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.14/dist/g6.min.js',
1444+
url: 'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.24/dist/g6.min.js',
14451445
name: '@antv/g6',
1446-
version: '4.8.14',
1446+
version: '4.8.24',
14471447
global: 'G6',
14481448
},
14491449
Graphin: {
@@ -1454,8 +1454,8 @@ export default {
14541454
},
14551455
GISDK: {
14561456
name: '@antv/gi-sdk',
1457-
version: '2.4.12',
1458-
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-sdk/2.4.12/dist/index.min.js',
1457+
version: '2.4.20',
1458+
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-sdk/2.4.20/dist/index.min.js',
14591459
global: 'GISDK',
14601460
},
14611461
G2Plot: {
@@ -1474,21 +1474,21 @@ export default {
14741474
GI_ASSETS_PACKAGES: {
14751475
GI_ASSETS_BASIC: {
14761476
name: '@antv/gi-assets-basic',
1477-
version: '2.4.30',
1478-
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-basic/2.4.30/dist/index.min.js',
1477+
version: '2.4.37',
1478+
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-basic/2.4.37/dist/index.min.js',
14791479
global: 'GI_ASSETS_BASIC',
14801480
},
14811481
GI_ASSETS_ADVANCE: {
14821482
name: '@antv/gi-assets-advance',
1483-
version: '2.5.12',
1484-
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-advance/2.5.12/dist/index.min.js',
1483+
version: '2.5.20',
1484+
url: 'https://gw.alipayobjects.com/os/lib/antv/gi-assets-advance/2.5.20/dist/index.min.js',
14851485
global: 'GI_ASSETS_ADVANCE',
14861486
},
14871487
GI_ASSETS_TUGRAPH_DB: {
14881488
name: '@tugraph/gi-assets-tugraph-db',
1489-
version: '0.6.39',
1489+
version: '0.6.41',
14901490
global: 'GI_ASSETS_TUGRAPH_DB',
1491-
url: 'https://gw.alipayobjects.com/os/lib/tugraph/gi-assets-tugraph-db/0.6.39/dist/index.min.js',
1491+
url: 'https://gw.alipayobjects.com/os/lib/tugraph/gi-assets-tugraph-db/0.6.41/dist/index.min.js',
14921492
},
14931493
},
14941494
};

client/src/layouts/global.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@
133133
background: #f5f5f5;
134134
cursor: not-allowed;
135135
}
136+
.gi-rich-container .gi-rich-container-toolbar .toolbar-item .ant-btn-primary {
137+
background-color: #fff;
138+
border-color: #fff;
139+
color: rgb(106, 107, 113);
140+
}
136141
.ant-space-item {
137142
display: flex;
138143
}
139144
}
140-
.gi-rich-container .gi-rich-container-toolbar .toolbar-item .ant-btn-primary {
141-
background-color: #fff;
142-
border-color: #fff;
143-
color: rgb(106, 107, 113);
144-
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const HOST_URL = `http://127.0.0.1:9090`;
1+
export const HOST_URL = `http://127.0.0.1:9090`;
22

33
export const EngineServerURL = `${HOST_URL}/LGraphHttpService/Query`;

server/app/service/tugraph/subgraph.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class TuGraphSubGraphService extends Service {
2222
*/
2323
async createSubGraph(graphName: string, config: ISubGraphConfig) {
2424
const { maxSizeGB, description } = config;
25-
2625
const createCypher = `CALL dbms.graph.createGraph('${graphName}', '${description}', ${maxSizeGB})`;
2726

2827
const result = await this.ctx.curl(`${EngineServerURL}/cypher`, {
@@ -85,7 +84,7 @@ class TuGraphSubGraphService extends Service {
8584
},
8685
timeout: [30000, 50000],
8786
dataType: 'json',
88-
}
87+
},
8988
);
9089

9190
if (
@@ -204,14 +203,14 @@ class TuGraphSubGraphService extends Service {
204203
timeout: [30000, 50000],
205204
dataType: 'json',
206205
})
207-
.then((res) => {
206+
.then(res => {
208207
const graphData = JSON.parse(res.data.result[0]);
209208

210-
graphData.nodes.forEach((item) => {
209+
graphData.nodes.forEach(item => {
211210
item.vid = item.identity;
212211
});
213212

214-
graphData.relationships.forEach((item) => {
213+
graphData.relationships.forEach(item => {
215214
item.source = item.src;
216215
item.destination = item.dst;
217216
item.uid = `${item.src}_${item.dst}_${item.label_id}_${item.temporal_id}_${item.identity}`;
@@ -229,7 +228,7 @@ class TuGraphSubGraphService extends Service {
229228
const { nodes, relationships } = subGraphResult.data;
230229

231230
const graphData = {
232-
nodes: nodes.map((node) => {
231+
nodes: nodes.map(node => {
233232
const { vid, label, ...others } = node;
234233
return {
235234
...others.properties,
@@ -239,7 +238,7 @@ class TuGraphSubGraphService extends Service {
239238
id: `${vid}`,
240239
};
241240
}),
242-
edges: relationships.map((r) => {
241+
edges: relationships.map(r => {
243242
const { uid, label, destination, source, ...others } = r;
244243
return {
245244
...others.properties,
@@ -277,8 +276,8 @@ class TuGraphSubGraphService extends Service {
277276
timeout: [30000, 50000],
278277
dataType: 'json',
279278
});
280-
281-
return QueryResultFormatter(result as any, cypher)
279+
280+
return QueryResultFormatter(result as any, cypher);
282281
}
283282

284283
/**

0 commit comments

Comments
 (0)