Skip to content

Commit

Permalink
network-map-viewer react component (extracted from gridsuite' gridstu…
Browse files Browse the repository at this point in the history
…dy-app) (#263)

* adds a network-map-viewer react component (extracted from gridsuite's gridstudy-app)
* Update Node.js
* renames function to prevent names conflicts with forked code
* removes a no longer used dependency

Signed-off-by: Sylvain Leclerc <[email protected]>
Co-authored-by: Christian Biasuzzi <[email protected]>
  • Loading branch information
2 people authored and flo-dup committed Dec 5, 2023
1 parent a039a11 commit 58f6214
Show file tree
Hide file tree
Showing 41 changed files with 53,858 additions and 13,141 deletions.
25 changes: 25 additions & 0 deletions network-map-viewer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# dependencies
/node_modules

# production
/build

/coverage
/es
/lib
/umd
npm-debug.log*

/dist

# webstorm
/.idea

# misc
.env.local
.env.development.local
.env.test.local
.env.production.local

/demo/node_modules
/demo/build
1 change: 1 addition & 0 deletions network-map-viewer/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions network-map-viewer/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
4 changes: 4 additions & 0 deletions network-map-viewer/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"singleQuote": true
}
373 changes: 373 additions & 0 deletions network-map-viewer/LICENSE

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions network-map-viewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Network-map-viewer
Library for a react component showing a network (substations, voltage levels, lines) over a map.

To build the library:
```console
npm run build
```

# Demo
The library includes a demo react app, in the demo directory (the network-map-viewer component is instantiated in demo/src/App.js).

To run the demo:
```console
cd demo
npm run build
npm start
```
and point the browser to http://localhost:3000

### Notes
Component's code based on Deck.gl and Mapbox-gl, extracted from the [gridstudy-app](https://github.com/gridsuite/gridstudy-app) project.
1 change: 1 addition & 0 deletions network-map-viewer/demo/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Loading

0 comments on commit 58f6214

Please sign in to comment.