Code Monkey home page Code Monkey logo

thingsboard-rule-config-ui-ngx's Introduction

thingsboard-rule-config-ui-ngx

Configuration UI for ThingsBoard Rule Nodes

Build steps

  1. Install dependencies

    yarn install 
    
  2. Production build

    yarn build 
    

    Resulting JavaScript should be here:

    ./target/generated-resources/public/static/rulenode-core-config.js
    
  3. Deploy Rule Nodes UI JavaScript code to ThingsBoard

    Resulting rulenode-core-config.js should be copied to rule-engine/rule-engine-components/src/main/resources/public/static/rulenode/ directory of ThingsBoard repository.

  4. Run Rule Nodes UI in hot redeploy mode

    yarn start
    

    By default, Rule Nodes UI will be available on port 5000 (http://localhost:5000)

thingsboard-rule-config-ui-ngx's People

Contributors

adrianazoitei avatar andrewvolosytnykhthingsboard avatar andriilandiak avatar artemdzhereleiko avatar ashvayka avatar chantsovaekaterina avatar deaflynx avatar devaskim avatar dmytro-landiak avatar dmytrokhylko avatar ikulikov avatar iraznatovskyi avatar kalutkaz avatar lenteguppie avatar msqr avatar rusikv avatar shvaykad avatar vkukhtyn avatar volodymyr-babak avatar vvlladd28 avatar yevhenbondarenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thingsboard-rule-config-ui-ngx's Issues

line.trim(...).split(...)[0].replaceAll is not a function

when i run build, there's an error: line.trim(...).split(...)[0].replaceAll
`
➜ thingsboard-rule-config-ui-ngx git:(master) ✗ yarn build
yarn run v1.22.10
warning ../../../package.json: No license field
$ ng build && node install.js
Building Angular Package


Building entry point 'rulenode-core-config'

✔ Compiling with Angular sources in Ivy partial compilation mode.
✖ Bundling to SystemJS
line.trim(...).split(...)[0].replaceAll is not a function
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
i can find this:
modulesStr.split(',' + os.EOL).forEach(
(line) => {
const moduleId = line.trim().split(":")[0].replaceAll("'", "").trim();
if (moduleId.length) {
externalModuleIds.push(moduleId);
}
}
);
the codes are in patches/ng-packagr+12.2.7.patch, i can't find anyother places where the codes in.
Angular CLI: 12.2.15
Node: 14.19.3
Package Manager: yarn 1.22.10
OS: darwin x64
Angular: 12.2.15
`
thx

yarn run build error

Hi,sir, the newest commit report error:
✔ Compiling with Angular sources in Ivy partial compilation mode.
✖ Bundling to FESM2015
line.trim(...).split(...)[0].replaceAll is not a function
error Command failed with exit code 1.

A typo error

Hi sir,In Readme.md:
./target/generated-resources/public/static/rulenode-core-config.js should be
./target/generated-resources/public/static/rulenode/rulenode-core-config.js

Node config body not shown on windows 11

I'm serving /static/rulenode/rulenode-core-config.js from thingsboard-rule-config-ui-ngx by running yarn start but I found the node config body missing on node details in dashboard, what did I miss?

image
image
image

I've set ruleNodeUiforwardUrl in proxy.conf.js in ui-ngx as following:

const ruleNodeUiforwardUrl = "http://localhost:5000";

My node version:

$ node -v
v16.16.0

Yarn version:

$ yarn -v
1.22.19

Npm version:

$ npm -v
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.11.0

Failed to load configuration ui resources.

Hi,
I follow the instructions:Resulting rulenode-core-config.js should be copied to rule-engine/rule-engine-components/src/main/resources/public/static/rulenode/ directory of ThingsBoard repository.
and rebuild thingsboard, but get: Failed to load configuration ui resources.
Am I missing something?
Thanks in advance for your responce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.