Skip to content

Commit 32739da

Browse files
[deps] Bump prettier from 3.5.3 to 3.6.2
Signed-off-by: Federico Capoano <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent e0acb79 commit 32739da

21 files changed

+585
-353
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
run: |
3838
yarn install
3939
python --version
40-
pip install openwisp-utils[qa]
40+
pip install "openwisp-utils[qa] @ https://github.com/openwisp/openwisp-utils/tarball/1.2"
41+
sudo npm install -g prettier
4142
4243
- name: QA checks
4344
run: ./run-qa-checks
@@ -86,7 +87,7 @@ jobs:
8687
8788
- name: Unit tests
8889
run: yarn coverage --testPathIgnorePatterns=test/netjsongraph.browser.test.js
89-
90+
9091
- name: Browser tests
9192
# Test timeout set to 30 seconds in CI since it runs slower
9293
run: yarn test --runInBand --testTimeout=30000 test/netjsongraph.browser.test.js

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ NetJSON format used internally is based on [networkgraph](http://netjson.org/rfc
9494

9595
**Note on Styling**:
9696
The library's core CSS styles are scoped under the `.njg-container` class to prevent conflicts with your project's styles. This class is automatically added to the `el` element.
97-
9897
- If `el` is `document.body` (the default), the library automatically styles both the `<html>` and `<body>` elements for full-page rendering (e.g., `width: 100%`, `height: 100%`, `margin: 0`).
9998
- If you provide a custom element for `el`, you are responsible for ensuring that this element and its parent elements have appropriate dimensions (width, height) for the graph to be visible.
10099

examples/realtime_update/assets/netjsonmap.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,28 +295,52 @@
295295
],
296296
"links": [
297297
{"source": "172.16.146.6", "target": "172.16.146.4", "cost": 1},
298-
{"source": "172.16.139.4", "target": "172.16.138.1", "cost": 1.02734375},
298+
{
299+
"source": "172.16.139.4",
300+
"target": "172.16.138.1",
301+
"cost": 1.02734375
302+
},
299303
{"source": "172.16.135.15", "target": "10.123.10.10", "cost": 1},
300304
{"source": "192.168.145.145", "target": "10.254.254.2", "cost": 1},
301305
{"source": "172.16.186.249", "target": "172.16.159.187", "cost": 1},
302306
{"source": "172.16.186.249", "target": "172.16.159.50", "cost": 1},
303307
{"source": "172.16.12.10", "target": "172.16.12.12", "cost": 1},
304-
{"source": "172.16.177.31", "target": "172.16.155.4", "cost": 1.1796875},
308+
{
309+
"source": "172.16.177.31",
310+
"target": "172.16.155.4",
311+
"cost": 1.1796875
312+
},
305313
{"source": "10.183.1.11", "target": "172.16.145.3", "cost": 1},
306314
{"source": "172.16.200.67", "target": "172.16.200.2", "cost": 1},
307315
{"source": "172.16.185.11", "target": "192.168.176.10", "cost": 1},
308316
{"source": "172.16.159.187", "target": "172.16.159.50", "cost": 1},
309-
{"source": "172.16.159.187", "target": "172.16.39.31", "cost": 1.36328125},
317+
{
318+
"source": "172.16.159.187",
319+
"target": "172.16.39.31",
320+
"cost": 1.36328125
321+
},
310322
{"source": "10.254.254.4", "target": "10.254.254.2", "cost": 1},
311323
{"source": "10.254.254.2", "target": "10.254.254.4", "cost": 1},
312324
{"source": "10.254.254.2", "target": "10.254.254.4", "cost": 1.3},
313-
{"source": "172.16.171.1", "target": "172.16.169.1", "cost": 1.1181640625},
325+
{
326+
"source": "172.16.171.1",
327+
"target": "172.16.169.1",
328+
"cost": 1.1181640625
329+
},
314330
{"source": "172.16.155.5", "target": "172.16.155.4", "cost": 1},
315-
{"source": "172.16.155.5", "target": "172.16.44.10", "cost": 1.1328125},
331+
{
332+
"source": "172.16.155.5",
333+
"target": "172.16.44.10",
334+
"cost": 1.1328125
335+
},
316336
{"source": "172.16.185.12", "target": "10.185.1.1", "cost": 1},
317337
{"source": "172.16.185.12", "target": "172.16.185.13", "cost": 1},
318338
{"source": "172.16.185.12", "target": "10.185.1.11", "cost": 1},
319-
{"source": "10.149.3.3", "target": "172.16.146.4", "cost": 1.26171875},
339+
{
340+
"source": "10.149.3.3",
341+
"target": "172.16.146.4",
342+
"cost": 1.26171875
343+
},
320344
{"source": "172.16.185.13", "target": "10.185.1.1", "cost": 1},
321345
{"source": "172.16.185.13", "target": "10.185.1.11", "cost": 1},
322346
{"source": "10.185.1.11", "target": "10.185.1.1", "cost": 1},

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "netjsongraph.js",
33
"version": "0.2.0",
4-
"description": "NetJson format data visualization",
4+
"description": "NetJSON NetworkGraph visualizer",
55
"main": "index.js",
66
"scripts": {
77
"test": "jest --silent",
@@ -12,9 +12,7 @@
1212
"coveralls": "jest --silent -f ./coverage/lcov.info && cat ./coverage/lcov.info | coveralls || echo 'no coverage file found'",
1313
"precommit": "lint-staged",
1414
"lint": "eslint '**/*.js'",
15-
"lint:fix": "eslint '**/*.js' --fix",
16-
"format": "prettier --write \"**/*.+(js|json|css|md)\"",
17-
"format:check": "prettier -c \"**/*.+(js|json|css|md)\""
15+
"lint:fix": "eslint '**/*.js' --fix"
1816
},
1917
"lint-staged": {
2018
"src/**/*.js": [

public/assets/data/airplaneRouteMap.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@
111111
"name": "台州",
112112
"location": {"lng": 121.1353, "lat": 28.6688}
113113
},
114-
{"id": "合肥", "name": "合肥", "location": {"lng": 117.29, "lat": 32.0581}},
114+
{
115+
"id": "合肥",
116+
"name": "合肥",
117+
"location": {"lng": 117.29, "lat": 32.0581}
118+
},
115119
{
116120
"id": "呼和浩特",
117121
"name": "呼和浩特",

public/assets/data/netjsonAppendData/1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
}
2323
],
2424
"links": [
25-
{"source": "172.16.139.4", "target": "172.16.135.15", "cost": 1.3779296875}
25+
{
26+
"source": "172.16.139.4",
27+
"target": "172.16.135.15",
28+
"cost": 1.3779296875
29+
}
2630
]
2731
}

