Skip to content

Commit ad110cb

Browse files
committed
use new driver
1 parent c68efec commit ad110cb

File tree

12 files changed

+27662
-53
lines changed

12 files changed

+27662
-53
lines changed

gallery/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { Button, HeroIcon, Tag, TextInput } from '@neo4j-ndl/react';
12
import React from 'react';
23
import './App.css';
3-
import { Button, TextInput, HeroIcon, Tag } from '@neo4j-ndl/react';
44

55
// These are the read-only credentials of the public database where the gallery exists.
66
const uri = 'neo4j+s://acb5b6ae.databases.neo4j.io';
@@ -9,7 +9,7 @@ const password = 'gallery';
99

1010
async function loadDashboards(setResults: any) {
1111
// eslint-disable-next-line @typescript-eslint/no-var-requires
12-
const neo4j = require('neo4j-driver');
12+
const neo4j = require('../neo4j-driver-lite/neo4j-lite-web.');
1313
const driver = neo4j.driver(uri, neo4j.auth.basic(user, password));
1414
const session = driver.session();
1515

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"mui-color": "^2.0.0-beta.2",
7474
"mui-nested-menu": "^3.2.1",
7575
"neo4j-client-sso": "^1.2.2",
76-
"neo4j-driver": "^5.12.0",
7776
"openai": "^3.3.0",
7877
"postcss": "^8.4.21",
7978
"postcss-loader": "^7.2.4",

src/chart/Chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Record as Neo4jRecord } from 'neo4j-driver';
1+
import { Record as Neo4jRecord } from '../neo4j-driver-lite/neo4j-lite-web.esm';
22

33
/**
44
* Interface for all charts that NeoDash can render.

src/chart/ChartUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import domtoimage from 'dom-to-image';
2-
import { Date as Neo4jDate } from 'neo4j-driver-core/lib/temporal-types.js';
2+
import { Date as Neo4jDate } from '../neo4j-driver-lite/neo4j-lite-web.esm';
33

44
/**
55
* Converts a neo4j record entry to a readable string representation.
@@ -255,7 +255,7 @@ export const downloadComponentAsImage = (ref) => {
255255
});
256256
};
257257

258-
import { QueryResult, Record as Neo4jRecord } from 'neo4j-driver';
258+
import { Record as Neo4jRecord, QueryResult } from '../neo4j-driver-lite/neo4j-lite-web.esm';
259259
import { RenderSubValue } from '../report/ReportRecordProcessing';
260260

261261
/**

src/chart/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { tokens } from '@neo4j-ndl/base';
2-
import { QueryResult, Record as Neo4jRecord } from 'neo4j-driver';
2+
import { Record as Neo4jRecord, QueryResult } from '../neo4j-driver-lite/neo4j-lite-web.esm';
33
export function recordToNative(input: any): any {
44
if (!input && input !== false) {
55
return null;

src/chart/graph/util/RecordUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { evaluateRulesOnNode, evaluateRulesOnLink } from '../../../extensions/styling/StyleRuleEvaluator';
1+
import { evaluateRulesOnLink, evaluateRulesOnNode } from '../../../extensions/styling/StyleRuleEvaluator';
2+
import { isNode } from '../../../neo4j-driver-lite/neo4j-lite-web.esm';
23
import { extractNodePropertiesFromRecords, mergeNodePropsFieldsLists } from '../../../report/ReportRecordProcessing';
3-
import { valueIsArray, valueIsNode, valueIsRelationship, valueIsPath, toNumber } from '../../ChartUtils';
4+
import { toNumber, valueIsArray, valueIsNode, valueIsPath, valueIsRelationship } from '../../ChartUtils';
45
import { GraphChartVisualizationProps } from '../GraphChartVisualization';
56
import { assignCurvatureToLink } from './RelUtils';
6-
import { isNode } from 'neo4j-driver-core/lib/graph-types.js';
77

88
const update = (state, mutations) => Object.assign({}, state, mutations);
99

src/chart/parameter/component/DateParameterSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import dayjs from 'dayjs';
2-
import { Date as Neo4jDate } from 'neo4j-driver-core/lib/temporal-types.js';
32
import React, { useEffect } from 'react';
43
import NeoDatePicker from '../../../component/field/DateField';
4+
import { Date as Neo4jDate } from '../../../neo4j-driver-lite/neo4j-lite-web.esm';
55
import { isCastableToNeo4jDate, isEmptyObject } from '../../ChartUtils';
66
import { ParameterSelectProps } from './ParameterSelect';
77

0 commit comments

Comments
 (0)