Onorix
Yet another NodeCG plugin for Vue.
Table of Contents
Installation
npm install onorix
;; Vue;
Usage
Replicants
const app = replicants: /** * Declares a `lorem` replicant. */ lorem: {} /** * Declares a `dolor` replicant but accessible from `ipsum`. */ ipsum: name: "dolor" /** * Declares a `sit` replicant with the given options. */ sit: defaultValue: "Spark" persistent: false /** * Declares a `amet` replicant from the `acta` namespace. */ amet: namespace: "acta" { console; };
Decorators
If prefer decorators, you can declare replicants with @Replicant
.
The main difference with the previous example is that a computed property is being defined as well.
;; @Component @ lorem; @ ipsum; @ sit; @ amet; { console; }
Author
Alexandre Breteau - @0xSeldszar
License
MIT © Alexandre Breteau