public/assets/data/netjsonAppendData/2.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
}
5555
],
5656
"links": [
57-
{"source": "172.16.146.1", "target": "172.16.146.2", "cost": 1.3779296875}
57+
{
58+
"source": "172.16.146.1",
59+
"target": "172.16.146.2",
60+
"cost": 1.3779296875
61+
}
5862
]
5963
}

public/assets/data/netjsonNodeTiles/1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
}
3232
],
3333
"links": [
34-
{"source": "172.16.139.4", "target": "172.16.135.15", "cost": 1.3779296875}
34+
{
35+
"source": "172.16.139.4",
36+
"target": "172.16.135.15",
37+
"cost": 1.3779296875
38+
}
3539
]
3640
}

public/assets/data/netjsonNodeTiles/3.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,28 +295,52 @@
295295
],
296296
"links": [
297297
{"source": "172.16.146.6", "target": "172.16.146.4", "cost": 1},
298-
{"source": "172.16.139.4", "target": "172.16.138.1", "cost": 1.02734375},
298+
{
299+
"source": "172.16.139.4",
300+
"target": "172.16.138.1",
301+
"cost": 1.02734375
302+
},
299303
{"source": "172.16.135.15", "target": "10.123.10.10", "cost": 1},
300304
{"source": "192.168.145.145", "target": "10.254.254.2", "cost": 1},
301305
{"source": "172.16.186.249", "target": "172.16.159.187", "cost": 1},
302306
{"source": "172.16.186.249", "target": "172.16.159.50", "cost": 1},
303307
{"source": "172.16.12.10", "target": "172.16.12.12", "cost": 1},
304-
{"source": "172.16.177.31", "target": "172.16.155.4", "cost": 1.1796875},
308+
{
309+
"source": "172.16.177.31",
310+
"target": "172.16.155.4",
311+
"cost": 1.1796875
312+
},
305313
{"source": "10.183.1.11", "target": "172.16.145.3", "cost": 1},
306314
{"source": "172.16.200.67", "target": "172.16.200.2", "cost": 1},
307315
{"source": "172.16.185.11", "target": "192.168.176.10", "cost": 1},
308316
{"source": "172.16.159.187", "target": "172.16.159.50", "cost": 1},
309-
{"source": "172.16.159.187", "target": "172.16.39.31", "cost": 1.36328125},
317+
{
318+
"source": "172.16.159.187",
319+
"target": "172.16.39.31",
320+
"cost": 1.36328125
321+
},
310322
{"source": "10.254.254.4", "target": "10.254.254.2", "cost": 1},
311323
{"source": "10.254.254.2", "target": "10.254.254.4", "cost": 1},
312324
{"source": "10.254.254.2", "target": "10.254.254.4", "cost": 1.3},
313-
{"source": "172.16.171.1", "target": "172.16.169.1", "cost": 1.1181640625},
325+
{
326+
"source": "172.16.171.1",
327+
"target": "172.16.169.1",
328+
"cost": 1.1181640625
329+
},
314330
{"source": "172.16.155.5", "target": "172.16.155.4", "cost": 1},
315-
{"source": "172.16.155.5", "target": "172.16.44.10", "cost": 1.1328125},
331+
{
332+
"source": "172.16.155.5",
333+
"target": "172.16.44.10",
334+
"cost": 1.1328125
335+
},
316336
{"source": "172.16.185.12", "target": "10.185.1.1", "cost": 1},
317337
{"source": "172.16.185.12", "target": "172.16.185.13", "cost": 1},
318338
{"source": "172.16.185.12", "target": "10.185.1.11", "cost": 1},
319-
{"source": "10.149.3.3", "target": "172.16.146.4", "cost": 1.26171875},
339+
{
340+
"source": "10.149.3.3",
341+
"target": "172.16.146.4",
342+
"cost": 1.26171875
343+
},
320344
{"source": "172.16.185.13", "target": "10.185.1.1", "cost": 1},
321345
{"source": "172.16.185.13", "target": "10.185.1.11", "cost": 1},
322346
{"source": "10.185.1.11", "target": "10.185.1.1", "cost": 1},

0 commit comments

Comments
 (0)