add/remove components in noflo-ui version 0.18.0

2019-07-24 14:35发布

I am running noflo-ui locally and trying to replace default set of components with my own set.
This is very similar to the question add/remove components in noflo-ui, but provided answers are not correct for current version of noflo-ui. At least there is no preview/component.json in the repository anymore.

I do not want to use github nor flowhub, due to internet connection limitation.

Is there a solution for current version of noflo-ui (which is 0.18.0) ?

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-07-24 15:39

I assume you're talking about how to add/remove components available in the NoFlo browser runtime?

If you create a project you can add components for that project and they'll be registered with the runtime.

If you want to add components from existing NPM modules, the easiest way is by making a fork of the noflo-browser-app project template.

Then add whatever dependencies you want into package.json. You can then either build and host it locally, or use the integrated functionality to push host the generated runtime at GitHub Pages.

Once you have your custom runtime URL available, you can switch to that in Flowhub with the following steps.

First click the "switch runtime" button on top right corner:

Switch runtimes

Then go to runtime selector:

Select runtime button

Choose "custom iframe URL"

Browser runtime options

Enter the URL to your custom runtime's HTML file:

Runtime address

Some more information on the browser builds in this blog post

查看更多
登录 后发表回答