onixjs / vcode Goto Github PK
View Code? Open in Web Editor NEWOnixJS VCode Extension
OnixJS VCode Extension
Similar to component and model, it should create a class MyModel.
Also the datasource is not an array in this case, it should be a DataSource class, remove the IModel from the imports is now deprecated...
A OnixJS Extension for VCode is required, in order to provide a set of snippets to easily create the following:
Application Classes
Module Classes
Component Classes
Model Classes
LifeCycle Function Hooks
Component RPC Method
Component Stream Method
More to be added
This is a request for anyone who wants to help on this new project.
Cheers
Jon
Also, not sure why I did set the OnixMessage as model Type, that is wrong and is my fault, I'm fixing that from the core interface, but for now please correct that one as well, keep it in any as for now and remove the OnixMessage from the imports.
Similar to the module snippet...
Lets change the class Component for MyComponent
When you use the module snippet since it shadows the Module name
import { Module } from '@onixjs/core';
and
export class Module {}
It generates issues, the class should be renamed to something else like
export class MyModule {}
to avoid shadowing issues.
Also, the lifecycle requires to return the method result or will stop the flow.
lifecycle: async(appp, metadata, method): Promise<any> => {
// before call
const result = await method();
// before call
return result;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.