npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@flowfuse/node-red-dashboard-2-migration

v0.0.3

Published

A module that exposes a migration script for converting Dashboard 1.0 flows to Dashboard 2.0

Downloads

14

Readme

Node-RED Dashboard 2.0 Migration Script

This module provides a script with which you can pass in a Dashboard 1.0 flow, and in return, you will receive a Dashboard 2.0 flow.

Please note that this script does not cover everything, see below for a list of currently supported nodes that can be migrated. The script will be improved over time, and we're open to pull requests to enhance it's functionality.

Supported Nodes

Nodes

  • ui_text - converted to Dashboard 2.0's ui-text
  • ui_form - converted to Dashboard 2.0's ui-form
  • ui_button - converted to Dashboard 2.0's ui-button
  • ui_dropdown - converted to Dashboard 2.0's ui-dropdown
  • ui_switch - converted to Dashboard 2.0's ui-switch
    • .tooltip is not supported
    • .decouple is not supported
    • .animate is not supported
  • ui_slider - converted to Dashboard 2.0's ui-slider
  • ui_text_input - converted to Dashboard 2.0's ui-text-input
    • .tooltip is not supported

Config Nodes

  • ui_tab - converted to Dashboard 2.0's ui-page
  • ui_group - converted to Dashboard 2.0's ui-group

Added

  • ui-base - Not included in a Dashboard 1.0 flow.json export, so we create a standard default in it's place.
  • ui-theme - Not included in a Dashboard 1.0 flow.json export, so we create a standard default in it's place.

Not Yet Supported:

Usage

Terminal

To run this module from the terminal, you can run:

cd path/to/your/node-red-dashboard-2-migration
node migrate path/to/your/flow.json

The script will then print to the terminal a valid flow.json which you can copy and paste into your Node-RED editor, via Node-RED's import functionality.

JavaScript

To run this module from within a js environment, you can run:

const d1flow = require('./path/to/your/flow.json')
const MigrateDashboard = require('node-red-dashboard-2-migration')
const d2flow = MigrateDashboard.migrate(d1flow)