Skip to content

Commit cf7533a

Browse files
authored
Major refactoring and replacing Vizceral library (#9)
Signed-off-by: Marius Oehler <[email protected]>
1 parent f7fbcec commit cf7533a

19 files changed

+1832
-805
lines changed

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@ __Example Data Table:__
3232

3333
##### How to build it:
3434

35-
1. Clone the repository and `cd` to it
36-
1. Make sure you have [yarn]( https://yarnpkg.com/) installed
37-
1. Install the project dependencies: `yarn install --pure-lockfile`
38-
1. Link the customized Vizceral fork (see below)
39-
1. Start the "watch" task: `yarn watch`
40-
1. Mount the built `dist` directory into Grafana's plugin directory. You can also locate the cloned repository there. Grafana will mount the `dist` directory automatically and ignores the `src` one.
41-
4235
To build a production build with minification: `yarn build`
4336

44-
##### Link Vizceral:
45-
46-
This plugin is using a modified version of the Vizeral library, thus you have to link the customized Vizceral version in order to build the plugin!
47-
48-
1. Ensure that NodeJS and NPM is installed
49-
1. Clone the Vizceral fork: `git clone https://github.com/NovatecConsulting/vizceral.git`
50-
1. Checkout the `flowmap` branch: `git checkout -b flowmap`
51-
1. Run inside the repository `npm link`
52-
1. Install webpack: `yarn add webpack`
53-
1. Build it: `npm run build` (or `npm run dev` for development)
54-
1. Go to the flowmap-plugin directory and execute `npm link vizceral`
37+
Run the following for hot-reloading during development: `yarn watch`

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "novatec-service-dependency-graph-panel",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Service Dependency Graph panel for Grafana",
55
"main": "src/module.js",
66
"scripts": {
@@ -10,10 +10,10 @@
1010
"test": "jest --config jest.config.js"
1111
},
1212
"keywords": [
13-
"clock",
1413
"grafana",
1514
"plugin",
16-
"panel"
15+
"service-dependency-graph",
16+
"topology"
1717
],
1818
"author": "Novatec",
1919
"license": "Apache 2.0",
@@ -37,12 +37,15 @@
3737
"style-loader": "^0.23.1",
3838
"ts-jest": "^23.10.4",
3939
"ts-loader": "^5.3.0",
40-
"vizceral": "^4.7.3",
40+
"uglifyjs-webpack-plugin": "1.3.0",
4141
"webpack": "^4.26.0",
42-
"webpack-cli": "^3.2.3",
43-
"uglifyjs-webpack-plugin": "1.3.0"
42+
"webpack-cli": "^3.2.3"
4443
},
4544
"dependencies": {
45+
"@types/cytoscape": "^3.8.5",
46+
"cytoscape": "^3.11.0",
47+
"cytoscape-canvas": "^3.0.1",
48+
"cytoscape-cola": "^2.3.0",
4649
"lodash": "^4.17.13",
4750
"moment": "^2.12.0",
4851
"typescript": "^3.1.6"

0 commit comments

Comments
 (0)