noflo / noflo-ui

NoFlo Development Environment
https://app.flowhub.io
MIT License
767 stars 173 forks source link

Load/Save graphs #83

Closed djdeath closed 10 years ago

djdeath commented 10 years ago

Not sure if it's related to #64 but I would really like to be able press a button to save a graph in a json file, as well as the opposite, load a json file into a new graph. This is mostly to be able to store the result in a git repo.

bergie commented 10 years ago

@djdeath GitHub collaboration is coming via Flowhub, hopefully soon

forresto commented 10 years ago

But for now we could make a button that does window.open(graph.toJSON(" ")) or similar.

djdeath commented 10 years ago

Just trying to explain why I'm interested in this : My use case for now is to get graph in and out of the web browser. I'm working on at least 2 laptops (work/home) and right now I have to rewrite my graphs when I switch from one laptop to another. Although the graph.toJSON() works to get a dump, the opposite (loading a dump) doesn't, I haven't managed to load a graph from a different web browser.

bergie commented 10 years ago

@djdeath so the initial acceptable state would be something like import/export?

djdeath commented 10 years ago

Yeah, that would be great :)

bergie commented 10 years ago

Slowly getting there with GitHub access...

screenshot 2014-02-12 at 13 57 34 screenshot 2014-02-12 at 13 56 30

djdeath commented 10 years ago

Oh nice :)

bergie commented 10 years ago

screenshot 2014-02-12 at 19 54 35

working on the downloading flows now, needed to fix noflo-github to work on browser first.

bergie commented 10 years ago

initial commit/push UI:

screenshot 2014-02-13 at 18 41 52

bergie commented 10 years ago

...and first repository created this way: https://github.com/bergie/foobar

Still a bit buggy, however. But at least you can get your stuff out.