{"id":20118485,"url":"https://github.com/flowfuse/node-red-dashboard-2-migration","last_synced_at":"2025-04-14T18:40:36.668Z","repository":{"id":242049935,"uuid":"808526946","full_name":"FlowFuse/node-red-dashboard-2-migration","owner":"FlowFuse","description":"A module that exposes a migration script for converting Dashboard 1.0 flows to Dashboard 2.0","archived":false,"fork":false,"pushed_at":"2025-04-04T15:31:59.000Z","size":132,"stargazers_count":2,"open_issues_count":22,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T16:37:44.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlowFuse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-31T08:55:00.000Z","updated_at":"2025-04-04T15:32:01.000Z","dependencies_parsed_at":"2025-03-25T10:30:56.007Z","dependency_job_id":null,"html_url":"https://github.com/FlowFuse/node-red-dashboard-2-migration","commit_stats":null,"previous_names":["flowfuse/node-red-dashboard-2-migration"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-dashboard-2-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-dashboard-2-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-dashboard-2-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-dashboard-2-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlowFuse","download_url":"https://codeload.github.com/FlowFuse/node-red-dashboard-2-migration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248938092,"owners_count":21186338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:11:05.053Z","updated_at":"2025-04-14T18:40:36.632Z","avatar_url":"https://github.com/FlowFuse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-RED Dashboard 2.0 Migration Script\n\nThis 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.\n\nPlease 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.\n\n## Supported Nodes\n\n### Nodes\n\n- `ui_text` - converted to Dashboard 2.0's `ui-text`\n- `ui_form` - converted to Dashboard 2.0's `ui-form`\n- `ui_button` - converted to Dashboard 2.0's `ui-button`\n- `ui_dropdown` - converted to Dashboard 2.0's `ui-dropdown`\n- `ui_switch` - converted to Dashboard 2.0's `ui-switch`\n    - `.tooltip` is not supported\n    - `.decouple` is not supported\n    - `.animate` is not supported\n- `ui_slider` - converted to Dashboard 2.0's `ui-slider`\n- `ui_text_input` - converted to Dashboard 2.0's `ui-text-input`\n    - `.tooltip` is not supported\n- `ui_numeric` - converted to Dashboard 2.0's `ui-numeric-input`\n    \n### Config Nodes\n\n- `ui_tab` - converted to Dashboard 2.0's `ui-page`\n- `ui_group` - converted to Dashboard 2.0's `ui-group`\n\n### Added\n\n- `ui-base` - Not included in a Dashboard 1.0 `flow.json` export, so we create a standard default in it's place.\n- `ui-theme` - Not included in a Dashboard 1.0 `flow.json` export, so we create a standard default in it's place.\n\n## Not Yet Supported:\n\n- `ui_date_picker` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/22)\n- `ui_colour_picker` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/23)\n- `ui_gauge` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/26)\n- `ui_chart` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/27)\n- `ui_audio` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/28)\n- `ui_toast` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/29)\n- `ui_control` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/30)\n- `ui_template` - [link](https://github.com/FlowFuse/node-red-dashboard-2-migration/issues/31)\n\n## Usage\n\n### Terminal\n\nTo run this module from the terminal, you can run:\n\n```bash\ncd path/to/your/node-red-dashboard-2-migration\nnode migrate path/to/your/flow.json\n```\n\nThe 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.\n\n### JavaScript\n\nTo run this module from within a `js` environment, you can run:\n\n```js\nconst d1flow = require('./path/to/your/flow.json')\nconst MigrateDashboard = require('node-red-dashboard-2-migration')\nconst d2flow = MigrateDashboard.migrate(d1flow)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fnode-red-dashboard-2-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowfuse%2Fnode-red-dashboard-2-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fnode-red-dashboard-2-migration/lists"}