Skip to content

Commit ee3c960

Browse files
authored
Merge pull request #97 from KNowledgeOnWebScale/development
Release 1.0.0
2 parents d11452d + 999f19e commit ee3c960

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+7296
-3203
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: GitHub Pages CI
2+
on: push
3+
4+
jobs:
5+
build-test-deploy:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
- name: Set-up Node
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: "18.x"
14+
- run: npm ci
15+
- run: npm run build
16+
- name: Deploy
17+
uses: crazy-max/ghaction-github-pages@v1
18+
with:
19+
target_branch: gh-pages
20+
build_dir: build
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Changelog
2+
3+
Dates are DD-MM-YYYY
4+
5+
## [0.1.0] - 04-08-2022
6+
7+
First ever release. You can make flows from JSON or YAML.
8+
9+
## [1.0.0] - 12-08-2022
10+
11+
### Added
12+
13+
- Issue #10: There is support for vgroups and hgroups in combination with `autoLayout`.
14+
- Issue #11: Created a file [DEVELOPMENT.md] to keep [README.md] end-user-friendly.
15+
- Issue #12: You can set the contents of the example buttons via the configs.
16+
- Issue #18: Set the size of an arrowhead.
17+
- Issue #19: You can import and export figure configurations.
18+
- Issue #22: There is a button to import the positions of all nodes of the flow.
19+
- Issue #30: There is a switch button to auto-sync all the changes you make in the editors.
20+
- Issue #34: You can use define for nodes and edges.
21+
- Issue #35: Nodes can have a dashed stroke (just like edges already could).
22+
- Issue #59: There is a button to export the raw ReactFlow config.
23+
- Issue #73: Support for adding encoding data in the URL. If you encode data in the URL, the flow shows up in full
24+
screen, so you can embed the flow in an `iframe`.
25+
- Issue #79: There is a switch to snap the nodes to the grid.
26+
- Issue #80: You can place text on top of a node.
27+
28+
### Changed
29+
30+
- Issue #4: Global settings have nested objects 'graph', 'node' and 'edge'.
31+
- Issue #5: You can generate documentation (see DEVELOPMENT.md for more info)
32+
- Issue #5: edgeColor -> color and edgeThickness -> thickness.
33+
- Issue #20: Changed layout of the editors. The editors are on the left, so you don't need to scroll in order to see the
34+
generated flow.
35+
- Issue #21: If you use images with different dimensions than the width and height of the node, the imaged is not sliced
36+
anymore.
37+
- Issue #24: There is a better separation of UI and non-UI code.
38+
- Issue #25: Transferred the repo from https://github.com/TiboStr to https://github.com/KNowledgeOnWebScale.
39+
- Issue #31: There is a GitHub action that deploys a new version of this project to GitHub Pages on every `git push`.
40+
The new link (after the transferation done in issue #25)
41+
is https://knowledgeonwebscale.github.io/dataflow-visualization/.
42+
-
43+
44+
### Fixes
45+
46+
- Issue #40: If you changed the color of an edge, all the markers with no color specified, changed to that color.
47+
- Issue #69: Title and label in a node that was no parent, did not work.
48+
49+
Kept [README] en [DEVELOPMENT] up to date with all the new changes and additions.
50+
51+
## Unreleased
52+
53+
* /
54+
55+
[DEVELOPMENT.md]: DEVELOPMENT.md
56+
57+
[DEVELOPMENT]: DEVELOPMENT.md
58+
59+
[README.md]: README.md
60+
61+
[README]: README.md

DEVELOPMENT.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Development
2+
3+
This document is aimed at developers.
4+
5+
### How to autogenerate the documentation
6+
7+
In [index.js](src/index.js) set the variable `download` to `true`. Rerun the application and set the variable to `false`
8+
again. You will notice there were three JSON files downloaded. Paste the contents of these files in the accompanying
9+
files in the directory [schemas/schemas](schemas/schemas). Open your terminal, `cd` to `/schemas` and
10+
run `node JSONSchemaMarkdown.js`. The new markdowns will be generated, [README.md](README.md) already links to these
11+
files.
12+
13+
You might ask why not introduce a command, e.g. `npm build docs` that launches a separate script. The reason is that
14+
React can't write to files and the separate script would need the schemas being built
15+
in [schemaValidation.js](src/lib/schemaValidation.js). In order for that script to import a JavaScript file used in
16+
React, someone should mess with webpack. To the person who will do this, good luck!
17+
18+
### How to add shapes/images
19+
20+
As mentioned in the documentation, the value of `image` can be a predefined value or a URL. If you want to add your own
21+
predefined
22+
image, edit the hashmap `SHAPES` in the file [nodeUtil.js](./src/components/node/nodeUtil.js). Pull requests are always
23+
welcome.
24+
25+
### How to add examples
26+
27+
When using this application, you'll notice there are buttons to load examples. These buttons load in the
28+
files [exampleData1.js](./src/data/examples/exampleData1.js), [exampleData2.js](./src/data/examples/exampleData2.js) ...
29+
So if you want to
30+
add
31+
an example, just create another file. In this file, you should have a JSON object for the global defaults, an array of
32+
nodes
33+
and an array of edges. Optionally, you can set a title as well. This will be the text inside the button (so the contents
34+
of the buttons don't have to be `example x`). If your file is ready, import everything
35+
in [examples.js](./src/data/examples.js) and add your imports to the array `examples`. A button to load in
36+
your example will automatically show up if you restart the application.
37+
38+
### Permalink
39+
40+
There is a button to get a link to your flow. There are two formats for a link.
41+
42+
1) `https://knowledgeonwebscale.github.io/dataflow-visualization/#/customdata?globaldefaults=...&nodes=...&edges=...`
43+
* The query parameters are the URI-encoded values of what's inside the editors.
44+
2) `https://knowledgeonwebscale.github.io/dataflow-visualization/#/rawdata?nodes=...&edges=...`
45+
* The query parameters are the URI-encoded values of the raw data of the flow. Remember, there is a button to export
46+
the raw data.
47+
48+
If you press the button to copy the permalink to your clipboard, you get whichever link is shortest.
49+

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Tibo Stroo
3+
Copyright (c) 2022 KNowledge on Web Scale
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)