Giter Site home page Giter Site logo

totallyinformation / uibuilder-vuejs-component-extras Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 266 KB

A set of extra VueJS components designed to work with node-red-contrib-uibuilder though they should also work with other VueJS installations.

License: Apache License 2.0

Vue 26.19% HTML 21.71% JavaScript 50.92% CSS 1.18%
uibuilder vuejs experimental node-red

uibuilder-vuejs-component-extras's Introduction

uibuilder-vuejs-component-extras

As I no longer use VueJS to any extent, this repo is now archived. It is retained for reference and for anyone who wants to fork it for their own use.

UIBUILDER has now moved on and no longer needs to rely on VueJS (though it can, of course, use it if you wish) and so I am no longer developing VueJS components. Any future components developed by me will be vanilla W3C Web Components. See TotallyInformation/web-components for examples.


A set of extra VueJS components designed to work with node-red-contrib-uibuilder though they should also work with other VueJS installations.

WARNING: Currently pre-alpha and highly experimental. Don't assume that anything works right now. Also the installation instructions won't yet work. Right now, the only way to use this is to install it manually.

Also note that ES8/ECMA2017 JavaScript is assumed. Requires Node.js v10, no IE11, modern browser.

Components

This package contains a number of VueJS components:

  • <lamp>

    A small SVG lamp icon designed for home-automation use. Overlay on a floorplan background to show what lamps are available and whether they are on or off.

  • <gauge>

    An SVG gauge chart using vue-svg-gauge

    The purpose of having a component wrapped round the vue-svg-gauge component is to standardise the data and props.

Installation

Using with node-red-contrib-uibuilder

You will need a working installation of Node-RED with uibuilder installed.

Add at least 1 uibuilder node to your flows and deploy. Now open the configuration panel in the Node-RED Editor then click on the "Manage front-end libraries" button.

Click on the add button and type in uibuilder-vuejs-component-extras then click on the install button.

After a few seconds, this library should be added to the list of installed packages. Close the library manager.

Each of the components in this library should now be available to your front-end code by loading the component from ../uibuilder/vendor/uibuilder-vuejs-component-extras/<folder>/<component-name>.

Use the "Show Detailed Information" button to see where libraries and other resources are sourced and what URL's they are available from.

Note that if you install the package manually using npm, don't forget to update <uibRoot>/.config/packageList.json if needed. This may not be needed if using a version of uibuilder >2.0.4 since this package is included in the master package list and so will be discovered automatically. You will have to reload Node-RED when installing manually however.

Using without installation

If you just want to try these components without installing, you can use https://unpkg.com/uibuilder-vuejs-component-extras, simply replace any references to ../uibuilder/vendor/uibuilder-vuejs-component-extras/<folder>/<component-name> in your html with https://unpkg.com/uibuilder-vuejs-component-extras@latest/<folder>/<component-name>.

Using without uibuilder

You should be able to use this library of code without uibuilder. Each component is loadable in several ways and uses a reasonably standard data format. See each component for details.

Usage

Please see the README file in each component folder for usage details.

In general, there are 3 different ways to load these components:

  1. Include the source .vue file in your own build step and let webpack (or your chosen build tool) sort everything out for you.
  2. Load dynamically as an HTML web component.
  3. Load dynamically using the http-vue-loader module.

uibuilder-vuejs-component-extras's People

Contributors

totallyinformation avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xiaoruiguo

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.