tjwebb / marlinspike Goto Github PK
View Code? Open in Web Editor NEWSuperpowers for your Sails.js Hooks.
Home Page: http://sailsjs.org
Superpowers for your Sails.js Hooks.
Home Page: http://sailsjs.org
In February of 2016, support for marlinspike will end. As many of you know, this project has been hamstrung by the Sails.js team's inability to release any of the 0.12.x series versions in a timely manner.
We are transitioning all of our efforts to developing and supporting Trails.js, the successor to Sails.js, There is a long history behind this decision, some of which is documented in this thread in the Sails project: balderdashy/sails#3429 (comment).
Here is the ROADMAP for trails.js: https://github.com/trailsjs/trails/blob/master/ROADMAP.md
I have payment system marlinspike hook. In this hook i have model User.js
.
module.exports={
attributes:{
balance : {
type:'integer',
defaultsTo:0
},
getBalance:function(){
return this.balance/sails.config['paymentsystem'].currency_factor||0;
},
getFormatedBalance:function () {
return String(this.getBalance()).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ');
}
}
}
Since sails 0.12.3 i can not call getBalance or getFormatedBalance or any other model method from my parent app.
When loading models it does not work with sother ORM such as sails-hooks-sequelize
I will see if we can load models using something like:
sails-inject-models
I think it makes sense to add responses and blueprints :)
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.